@@ -3909,7 +3909,7 @@ function resolvePlugin(name, options) {
3909
3909
3910
3910
module.exports = function (args, opts) {
3911
3911
if (!opts) opts = {};
3912
-
3912
+
3913
3913
var flags = { bools : {}, strings : {}, unknownFn: null };
3914
3914
3915
3915
if (typeof opts['unknown'] === 'function') {
@@ -3923,7 +3923,7 @@ module.exports = function (args, opts) {
3923
3923
flags.bools[key] = true;
3924
3924
});
3925
3925
}
3926
-
3926
+
3927
3927
var aliases = {};
3928
3928
Object.keys(opts.alias || {}).forEach(function (key) {
3929
3929
aliases[key] = [].concat(opts.alias[key]);
@@ -3942,12 +3942,12 @@ module.exports = function (args, opts) {
3942
3942
});
3943
3943
3944
3944
var defaults = opts['default'] || {};
3945
-
3945
+
3946
3946
var argv = { _ : [] };
3947
3947
Object.keys(flags.bools).forEach(function (key) {
3948
3948
setArg(key, defaults[key] === undefined ? false : defaults[key]);
3949
3949
});
3950
-
3950
+
3951
3951
var notFlags = [];
3952
3952
3953
3953
if (args.indexOf('--') !== -1) {
@@ -3969,7 +3969,7 @@ module.exports = function (args, opts) {
3969
3969
? Number(val) : val
3970
3970
;
3971
3971
setKey(argv, key.split('.'), value);
3972
-
3972
+
3973
3973
(aliases[key] || []).forEach(function (x) {
3974
3974
setKey(argv, x.split('.'), value);
3975
3975
});
@@ -3993,7 +3993,7 @@ module.exports = function (args, opts) {
3993
3993
o[key] = [ o[key], value ];
3994
3994
}
3995
3995
}
3996
-
3996
+
3997
3997
function aliasIsBoolean(key) {
3998
3998
return aliases[key].some(function (x) {
3999
3999
return flags.bools[x];
@@ -4002,7 +4002,7 @@ module.exports = function (args, opts) {
4002
4002
4003
4003
for (var i = 0; i < args.length; i++) {
4004
4004
var arg = args[i];
4005
-
4005
+
4006
4006
if (/^--.+=/.test(arg)) {
4007
4007
// Using [\s\S] instead of . because js doesn't support the
4008
4008
// 'dotall' regex modifier. See:
@@ -4039,29 +4039,29 @@ module.exports = function (args, opts) {
4039
4039
}
4040
4040
else if (/^-[^-]+/.test(arg)) {
4041
4041
var letters = arg.slice(1,-1).split('');
4042
-
4042
+
4043
4043
var broken = false;
4044
4044
for (var j = 0; j < letters.length; j++) {
4045
4045
var next = arg.slice(j+2);
4046
-
4046
+
4047
4047
if (next === '-') {
4048
4048
setArg(letters[j], next, arg)
4049
4049
continue;
4050
4050
}
4051
-
4051
+
4052
4052
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
4053
4053
setArg(letters[j], next.split('=')[1], arg);
4054
4054
broken = true;
4055
4055
break;
4056
4056
}
4057
-
4057
+
4058
4058
if (/[A-Za-z]/.test(letters[j])
4059
4059
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
4060
4060
setArg(letters[j], next, arg);
4061
4061
broken = true;
4062
4062
break;
4063
4063
}
4064
-
4064
+
4065
4065
if (letters[j+1] && letters[j+1].match(/\W/)) {
4066
4066
setArg(letters[j], arg.slice(j+2), arg);
4067
4067
broken = true;
@@ -4071,7 +4071,7 @@ module.exports = function (args, opts) {
4071
4071
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
4072
4072
}
4073
4073
}
4074
-
4074
+
4075
4075
var key = arg.slice(-1)[0];
4076
4076
if (!broken && key !== '-') {
4077
4077
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
@@ -4101,17 +4101,17 @@ module.exports = function (args, opts) {
4101
4101
}
4102
4102
}
4103
4103
}
4104
-
4104
+
4105
4105
Object.keys(defaults).forEach(function (key) {
4106
4106
if (!hasKey(argv, key.split('.'))) {
4107
4107
setKey(argv, key.split('.'), defaults[key]);
4108
-
4108
+
4109
4109
(aliases[key] || []).forEach(function (x) {
4110
4110
setKey(argv, x.split('.'), defaults[key]);
4111
4111
});
4112
4112
}
4113
4113
});
4114
-
4114
+
4115
4115
if (opts['--']) {
4116
4116
argv['--'] = new Array();
4117
4117
notFlags.forEach(function(key) {
@@ -8785,7 +8785,7 @@ const args = {
8785
8785
description: cli.description,
8786
8786
version: [
8787
8787
proc.name + ': ' + proc.version,
8788
- cli.name + ': ' + cli.version
8788
+ cli.name + ': ' + cli.version,
8789
8789
].join(', '),
8790
8790
ignoreName: '.' + proc.name + 'ignore',
8791
8791
extensions: extensions
@@ -8794,7 +8794,7 @@ const config = options(process.argv.slice(2), args);
8794
8794
config.detectConfig = false;
8795
8795
config.plugins = plugins;
8796
8796
8797
- engine(config, function done (err, code) {
8797
+ engine(config, (err, code) => {
8798
8798
if (err) console.error(err);
8799
8799
process.exit(code);
8800
8800
});
@@ -26623,15 +26623,15 @@ module.exports = function (rows_, opts) {
26623
26623
var stringLength = opts.stringLength
26624
26624
|| function (s) { return String(s).length; }
26625
26625
;
26626
-
26626
+
26627
26627
var dotsizes = reduce(rows_, function (acc, row) {
26628
26628
forEach(row, function (c, ix) {
26629
26629
var n = dotindex(c);
26630
26630
if (!acc[ix] || n > acc[ix]) acc[ix] = n;
26631
26631
});
26632
26632
return acc;
26633
26633
}, []);
26634
-
26634
+
26635
26635
var rows = map(rows_, function (row) {
26636
26636
return map(row, function (c_, ix) {
26637
26637
var c = String(c_);
@@ -26645,15 +26645,15 @@ module.exports = function (rows_, opts) {
26645
26645
else return c;
26646
26646
});
26647
26647
});
26648
-
26648
+
26649
26649
var sizes = reduce(rows, function (acc, row) {
26650
26650
forEach(row, function (c, ix) {
26651
26651
var n = stringLength(c);
26652
26652
if (!acc[ix] || n > acc[ix]) acc[ix] = n;
26653
26653
});
26654
26654
return acc;
26655
26655
}, []);
26656
-
26656
+
26657
26657
return map(rows, function (row) {
26658
26658
return map(row, function (c, ix) {
26659
26659
var n = (sizes[ix] - stringLength(c)) || 0;
@@ -26666,7 +26666,7 @@ module.exports = function (rows_, opts) {
26666
26666
+ c + Array(Math.floor(n / 2 + 1)).join(' ')
26667
26667
;
26668
26668
}
26669
-
26669
+
26670
26670
return c + s;
26671
26671
}).join(hsep).replace(/\s+$/, '');
26672
26672
}).join('\n');
@@ -26711,36 +26711,40 @@ function map (xs, f) {
26711
26711
"use strict";
26712
26712
26713
26713
26714
- const preserveCamelCase = input => {
26714
+ const preserveCamelCase = string => {
26715
26715
let isLastCharLower = false;
26716
26716
let isLastCharUpper = false;
26717
26717
let isLastLastCharUpper = false;
26718
26718
26719
- for (let i = 0; i < input .length; i++) {
26720
- const c = input [i];
26719
+ for (let i = 0; i < string .length; i++) {
26720
+ const character = string [i];
26721
26721
26722
- if (isLastCharLower && /[a-zA-Z]/.test(c ) && c .toUpperCase() === c ) {
26723
- input = input .slice(0, i) + '-' + input .slice(i);
26722
+ if (isLastCharLower && /[a-zA-Z]/.test(character ) && character .toUpperCase() === character ) {
26723
+ string = string .slice(0, i) + '-' + string .slice(i);
26724
26724
isLastCharLower = false;
26725
26725
isLastLastCharUpper = isLastCharUpper;
26726
26726
isLastCharUpper = true;
26727
26727
i++;
26728
- } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(c ) && c .toLowerCase() === c ) {
26729
- input = input .slice(0, i - 1) + '-' + input .slice(i - 1);
26728
+ } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character ) && character .toLowerCase() === character ) {
26729
+ string = string .slice(0, i - 1) + '-' + string .slice(i - 1);
26730
26730
isLastLastCharUpper = isLastCharUpper;
26731
26731
isLastCharUpper = false;
26732
26732
isLastCharLower = true;
26733
26733
} else {
26734
- isLastCharLower = c .toLowerCase() === c ;
26734
+ isLastCharLower = character .toLowerCase() === character ;
26735
26735
isLastLastCharUpper = isLastCharUpper;
26736
- isLastCharUpper = c .toUpperCase() === c ;
26736
+ isLastCharUpper = character .toUpperCase() === character ;
26737
26737
}
26738
26738
}
26739
26739
26740
- return input ;
26740
+ return string ;
26741
26741
};
26742
26742
26743
26743
module.exports = (input, options) => {
26744
+ if (!(typeof input === 'string' || Array.isArray(input))) {
26745
+ throw new TypeError('Expected the input to be `string | string[]`');
26746
+ }
26747
+
26744
26748
options = Object.assign({
26745
26749
pascalCase: false
26746
26750
}, options);
@@ -35198,7 +35202,7 @@ function tableCell(node) {
35198
35202
/* 302 */
35199
35203
/***/ (function(module) {
35200
35204
35201
- module.exports = {"name":"remark","version":"10.0.1","description":"Markdown processor powered by plugins","license":"MIT","keywords":["markdown","abstract","syntax","tree","ast","parse","stringify","process"],"homepage":"https://remark.js.org","repository":"https://github.com/remarkjs/remark/tree/master/packages/remark","bugs":"https://github.com/remarkjs/remark/issues","author":"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)","contributors":["Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"],"files":["index.js"],"dependencies":{"remark-parse":"^6.0.0","remark-stringify":"^6.0.0","unified":"^7.0.0"},"devDependencies":{"tape":"^4.9.1"},"scripts":{"test":"tape test.js"},"xo":false,"_resolved":"https://registry.npmjs.org/remark/-/remark-10.0.1.tgz","_integrity":"sha512-E6lMuoLIy2TyiokHprMjcWNJ5UxfGQjaMSMhV+f4idM625UjjK4j798+gPs5mfjzDE6vL0oFKVeZM6gZVSVrzQ==","_from":"remark@10.0.1"};
35205
+ module.exports = {"_from":"remark@^10.0.0","_id":"remark@10.0.1","_inBundle":false,"_integrity":"sha512-E6lMuoLIy2TyiokHprMjcWNJ5UxfGQjaMSMhV+f4idM625UjjK4j798+gPs5mfjzDE6vL0oFKVeZM6gZVSVrzQ==","_location":"/remark","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"remark@^10.0.0","name":"remark","escapedName":"remark","rawSpec":"^10.0.0","saveSpec":null,"fetchSpec":"^10.0.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/remark/-/remark-10.0.1.tgz","_shasum":"3058076dc41781bf505d8978c291485fe47667df","_spec":"remark@^10.0.0","_where":"/Users/trott/io.js/tools/node-lint-md-cli-rollup","author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/remarkjs/remark/issues"},"bundleDependencies":false,"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"remark-parse":"^6.0.0","remark-stringify":"^6.0.0","unified":"^7.0.0"},"deprecated":false,"description":"Markdown processor powered by plugins","devDependencies":{"tape":"^4.9.1"},"files":["index.js"],"homepage":"https://remark.js.org","keywords":["markdown","abstract","syntax","tree","ast","parse","stringify","process"],"license":"MIT","name":"remark","repository":{"type":"git","url":"https://github.com/remarkjs/remark/tree/master/packages/remark"},"scripts":{"test":"tape test.js"},"version":"10.0.1","xo":false};
35202
35206
35203
35207
/***/ }),
35204
35208
/* 303 */
@@ -35261,6 +35265,7 @@ module.exports.plugins = [
35261
35265
__webpack_require__(346),
35262
35266
[
35263
35267
{ no: "End-Of-Life", yes: "End-of-Life" },
35268
+ { no: "End-of-life", yes: "End-of-Life" },
35264
35269
{ no: "Github", yes: "GitHub" },
35265
35270
{ no: "Javascript", yes: "JavaScript" },
35266
35271
{ no: "Node.JS", yes: "Node.js" },
0 commit comments