Skip to content

Commit

Permalink
tools: update lint-md-dependencies
Browse files Browse the repository at this point in the history
Update to @rollup/[email protected] and [email protected].

PR-URL: #48544
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
nodejs-github-bot authored and RafaelGSS committed Jul 3, 2023
1 parent f43d718 commit 203c3cf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 20 deletions.
28 changes: 21 additions & 7 deletions tools/lint-md/lint-md.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19521,6 19521,7 @@ const MAX_LENGTH$1 = 256;
const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER ||
9007199254740991;
const MAX_SAFE_COMPONENT_LENGTH = 16;
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH$1 - 6;
const RELEASE_TYPES = [
'major',
'premajor',
Expand All @@ -19533,6 19534,7 @@ const RELEASE_TYPES = [
var constants = {
MAX_LENGTH: MAX_LENGTH$1,
MAX_SAFE_COMPONENT_LENGTH,
MAX_SAFE_BUILD_LENGTH,
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
RELEASE_TYPES,
SEMVER_SPEC_VERSION,
Expand All @@ -19544,18 19546,30 @@ getDefaultExportFromCjs(constants);
var re$1 = {exports: {}};

(function (module, exports) {
const { MAX_SAFE_COMPONENT_LENGTH } = constants;
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants;
const debug = debug_1;
exports = module.exports = {};
const re = exports.re = [];
const safeRe = exports.safeRe = [];
const src = exports.src = [];
const t = exports.t = {};
let R = 0;
const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
const safeRegexReplacements = [
['\\s', 1],
['\\d', MAX_SAFE_COMPONENT_LENGTH],
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
];
const makeSafeRegex = (value) => {
for (const [token, max] of safeRegexReplacements) {
value = value
.split(`${token}*`).join(`${token}{0,${max}}`)
.split(`${token} `).join(`${token}{1,${max}}`);
}
return value
};
const createToken = (name, value, isGlobal) => {
const safe = value
.split('\\s*').join('\\s{0,1}')
.split('\\s ').join('\\s');
const safe = makeSafeRegex(value);
const index = R ;
debug(name, index, value);
t[name] = index;
Expand All @@ -19564,8 19578,8 @@ var re$1 = {exports: {}};
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);
};
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
createToken('NUMERICIDENTIFIERLOOSE', '[0-9] ');
createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*');
createToken('NUMERICIDENTIFIERLOOSE', '\\d ');
createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.`
`(${src[t.NUMERICIDENTIFIER]})\\.`
`(${src[t.NUMERICIDENTIFIER]})`);
Expand All @@ -19580,7 19863,7 @@ var re$1 = {exports: {}};
}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
createToken('BUILDIDENTIFIER', '[0-9A-Za-z-] ');
createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER} `);
createToken('BUILD', `(?:\\ (${src[t.BUILDIDENTIFIER]
}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
Expand Down
22 changes: 11 additions & 11 deletions tools/lint-md/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/lint-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 14,9 @@
"vfile-reporter": "^8.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.1",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-node-resolve": "^15.1.0",
"rollup": "^3.25.1",
"rollup": "^3.25.2",
"rollup-plugin-cleanup": "^3.2.1"
}
}

0 comments on commit 203c3cf

Please sign in to comment.