npm-pkg-lint 3.10.10 → 3.10.12
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 +78 -17
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21,11 +21,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
21
21
|
var __commonJS = (cb, mod) => function __require2() {
|
|
22
22
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
23
23
|
};
|
|
24
|
-
var __copyProps = (to, from, except,
|
|
24
|
+
var __copyProps = (to, from, except, desc2) => {
|
|
25
25
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
26
|
for (let key of __getOwnPropNames(from))
|
|
27
27
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc2 = __getOwnPropDesc(from, key)) || desc2.enumerable });
|
|
29
29
|
}
|
|
30
30
|
return to;
|
|
31
31
|
};
|
|
@@ -3535,6 +3535,7 @@ var require_tmp = __commonJS({
|
|
|
3535
3535
|
// node_modules/semver/internal/constants.js
|
|
3536
3536
|
var require_constants = __commonJS({
|
|
3537
3537
|
"node_modules/semver/internal/constants.js"(exports, module) {
|
|
3538
|
+
"use strict";
|
|
3538
3539
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
3539
3540
|
var MAX_LENGTH = 256;
|
|
3540
3541
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
@@ -3566,6 +3567,7 @@ var require_constants = __commonJS({
|
|
|
3566
3567
|
// node_modules/semver/internal/debug.js
|
|
3567
3568
|
var require_debug = __commonJS({
|
|
3568
3569
|
"node_modules/semver/internal/debug.js"(exports, module) {
|
|
3570
|
+
"use strict";
|
|
3569
3571
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
3570
3572
|
};
|
|
3571
3573
|
module.exports = debug;
|
|
@@ -3575,6 +3577,7 @@ var require_debug = __commonJS({
|
|
|
3575
3577
|
// node_modules/semver/internal/re.js
|
|
3576
3578
|
var require_re = __commonJS({
|
|
3577
3579
|
"node_modules/semver/internal/re.js"(exports, module) {
|
|
3580
|
+
"use strict";
|
|
3578
3581
|
var {
|
|
3579
3582
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
3580
3583
|
MAX_SAFE_BUILD_LENGTH,
|
|
@@ -3615,8 +3618,8 @@ var require_re = __commonJS({
|
|
|
3615
3618
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
3616
3619
|
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
3617
3620
|
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
3618
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.
|
|
3619
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.
|
|
3621
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
3622
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
3620
3623
|
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
3621
3624
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
3622
3625
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
@@ -3662,6 +3665,7 @@ var require_re = __commonJS({
|
|
|
3662
3665
|
// node_modules/semver/internal/parse-options.js
|
|
3663
3666
|
var require_parse_options = __commonJS({
|
|
3664
3667
|
"node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
3668
|
+
"use strict";
|
|
3665
3669
|
var looseOption = Object.freeze({ loose: true });
|
|
3666
3670
|
var emptyOpts = Object.freeze({});
|
|
3667
3671
|
var parseOptions = (options) => {
|
|
@@ -3680,6 +3684,7 @@ var require_parse_options = __commonJS({
|
|
|
3680
3684
|
// node_modules/semver/internal/identifiers.js
|
|
3681
3685
|
var require_identifiers = __commonJS({
|
|
3682
3686
|
"node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
3687
|
+
"use strict";
|
|
3683
3688
|
var numeric = /^[0-9]+$/;
|
|
3684
3689
|
var compareIdentifiers = (a, b) => {
|
|
3685
3690
|
const anum = numeric.test(a);
|
|
@@ -3701,9 +3706,10 @@ var require_identifiers = __commonJS({
|
|
|
3701
3706
|
// node_modules/semver/classes/semver.js
|
|
3702
3707
|
var require_semver = __commonJS({
|
|
3703
3708
|
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
3709
|
+
"use strict";
|
|
3704
3710
|
var debug = require_debug();
|
|
3705
3711
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
3706
|
-
var { safeRe: re,
|
|
3712
|
+
var { safeRe: re, t } = require_re();
|
|
3707
3713
|
var parseOptions = require_parse_options();
|
|
3708
3714
|
var { compareIdentifiers } = require_identifiers();
|
|
3709
3715
|
var SemVer = class _SemVer {
|
|
@@ -3848,8 +3854,7 @@ var require_semver = __commonJS({
|
|
|
3848
3854
|
throw new Error("invalid increment argument: identifier is empty");
|
|
3849
3855
|
}
|
|
3850
3856
|
if (identifier) {
|
|
3851
|
-
const
|
|
3852
|
-
const match2 = `-${identifier}`.match(r);
|
|
3857
|
+
const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
3853
3858
|
if (!match2 || match2[1] !== identifier) {
|
|
3854
3859
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
3855
3860
|
}
|
|
@@ -3962,6 +3967,7 @@ var require_semver = __commonJS({
|
|
|
3962
3967
|
// node_modules/semver/functions/parse.js
|
|
3963
3968
|
var require_parse = __commonJS({
|
|
3964
3969
|
"node_modules/semver/functions/parse.js"(exports, module) {
|
|
3970
|
+
"use strict";
|
|
3965
3971
|
var SemVer = require_semver();
|
|
3966
3972
|
var parse6 = (version3, options, throwErrors = false) => {
|
|
3967
3973
|
if (version3 instanceof SemVer) {
|
|
@@ -3983,6 +3989,7 @@ var require_parse = __commonJS({
|
|
|
3983
3989
|
// node_modules/semver/functions/valid.js
|
|
3984
3990
|
var require_valid = __commonJS({
|
|
3985
3991
|
"node_modules/semver/functions/valid.js"(exports, module) {
|
|
3992
|
+
"use strict";
|
|
3986
3993
|
var parse6 = require_parse();
|
|
3987
3994
|
var valid = (version3, options) => {
|
|
3988
3995
|
const v = parse6(version3, options);
|
|
@@ -3995,6 +4002,7 @@ var require_valid = __commonJS({
|
|
|
3995
4002
|
// node_modules/semver/functions/clean.js
|
|
3996
4003
|
var require_clean = __commonJS({
|
|
3997
4004
|
"node_modules/semver/functions/clean.js"(exports, module) {
|
|
4005
|
+
"use strict";
|
|
3998
4006
|
var parse6 = require_parse();
|
|
3999
4007
|
var clean = (version3, options) => {
|
|
4000
4008
|
const s = parse6(version3.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -4007,6 +4015,7 @@ var require_clean = __commonJS({
|
|
|
4007
4015
|
// node_modules/semver/functions/inc.js
|
|
4008
4016
|
var require_inc = __commonJS({
|
|
4009
4017
|
"node_modules/semver/functions/inc.js"(exports, module) {
|
|
4018
|
+
"use strict";
|
|
4010
4019
|
var SemVer = require_semver();
|
|
4011
4020
|
var inc = (version3, release, options, identifier, identifierBase) => {
|
|
4012
4021
|
if (typeof options === "string") {
|
|
@@ -4030,6 +4039,7 @@ var require_inc = __commonJS({
|
|
|
4030
4039
|
// node_modules/semver/functions/diff.js
|
|
4031
4040
|
var require_diff = __commonJS({
|
|
4032
4041
|
"node_modules/semver/functions/diff.js"(exports, module) {
|
|
4042
|
+
"use strict";
|
|
4033
4043
|
var parse6 = require_parse();
|
|
4034
4044
|
var diff = (version1, version22) => {
|
|
4035
4045
|
const v1 = parse6(version1, null, true);
|
|
@@ -4073,6 +4083,7 @@ var require_diff = __commonJS({
|
|
|
4073
4083
|
// node_modules/semver/functions/major.js
|
|
4074
4084
|
var require_major = __commonJS({
|
|
4075
4085
|
"node_modules/semver/functions/major.js"(exports, module) {
|
|
4086
|
+
"use strict";
|
|
4076
4087
|
var SemVer = require_semver();
|
|
4077
4088
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
4078
4089
|
module.exports = major;
|
|
@@ -4082,6 +4093,7 @@ var require_major = __commonJS({
|
|
|
4082
4093
|
// node_modules/semver/functions/minor.js
|
|
4083
4094
|
var require_minor = __commonJS({
|
|
4084
4095
|
"node_modules/semver/functions/minor.js"(exports, module) {
|
|
4096
|
+
"use strict";
|
|
4085
4097
|
var SemVer = require_semver();
|
|
4086
4098
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
4087
4099
|
module.exports = minor;
|
|
@@ -4091,6 +4103,7 @@ var require_minor = __commonJS({
|
|
|
4091
4103
|
// node_modules/semver/functions/patch.js
|
|
4092
4104
|
var require_patch = __commonJS({
|
|
4093
4105
|
"node_modules/semver/functions/patch.js"(exports, module) {
|
|
4106
|
+
"use strict";
|
|
4094
4107
|
var SemVer = require_semver();
|
|
4095
4108
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
4096
4109
|
module.exports = patch;
|
|
@@ -4100,6 +4113,7 @@ var require_patch = __commonJS({
|
|
|
4100
4113
|
// node_modules/semver/functions/prerelease.js
|
|
4101
4114
|
var require_prerelease = __commonJS({
|
|
4102
4115
|
"node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
4116
|
+
"use strict";
|
|
4103
4117
|
var parse6 = require_parse();
|
|
4104
4118
|
var prerelease = (version3, options) => {
|
|
4105
4119
|
const parsed = parse6(version3, options);
|
|
@@ -4112,6 +4126,7 @@ var require_prerelease = __commonJS({
|
|
|
4112
4126
|
// node_modules/semver/functions/compare.js
|
|
4113
4127
|
var require_compare = __commonJS({
|
|
4114
4128
|
"node_modules/semver/functions/compare.js"(exports, module) {
|
|
4129
|
+
"use strict";
|
|
4115
4130
|
var SemVer = require_semver();
|
|
4116
4131
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
4117
4132
|
module.exports = compare;
|
|
@@ -4121,6 +4136,7 @@ var require_compare = __commonJS({
|
|
|
4121
4136
|
// node_modules/semver/functions/rcompare.js
|
|
4122
4137
|
var require_rcompare = __commonJS({
|
|
4123
4138
|
"node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
4139
|
+
"use strict";
|
|
4124
4140
|
var compare = require_compare();
|
|
4125
4141
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
4126
4142
|
module.exports = rcompare;
|
|
@@ -4130,6 +4146,7 @@ var require_rcompare = __commonJS({
|
|
|
4130
4146
|
// node_modules/semver/functions/compare-loose.js
|
|
4131
4147
|
var require_compare_loose = __commonJS({
|
|
4132
4148
|
"node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
4149
|
+
"use strict";
|
|
4133
4150
|
var compare = require_compare();
|
|
4134
4151
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
4135
4152
|
module.exports = compareLoose;
|
|
@@ -4139,6 +4156,7 @@ var require_compare_loose = __commonJS({
|
|
|
4139
4156
|
// node_modules/semver/functions/compare-build.js
|
|
4140
4157
|
var require_compare_build = __commonJS({
|
|
4141
4158
|
"node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
4159
|
+
"use strict";
|
|
4142
4160
|
var SemVer = require_semver();
|
|
4143
4161
|
var compareBuild = (a, b, loose) => {
|
|
4144
4162
|
const versionA = new SemVer(a, loose);
|
|
@@ -4152,6 +4170,7 @@ var require_compare_build = __commonJS({
|
|
|
4152
4170
|
// node_modules/semver/functions/sort.js
|
|
4153
4171
|
var require_sort = __commonJS({
|
|
4154
4172
|
"node_modules/semver/functions/sort.js"(exports, module) {
|
|
4173
|
+
"use strict";
|
|
4155
4174
|
var compareBuild = require_compare_build();
|
|
4156
4175
|
var sort = (list2, loose) => list2.sort((a, b) => compareBuild(a, b, loose));
|
|
4157
4176
|
module.exports = sort;
|
|
@@ -4161,6 +4180,7 @@ var require_sort = __commonJS({
|
|
|
4161
4180
|
// node_modules/semver/functions/rsort.js
|
|
4162
4181
|
var require_rsort = __commonJS({
|
|
4163
4182
|
"node_modules/semver/functions/rsort.js"(exports, module) {
|
|
4183
|
+
"use strict";
|
|
4164
4184
|
var compareBuild = require_compare_build();
|
|
4165
4185
|
var rsort = (list2, loose) => list2.sort((a, b) => compareBuild(b, a, loose));
|
|
4166
4186
|
module.exports = rsort;
|
|
@@ -4170,6 +4190,7 @@ var require_rsort = __commonJS({
|
|
|
4170
4190
|
// node_modules/semver/functions/gt.js
|
|
4171
4191
|
var require_gt = __commonJS({
|
|
4172
4192
|
"node_modules/semver/functions/gt.js"(exports, module) {
|
|
4193
|
+
"use strict";
|
|
4173
4194
|
var compare = require_compare();
|
|
4174
4195
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
4175
4196
|
module.exports = gt;
|
|
@@ -4179,6 +4200,7 @@ var require_gt = __commonJS({
|
|
|
4179
4200
|
// node_modules/semver/functions/lt.js
|
|
4180
4201
|
var require_lt = __commonJS({
|
|
4181
4202
|
"node_modules/semver/functions/lt.js"(exports, module) {
|
|
4203
|
+
"use strict";
|
|
4182
4204
|
var compare = require_compare();
|
|
4183
4205
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
4184
4206
|
module.exports = lt;
|
|
@@ -4188,6 +4210,7 @@ var require_lt = __commonJS({
|
|
|
4188
4210
|
// node_modules/semver/functions/eq.js
|
|
4189
4211
|
var require_eq = __commonJS({
|
|
4190
4212
|
"node_modules/semver/functions/eq.js"(exports, module) {
|
|
4213
|
+
"use strict";
|
|
4191
4214
|
var compare = require_compare();
|
|
4192
4215
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
4193
4216
|
module.exports = eq;
|
|
@@ -4197,6 +4220,7 @@ var require_eq = __commonJS({
|
|
|
4197
4220
|
// node_modules/semver/functions/neq.js
|
|
4198
4221
|
var require_neq = __commonJS({
|
|
4199
4222
|
"node_modules/semver/functions/neq.js"(exports, module) {
|
|
4223
|
+
"use strict";
|
|
4200
4224
|
var compare = require_compare();
|
|
4201
4225
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
4202
4226
|
module.exports = neq;
|
|
@@ -4206,6 +4230,7 @@ var require_neq = __commonJS({
|
|
|
4206
4230
|
// node_modules/semver/functions/gte.js
|
|
4207
4231
|
var require_gte = __commonJS({
|
|
4208
4232
|
"node_modules/semver/functions/gte.js"(exports, module) {
|
|
4233
|
+
"use strict";
|
|
4209
4234
|
var compare = require_compare();
|
|
4210
4235
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
4211
4236
|
module.exports = gte;
|
|
@@ -4215,6 +4240,7 @@ var require_gte = __commonJS({
|
|
|
4215
4240
|
// node_modules/semver/functions/lte.js
|
|
4216
4241
|
var require_lte = __commonJS({
|
|
4217
4242
|
"node_modules/semver/functions/lte.js"(exports, module) {
|
|
4243
|
+
"use strict";
|
|
4218
4244
|
var compare = require_compare();
|
|
4219
4245
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
4220
4246
|
module.exports = lte;
|
|
@@ -4224,6 +4250,7 @@ var require_lte = __commonJS({
|
|
|
4224
4250
|
// node_modules/semver/functions/cmp.js
|
|
4225
4251
|
var require_cmp = __commonJS({
|
|
4226
4252
|
"node_modules/semver/functions/cmp.js"(exports, module) {
|
|
4253
|
+
"use strict";
|
|
4227
4254
|
var eq = require_eq();
|
|
4228
4255
|
var neq = require_neq();
|
|
4229
4256
|
var gt = require_gt();
|
|
@@ -4273,6 +4300,7 @@ var require_cmp = __commonJS({
|
|
|
4273
4300
|
// node_modules/semver/functions/coerce.js
|
|
4274
4301
|
var require_coerce = __commonJS({
|
|
4275
4302
|
"node_modules/semver/functions/coerce.js"(exports, module) {
|
|
4303
|
+
"use strict";
|
|
4276
4304
|
var SemVer = require_semver();
|
|
4277
4305
|
var parse6 = require_parse();
|
|
4278
4306
|
var { safeRe: re, t } = require_re();
|
|
@@ -4318,6 +4346,7 @@ var require_coerce = __commonJS({
|
|
|
4318
4346
|
// node_modules/semver/internal/lrucache.js
|
|
4319
4347
|
var require_lrucache = __commonJS({
|
|
4320
4348
|
"node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
4349
|
+
"use strict";
|
|
4321
4350
|
var LRUCache = class {
|
|
4322
4351
|
constructor() {
|
|
4323
4352
|
this.max = 1e3;
|
|
@@ -4355,6 +4384,7 @@ var require_lrucache = __commonJS({
|
|
|
4355
4384
|
// node_modules/semver/classes/range.js
|
|
4356
4385
|
var require_range = __commonJS({
|
|
4357
4386
|
"node_modules/semver/classes/range.js"(exports, module) {
|
|
4387
|
+
"use strict";
|
|
4358
4388
|
var SPACE_CHARACTERS = /\s+/g;
|
|
4359
4389
|
var Range = class _Range {
|
|
4360
4390
|
constructor(range, options) {
|
|
@@ -4730,6 +4760,7 @@ var require_range = __commonJS({
|
|
|
4730
4760
|
// node_modules/semver/classes/comparator.js
|
|
4731
4761
|
var require_comparator = __commonJS({
|
|
4732
4762
|
"node_modules/semver/classes/comparator.js"(exports, module) {
|
|
4763
|
+
"use strict";
|
|
4733
4764
|
var ANY = Symbol("SemVer ANY");
|
|
4734
4765
|
var Comparator = class _Comparator {
|
|
4735
4766
|
static get ANY() {
|
|
@@ -4842,6 +4873,7 @@ var require_comparator = __commonJS({
|
|
|
4842
4873
|
// node_modules/semver/functions/satisfies.js
|
|
4843
4874
|
var require_satisfies = __commonJS({
|
|
4844
4875
|
"node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
4876
|
+
"use strict";
|
|
4845
4877
|
var Range = require_range();
|
|
4846
4878
|
var satisfies = (version3, range, options) => {
|
|
4847
4879
|
try {
|
|
@@ -4858,6 +4890,7 @@ var require_satisfies = __commonJS({
|
|
|
4858
4890
|
// node_modules/semver/ranges/to-comparators.js
|
|
4859
4891
|
var require_to_comparators = __commonJS({
|
|
4860
4892
|
"node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
4893
|
+
"use strict";
|
|
4861
4894
|
var Range = require_range();
|
|
4862
4895
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
4863
4896
|
module.exports = toComparators;
|
|
@@ -4867,6 +4900,7 @@ var require_to_comparators = __commonJS({
|
|
|
4867
4900
|
// node_modules/semver/ranges/max-satisfying.js
|
|
4868
4901
|
var require_max_satisfying = __commonJS({
|
|
4869
4902
|
"node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
4903
|
+
"use strict";
|
|
4870
4904
|
var SemVer = require_semver();
|
|
4871
4905
|
var Range = require_range();
|
|
4872
4906
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -4895,6 +4929,7 @@ var require_max_satisfying = __commonJS({
|
|
|
4895
4929
|
// node_modules/semver/ranges/min-satisfying.js
|
|
4896
4930
|
var require_min_satisfying = __commonJS({
|
|
4897
4931
|
"node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
4932
|
+
"use strict";
|
|
4898
4933
|
var SemVer = require_semver();
|
|
4899
4934
|
var Range = require_range();
|
|
4900
4935
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -4923,6 +4958,7 @@ var require_min_satisfying = __commonJS({
|
|
|
4923
4958
|
// node_modules/semver/ranges/min-version.js
|
|
4924
4959
|
var require_min_version = __commonJS({
|
|
4925
4960
|
"node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
4961
|
+
"use strict";
|
|
4926
4962
|
var SemVer = require_semver();
|
|
4927
4963
|
var Range = require_range();
|
|
4928
4964
|
var gt = require_gt();
|
|
@@ -4981,6 +5017,7 @@ var require_min_version = __commonJS({
|
|
|
4981
5017
|
// node_modules/semver/ranges/valid.js
|
|
4982
5018
|
var require_valid2 = __commonJS({
|
|
4983
5019
|
"node_modules/semver/ranges/valid.js"(exports, module) {
|
|
5020
|
+
"use strict";
|
|
4984
5021
|
var Range = require_range();
|
|
4985
5022
|
var validRange = (range, options) => {
|
|
4986
5023
|
try {
|
|
@@ -4996,6 +5033,7 @@ var require_valid2 = __commonJS({
|
|
|
4996
5033
|
// node_modules/semver/ranges/outside.js
|
|
4997
5034
|
var require_outside = __commonJS({
|
|
4998
5035
|
"node_modules/semver/ranges/outside.js"(exports, module) {
|
|
5036
|
+
"use strict";
|
|
4999
5037
|
var SemVer = require_semver();
|
|
5000
5038
|
var Comparator = require_comparator();
|
|
5001
5039
|
var { ANY } = Comparator;
|
|
@@ -5064,6 +5102,7 @@ var require_outside = __commonJS({
|
|
|
5064
5102
|
// node_modules/semver/ranges/gtr.js
|
|
5065
5103
|
var require_gtr = __commonJS({
|
|
5066
5104
|
"node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
5105
|
+
"use strict";
|
|
5067
5106
|
var outside = require_outside();
|
|
5068
5107
|
var gtr = (version3, range, options) => outside(version3, range, ">", options);
|
|
5069
5108
|
module.exports = gtr;
|
|
@@ -5073,6 +5112,7 @@ var require_gtr = __commonJS({
|
|
|
5073
5112
|
// node_modules/semver/ranges/ltr.js
|
|
5074
5113
|
var require_ltr = __commonJS({
|
|
5075
5114
|
"node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
5115
|
+
"use strict";
|
|
5076
5116
|
var outside = require_outside();
|
|
5077
5117
|
var ltr = (version3, range, options) => outside(version3, range, "<", options);
|
|
5078
5118
|
module.exports = ltr;
|
|
@@ -5082,6 +5122,7 @@ var require_ltr = __commonJS({
|
|
|
5082
5122
|
// node_modules/semver/ranges/intersects.js
|
|
5083
5123
|
var require_intersects = __commonJS({
|
|
5084
5124
|
"node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
5125
|
+
"use strict";
|
|
5085
5126
|
var Range = require_range();
|
|
5086
5127
|
var intersects = (r1, r2, options) => {
|
|
5087
5128
|
r1 = new Range(r1, options);
|
|
@@ -5095,6 +5136,7 @@ var require_intersects = __commonJS({
|
|
|
5095
5136
|
// node_modules/semver/ranges/simplify.js
|
|
5096
5137
|
var require_simplify = __commonJS({
|
|
5097
5138
|
"node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
5139
|
+
"use strict";
|
|
5098
5140
|
var satisfies = require_satisfies();
|
|
5099
5141
|
var compare = require_compare();
|
|
5100
5142
|
module.exports = (versions, range, options) => {
|
|
@@ -5144,6 +5186,7 @@ var require_simplify = __commonJS({
|
|
|
5144
5186
|
// node_modules/semver/ranges/subset.js
|
|
5145
5187
|
var require_subset = __commonJS({
|
|
5146
5188
|
"node_modules/semver/ranges/subset.js"(exports, module) {
|
|
5189
|
+
"use strict";
|
|
5147
5190
|
var Range = require_range();
|
|
5148
5191
|
var Comparator = require_comparator();
|
|
5149
5192
|
var { ANY } = Comparator;
|
|
@@ -5305,6 +5348,7 @@ var require_subset = __commonJS({
|
|
|
5305
5348
|
// node_modules/semver/index.js
|
|
5306
5349
|
var require_semver2 = __commonJS({
|
|
5307
5350
|
"node_modules/semver/index.js"(exports, module) {
|
|
5351
|
+
"use strict";
|
|
5308
5352
|
var internalRe = require_re();
|
|
5309
5353
|
var constants2 = require_constants();
|
|
5310
5354
|
var SemVer = require_semver();
|
|
@@ -6933,6 +6977,11 @@ var Queue = class {
|
|
|
6933
6977
|
current = current.next;
|
|
6934
6978
|
}
|
|
6935
6979
|
}
|
|
6980
|
+
*drain() {
|
|
6981
|
+
while (__privateGet(this, _head)) {
|
|
6982
|
+
yield this.dequeue();
|
|
6983
|
+
}
|
|
6984
|
+
}
|
|
6936
6985
|
};
|
|
6937
6986
|
_head = new WeakMap();
|
|
6938
6987
|
_tail = new WeakMap();
|
|
@@ -7160,11 +7209,11 @@ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
|
7160
7209
|
var __commonJS2 = (cb, mod) => function __require2() {
|
|
7161
7210
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7162
7211
|
};
|
|
7163
|
-
var __copyProps2 = (to, from, except,
|
|
7212
|
+
var __copyProps2 = (to, from, except, desc2) => {
|
|
7164
7213
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7165
7214
|
for (let key of __getOwnPropNames2(from))
|
|
7166
7215
|
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7167
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(
|
|
7216
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc2 = __getOwnPropDesc2(from, key)) || desc2.enumerable });
|
|
7168
7217
|
}
|
|
7169
7218
|
return to;
|
|
7170
7219
|
};
|
|
@@ -9851,7 +9900,7 @@ var Minipass2 = class extends EventEmitter2 {
|
|
|
9851
9900
|
};
|
|
9852
9901
|
|
|
9853
9902
|
// node_modules/minizlib/dist/esm/index.js
|
|
9854
|
-
import realZlib2 from "zlib";
|
|
9903
|
+
import * as realZlib2 from "zlib";
|
|
9855
9904
|
|
|
9856
9905
|
// node_modules/minizlib/dist/esm/constants.js
|
|
9857
9906
|
import realZlib from "zlib";
|
|
@@ -9967,6 +10016,12 @@ var constants = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null),
|
|
|
9967
10016
|
|
|
9968
10017
|
// node_modules/minizlib/dist/esm/index.js
|
|
9969
10018
|
var OriginalBufferConcat = Buffer2.concat;
|
|
10019
|
+
var desc = Object.getOwnPropertyDescriptor(Buffer2, "concat");
|
|
10020
|
+
var noop = (args) => args;
|
|
10021
|
+
var passthroughBufferConcat = (desc == null ? void 0 : desc.writable) === true || (desc == null ? void 0 : desc.set) !== void 0 ? (makeNoOp) => {
|
|
10022
|
+
Buffer2.concat = makeNoOp ? noop : OriginalBufferConcat;
|
|
10023
|
+
} : (_) => {
|
|
10024
|
+
};
|
|
9970
10025
|
var _superWrite = Symbol("_superWrite");
|
|
9971
10026
|
var ZlibError = class extends Error {
|
|
9972
10027
|
code;
|
|
@@ -10091,14 +10146,14 @@ var ZlibBase = class extends Minipass2 {
|
|
|
10091
10146
|
const originalClose = __privateGet(this, _handle).close;
|
|
10092
10147
|
__privateGet(this, _handle).close = () => {
|
|
10093
10148
|
};
|
|
10094
|
-
|
|
10149
|
+
passthroughBufferConcat(true);
|
|
10095
10150
|
let result = void 0;
|
|
10096
10151
|
try {
|
|
10097
10152
|
const flushFlag = typeof chunk[_flushFlag] === "number" ? chunk[_flushFlag] : __privateGet(this, _flushFlag2);
|
|
10098
10153
|
result = __privateGet(this, _handle)._processChunk(chunk, flushFlag);
|
|
10099
|
-
|
|
10154
|
+
passthroughBufferConcat(false);
|
|
10100
10155
|
} catch (err) {
|
|
10101
|
-
|
|
10156
|
+
passthroughBufferConcat(false);
|
|
10102
10157
|
__privateGet(this, _onError).call(this, new ZlibError(err));
|
|
10103
10158
|
} finally {
|
|
10104
10159
|
if (__privateGet(this, _handle)) {
|
|
@@ -12103,7 +12158,7 @@ var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
|
|
12103
12158
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
|
12104
12159
|
var SAW_EOF = Symbol("sawEOF");
|
|
12105
12160
|
var CLOSESTREAM = Symbol("closeStream");
|
|
12106
|
-
var
|
|
12161
|
+
var noop2 = () => true;
|
|
12107
12162
|
var Parser = class extends EE2 {
|
|
12108
12163
|
file;
|
|
12109
12164
|
strict;
|
|
@@ -12148,7 +12203,7 @@ var Parser = class extends EE2 {
|
|
|
12148
12203
|
}
|
|
12149
12204
|
this.strict = !!opt.strict;
|
|
12150
12205
|
this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize;
|
|
12151
|
-
this.filter = typeof opt.filter === "function" ? opt.filter :
|
|
12206
|
+
this.filter = typeof opt.filter === "function" ? opt.filter : noop2;
|
|
12152
12207
|
const isTBR = opt.file && (opt.file.endsWith(".tar.br") || opt.file.endsWith(".tbr"));
|
|
12153
12208
|
this.brotli = !opt.gzip && opt.brotli !== void 0 ? opt.brotli : isTBR ? void 0 : false;
|
|
12154
12209
|
this.on("end", () => this[CLOSESTREAM]());
|
|
@@ -15680,7 +15735,7 @@ function validRepoUrl(key, value) {
|
|
|
15680
15735
|
function validUrl(key, value) {
|
|
15681
15736
|
if (typeof value === "string" && /^https:\/\/.+$/.exec(value)) {
|
|
15682
15737
|
return;
|
|
15683
|
-
} else if (value
|
|
15738
|
+
} else if (value && typeof value === "object" && "url" in value) {
|
|
15684
15739
|
validUrl(`${key}.url`, value.url);
|
|
15685
15740
|
} else {
|
|
15686
15741
|
throw new ValidationError(validUrl.name, `"${key}" must be a valid url (https only)`);
|
|
@@ -15872,7 +15927,9 @@ var getOutput = (output) => output.at(-1) === "\n" ? output.slice(0, output.at(-
|
|
|
15872
15927
|
var spawnSubprocess = async (file, commandArguments, options, context) => {
|
|
15873
15928
|
try {
|
|
15874
15929
|
[file, commandArguments] = ["node", "node.exe"].includes(file.toLowerCase()) ? [process7.execPath, [...process7.execArgv.filter((flag) => !flag.startsWith("--inspect")), ...commandArguments]] : [file, commandArguments];
|
|
15875
|
-
|
|
15930
|
+
[file, commandArguments, options] = await applyForceShell(file, commandArguments, options);
|
|
15931
|
+
[file, commandArguments, options] = concatenateShell(file, commandArguments, options);
|
|
15932
|
+
const instance = spawn(file, commandArguments, options);
|
|
15876
15933
|
bufferOutput(instance.stdout, context, "stdout");
|
|
15877
15934
|
bufferOutput(instance.stderr, context, "stderr");
|
|
15878
15935
|
instance.once("error", () => {
|
|
@@ -15883,6 +15940,7 @@ var spawnSubprocess = async (file, commandArguments, options, context) => {
|
|
|
15883
15940
|
throw getResultError(error, {}, context);
|
|
15884
15941
|
}
|
|
15885
15942
|
};
|
|
15943
|
+
var concatenateShell = (file, commandArguments, options) => options.shell && commandArguments.length > 0 ? [[file, ...commandArguments].join(" "), [], options] : [file, commandArguments, options];
|
|
15886
15944
|
var bufferOutput = (stream, { state }, streamName) => {
|
|
15887
15945
|
if (stream) {
|
|
15888
15946
|
stream.setEncoding("utf8");
|
|
@@ -16101,6 +16159,9 @@ async function npmInfo(pkg, options = { ignoreUnpublished: false }) {
|
|
|
16101
16159
|
// src/rules/deprecated-dependency.ts
|
|
16102
16160
|
var ruleId2 = "no-deprecated-dependency";
|
|
16103
16161
|
function createEntry(key, version3, source) {
|
|
16162
|
+
if (version3.startsWith("file:")) {
|
|
16163
|
+
return null;
|
|
16164
|
+
}
|
|
16104
16165
|
if (version3.startsWith("npm:")) {
|
|
16105
16166
|
const [newKey, newVersion] = version3.slice("npm:".length).split("@", 2);
|
|
16106
16167
|
key = newKey;
|