npm-pkg-lint 3.10.8 → 3.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3585,6 +3585,7 @@ var require_re = __commonJS({
|
|
|
3585
3585
|
var re = exports.re = [];
|
|
3586
3586
|
var safeRe = exports.safeRe = [];
|
|
3587
3587
|
var src = exports.src = [];
|
|
3588
|
+
var safeSrc = exports.safeSrc = [];
|
|
3588
3589
|
var t = exports.t = {};
|
|
3589
3590
|
var R = 0;
|
|
3590
3591
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
@@ -3605,6 +3606,7 @@ var require_re = __commonJS({
|
|
|
3605
3606
|
debug(name2, index, value);
|
|
3606
3607
|
t[name2] = index;
|
|
3607
3608
|
src[index] = value;
|
|
3609
|
+
safeSrc[index] = safe;
|
|
3608
3610
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
3609
3611
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
3610
3612
|
};
|
|
@@ -3701,7 +3703,7 @@ var require_semver = __commonJS({
|
|
|
3701
3703
|
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
3702
3704
|
var debug = require_debug();
|
|
3703
3705
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
3704
|
-
var { safeRe: re, t } = require_re();
|
|
3706
|
+
var { safeRe: re, safeSrc: src, t } = require_re();
|
|
3705
3707
|
var parseOptions = require_parse_options();
|
|
3706
3708
|
var { compareIdentifiers } = require_identifiers();
|
|
3707
3709
|
var SemVer = class _SemVer {
|
|
@@ -3846,7 +3848,8 @@ var require_semver = __commonJS({
|
|
|
3846
3848
|
throw new Error("invalid increment argument: identifier is empty");
|
|
3847
3849
|
}
|
|
3848
3850
|
if (identifier) {
|
|
3849
|
-
const
|
|
3851
|
+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
|
|
3852
|
+
const match2 = `-${identifier}`.match(r);
|
|
3850
3853
|
if (!match2 || match2[1] !== identifier) {
|
|
3851
3854
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
3852
3855
|
}
|