@@ -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
});
@@ -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