@@ -8785,7 +8785,7 @@ const args = {
87858785 description: cli.description,
87868786 version: [
87878787 proc.name + ': ' + proc.version,
8788- cli.name + ': ' + cli.version
8788+ cli.name + ': ' + cli.version,
87898789 ].join(', '),
87908790 ignoreName: '.' + proc.name + 'ignore',
87918791 extensions: extensions
@@ -8794,7 +8794,7 @@ const config = options(process.argv.slice(2), args);
87948794config.detectConfig = false;
87958795config.plugins = plugins;
87968796
8797- engine(config, function done (err, code) {
8797+ engine(config, (err, code) => {
87988798 if (err) console.error(err);
87998799 process.exit(code);
88008800});
@@ -26711,36 +26711,40 @@ function map (xs, f) {
2671126711"use strict";
2671226712
2671326713
26714- const preserveCamelCase = input => {
26714+ const preserveCamelCase = string => {
2671526715 let isLastCharLower = false;
2671626716 let isLastCharUpper = false;
2671726717 let isLastLastCharUpper = false;
2671826718
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];
2672126721
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);
2672426724 isLastCharLower = false;
2672526725 isLastLastCharUpper = isLastCharUpper;
2672626726 isLastCharUpper = true;
2672726727 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);
2673026730 isLastLastCharUpper = isLastCharUpper;
2673126731 isLastCharUpper = false;
2673226732 isLastCharLower = true;
2673326733 } else {
26734- isLastCharLower = c .toLowerCase() === c ;
26734+ isLastCharLower = character .toLowerCase() === character ;
2673526735 isLastLastCharUpper = isLastCharUpper;
26736- isLastCharUpper = c .toUpperCase() === c ;
26736+ isLastCharUpper = character .toUpperCase() === character ;
2673726737 }
2673826738 }
2673926739
26740- return input ;
26740+ return string ;
2674126741};
2674226742
2674326743module.exports = (input, options) => {
26744+ if (!(typeof input === 'string' || Array.isArray(input))) {
26745+ throw new TypeError('Expected the input to be `string | string[]`');
26746+ }
26747+
2674426748 options = Object.assign({
2674526749 pascalCase: false
2674626750 }, options);
@@ -35198,7 +35202,7 @@ function tableCell(node) {
3519835202/* 302 */
3519935203/***/ (function(module) {
3520035204
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 <
[email protected] > (https://wooorm.com)","contributors":["Titus Wormer <
[email protected] > (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":"
[email protected] "};
35205+ module.exports = {"_from":"remark@^10.0.0","_id":"
[email protected] ","_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":"
[email protected] ","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/remarkjs/remark/issues"},"bundleDependencies":false,"contributors":[{"name":"Titus Wormer","email":"
[email protected] ","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};
3520235206
3520335207/***/ }),
3520435208/* 303 */
@@ -35261,6 +35265,7 @@ module.exports.plugins = [
3526135265 __webpack_require__(346),
3526235266 [
3526335267 { no: "End-Of-Life", yes: "End-of-Life" },
35268+ { no: "End-of-life", yes: "End-of-Life" },
3526435269 { no: "Github", yes: "GitHub" },
3526535270 { no: "Javascript", yes: "JavaScript" },
3526635271 { no: "Node.JS", yes: "Node.js" },
0 commit comments