@socketsecurity/lib 5.7.0 → 5.8.0
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/CHANGELOG.md +29 -2
- package/README.md +190 -18
- package/dist/archives.d.ts +58 -0
- package/dist/archives.js +313 -0
- package/dist/arrays.js +2 -3
- package/dist/cache-with-ttl.js +21 -6
- package/dist/constants/node.js +2 -1
- package/dist/cover/formatters.js +5 -3
- package/dist/dlx/package.js +1 -1
- package/dist/external/@npmcli/package-json.js +352 -824
- package/dist/external/adm-zip.js +2695 -0
- package/dist/external/debug.js +183 -7
- package/dist/external/external-pack.js +19 -1409
- package/dist/external/libnpmexec.js +2 -2
- package/dist/external/npm-pack.js +18777 -19997
- package/dist/external/pico-pack.js +29 -5
- package/dist/external/spdx-pack.js +41 -263
- package/dist/external/tar-fs.js +3053 -0
- package/dist/git.js +22 -4
- package/dist/github.js +7 -8
- package/dist/globs.js +20 -1
- package/dist/http-request.js +1 -1
- package/dist/memoization.js +22 -13
- package/dist/package-extensions.js +4 -2
- package/dist/packages/normalize.js +3 -0
- package/dist/process-lock.js +4 -2
- package/dist/releases/github.d.ts +40 -0
- package/dist/releases/github.js +122 -22
- package/dist/spawn.js +1 -1
- package/dist/spinner.js +1 -1
- package/dist/stdio/progress.js +2 -2
- package/package.json +38 -15
|
@@ -2303,9 +2303,9 @@ var require_commonjs = __commonJS({
|
|
|
2303
2303
|
}
|
|
2304
2304
|
});
|
|
2305
2305
|
|
|
2306
|
-
// node_modules/.pnpm/hosted-git-info@
|
|
2306
|
+
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/hosts.js
|
|
2307
2307
|
var require_hosts = __commonJS({
|
|
2308
|
-
"node_modules/.pnpm/hosted-git-info@
|
|
2308
|
+
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/hosts.js"(exports2, module2) {
|
|
2309
2309
|
"use strict";
|
|
2310
2310
|
var maybeJoin = /* @__PURE__ */ __name((...args) => args.every((arg) => arg) ? args.join("") : "", "maybeJoin");
|
|
2311
2311
|
var maybeEncode = /* @__PURE__ */ __name((arg) => arg ? encodeURIComponent(arg) : "", "maybeEncode");
|
|
@@ -2382,6 +2382,7 @@ var require_hosts = __commonJS({
|
|
|
2382
2382
|
treepath: "tree",
|
|
2383
2383
|
blobpath: "tree",
|
|
2384
2384
|
editpath: "-/edit",
|
|
2385
|
+
httpstemplate: /* @__PURE__ */ __name(({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, "httpstemplate"),
|
|
2385
2386
|
tarballtemplate: /* @__PURE__ */ __name(({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || "HEAD")}`, "tarballtemplate"),
|
|
2386
2387
|
extract: /* @__PURE__ */ __name((url) => {
|
|
2387
2388
|
const path = url.pathname.slice(1);
|
|
@@ -2469,9 +2470,9 @@ var require_hosts = __commonJS({
|
|
|
2469
2470
|
}
|
|
2470
2471
|
});
|
|
2471
2472
|
|
|
2472
|
-
// node_modules/.pnpm/hosted-git-info@
|
|
2473
|
+
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/parse-url.js
|
|
2473
2474
|
var require_parse_url = __commonJS({
|
|
2474
|
-
"node_modules/.pnpm/hosted-git-info@
|
|
2475
|
+
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/parse-url.js"(exports2, module2) {
|
|
2475
2476
|
var url = require("url");
|
|
2476
2477
|
var lastIndexOfBefore = /* @__PURE__ */ __name((str, char, beforeChar) => {
|
|
2477
2478
|
const startPosition = str.indexOf(beforeChar);
|
|
@@ -2489,9 +2490,6 @@ var require_parse_url = __commonJS({
|
|
|
2489
2490
|
if (Object.prototype.hasOwnProperty.call(protocols, proto)) {
|
|
2490
2491
|
return arg;
|
|
2491
2492
|
}
|
|
2492
|
-
if (arg.substr(firstColon, 3) === "://") {
|
|
2493
|
-
return arg;
|
|
2494
|
-
}
|
|
2495
2493
|
const firstAt = arg.indexOf("@");
|
|
2496
2494
|
if (firstAt > -1) {
|
|
2497
2495
|
if (firstAt > firstColon) {
|
|
@@ -2500,6 +2498,10 @@ var require_parse_url = __commonJS({
|
|
|
2500
2498
|
return arg;
|
|
2501
2499
|
}
|
|
2502
2500
|
}
|
|
2501
|
+
const doubleSlash = arg.indexOf("//");
|
|
2502
|
+
if (doubleSlash === firstColon + 1) {
|
|
2503
|
+
return arg;
|
|
2504
|
+
}
|
|
2503
2505
|
return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`;
|
|
2504
2506
|
}, "correctProtocol");
|
|
2505
2507
|
var correctUrl = /* @__PURE__ */ __name((giturl) => {
|
|
@@ -2520,9 +2522,9 @@ var require_parse_url = __commonJS({
|
|
|
2520
2522
|
}
|
|
2521
2523
|
});
|
|
2522
2524
|
|
|
2523
|
-
// node_modules/.pnpm/hosted-git-info@
|
|
2525
|
+
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/from-url.js
|
|
2524
2526
|
var require_from_url = __commonJS({
|
|
2525
|
-
"node_modules/.pnpm/hosted-git-info@
|
|
2527
|
+
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/from-url.js"(exports2, module2) {
|
|
2526
2528
|
"use strict";
|
|
2527
2529
|
var parseUrl = require_parse_url();
|
|
2528
2530
|
var isGitHubShorthand = /* @__PURE__ */ __name((arg) => {
|
|
@@ -2614,9 +2616,9 @@ var require_from_url = __commonJS({
|
|
|
2614
2616
|
}
|
|
2615
2617
|
});
|
|
2616
2618
|
|
|
2617
|
-
// node_modules/.pnpm/hosted-git-info@
|
|
2619
|
+
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/index.js
|
|
2618
2620
|
var require_lib3 = __commonJS({
|
|
2619
|
-
"node_modules/.pnpm/hosted-git-info@
|
|
2621
|
+
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/index.js"(exports2, module2) {
|
|
2620
2622
|
"use strict";
|
|
2621
2623
|
var { LRUCache } = require_commonjs();
|
|
2622
2624
|
var hosts = require_hosts();
|
|
@@ -2795,34 +2797,35 @@ var require_lib3 = __commonJS({
|
|
|
2795
2797
|
}
|
|
2796
2798
|
});
|
|
2797
2799
|
|
|
2798
|
-
// node_modules/.pnpm
|
|
2799
|
-
var
|
|
2800
|
-
"node_modules/.pnpm
|
|
2800
|
+
// node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
2801
|
+
var require_balanced_match = __commonJS({
|
|
2802
|
+
"node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports2, module2) {
|
|
2801
2803
|
"use strict";
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
const r = ma !== null && mb != null && (0, exports2.range)(ma, mb, str);
|
|
2804
|
+
module2.exports = balanced;
|
|
2805
|
+
function balanced(a, b, str) {
|
|
2806
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
2807
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
2808
|
+
var r = range(a, b, str);
|
|
2808
2809
|
return r && {
|
|
2809
2810
|
start: r[0],
|
|
2810
2811
|
end: r[1],
|
|
2811
2812
|
pre: str.slice(0, r[0]),
|
|
2812
|
-
body: str.slice(r[0] +
|
|
2813
|
-
post: str.slice(r[1] +
|
|
2813
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
2814
|
+
post: str.slice(r[1] + b.length)
|
|
2814
2815
|
};
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2816
|
+
}
|
|
2817
|
+
__name(balanced, "balanced");
|
|
2818
|
+
function maybeMatch(reg, str) {
|
|
2819
|
+
var m = str.match(reg);
|
|
2819
2820
|
return m ? m[0] : null;
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2821
|
+
}
|
|
2822
|
+
__name(maybeMatch, "maybeMatch");
|
|
2823
|
+
balanced.range = range;
|
|
2824
|
+
function range(a, b, str) {
|
|
2825
|
+
var begs, beg, left, right, result;
|
|
2826
|
+
var ai = str.indexOf(a);
|
|
2827
|
+
var bi = str.indexOf(b, ai + 1);
|
|
2828
|
+
var i = ai;
|
|
2826
2829
|
if (ai >= 0 && bi > 0) {
|
|
2827
2830
|
if (a === b) {
|
|
2828
2831
|
return [ai, bi];
|
|
@@ -2830,16 +2833,14 @@ var require_commonjs2 = __commonJS({
|
|
|
2830
2833
|
begs = [];
|
|
2831
2834
|
left = str.length;
|
|
2832
2835
|
while (i >= 0 && !result) {
|
|
2833
|
-
if (i
|
|
2836
|
+
if (i == ai) {
|
|
2834
2837
|
begs.push(i);
|
|
2835
2838
|
ai = str.indexOf(a, i + 1);
|
|
2836
|
-
} else if (begs.length
|
|
2837
|
-
|
|
2838
|
-
if (r !== void 0)
|
|
2839
|
-
result = [r, bi];
|
|
2839
|
+
} else if (begs.length == 1) {
|
|
2840
|
+
result = [begs.pop(), bi];
|
|
2840
2841
|
} else {
|
|
2841
2842
|
beg = begs.pop();
|
|
2842
|
-
if (beg
|
|
2843
|
+
if (beg < left) {
|
|
2843
2844
|
left = beg;
|
|
2844
2845
|
right = bi;
|
|
2845
2846
|
}
|
|
@@ -2847,65 +2848,52 @@ var require_commonjs2 = __commonJS({
|
|
|
2847
2848
|
}
|
|
2848
2849
|
i = ai < bi && ai >= 0 ? ai : bi;
|
|
2849
2850
|
}
|
|
2850
|
-
if (begs.length
|
|
2851
|
+
if (begs.length) {
|
|
2851
2852
|
result = [left, right];
|
|
2852
2853
|
}
|
|
2853
2854
|
}
|
|
2854
2855
|
return result;
|
|
2855
|
-
}
|
|
2856
|
-
|
|
2856
|
+
}
|
|
2857
|
+
__name(range, "range");
|
|
2857
2858
|
}
|
|
2858
2859
|
});
|
|
2859
2860
|
|
|
2860
|
-
// node_modules/.pnpm
|
|
2861
|
-
var
|
|
2862
|
-
"node_modules/.pnpm
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
exports2.expand = expand;
|
|
2866
|
-
var balanced_match_1 = require_commonjs2();
|
|
2861
|
+
// node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js
|
|
2862
|
+
var require_brace_expansion = __commonJS({
|
|
2863
|
+
"node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports2, module2) {
|
|
2864
|
+
var balanced = require_balanced_match();
|
|
2865
|
+
module2.exports = expandTop;
|
|
2867
2866
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
2868
2867
|
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
2869
2868
|
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
2870
2869
|
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
2871
2870
|
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
2872
|
-
var escSlashPattern = new RegExp(escSlash, "g");
|
|
2873
|
-
var escOpenPattern = new RegExp(escOpen, "g");
|
|
2874
|
-
var escClosePattern = new RegExp(escClose, "g");
|
|
2875
|
-
var escCommaPattern = new RegExp(escComma, "g");
|
|
2876
|
-
var escPeriodPattern = new RegExp(escPeriod, "g");
|
|
2877
|
-
var slashPattern = /\\\\/g;
|
|
2878
|
-
var openPattern = /\\{/g;
|
|
2879
|
-
var closePattern = /\\}/g;
|
|
2880
|
-
var commaPattern = /\\,/g;
|
|
2881
|
-
var periodPattern = /\\./g;
|
|
2882
2871
|
function numeric(str) {
|
|
2883
|
-
return
|
|
2872
|
+
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
2884
2873
|
}
|
|
2885
2874
|
__name(numeric, "numeric");
|
|
2886
2875
|
function escapeBraces(str) {
|
|
2887
|
-
return str.
|
|
2876
|
+
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
2888
2877
|
}
|
|
2889
2878
|
__name(escapeBraces, "escapeBraces");
|
|
2890
2879
|
function unescapeBraces(str) {
|
|
2891
|
-
return str.
|
|
2880
|
+
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
2892
2881
|
}
|
|
2893
2882
|
__name(unescapeBraces, "unescapeBraces");
|
|
2894
2883
|
function parseCommaParts(str) {
|
|
2895
|
-
if (!str)
|
|
2884
|
+
if (!str)
|
|
2896
2885
|
return [""];
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
if (!m) {
|
|
2886
|
+
var parts = [];
|
|
2887
|
+
var m = balanced("{", "}", str);
|
|
2888
|
+
if (!m)
|
|
2901
2889
|
return str.split(",");
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2890
|
+
var pre = m.pre;
|
|
2891
|
+
var body = m.body;
|
|
2892
|
+
var post = m.post;
|
|
2893
|
+
var p = pre.split(",");
|
|
2905
2894
|
p[p.length - 1] += "{" + body + "}";
|
|
2906
|
-
|
|
2895
|
+
var postParts = parseCommaParts(post);
|
|
2907
2896
|
if (post.length) {
|
|
2908
|
-
;
|
|
2909
2897
|
p[p.length - 1] += postParts.shift();
|
|
2910
2898
|
p.push.apply(p, postParts);
|
|
2911
2899
|
}
|
|
@@ -2913,16 +2901,15 @@ var require_commonjs3 = __commonJS({
|
|
|
2913
2901
|
return parts;
|
|
2914
2902
|
}
|
|
2915
2903
|
__name(parseCommaParts, "parseCommaParts");
|
|
2916
|
-
function
|
|
2917
|
-
if (!str)
|
|
2904
|
+
function expandTop(str) {
|
|
2905
|
+
if (!str)
|
|
2918
2906
|
return [];
|
|
2907
|
+
if (str.substr(0, 2) === "{}") {
|
|
2908
|
+
str = "\\{\\}" + str.substr(2);
|
|
2919
2909
|
}
|
|
2920
|
-
|
|
2921
|
-
str = "\\{\\}" + str.slice(2);
|
|
2922
|
-
}
|
|
2923
|
-
return expand_(escapeBraces(str), true).map(unescapeBraces);
|
|
2910
|
+
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
2924
2911
|
}
|
|
2925
|
-
__name(
|
|
2912
|
+
__name(expandTop, "expandTop");
|
|
2926
2913
|
function embrace(str) {
|
|
2927
2914
|
return "{" + str + "}";
|
|
2928
2915
|
}
|
|
@@ -2939,74 +2926,73 @@ var require_commonjs3 = __commonJS({
|
|
|
2939
2926
|
return i >= y;
|
|
2940
2927
|
}
|
|
2941
2928
|
__name(gte, "gte");
|
|
2942
|
-
function
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
if (!m)
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
const post = m.post.length ? expand_(m.post, false) : [""];
|
|
2929
|
+
function expand(str, isTop) {
|
|
2930
|
+
var expansions = [];
|
|
2931
|
+
var m = balanced("{", "}", str);
|
|
2932
|
+
if (!m) return [str];
|
|
2933
|
+
var pre = m.pre;
|
|
2934
|
+
var post = m.post.length ? expand(m.post, false) : [""];
|
|
2949
2935
|
if (/\$$/.test(m.pre)) {
|
|
2950
|
-
for (
|
|
2951
|
-
|
|
2936
|
+
for (var k = 0; k < post.length; k++) {
|
|
2937
|
+
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
2952
2938
|
expansions.push(expansion);
|
|
2953
2939
|
}
|
|
2954
2940
|
} else {
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2941
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
2942
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
2943
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
2944
|
+
var isOptions = m.body.indexOf(",") >= 0;
|
|
2959
2945
|
if (!isSequence && !isOptions) {
|
|
2960
2946
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
2961
2947
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
2962
|
-
return
|
|
2948
|
+
return expand(str);
|
|
2963
2949
|
}
|
|
2964
2950
|
return [str];
|
|
2965
2951
|
}
|
|
2966
|
-
|
|
2952
|
+
var n;
|
|
2967
2953
|
if (isSequence) {
|
|
2968
2954
|
n = m.body.split(/\.\./);
|
|
2969
2955
|
} else {
|
|
2970
2956
|
n = parseCommaParts(m.body);
|
|
2971
|
-
if (n.length === 1
|
|
2972
|
-
n =
|
|
2957
|
+
if (n.length === 1) {
|
|
2958
|
+
n = expand(n[0], false).map(embrace);
|
|
2973
2959
|
if (n.length === 1) {
|
|
2974
|
-
return post.map((p)
|
|
2960
|
+
return post.map(function(p) {
|
|
2961
|
+
return m.pre + n[0] + p;
|
|
2962
|
+
});
|
|
2975
2963
|
}
|
|
2976
2964
|
}
|
|
2977
2965
|
}
|
|
2978
|
-
|
|
2979
|
-
if (isSequence
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2966
|
+
var N;
|
|
2967
|
+
if (isSequence) {
|
|
2968
|
+
var x = numeric(n[0]);
|
|
2969
|
+
var y = numeric(n[1]);
|
|
2970
|
+
var width = Math.max(n[0].length, n[1].length);
|
|
2971
|
+
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
2972
|
+
var test = lte;
|
|
2973
|
+
var reverse = y < x;
|
|
2986
2974
|
if (reverse) {
|
|
2987
2975
|
incr *= -1;
|
|
2988
2976
|
test = gte;
|
|
2989
2977
|
}
|
|
2990
|
-
|
|
2978
|
+
var pad = n.some(isPadded);
|
|
2991
2979
|
N = [];
|
|
2992
|
-
for (
|
|
2993
|
-
|
|
2980
|
+
for (var i = x; test(i, y); i += incr) {
|
|
2981
|
+
var c;
|
|
2994
2982
|
if (isAlphaSequence) {
|
|
2995
2983
|
c = String.fromCharCode(i);
|
|
2996
|
-
if (c === "\\")
|
|
2984
|
+
if (c === "\\")
|
|
2997
2985
|
c = "";
|
|
2998
|
-
}
|
|
2999
2986
|
} else {
|
|
3000
2987
|
c = String(i);
|
|
3001
2988
|
if (pad) {
|
|
3002
|
-
|
|
2989
|
+
var need = width - c.length;
|
|
3003
2990
|
if (need > 0) {
|
|
3004
|
-
|
|
3005
|
-
if (i < 0)
|
|
2991
|
+
var z = new Array(need + 1).join("0");
|
|
2992
|
+
if (i < 0)
|
|
3006
2993
|
c = "-" + z + c.slice(1);
|
|
3007
|
-
|
|
2994
|
+
else
|
|
3008
2995
|
c = z + c;
|
|
3009
|
-
}
|
|
3010
2996
|
}
|
|
3011
2997
|
}
|
|
3012
2998
|
}
|
|
@@ -3014,28 +3000,27 @@ var require_commonjs3 = __commonJS({
|
|
|
3014
3000
|
}
|
|
3015
3001
|
} else {
|
|
3016
3002
|
N = [];
|
|
3017
|
-
for (
|
|
3018
|
-
N.push.apply(N,
|
|
3003
|
+
for (var j = 0; j < n.length; j++) {
|
|
3004
|
+
N.push.apply(N, expand(n[j], false));
|
|
3019
3005
|
}
|
|
3020
3006
|
}
|
|
3021
|
-
for (
|
|
3022
|
-
for (
|
|
3023
|
-
|
|
3024
|
-
if (!isTop || isSequence || expansion)
|
|
3007
|
+
for (var j = 0; j < N.length; j++) {
|
|
3008
|
+
for (var k = 0; k < post.length; k++) {
|
|
3009
|
+
var expansion = pre + N[j] + post[k];
|
|
3010
|
+
if (!isTop || isSequence || expansion)
|
|
3025
3011
|
expansions.push(expansion);
|
|
3026
|
-
}
|
|
3027
3012
|
}
|
|
3028
3013
|
}
|
|
3029
3014
|
}
|
|
3030
3015
|
return expansions;
|
|
3031
3016
|
}
|
|
3032
|
-
__name(
|
|
3017
|
+
__name(expand, "expand");
|
|
3033
3018
|
}
|
|
3034
3019
|
});
|
|
3035
3020
|
|
|
3036
|
-
// node_modules/.pnpm/minimatch@
|
|
3021
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
3037
3022
|
var require_assert_valid_pattern = __commonJS({
|
|
3038
|
-
"node_modules/.pnpm/minimatch@
|
|
3023
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
|
|
3039
3024
|
"use strict";
|
|
3040
3025
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3041
3026
|
exports2.assertValidPattern = void 0;
|
|
@@ -3052,9 +3037,9 @@ var require_assert_valid_pattern = __commonJS({
|
|
|
3052
3037
|
}
|
|
3053
3038
|
});
|
|
3054
3039
|
|
|
3055
|
-
// node_modules/.pnpm/minimatch@
|
|
3040
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
3056
3041
|
var require_brace_expressions = __commonJS({
|
|
3057
|
-
"node_modules/.pnpm/minimatch@
|
|
3042
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
|
|
3058
3043
|
"use strict";
|
|
3059
3044
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3060
3045
|
exports2.parseClass = void 0;
|
|
@@ -3169,9 +3154,9 @@ var require_brace_expressions = __commonJS({
|
|
|
3169
3154
|
}
|
|
3170
3155
|
});
|
|
3171
3156
|
|
|
3172
|
-
// node_modules/.pnpm/minimatch@
|
|
3157
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/unescape.js
|
|
3173
3158
|
var require_unescape = __commonJS({
|
|
3174
|
-
"node_modules/.pnpm/minimatch@
|
|
3159
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
|
|
3175
3160
|
"use strict";
|
|
3176
3161
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3177
3162
|
exports2.unescape = void 0;
|
|
@@ -3182,9 +3167,9 @@ var require_unescape = __commonJS({
|
|
|
3182
3167
|
}
|
|
3183
3168
|
});
|
|
3184
3169
|
|
|
3185
|
-
// node_modules/.pnpm/minimatch@
|
|
3170
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/ast.js
|
|
3186
3171
|
var require_ast = __commonJS({
|
|
3187
|
-
"node_modules/.pnpm/minimatch@
|
|
3172
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/ast.js"(exports2) {
|
|
3188
3173
|
"use strict";
|
|
3189
3174
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3190
3175
|
exports2.AST = void 0;
|
|
@@ -3674,9 +3659,9 @@ var require_ast = __commonJS({
|
|
|
3674
3659
|
}
|
|
3675
3660
|
});
|
|
3676
3661
|
|
|
3677
|
-
// node_modules/.pnpm/minimatch@
|
|
3662
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/escape.js
|
|
3678
3663
|
var require_escape = __commonJS({
|
|
3679
|
-
"node_modules/.pnpm/minimatch@
|
|
3664
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
|
|
3680
3665
|
"use strict";
|
|
3681
3666
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3682
3667
|
exports2.escape = void 0;
|
|
@@ -3687,13 +3672,16 @@ var require_escape = __commonJS({
|
|
|
3687
3672
|
}
|
|
3688
3673
|
});
|
|
3689
3674
|
|
|
3690
|
-
// node_modules/.pnpm/minimatch@
|
|
3691
|
-
var
|
|
3692
|
-
"node_modules/.pnpm/minimatch@
|
|
3675
|
+
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/index.js
|
|
3676
|
+
var require_commonjs2 = __commonJS({
|
|
3677
|
+
"node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/index.js"(exports2) {
|
|
3693
3678
|
"use strict";
|
|
3679
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
3680
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3681
|
+
};
|
|
3694
3682
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3695
3683
|
exports2.unescape = exports2.escape = exports2.AST = exports2.Minimatch = exports2.match = exports2.makeRe = exports2.braceExpand = exports2.defaults = exports2.filter = exports2.GLOBSTAR = exports2.sep = exports2.minimatch = void 0;
|
|
3696
|
-
var brace_expansion_1 =
|
|
3684
|
+
var brace_expansion_1 = __importDefault(require_brace_expansion());
|
|
3697
3685
|
var assert_valid_pattern_js_1 = require_assert_valid_pattern();
|
|
3698
3686
|
var ast_js_1 = require_ast();
|
|
3699
3687
|
var escape_js_1 = require_escape();
|
|
@@ -3822,7 +3810,7 @@ var require_commonjs4 = __commonJS({
|
|
|
3822
3810
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
3823
3811
|
return [pattern];
|
|
3824
3812
|
}
|
|
3825
|
-
return (0, brace_expansion_1.
|
|
3813
|
+
return (0, brace_expansion_1.default)(pattern);
|
|
3826
3814
|
}, "braceExpand");
|
|
3827
3815
|
exports2.braceExpand = braceExpand;
|
|
3828
3816
|
exports2.minimatch.braceExpand = exports2.braceExpand;
|
|
@@ -4445,9 +4433,9 @@ var require_commonjs4 = __commonJS({
|
|
|
4445
4433
|
}
|
|
4446
4434
|
});
|
|
4447
4435
|
|
|
4448
|
-
// node_modules/.pnpm/minipass@7.1.
|
|
4449
|
-
var
|
|
4450
|
-
"node_modules/.pnpm/minipass@7.1.
|
|
4436
|
+
// node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/commonjs/index.js
|
|
4437
|
+
var require_commonjs3 = __commonJS({
|
|
4438
|
+
"node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/commonjs/index.js"(exports2) {
|
|
4451
4439
|
"use strict";
|
|
4452
4440
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
4453
4441
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -4543,7 +4531,7 @@ var require_commonjs5 = __commonJS({
|
|
|
4543
4531
|
}
|
|
4544
4532
|
constructor(src, dest, opts) {
|
|
4545
4533
|
super(src, dest, opts);
|
|
4546
|
-
this.proxyErrors = (er) => dest.emit("error", er);
|
|
4534
|
+
this.proxyErrors = (er) => this.dest.emit("error", er);
|
|
4547
4535
|
src.on("error", this.proxyErrors);
|
|
4548
4536
|
}
|
|
4549
4537
|
};
|
|
@@ -5260,6 +5248,8 @@ var require_commonjs5 = __commonJS({
|
|
|
5260
5248
|
return: stop,
|
|
5261
5249
|
[Symbol.asyncIterator]() {
|
|
5262
5250
|
return this;
|
|
5251
|
+
},
|
|
5252
|
+
[Symbol.asyncDispose]: async () => {
|
|
5263
5253
|
}
|
|
5264
5254
|
};
|
|
5265
5255
|
}
|
|
@@ -5295,6 +5285,8 @@ var require_commonjs5 = __commonJS({
|
|
|
5295
5285
|
return: stop,
|
|
5296
5286
|
[Symbol.iterator]() {
|
|
5297
5287
|
return this;
|
|
5288
|
+
},
|
|
5289
|
+
[Symbol.dispose]: () => {
|
|
5298
5290
|
}
|
|
5299
5291
|
};
|
|
5300
5292
|
}
|
|
@@ -5346,9 +5338,9 @@ var require_commonjs5 = __commonJS({
|
|
|
5346
5338
|
}
|
|
5347
5339
|
});
|
|
5348
5340
|
|
|
5349
|
-
// node_modules/.pnpm/path-scurry@2.0.
|
|
5350
|
-
var
|
|
5351
|
-
"node_modules/.pnpm/path-scurry@2.0.
|
|
5341
|
+
// node_modules/.pnpm/path-scurry@2.0.2/node_modules/path-scurry/dist/commonjs/index.js
|
|
5342
|
+
var require_commonjs4 = __commonJS({
|
|
5343
|
+
"node_modules/.pnpm/path-scurry@2.0.2/node_modules/path-scurry/dist/commonjs/index.js"(exports2) {
|
|
5352
5344
|
"use strict";
|
|
5353
5345
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5354
5346
|
if (k2 === void 0) k2 = k;
|
|
@@ -5386,7 +5378,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5386
5378
|
var actualFS = __importStar(require("node:fs"));
|
|
5387
5379
|
var realpathSync = fs_1.realpathSync.native;
|
|
5388
5380
|
var promises_1 = require("node:fs/promises");
|
|
5389
|
-
var minipass_1 =
|
|
5381
|
+
var minipass_1 = require_commonjs3();
|
|
5390
5382
|
var defaultFS = {
|
|
5391
5383
|
lstatSync: fs_1.lstatSync,
|
|
5392
5384
|
readdir: fs_1.readdir,
|
|
@@ -5430,7 +5422,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5430
5422
|
var ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
|
5431
5423
|
var TYPEMASK = 1023;
|
|
5432
5424
|
var entToType = /* @__PURE__ */ __name((s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN, "entToType");
|
|
5433
|
-
var normalizeCache =
|
|
5425
|
+
var normalizeCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
|
|
5434
5426
|
var normalize = /* @__PURE__ */ __name((s) => {
|
|
5435
5427
|
const c = normalizeCache.get(s);
|
|
5436
5428
|
if (c)
|
|
@@ -5439,7 +5431,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5439
5431
|
normalizeCache.set(s, n);
|
|
5440
5432
|
return n;
|
|
5441
5433
|
}, "normalize");
|
|
5442
|
-
var normalizeNocaseCache =
|
|
5434
|
+
var normalizeNocaseCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
|
|
5443
5435
|
var normalizeNocase = /* @__PURE__ */ __name((s) => {
|
|
5444
5436
|
const c = normalizeNocaseCache.get(s);
|
|
5445
5437
|
if (c)
|
|
@@ -5607,6 +5599,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5607
5599
|
get parentPath() {
|
|
5608
5600
|
return (this.parent || this).fullpath();
|
|
5609
5601
|
}
|
|
5602
|
+
/* c8 ignore start */
|
|
5610
5603
|
/**
|
|
5611
5604
|
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
|
|
5612
5605
|
* this property refers to the *parent* path, not the path object itself.
|
|
@@ -5616,6 +5609,7 @@ var require_commonjs6 = __commonJS({
|
|
|
5616
5609
|
get path() {
|
|
5617
5610
|
return this.parentPath;
|
|
5618
5611
|
}
|
|
5612
|
+
/* c8 ignore stop */
|
|
5619
5613
|
/**
|
|
5620
5614
|
* Do not create new Path objects directly. They should always be accessed
|
|
5621
5615
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -7149,13 +7143,13 @@ var require_commonjs6 = __commonJS({
|
|
|
7149
7143
|
}
|
|
7150
7144
|
});
|
|
7151
7145
|
|
|
7152
|
-
// node_modules/.pnpm/glob@11.0
|
|
7146
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/pattern.js
|
|
7153
7147
|
var require_pattern = __commonJS({
|
|
7154
|
-
"node_modules/.pnpm/glob@11.0
|
|
7148
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/pattern.js"(exports2) {
|
|
7155
7149
|
"use strict";
|
|
7156
7150
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7157
7151
|
exports2.Pattern = void 0;
|
|
7158
|
-
var minimatch_1 =
|
|
7152
|
+
var minimatch_1 = require_commonjs2();
|
|
7159
7153
|
var isPatternList = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
|
|
7160
7154
|
var isGlobList = /* @__PURE__ */ __name((gl) => gl.length >= 1, "isGlobList");
|
|
7161
7155
|
var Pattern = class _Pattern {
|
|
@@ -7326,13 +7320,13 @@ var require_pattern = __commonJS({
|
|
|
7326
7320
|
}
|
|
7327
7321
|
});
|
|
7328
7322
|
|
|
7329
|
-
// node_modules/.pnpm/glob@11.0
|
|
7323
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/ignore.js
|
|
7330
7324
|
var require_ignore = __commonJS({
|
|
7331
|
-
"node_modules/.pnpm/glob@11.0
|
|
7325
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/ignore.js"(exports2) {
|
|
7332
7326
|
"use strict";
|
|
7333
7327
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7334
7328
|
exports2.Ignore = void 0;
|
|
7335
|
-
var minimatch_1 =
|
|
7329
|
+
var minimatch_1 = require_commonjs2();
|
|
7336
7330
|
var pattern_js_1 = require_pattern();
|
|
7337
7331
|
var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
7338
7332
|
var Ignore = class {
|
|
@@ -7426,13 +7420,13 @@ var require_ignore = __commonJS({
|
|
|
7426
7420
|
}
|
|
7427
7421
|
});
|
|
7428
7422
|
|
|
7429
|
-
// node_modules/.pnpm/glob@11.0
|
|
7423
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/processor.js
|
|
7430
7424
|
var require_processor = __commonJS({
|
|
7431
|
-
"node_modules/.pnpm/glob@11.0
|
|
7425
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/processor.js"(exports2) {
|
|
7432
7426
|
"use strict";
|
|
7433
7427
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7434
7428
|
exports2.Processor = exports2.SubWalks = exports2.MatchRecord = exports2.HasWalkedCache = void 0;
|
|
7435
|
-
var minimatch_1 =
|
|
7429
|
+
var minimatch_1 = require_commonjs2();
|
|
7436
7430
|
var HasWalkedCache = class _HasWalkedCache {
|
|
7437
7431
|
static {
|
|
7438
7432
|
__name(this, "HasWalkedCache");
|
|
@@ -7671,13 +7665,13 @@ var require_processor = __commonJS({
|
|
|
7671
7665
|
}
|
|
7672
7666
|
});
|
|
7673
7667
|
|
|
7674
|
-
// node_modules/.pnpm/glob@11.0
|
|
7668
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/walker.js
|
|
7675
7669
|
var require_walker = __commonJS({
|
|
7676
|
-
"node_modules/.pnpm/glob@11.0
|
|
7670
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/walker.js"(exports2) {
|
|
7677
7671
|
"use strict";
|
|
7678
7672
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7679
7673
|
exports2.GlobStream = exports2.GlobWalker = exports2.GlobUtil = void 0;
|
|
7680
|
-
var minipass_1 =
|
|
7674
|
+
var minipass_1 = require_commonjs3();
|
|
7681
7675
|
var ignore_js_1 = require_ignore();
|
|
7682
7676
|
var processor_js_1 = require_processor();
|
|
7683
7677
|
var makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore, "makeIgnore");
|
|
@@ -8020,15 +8014,15 @@ var require_walker = __commonJS({
|
|
|
8020
8014
|
}
|
|
8021
8015
|
});
|
|
8022
8016
|
|
|
8023
|
-
// node_modules/.pnpm/glob@11.0
|
|
8017
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/glob.js
|
|
8024
8018
|
var require_glob = __commonJS({
|
|
8025
|
-
"node_modules/.pnpm/glob@11.0
|
|
8019
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/glob.js"(exports2) {
|
|
8026
8020
|
"use strict";
|
|
8027
8021
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8028
8022
|
exports2.Glob = void 0;
|
|
8029
|
-
var minimatch_1 =
|
|
8023
|
+
var minimatch_1 = require_commonjs2();
|
|
8030
8024
|
var node_url_1 = require("node:url");
|
|
8031
|
-
var path_scurry_1 =
|
|
8025
|
+
var path_scurry_1 = require_commonjs4();
|
|
8032
8026
|
var pattern_js_1 = require_pattern();
|
|
8033
8027
|
var walker_js_1 = require_walker();
|
|
8034
8028
|
var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
@@ -8236,13 +8230,13 @@ var require_glob = __commonJS({
|
|
|
8236
8230
|
}
|
|
8237
8231
|
});
|
|
8238
8232
|
|
|
8239
|
-
// node_modules/.pnpm/glob@11.0
|
|
8233
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/has-magic.js
|
|
8240
8234
|
var require_has_magic = __commonJS({
|
|
8241
|
-
"node_modules/.pnpm/glob@11.0
|
|
8235
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
|
|
8242
8236
|
"use strict";
|
|
8243
8237
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8244
8238
|
exports2.hasMagic = void 0;
|
|
8245
|
-
var minimatch_1 =
|
|
8239
|
+
var minimatch_1 = require_commonjs2();
|
|
8246
8240
|
var hasMagic = /* @__PURE__ */ __name((pattern, options = {}) => {
|
|
8247
8241
|
if (!Array.isArray(pattern)) {
|
|
8248
8242
|
pattern = [pattern];
|
|
@@ -8257,9 +8251,9 @@ var require_has_magic = __commonJS({
|
|
|
8257
8251
|
}
|
|
8258
8252
|
});
|
|
8259
8253
|
|
|
8260
|
-
// node_modules/.pnpm/glob@11.0
|
|
8261
|
-
var
|
|
8262
|
-
"node_modules/.pnpm/glob@11.0
|
|
8254
|
+
// node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/index.js
|
|
8255
|
+
var require_commonjs5 = __commonJS({
|
|
8256
|
+
"node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/commonjs/index.js"(exports2) {
|
|
8263
8257
|
"use strict";
|
|
8264
8258
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8265
8259
|
exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
|
|
@@ -8268,10 +8262,10 @@ var require_commonjs7 = __commonJS({
|
|
|
8268
8262
|
exports2.globSync = globSync;
|
|
8269
8263
|
exports2.globIterateSync = globIterateSync;
|
|
8270
8264
|
exports2.globIterate = globIterate;
|
|
8271
|
-
var minimatch_1 =
|
|
8265
|
+
var minimatch_1 = require_commonjs2();
|
|
8272
8266
|
var glob_js_1 = require_glob();
|
|
8273
8267
|
var has_magic_js_1 = require_has_magic();
|
|
8274
|
-
var minimatch_2 =
|
|
8268
|
+
var minimatch_2 = require_commonjs2();
|
|
8275
8269
|
Object.defineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8276
8270
|
return minimatch_2.escape;
|
|
8277
8271
|
}, "get") });
|
|
@@ -8345,9 +8339,9 @@ var require_commonjs7 = __commonJS({
|
|
|
8345
8339
|
}
|
|
8346
8340
|
});
|
|
8347
8341
|
|
|
8348
|
-
// node_modules/.pnpm/spdx-license-ids@3.0.
|
|
8342
|
+
// node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/index.json
|
|
8349
8343
|
var require_spdx_license_ids = __commonJS({
|
|
8350
|
-
"node_modules/.pnpm/spdx-license-ids@3.0.
|
|
8344
|
+
"node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/index.json"(exports2, module2) {
|
|
8351
8345
|
module2.exports = [
|
|
8352
8346
|
"0BSD",
|
|
8353
8347
|
"3D-Slicer-1.0",
|
|
@@ -8362,6 +8356,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8362
8356
|
"AGPL-1.0-or-later",
|
|
8363
8357
|
"AGPL-3.0-only",
|
|
8364
8358
|
"AGPL-3.0-or-later",
|
|
8359
|
+
"ALGLIB-Documentation",
|
|
8365
8360
|
"AMD-newlib",
|
|
8366
8361
|
"AMDPLPA",
|
|
8367
8362
|
"AML",
|
|
@@ -8383,6 +8378,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8383
8378
|
"Adobe-Display-PostScript",
|
|
8384
8379
|
"Adobe-Glyph",
|
|
8385
8380
|
"Adobe-Utopia",
|
|
8381
|
+
"Advanced-Cryptics-Dictionary",
|
|
8386
8382
|
"Afmparse",
|
|
8387
8383
|
"Aladdin",
|
|
8388
8384
|
"Apache-1.0",
|
|
@@ -8396,6 +8392,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8396
8392
|
"Artistic-2.0",
|
|
8397
8393
|
"Artistic-dist",
|
|
8398
8394
|
"Aspell-RU",
|
|
8395
|
+
"BOLA-1.1",
|
|
8399
8396
|
"BSD-1-Clause",
|
|
8400
8397
|
"BSD-2-Clause",
|
|
8401
8398
|
"BSD-2-Clause-Darwin",
|
|
@@ -8415,6 +8412,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8415
8412
|
"BSD-3-Clause-No-Nuclear-Warranty",
|
|
8416
8413
|
"BSD-3-Clause-Open-MPI",
|
|
8417
8414
|
"BSD-3-Clause-Sun",
|
|
8415
|
+
"BSD-3-Clause-Tso",
|
|
8418
8416
|
"BSD-3-Clause-acpica",
|
|
8419
8417
|
"BSD-3-Clause-flex",
|
|
8420
8418
|
"BSD-4-Clause",
|
|
@@ -8425,6 +8423,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8425
8423
|
"BSD-Advertising-Acknowledgement",
|
|
8426
8424
|
"BSD-Attribution-HPND-disclaimer",
|
|
8427
8425
|
"BSD-Inferno-Nettverk",
|
|
8426
|
+
"BSD-Mark-Modifications",
|
|
8428
8427
|
"BSD-Protection",
|
|
8429
8428
|
"BSD-Source-Code",
|
|
8430
8429
|
"BSD-Source-beginning-file",
|
|
@@ -8446,9 +8445,11 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8446
8445
|
"Borceux",
|
|
8447
8446
|
"Brian-Gladman-2-Clause",
|
|
8448
8447
|
"Brian-Gladman-3-Clause",
|
|
8448
|
+
"Buddy",
|
|
8449
8449
|
"C-UDA-1.0",
|
|
8450
8450
|
"CAL-1.0",
|
|
8451
8451
|
"CAL-1.0-Combined-Work-Exception",
|
|
8452
|
+
"CAPEC-tou",
|
|
8452
8453
|
"CATOSL-1.1",
|
|
8453
8454
|
"CC-BY-1.0",
|
|
8454
8455
|
"CC-BY-2.0",
|
|
@@ -8566,6 +8567,9 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8566
8567
|
"EPICS",
|
|
8567
8568
|
"EPL-1.0",
|
|
8568
8569
|
"EPL-2.0",
|
|
8570
|
+
"ESA-PL-permissive-2.4",
|
|
8571
|
+
"ESA-PL-strong-copyleft-2.4",
|
|
8572
|
+
"ESA-PL-weak-copyleft-2.4",
|
|
8569
8573
|
"EUDatagrid",
|
|
8570
8574
|
"EUPL-1.0",
|
|
8571
8575
|
"EUPL-1.1",
|
|
@@ -8639,6 +8643,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8639
8643
|
"HPND-Markus-Kuhn",
|
|
8640
8644
|
"HPND-Netrek",
|
|
8641
8645
|
"HPND-Pbmplus",
|
|
8646
|
+
"HPND-SMC",
|
|
8642
8647
|
"HPND-UC",
|
|
8643
8648
|
"HPND-UC-export-US",
|
|
8644
8649
|
"HPND-doc",
|
|
@@ -8653,6 +8658,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8653
8658
|
"HPND-sell-variant",
|
|
8654
8659
|
"HPND-sell-variant-MIT-disclaimer",
|
|
8655
8660
|
"HPND-sell-variant-MIT-disclaimer-rev",
|
|
8661
|
+
"HPND-sell-variant-critical-systems",
|
|
8656
8662
|
"HTMLTIDY",
|
|
8657
8663
|
"HaskellReport",
|
|
8658
8664
|
"Hippocratic-2.1",
|
|
@@ -8665,6 +8671,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8665
8671
|
"IPL-1.0",
|
|
8666
8672
|
"ISC",
|
|
8667
8673
|
"ISC-Veillard",
|
|
8674
|
+
"ISO-permission",
|
|
8668
8675
|
"ImageMagick",
|
|
8669
8676
|
"Imlib2",
|
|
8670
8677
|
"Info-ZIP",
|
|
@@ -8722,6 +8729,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8722
8729
|
"MIT-Festival",
|
|
8723
8730
|
"MIT-Khronos-old",
|
|
8724
8731
|
"MIT-Modern-Variant",
|
|
8732
|
+
"MIT-STK",
|
|
8725
8733
|
"MIT-Wu",
|
|
8726
8734
|
"MIT-advertising",
|
|
8727
8735
|
"MIT-enna",
|
|
@@ -8730,6 +8738,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8730
8738
|
"MIT-testregex",
|
|
8731
8739
|
"MITNFA",
|
|
8732
8740
|
"MMIXware",
|
|
8741
|
+
"MMPL-1.0.1",
|
|
8733
8742
|
"MPEG-SSG",
|
|
8734
8743
|
"MPL-1.0",
|
|
8735
8744
|
"MPL-1.1",
|
|
@@ -8761,6 +8770,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8761
8770
|
"NGPL",
|
|
8762
8771
|
"NICTA-1.0",
|
|
8763
8772
|
"NIST-PD",
|
|
8773
|
+
"NIST-PD-TNT",
|
|
8764
8774
|
"NIST-PD-fallback",
|
|
8765
8775
|
"NIST-Software",
|
|
8766
8776
|
"NLOD-1.0",
|
|
@@ -8820,12 +8830,15 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8820
8830
|
"OPL-1.0",
|
|
8821
8831
|
"OPL-UK-3.0",
|
|
8822
8832
|
"OPUBL-1.0",
|
|
8833
|
+
"OSC-1.0",
|
|
8823
8834
|
"OSET-PL-2.1",
|
|
8824
8835
|
"OSL-1.0",
|
|
8825
8836
|
"OSL-1.1",
|
|
8826
8837
|
"OSL-2.0",
|
|
8827
8838
|
"OSL-2.1",
|
|
8828
8839
|
"OSL-3.0",
|
|
8840
|
+
"OSSP",
|
|
8841
|
+
"OpenMDW-1.0",
|
|
8829
8842
|
"OpenPBS-2.3",
|
|
8830
8843
|
"OpenSSL",
|
|
8831
8844
|
"OpenSSL-standalone",
|
|
@@ -8836,6 +8849,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8836
8849
|
"PHP-3.01",
|
|
8837
8850
|
"PPL",
|
|
8838
8851
|
"PSF-2.0",
|
|
8852
|
+
"ParaType-Free-Font-1.3",
|
|
8839
8853
|
"Parity-6.0.0",
|
|
8840
8854
|
"Parity-7.0.0",
|
|
8841
8855
|
"Pixar",
|
|
@@ -8864,6 +8878,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8864
8878
|
"SGI-B-1.1",
|
|
8865
8879
|
"SGI-B-2.0",
|
|
8866
8880
|
"SGI-OpenGL",
|
|
8881
|
+
"SGMLUG-PM",
|
|
8867
8882
|
"SGP4",
|
|
8868
8883
|
"SHL-0.5",
|
|
8869
8884
|
"SHL-0.51",
|
|
@@ -8911,6 +8926,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8911
8926
|
"TTYP0",
|
|
8912
8927
|
"TU-Berlin-1.0",
|
|
8913
8928
|
"TU-Berlin-2.0",
|
|
8929
|
+
"TekHVC",
|
|
8914
8930
|
"TermReadKey",
|
|
8915
8931
|
"ThirdEye",
|
|
8916
8932
|
"TrustedQSL",
|
|
@@ -8920,6 +8936,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8920
8936
|
"UPL-1.0",
|
|
8921
8937
|
"URT-RLE",
|
|
8922
8938
|
"Ubuntu-font-1.0",
|
|
8939
|
+
"UnRAR",
|
|
8923
8940
|
"Unicode-3.0",
|
|
8924
8941
|
"Unicode-DFS-2015",
|
|
8925
8942
|
"Unicode-DFS-2016",
|
|
@@ -8931,15 +8948,19 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8931
8948
|
"VOSTROM",
|
|
8932
8949
|
"VSL-1.0",
|
|
8933
8950
|
"Vim",
|
|
8951
|
+
"Vixie-Cron",
|
|
8934
8952
|
"W3C",
|
|
8935
8953
|
"W3C-19980720",
|
|
8936
8954
|
"W3C-20150513",
|
|
8955
|
+
"WTFNMFPL",
|
|
8937
8956
|
"WTFPL",
|
|
8938
8957
|
"Watcom-1.0",
|
|
8939
8958
|
"Widget-Workshop",
|
|
8959
|
+
"WordNet",
|
|
8940
8960
|
"Wsuipa",
|
|
8941
8961
|
"X11",
|
|
8942
8962
|
"X11-distribute-modifications-variant",
|
|
8963
|
+
"X11-no-permit-persons",
|
|
8943
8964
|
"X11-swapped",
|
|
8944
8965
|
"XFree86-1.1",
|
|
8945
8966
|
"XSkat",
|
|
@@ -8980,6 +9001,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
8980
9001
|
"gnuplot",
|
|
8981
9002
|
"gtkbook",
|
|
8982
9003
|
"hdparm",
|
|
9004
|
+
"hyphen-bulgarian",
|
|
8983
9005
|
"iMatix",
|
|
8984
9006
|
"jove",
|
|
8985
9007
|
"libpng-1.6.35",
|
|
@@ -9020,9 +9042,9 @@ var require_spdx_license_ids = __commonJS({
|
|
|
9020
9042
|
}
|
|
9021
9043
|
});
|
|
9022
9044
|
|
|
9023
|
-
// node_modules/.pnpm/spdx-license-ids@3.0.
|
|
9045
|
+
// node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/deprecated.json
|
|
9024
9046
|
var require_deprecated = __commonJS({
|
|
9025
|
-
"node_modules/.pnpm/spdx-license-ids@3.0.
|
|
9047
|
+
"node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
|
|
9026
9048
|
module2.exports = [
|
|
9027
9049
|
"AGPL-1.0",
|
|
9028
9050
|
"AGPL-3.0",
|
|
@@ -9128,9 +9150,9 @@ var require_spdx_exceptions = __commonJS({
|
|
|
9128
9150
|
}
|
|
9129
9151
|
});
|
|
9130
9152
|
|
|
9131
|
-
// node_modules/.pnpm/spdx-expression-parse@
|
|
9153
|
+
// node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js
|
|
9132
9154
|
var require_scan = __commonJS({
|
|
9133
|
-
"node_modules/.pnpm/spdx-expression-parse@
|
|
9155
|
+
"node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js"(exports2, module2) {
|
|
9134
9156
|
"use strict";
|
|
9135
9157
|
var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
|
|
9136
9158
|
var exceptions = require_spdx_exceptions();
|
|
@@ -9162,7 +9184,7 @@ var require_scan = __commonJS({
|
|
|
9162
9184
|
__name(skipWhitespace, "skipWhitespace");
|
|
9163
9185
|
function operator() {
|
|
9164
9186
|
var string;
|
|
9165
|
-
var possibilities = [
|
|
9187
|
+
var possibilities = [/^WITH/i, /^AND/i, /^OR/i, "(", ")", ":", "+"];
|
|
9166
9188
|
for (var i = 0; i < possibilities.length; i++) {
|
|
9167
9189
|
string = read(possibilities[i]);
|
|
9168
9190
|
if (string) {
|
|
@@ -9174,7 +9196,7 @@ var require_scan = __commonJS({
|
|
|
9174
9196
|
}
|
|
9175
9197
|
return string && {
|
|
9176
9198
|
type: "OPERATOR",
|
|
9177
|
-
string
|
|
9199
|
+
string: string.toUpperCase()
|
|
9178
9200
|
};
|
|
9179
9201
|
}
|
|
9180
9202
|
__name(operator, "operator");
|
|
@@ -9242,9 +9264,9 @@ var require_scan = __commonJS({
|
|
|
9242
9264
|
}
|
|
9243
9265
|
});
|
|
9244
9266
|
|
|
9245
|
-
// node_modules/.pnpm/spdx-expression-parse@
|
|
9267
|
+
// node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js
|
|
9246
9268
|
var require_parse2 = __commonJS({
|
|
9247
|
-
"node_modules/.pnpm/spdx-expression-parse@
|
|
9269
|
+
"node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js"(exports2, module2) {
|
|
9248
9270
|
"use strict";
|
|
9249
9271
|
module2.exports = function(tokens) {
|
|
9250
9272
|
var index = 0;
|
|
@@ -9366,9 +9388,9 @@ var require_parse2 = __commonJS({
|
|
|
9366
9388
|
}
|
|
9367
9389
|
});
|
|
9368
9390
|
|
|
9369
|
-
// node_modules/.pnpm/spdx-expression-parse@
|
|
9391
|
+
// node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js
|
|
9370
9392
|
var require_spdx_expression_parse = __commonJS({
|
|
9371
|
-
"node_modules/.pnpm/spdx-expression-parse@
|
|
9393
|
+
"node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js"(exports2, module2) {
|
|
9372
9394
|
"use strict";
|
|
9373
9395
|
var scan = require_scan();
|
|
9374
9396
|
var parse = require_parse2();
|
|
@@ -12794,640 +12816,146 @@ var require_utils = __commonJS({
|
|
|
12794
12816
|
}
|
|
12795
12817
|
});
|
|
12796
12818
|
|
|
12797
|
-
// node_modules/.pnpm/
|
|
12798
|
-
var
|
|
12799
|
-
"node_modules/.pnpm/
|
|
12819
|
+
// node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js
|
|
12820
|
+
var require_lib6 = __commonJS({
|
|
12821
|
+
"node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js"(exports2, module2) {
|
|
12800
12822
|
"use strict";
|
|
12801
|
-
var
|
|
12802
|
-
var
|
|
12803
|
-
var
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
committish = url.hash.slice(1);
|
|
12838
|
-
}
|
|
12839
|
-
if (project && project.endsWith(".git")) {
|
|
12840
|
-
project = project.slice(0, -4);
|
|
12841
|
-
}
|
|
12842
|
-
if (!user || !project) {
|
|
12843
|
-
return;
|
|
12823
|
+
var { builtinModules: builtins } = require("module");
|
|
12824
|
+
var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
12825
|
+
var exclusionList = [
|
|
12826
|
+
"node_modules",
|
|
12827
|
+
"favicon.ico"
|
|
12828
|
+
];
|
|
12829
|
+
function validate(name) {
|
|
12830
|
+
var warnings = [];
|
|
12831
|
+
var errors = [];
|
|
12832
|
+
if (name === null) {
|
|
12833
|
+
errors.push("name cannot be null");
|
|
12834
|
+
return done(warnings, errors);
|
|
12835
|
+
}
|
|
12836
|
+
if (name === void 0) {
|
|
12837
|
+
errors.push("name cannot be undefined");
|
|
12838
|
+
return done(warnings, errors);
|
|
12839
|
+
}
|
|
12840
|
+
if (typeof name !== "string") {
|
|
12841
|
+
errors.push("name must be a string");
|
|
12842
|
+
return done(warnings, errors);
|
|
12843
|
+
}
|
|
12844
|
+
if (!name.length) {
|
|
12845
|
+
errors.push("name length must be greater than zero");
|
|
12846
|
+
}
|
|
12847
|
+
if (name.startsWith(".")) {
|
|
12848
|
+
errors.push("name cannot start with a period");
|
|
12849
|
+
}
|
|
12850
|
+
if (name.match(/^_/)) {
|
|
12851
|
+
errors.push("name cannot start with an underscore");
|
|
12852
|
+
}
|
|
12853
|
+
if (name.trim() !== name) {
|
|
12854
|
+
errors.push("name cannot contain leading or trailing spaces");
|
|
12855
|
+
}
|
|
12856
|
+
exclusionList.forEach(function(excludedName) {
|
|
12857
|
+
if (name.toLowerCase() === excludedName) {
|
|
12858
|
+
errors.push(excludedName + " is not a valid package name");
|
|
12844
12859
|
}
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
+
});
|
|
12861
|
+
if (builtins.includes(name.toLowerCase())) {
|
|
12862
|
+
warnings.push(name + " is a core module name");
|
|
12863
|
+
}
|
|
12864
|
+
if (name.length > 214) {
|
|
12865
|
+
warnings.push("name can no longer contain more than 214 characters");
|
|
12866
|
+
}
|
|
12867
|
+
if (name.toLowerCase() !== name) {
|
|
12868
|
+
warnings.push("name can no longer contain capital letters");
|
|
12869
|
+
}
|
|
12870
|
+
if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
|
|
12871
|
+
warnings.push(`name can no longer contain special characters ("~'!()*")`);
|
|
12872
|
+
}
|
|
12873
|
+
if (encodeURIComponent(name) !== name) {
|
|
12874
|
+
var nameMatch = name.match(scopedPackagePattern);
|
|
12875
|
+
if (nameMatch) {
|
|
12876
|
+
var user = nameMatch[1];
|
|
12877
|
+
var pkg = nameMatch[2];
|
|
12878
|
+
if (pkg.startsWith(".")) {
|
|
12879
|
+
errors.push("name cannot start with a period");
|
|
12880
|
+
}
|
|
12881
|
+
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
12882
|
+
return done(warnings, errors);
|
|
12883
|
+
}
|
|
12860
12884
|
}
|
|
12861
|
-
|
|
12862
|
-
|
|
12885
|
+
errors.push("name can only contain URL-friendly characters");
|
|
12886
|
+
}
|
|
12887
|
+
return done(warnings, errors);
|
|
12888
|
+
}
|
|
12889
|
+
__name(validate, "validate");
|
|
12890
|
+
var done = /* @__PURE__ */ __name(function(warnings, errors) {
|
|
12891
|
+
var result = {
|
|
12892
|
+
validForNewPackages: errors.length === 0 && warnings.length === 0,
|
|
12893
|
+
validForOldPackages: errors.length === 0,
|
|
12894
|
+
warnings,
|
|
12895
|
+
errors
|
|
12896
|
+
};
|
|
12897
|
+
if (!result.warnings.length) {
|
|
12898
|
+
delete result.warnings;
|
|
12899
|
+
}
|
|
12900
|
+
if (!result.errors.length) {
|
|
12901
|
+
delete result.errors;
|
|
12902
|
+
}
|
|
12903
|
+
return result;
|
|
12904
|
+
}, "done");
|
|
12905
|
+
module2.exports = validate;
|
|
12906
|
+
}
|
|
12907
|
+
});
|
|
12908
|
+
|
|
12909
|
+
// node_modules/.pnpm/npm-package-arg@12.0.2/node_modules/npm-package-arg/lib/npa.js
|
|
12910
|
+
var require_npa = __commonJS({
|
|
12911
|
+
"node_modules/.pnpm/npm-package-arg@12.0.2/node_modules/npm-package-arg/lib/npa.js"(exports2, module2) {
|
|
12912
|
+
"use strict";
|
|
12913
|
+
var isWindows = process.platform === "win32";
|
|
12914
|
+
var { URL: URL2 } = require("node:url");
|
|
12915
|
+
var path = isWindows ? require("node:path/win32") : require("node:path");
|
|
12916
|
+
var { homedir } = require("node:os");
|
|
12917
|
+
var HostedGit = require_lib3();
|
|
12918
|
+
var semver = require_semver2();
|
|
12919
|
+
var validatePackageName = require_lib6();
|
|
12920
|
+
var { log } = require_lib2();
|
|
12921
|
+
var hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
12922
|
+
var isURL = /^(?:git[+])?[a-z]+:/i;
|
|
12923
|
+
var isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i;
|
|
12924
|
+
var isFileType = /[.](?:tgz|tar.gz|tar)$/i;
|
|
12925
|
+
var isPortNumber = /:[0-9]+(\/|$)/i;
|
|
12926
|
+
var isWindowsFile = /^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/;
|
|
12927
|
+
var isPosixFile = /^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;
|
|
12928
|
+
var defaultRegistry = "https://registry.npmjs.org";
|
|
12929
|
+
function npa(arg, where) {
|
|
12930
|
+
let name;
|
|
12931
|
+
let spec;
|
|
12932
|
+
if (typeof arg === "object") {
|
|
12933
|
+
if (arg instanceof Result && (!where || where === arg.where)) {
|
|
12934
|
+
return arg;
|
|
12935
|
+
} else if (arg.name && arg.rawSpec) {
|
|
12936
|
+
return npa.resolve(arg.name, arg.rawSpec, where || arg.where);
|
|
12937
|
+
} else {
|
|
12938
|
+
return npa(arg.raw, where || arg.where);
|
|
12863
12939
|
}
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
const segments = path.split("/");
|
|
12884
|
-
let project = segments.pop();
|
|
12885
|
-
if (project.endsWith(".git")) {
|
|
12886
|
-
project = project.slice(0, -4);
|
|
12887
|
-
}
|
|
12888
|
-
const user = segments.join("/");
|
|
12889
|
-
if (!user || !project) {
|
|
12890
|
-
return;
|
|
12891
|
-
}
|
|
12892
|
-
return { user, project, committish: url.hash.slice(1) };
|
|
12893
|
-
}, "extract")
|
|
12894
|
-
};
|
|
12895
|
-
hosts.gist = {
|
|
12896
|
-
protocols: ["git:", "git+ssh:", "git+https:", "ssh:", "https:"],
|
|
12897
|
-
domain: "gist.github.com",
|
|
12898
|
-
editpath: "edit",
|
|
12899
|
-
sshtemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin("#", committish)}`, "sshtemplate"),
|
|
12900
|
-
sshurltemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin("#", committish)}`, "sshurltemplate"),
|
|
12901
|
-
edittemplate: /* @__PURE__ */ __name(({ domain, user, project, committish, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", maybeEncode(committish))}/${editpath}`, "edittemplate"),
|
|
12902
|
-
browsetemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, "browsetemplate"),
|
|
12903
|
-
browsetreetemplate: /* @__PURE__ */ __name(({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path))}`, "browsetreetemplate"),
|
|
12904
|
-
browseblobtemplate: /* @__PURE__ */ __name(({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path))}`, "browseblobtemplate"),
|
|
12905
|
-
docstemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, "docstemplate"),
|
|
12906
|
-
httpstemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin("#", committish)}`, "httpstemplate"),
|
|
12907
|
-
filetemplate: /* @__PURE__ */ __name(({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin("/", maybeEncode(committish))}/${path}`, "filetemplate"),
|
|
12908
|
-
shortcuttemplate: /* @__PURE__ */ __name(({ type, project, committish }) => `${type}:${project}${maybeJoin("#", committish)}`, "shortcuttemplate"),
|
|
12909
|
-
pathtemplate: /* @__PURE__ */ __name(({ project, committish }) => `${project}${maybeJoin("#", committish)}`, "pathtemplate"),
|
|
12910
|
-
bugstemplate: /* @__PURE__ */ __name(({ domain, project }) => `https://${domain}/${project}`, "bugstemplate"),
|
|
12911
|
-
gittemplate: /* @__PURE__ */ __name(({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin("#", committish)}`, "gittemplate"),
|
|
12912
|
-
tarballtemplate: /* @__PURE__ */ __name(({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish || "HEAD")}`, "tarballtemplate"),
|
|
12913
|
-
extract: /* @__PURE__ */ __name((url) => {
|
|
12914
|
-
let [, user, project, aux] = url.pathname.split("/", 4);
|
|
12915
|
-
if (aux === "raw") {
|
|
12916
|
-
return;
|
|
12917
|
-
}
|
|
12918
|
-
if (!project) {
|
|
12919
|
-
if (!user) {
|
|
12920
|
-
return;
|
|
12921
|
-
}
|
|
12922
|
-
project = user;
|
|
12923
|
-
user = null;
|
|
12924
|
-
}
|
|
12925
|
-
if (project.endsWith(".git")) {
|
|
12926
|
-
project = project.slice(0, -4);
|
|
12927
|
-
}
|
|
12928
|
-
return { user, project, committish: url.hash.slice(1) };
|
|
12929
|
-
}, "extract"),
|
|
12930
|
-
hashformat: /* @__PURE__ */ __name(function(fragment) {
|
|
12931
|
-
return fragment && "file-" + formatHashFragment(fragment);
|
|
12932
|
-
}, "hashformat")
|
|
12933
|
-
};
|
|
12934
|
-
hosts.sourcehut = {
|
|
12935
|
-
protocols: ["git+ssh:", "https:"],
|
|
12936
|
-
domain: "git.sr.ht",
|
|
12937
|
-
treepath: "tree",
|
|
12938
|
-
blobpath: "tree",
|
|
12939
|
-
filetemplate: /* @__PURE__ */ __name(({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "HEAD"}/${path}`, "filetemplate"),
|
|
12940
|
-
httpstemplate: /* @__PURE__ */ __name(({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, "httpstemplate"),
|
|
12941
|
-
tarballtemplate: /* @__PURE__ */ __name(({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "HEAD"}.tar.gz`, "tarballtemplate"),
|
|
12942
|
-
bugstemplate: /* @__PURE__ */ __name(() => null, "bugstemplate"),
|
|
12943
|
-
extract: /* @__PURE__ */ __name((url) => {
|
|
12944
|
-
let [, user, project, aux] = url.pathname.split("/", 4);
|
|
12945
|
-
if (["archive"].includes(aux)) {
|
|
12946
|
-
return;
|
|
12947
|
-
}
|
|
12948
|
-
if (project && project.endsWith(".git")) {
|
|
12949
|
-
project = project.slice(0, -4);
|
|
12950
|
-
}
|
|
12951
|
-
if (!user || !project) {
|
|
12952
|
-
return;
|
|
12953
|
-
}
|
|
12954
|
-
return { user, project, committish: url.hash.slice(1) };
|
|
12955
|
-
}, "extract")
|
|
12956
|
-
};
|
|
12957
|
-
for (const [name, host] of Object.entries(hosts)) {
|
|
12958
|
-
hosts[name] = Object.assign({}, defaults, host);
|
|
12959
|
-
}
|
|
12960
|
-
module2.exports = hosts;
|
|
12961
|
-
}
|
|
12962
|
-
});
|
|
12963
|
-
|
|
12964
|
-
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/parse-url.js
|
|
12965
|
-
var require_parse_url2 = __commonJS({
|
|
12966
|
-
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/parse-url.js"(exports2, module2) {
|
|
12967
|
-
var url = require("url");
|
|
12968
|
-
var lastIndexOfBefore = /* @__PURE__ */ __name((str, char, beforeChar) => {
|
|
12969
|
-
const startPosition = str.indexOf(beforeChar);
|
|
12970
|
-
return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
|
|
12971
|
-
}, "lastIndexOfBefore");
|
|
12972
|
-
var safeUrl = /* @__PURE__ */ __name((u) => {
|
|
12973
|
-
try {
|
|
12974
|
-
return new url.URL(u);
|
|
12975
|
-
} catch {
|
|
12976
|
-
}
|
|
12977
|
-
}, "safeUrl");
|
|
12978
|
-
var correctProtocol = /* @__PURE__ */ __name((arg, protocols) => {
|
|
12979
|
-
const firstColon = arg.indexOf(":");
|
|
12980
|
-
const proto = arg.slice(0, firstColon + 1);
|
|
12981
|
-
if (Object.prototype.hasOwnProperty.call(protocols, proto)) {
|
|
12982
|
-
return arg;
|
|
12983
|
-
}
|
|
12984
|
-
const firstAt = arg.indexOf("@");
|
|
12985
|
-
if (firstAt > -1) {
|
|
12986
|
-
if (firstAt > firstColon) {
|
|
12987
|
-
return `git+ssh://${arg}`;
|
|
12988
|
-
} else {
|
|
12989
|
-
return arg;
|
|
12990
|
-
}
|
|
12991
|
-
}
|
|
12992
|
-
const doubleSlash = arg.indexOf("//");
|
|
12993
|
-
if (doubleSlash === firstColon + 1) {
|
|
12994
|
-
return arg;
|
|
12995
|
-
}
|
|
12996
|
-
return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`;
|
|
12997
|
-
}, "correctProtocol");
|
|
12998
|
-
var correctUrl = /* @__PURE__ */ __name((giturl) => {
|
|
12999
|
-
const firstAt = lastIndexOfBefore(giturl, "@", "#");
|
|
13000
|
-
const lastColonBeforeHash = lastIndexOfBefore(giturl, ":", "#");
|
|
13001
|
-
if (lastColonBeforeHash > firstAt) {
|
|
13002
|
-
giturl = giturl.slice(0, lastColonBeforeHash) + "/" + giturl.slice(lastColonBeforeHash + 1);
|
|
13003
|
-
}
|
|
13004
|
-
if (lastIndexOfBefore(giturl, ":", "#") === -1 && giturl.indexOf("//") === -1) {
|
|
13005
|
-
giturl = `git+ssh://${giturl}`;
|
|
13006
|
-
}
|
|
13007
|
-
return giturl;
|
|
13008
|
-
}, "correctUrl");
|
|
13009
|
-
module2.exports = (giturl, protocols) => {
|
|
13010
|
-
const withProtocol = protocols ? correctProtocol(giturl, protocols) : giturl;
|
|
13011
|
-
return safeUrl(withProtocol) || safeUrl(correctUrl(withProtocol));
|
|
13012
|
-
};
|
|
13013
|
-
}
|
|
13014
|
-
});
|
|
13015
|
-
|
|
13016
|
-
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/from-url.js
|
|
13017
|
-
var require_from_url2 = __commonJS({
|
|
13018
|
-
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/from-url.js"(exports2, module2) {
|
|
13019
|
-
"use strict";
|
|
13020
|
-
var parseUrl = require_parse_url2();
|
|
13021
|
-
var isGitHubShorthand = /* @__PURE__ */ __name((arg) => {
|
|
13022
|
-
const firstHash = arg.indexOf("#");
|
|
13023
|
-
const firstSlash = arg.indexOf("/");
|
|
13024
|
-
const secondSlash = arg.indexOf("/", firstSlash + 1);
|
|
13025
|
-
const firstColon = arg.indexOf(":");
|
|
13026
|
-
const firstSpace = /\s/.exec(arg);
|
|
13027
|
-
const firstAt = arg.indexOf("@");
|
|
13028
|
-
const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
|
|
13029
|
-
const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
|
|
13030
|
-
const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
|
|
13031
|
-
const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
|
|
13032
|
-
const hasSlash = firstSlash > 0;
|
|
13033
|
-
const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
|
|
13034
|
-
const doesNotStartWithDot = !arg.startsWith(".");
|
|
13035
|
-
return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
|
|
13036
|
-
}, "isGitHubShorthand");
|
|
13037
|
-
module2.exports = (giturl, opts, { gitHosts, protocols }) => {
|
|
13038
|
-
if (!giturl) {
|
|
13039
|
-
return;
|
|
13040
|
-
}
|
|
13041
|
-
const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl;
|
|
13042
|
-
const parsed = parseUrl(correctedUrl, protocols);
|
|
13043
|
-
if (!parsed) {
|
|
13044
|
-
return;
|
|
13045
|
-
}
|
|
13046
|
-
const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
|
|
13047
|
-
const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
|
|
13048
|
-
const gitHostName = gitHostShortcut || gitHostDomain;
|
|
13049
|
-
if (!gitHostName) {
|
|
13050
|
-
return;
|
|
13051
|
-
}
|
|
13052
|
-
const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain];
|
|
13053
|
-
let auth = null;
|
|
13054
|
-
if (protocols[parsed.protocol]?.auth && (parsed.username || parsed.password)) {
|
|
13055
|
-
auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
|
|
13056
|
-
}
|
|
13057
|
-
let committish = null;
|
|
13058
|
-
let user = null;
|
|
13059
|
-
let project = null;
|
|
13060
|
-
let defaultRepresentation = null;
|
|
13061
|
-
try {
|
|
13062
|
-
if (gitHostShortcut) {
|
|
13063
|
-
let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
|
|
13064
|
-
const firstAt = pathname.indexOf("@");
|
|
13065
|
-
if (firstAt > -1) {
|
|
13066
|
-
pathname = pathname.slice(firstAt + 1);
|
|
13067
|
-
}
|
|
13068
|
-
const lastSlash = pathname.lastIndexOf("/");
|
|
13069
|
-
if (lastSlash > -1) {
|
|
13070
|
-
user = decodeURIComponent(pathname.slice(0, lastSlash));
|
|
13071
|
-
if (!user) {
|
|
13072
|
-
user = null;
|
|
13073
|
-
}
|
|
13074
|
-
project = decodeURIComponent(pathname.slice(lastSlash + 1));
|
|
13075
|
-
} else {
|
|
13076
|
-
project = decodeURIComponent(pathname);
|
|
13077
|
-
}
|
|
13078
|
-
if (project.endsWith(".git")) {
|
|
13079
|
-
project = project.slice(0, -4);
|
|
13080
|
-
}
|
|
13081
|
-
if (parsed.hash) {
|
|
13082
|
-
committish = decodeURIComponent(parsed.hash.slice(1));
|
|
13083
|
-
}
|
|
13084
|
-
defaultRepresentation = "shortcut";
|
|
13085
|
-
} else {
|
|
13086
|
-
if (!gitHostInfo.protocols.includes(parsed.protocol)) {
|
|
13087
|
-
return;
|
|
13088
|
-
}
|
|
13089
|
-
const segments = gitHostInfo.extract(parsed);
|
|
13090
|
-
if (!segments) {
|
|
13091
|
-
return;
|
|
13092
|
-
}
|
|
13093
|
-
user = segments.user && decodeURIComponent(segments.user);
|
|
13094
|
-
project = decodeURIComponent(segments.project);
|
|
13095
|
-
committish = decodeURIComponent(segments.committish);
|
|
13096
|
-
defaultRepresentation = protocols[parsed.protocol]?.name || parsed.protocol.slice(0, -1);
|
|
13097
|
-
}
|
|
13098
|
-
} catch (err) {
|
|
13099
|
-
if (err instanceof URIError) {
|
|
13100
|
-
return;
|
|
13101
|
-
} else {
|
|
13102
|
-
throw err;
|
|
13103
|
-
}
|
|
13104
|
-
}
|
|
13105
|
-
return [gitHostName, user, auth, project, committish, defaultRepresentation, opts];
|
|
13106
|
-
};
|
|
13107
|
-
}
|
|
13108
|
-
});
|
|
13109
|
-
|
|
13110
|
-
// node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/index.js
|
|
13111
|
-
var require_lib6 = __commonJS({
|
|
13112
|
-
"node_modules/.pnpm/hosted-git-info@8.1.0/node_modules/hosted-git-info/lib/index.js"(exports2, module2) {
|
|
13113
|
-
"use strict";
|
|
13114
|
-
var { LRUCache } = require_commonjs();
|
|
13115
|
-
var hosts = require_hosts2();
|
|
13116
|
-
var fromUrl = require_from_url2();
|
|
13117
|
-
var parseUrl = require_parse_url2();
|
|
13118
|
-
var cache = new LRUCache({ max: 1e3 });
|
|
13119
|
-
function unknownHostedUrl(url) {
|
|
13120
|
-
try {
|
|
13121
|
-
const {
|
|
13122
|
-
protocol,
|
|
13123
|
-
hostname,
|
|
13124
|
-
pathname
|
|
13125
|
-
} = new URL(url);
|
|
13126
|
-
if (!hostname) {
|
|
13127
|
-
return null;
|
|
13128
|
-
}
|
|
13129
|
-
const proto = /(?:git\+)http:$/.test(protocol) ? "http:" : "https:";
|
|
13130
|
-
const path = pathname.replace(/\.git$/, "");
|
|
13131
|
-
return `${proto}//${hostname}${path}`;
|
|
13132
|
-
} catch {
|
|
13133
|
-
return null;
|
|
13134
|
-
}
|
|
13135
|
-
}
|
|
13136
|
-
__name(unknownHostedUrl, "unknownHostedUrl");
|
|
13137
|
-
var GitHost = class _GitHost {
|
|
13138
|
-
static {
|
|
13139
|
-
__name(this, "GitHost");
|
|
13140
|
-
}
|
|
13141
|
-
constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) {
|
|
13142
|
-
Object.assign(this, _GitHost.#gitHosts[type], {
|
|
13143
|
-
type,
|
|
13144
|
-
user,
|
|
13145
|
-
auth,
|
|
13146
|
-
project,
|
|
13147
|
-
committish,
|
|
13148
|
-
default: defaultRepresentation,
|
|
13149
|
-
opts
|
|
13150
|
-
});
|
|
13151
|
-
}
|
|
13152
|
-
static #gitHosts = { byShortcut: {}, byDomain: {} };
|
|
13153
|
-
static #protocols = {
|
|
13154
|
-
"git+ssh:": { name: "sshurl" },
|
|
13155
|
-
"ssh:": { name: "sshurl" },
|
|
13156
|
-
"git+https:": { name: "https", auth: true },
|
|
13157
|
-
"git:": { auth: true },
|
|
13158
|
-
"http:": { auth: true },
|
|
13159
|
-
"https:": { auth: true },
|
|
13160
|
-
"git+http:": { auth: true }
|
|
13161
|
-
};
|
|
13162
|
-
static addHost(name, host) {
|
|
13163
|
-
_GitHost.#gitHosts[name] = host;
|
|
13164
|
-
_GitHost.#gitHosts.byDomain[host.domain] = name;
|
|
13165
|
-
_GitHost.#gitHosts.byShortcut[`${name}:`] = name;
|
|
13166
|
-
_GitHost.#protocols[`${name}:`] = { name };
|
|
13167
|
-
}
|
|
13168
|
-
static fromUrl(giturl, opts) {
|
|
13169
|
-
if (typeof giturl !== "string") {
|
|
13170
|
-
return;
|
|
13171
|
-
}
|
|
13172
|
-
const key = giturl + JSON.stringify(opts || {});
|
|
13173
|
-
if (!cache.has(key)) {
|
|
13174
|
-
const hostArgs = fromUrl(giturl, opts, {
|
|
13175
|
-
gitHosts: _GitHost.#gitHosts,
|
|
13176
|
-
protocols: _GitHost.#protocols
|
|
13177
|
-
});
|
|
13178
|
-
cache.set(key, hostArgs ? new _GitHost(...hostArgs) : void 0);
|
|
13179
|
-
}
|
|
13180
|
-
return cache.get(key);
|
|
13181
|
-
}
|
|
13182
|
-
static fromManifest(manifest, opts = {}) {
|
|
13183
|
-
if (!manifest || typeof manifest !== "object") {
|
|
13184
|
-
return;
|
|
13185
|
-
}
|
|
13186
|
-
const r = manifest.repository;
|
|
13187
|
-
const rurl = r && (typeof r === "string" ? r : typeof r === "object" && typeof r.url === "string" ? r.url : null);
|
|
13188
|
-
if (!rurl) {
|
|
13189
|
-
throw new Error("no repository");
|
|
13190
|
-
}
|
|
13191
|
-
const info = rurl && _GitHost.fromUrl(rurl.replace(/^git\+/, ""), opts) || null;
|
|
13192
|
-
if (info) {
|
|
13193
|
-
return info;
|
|
13194
|
-
}
|
|
13195
|
-
const unk = unknownHostedUrl(rurl);
|
|
13196
|
-
return _GitHost.fromUrl(unk, opts) || unk;
|
|
13197
|
-
}
|
|
13198
|
-
static parseUrl(url) {
|
|
13199
|
-
return parseUrl(url);
|
|
13200
|
-
}
|
|
13201
|
-
#fill(template, opts) {
|
|
13202
|
-
if (typeof template !== "function") {
|
|
13203
|
-
return null;
|
|
13204
|
-
}
|
|
13205
|
-
const options = { ...this, ...this.opts, ...opts };
|
|
13206
|
-
if (!options.path) {
|
|
13207
|
-
options.path = "";
|
|
13208
|
-
}
|
|
13209
|
-
if (options.path.startsWith("/")) {
|
|
13210
|
-
options.path = options.path.slice(1);
|
|
13211
|
-
}
|
|
13212
|
-
if (options.noCommittish) {
|
|
13213
|
-
options.committish = null;
|
|
13214
|
-
}
|
|
13215
|
-
const result = template(options);
|
|
13216
|
-
return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result;
|
|
13217
|
-
}
|
|
13218
|
-
hash() {
|
|
13219
|
-
return this.committish ? `#${this.committish}` : "";
|
|
13220
|
-
}
|
|
13221
|
-
ssh(opts) {
|
|
13222
|
-
return this.#fill(this.sshtemplate, opts);
|
|
13223
|
-
}
|
|
13224
|
-
sshurl(opts) {
|
|
13225
|
-
return this.#fill(this.sshurltemplate, opts);
|
|
13226
|
-
}
|
|
13227
|
-
browse(path, ...args) {
|
|
13228
|
-
if (typeof path !== "string") {
|
|
13229
|
-
return this.#fill(this.browsetemplate, path);
|
|
13230
|
-
}
|
|
13231
|
-
if (typeof args[0] !== "string") {
|
|
13232
|
-
return this.#fill(this.browsetreetemplate, { ...args[0], path });
|
|
13233
|
-
}
|
|
13234
|
-
return this.#fill(this.browsetreetemplate, { ...args[1], fragment: args[0], path });
|
|
13235
|
-
}
|
|
13236
|
-
// If the path is known to be a file, then browseFile should be used. For some hosts
|
|
13237
|
-
// the url is the same as browse, but for others like GitHub a file can use both `/tree/`
|
|
13238
|
-
// and `/blob/` in the path. When using a default committish of `HEAD` then the `/tree/`
|
|
13239
|
-
// path will redirect to a specific commit. Using the `/blob/` path avoids this and
|
|
13240
|
-
// does not redirect to a different commit.
|
|
13241
|
-
browseFile(path, ...args) {
|
|
13242
|
-
if (typeof args[0] !== "string") {
|
|
13243
|
-
return this.#fill(this.browseblobtemplate, { ...args[0], path });
|
|
13244
|
-
}
|
|
13245
|
-
return this.#fill(this.browseblobtemplate, { ...args[1], fragment: args[0], path });
|
|
13246
|
-
}
|
|
13247
|
-
docs(opts) {
|
|
13248
|
-
return this.#fill(this.docstemplate, opts);
|
|
13249
|
-
}
|
|
13250
|
-
bugs(opts) {
|
|
13251
|
-
return this.#fill(this.bugstemplate, opts);
|
|
13252
|
-
}
|
|
13253
|
-
https(opts) {
|
|
13254
|
-
return this.#fill(this.httpstemplate, opts);
|
|
13255
|
-
}
|
|
13256
|
-
git(opts) {
|
|
13257
|
-
return this.#fill(this.gittemplate, opts);
|
|
13258
|
-
}
|
|
13259
|
-
shortcut(opts) {
|
|
13260
|
-
return this.#fill(this.shortcuttemplate, opts);
|
|
13261
|
-
}
|
|
13262
|
-
path(opts) {
|
|
13263
|
-
return this.#fill(this.pathtemplate, opts);
|
|
13264
|
-
}
|
|
13265
|
-
tarball(opts) {
|
|
13266
|
-
return this.#fill(this.tarballtemplate, { ...opts, noCommittish: false });
|
|
13267
|
-
}
|
|
13268
|
-
file(path, opts) {
|
|
13269
|
-
return this.#fill(this.filetemplate, { ...opts, path });
|
|
13270
|
-
}
|
|
13271
|
-
edit(path, opts) {
|
|
13272
|
-
return this.#fill(this.edittemplate, { ...opts, path });
|
|
13273
|
-
}
|
|
13274
|
-
getDefaultRepresentation() {
|
|
13275
|
-
return this.default;
|
|
13276
|
-
}
|
|
13277
|
-
toString(opts) {
|
|
13278
|
-
if (this.default && typeof this[this.default] === "function") {
|
|
13279
|
-
return this[this.default](opts);
|
|
13280
|
-
}
|
|
13281
|
-
return this.sshurl(opts);
|
|
13282
|
-
}
|
|
13283
|
-
};
|
|
13284
|
-
for (const [name, host] of Object.entries(hosts)) {
|
|
13285
|
-
GitHost.addHost(name, host);
|
|
13286
|
-
}
|
|
13287
|
-
module2.exports = GitHost;
|
|
13288
|
-
}
|
|
13289
|
-
});
|
|
13290
|
-
|
|
13291
|
-
// node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js
|
|
13292
|
-
var require_lib7 = __commonJS({
|
|
13293
|
-
"node_modules/.pnpm/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js"(exports2, module2) {
|
|
13294
|
-
"use strict";
|
|
13295
|
-
var { builtinModules: builtins } = require("module");
|
|
13296
|
-
var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
13297
|
-
var exclusionList = [
|
|
13298
|
-
"node_modules",
|
|
13299
|
-
"favicon.ico"
|
|
13300
|
-
];
|
|
13301
|
-
function validate(name) {
|
|
13302
|
-
var warnings = [];
|
|
13303
|
-
var errors = [];
|
|
13304
|
-
if (name === null) {
|
|
13305
|
-
errors.push("name cannot be null");
|
|
13306
|
-
return done(warnings, errors);
|
|
13307
|
-
}
|
|
13308
|
-
if (name === void 0) {
|
|
13309
|
-
errors.push("name cannot be undefined");
|
|
13310
|
-
return done(warnings, errors);
|
|
13311
|
-
}
|
|
13312
|
-
if (typeof name !== "string") {
|
|
13313
|
-
errors.push("name must be a string");
|
|
13314
|
-
return done(warnings, errors);
|
|
13315
|
-
}
|
|
13316
|
-
if (!name.length) {
|
|
13317
|
-
errors.push("name length must be greater than zero");
|
|
13318
|
-
}
|
|
13319
|
-
if (name.startsWith(".")) {
|
|
13320
|
-
errors.push("name cannot start with a period");
|
|
13321
|
-
}
|
|
13322
|
-
if (name.match(/^_/)) {
|
|
13323
|
-
errors.push("name cannot start with an underscore");
|
|
13324
|
-
}
|
|
13325
|
-
if (name.trim() !== name) {
|
|
13326
|
-
errors.push("name cannot contain leading or trailing spaces");
|
|
13327
|
-
}
|
|
13328
|
-
exclusionList.forEach(function(excludedName) {
|
|
13329
|
-
if (name.toLowerCase() === excludedName) {
|
|
13330
|
-
errors.push(excludedName + " is not a valid package name");
|
|
13331
|
-
}
|
|
13332
|
-
});
|
|
13333
|
-
if (builtins.includes(name.toLowerCase())) {
|
|
13334
|
-
warnings.push(name + " is a core module name");
|
|
13335
|
-
}
|
|
13336
|
-
if (name.length > 214) {
|
|
13337
|
-
warnings.push("name can no longer contain more than 214 characters");
|
|
13338
|
-
}
|
|
13339
|
-
if (name.toLowerCase() !== name) {
|
|
13340
|
-
warnings.push("name can no longer contain capital letters");
|
|
13341
|
-
}
|
|
13342
|
-
if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
|
|
13343
|
-
warnings.push(`name can no longer contain special characters ("~'!()*")`);
|
|
13344
|
-
}
|
|
13345
|
-
if (encodeURIComponent(name) !== name) {
|
|
13346
|
-
var nameMatch = name.match(scopedPackagePattern);
|
|
13347
|
-
if (nameMatch) {
|
|
13348
|
-
var user = nameMatch[1];
|
|
13349
|
-
var pkg = nameMatch[2];
|
|
13350
|
-
if (pkg.startsWith(".")) {
|
|
13351
|
-
errors.push("name cannot start with a period");
|
|
13352
|
-
}
|
|
13353
|
-
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
13354
|
-
return done(warnings, errors);
|
|
13355
|
-
}
|
|
13356
|
-
}
|
|
13357
|
-
errors.push("name can only contain URL-friendly characters");
|
|
13358
|
-
}
|
|
13359
|
-
return done(warnings, errors);
|
|
13360
|
-
}
|
|
13361
|
-
__name(validate, "validate");
|
|
13362
|
-
var done = /* @__PURE__ */ __name(function(warnings, errors) {
|
|
13363
|
-
var result = {
|
|
13364
|
-
validForNewPackages: errors.length === 0 && warnings.length === 0,
|
|
13365
|
-
validForOldPackages: errors.length === 0,
|
|
13366
|
-
warnings,
|
|
13367
|
-
errors
|
|
13368
|
-
};
|
|
13369
|
-
if (!result.warnings.length) {
|
|
13370
|
-
delete result.warnings;
|
|
13371
|
-
}
|
|
13372
|
-
if (!result.errors.length) {
|
|
13373
|
-
delete result.errors;
|
|
13374
|
-
}
|
|
13375
|
-
return result;
|
|
13376
|
-
}, "done");
|
|
13377
|
-
module2.exports = validate;
|
|
13378
|
-
}
|
|
13379
|
-
});
|
|
13380
|
-
|
|
13381
|
-
// node_modules/.pnpm/npm-package-arg@12.0.2/node_modules/npm-package-arg/lib/npa.js
|
|
13382
|
-
var require_npa = __commonJS({
|
|
13383
|
-
"node_modules/.pnpm/npm-package-arg@12.0.2/node_modules/npm-package-arg/lib/npa.js"(exports2, module2) {
|
|
13384
|
-
"use strict";
|
|
13385
|
-
var isWindows = process.platform === "win32";
|
|
13386
|
-
var { URL: URL2 } = require("node:url");
|
|
13387
|
-
var path = isWindows ? require("node:path/win32") : require("node:path");
|
|
13388
|
-
var { homedir } = require("node:os");
|
|
13389
|
-
var HostedGit = require_lib6();
|
|
13390
|
-
var semver = require_semver2();
|
|
13391
|
-
var validatePackageName = require_lib7();
|
|
13392
|
-
var { log } = require_lib2();
|
|
13393
|
-
var hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
13394
|
-
var isURL = /^(?:git[+])?[a-z]+:/i;
|
|
13395
|
-
var isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i;
|
|
13396
|
-
var isFileType = /[.](?:tgz|tar.gz|tar)$/i;
|
|
13397
|
-
var isPortNumber = /:[0-9]+(\/|$)/i;
|
|
13398
|
-
var isWindowsFile = /^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/;
|
|
13399
|
-
var isPosixFile = /^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;
|
|
13400
|
-
var defaultRegistry = "https://registry.npmjs.org";
|
|
13401
|
-
function npa(arg, where) {
|
|
13402
|
-
let name;
|
|
13403
|
-
let spec;
|
|
13404
|
-
if (typeof arg === "object") {
|
|
13405
|
-
if (arg instanceof Result && (!where || where === arg.where)) {
|
|
13406
|
-
return arg;
|
|
13407
|
-
} else if (arg.name && arg.rawSpec) {
|
|
13408
|
-
return npa.resolve(arg.name, arg.rawSpec, where || arg.where);
|
|
13409
|
-
} else {
|
|
13410
|
-
return npa(arg.raw, where || arg.where);
|
|
13411
|
-
}
|
|
13412
|
-
}
|
|
13413
|
-
const nameEndsAt = arg.indexOf("@", 1);
|
|
13414
|
-
const namePart = nameEndsAt > 0 ? arg.slice(0, nameEndsAt) : arg;
|
|
13415
|
-
if (isURL.test(arg)) {
|
|
13416
|
-
spec = arg;
|
|
13417
|
-
} else if (isGit.test(arg)) {
|
|
13418
|
-
spec = `git+ssh://${arg}`;
|
|
13419
|
-
} else if (!namePart.startsWith("@") && (hasSlashes.test(namePart) || isFileType.test(namePart))) {
|
|
13420
|
-
spec = arg;
|
|
13421
|
-
} else if (nameEndsAt > 0) {
|
|
13422
|
-
name = namePart;
|
|
13423
|
-
spec = arg.slice(nameEndsAt + 1) || "*";
|
|
13424
|
-
} else {
|
|
13425
|
-
const valid = validatePackageName(arg);
|
|
13426
|
-
if (valid.validForOldPackages) {
|
|
13427
|
-
name = arg;
|
|
13428
|
-
spec = "*";
|
|
13429
|
-
} else {
|
|
13430
|
-
spec = arg;
|
|
12940
|
+
}
|
|
12941
|
+
const nameEndsAt = arg.indexOf("@", 1);
|
|
12942
|
+
const namePart = nameEndsAt > 0 ? arg.slice(0, nameEndsAt) : arg;
|
|
12943
|
+
if (isURL.test(arg)) {
|
|
12944
|
+
spec = arg;
|
|
12945
|
+
} else if (isGit.test(arg)) {
|
|
12946
|
+
spec = `git+ssh://${arg}`;
|
|
12947
|
+
} else if (!namePart.startsWith("@") && (hasSlashes.test(namePart) || isFileType.test(namePart))) {
|
|
12948
|
+
spec = arg;
|
|
12949
|
+
} else if (nameEndsAt > 0) {
|
|
12950
|
+
name = namePart;
|
|
12951
|
+
spec = arg.slice(nameEndsAt + 1) || "*";
|
|
12952
|
+
} else {
|
|
12953
|
+
const valid = validatePackageName(arg);
|
|
12954
|
+
if (valid.validForOldPackages) {
|
|
12955
|
+
name = arg;
|
|
12956
|
+
spec = "*";
|
|
12957
|
+
} else {
|
|
12958
|
+
spec = arg;
|
|
13431
12959
|
}
|
|
13432
12960
|
}
|
|
13433
12961
|
return resolve(name, spec, where, arg);
|
|
@@ -14016,7 +13544,7 @@ var require_dev_engines = __commonJS({
|
|
|
14016
13544
|
});
|
|
14017
13545
|
|
|
14018
13546
|
// node_modules/.pnpm/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/index.js
|
|
14019
|
-
var
|
|
13547
|
+
var require_lib7 = __commonJS({
|
|
14020
13548
|
"node_modules/.pnpm/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/index.js"(exports2, module2) {
|
|
14021
13549
|
var semver = require_semver2();
|
|
14022
13550
|
var currentEnv = require_current_env();
|
|
@@ -14102,7 +13630,7 @@ var require_lib8 = __commonJS({
|
|
|
14102
13630
|
});
|
|
14103
13631
|
|
|
14104
13632
|
// node_modules/.pnpm/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js
|
|
14105
|
-
var
|
|
13633
|
+
var require_lib8 = __commonJS({
|
|
14106
13634
|
"node_modules/.pnpm/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports2, module2) {
|
|
14107
13635
|
var { join, basename } = require("path");
|
|
14108
13636
|
var normalize = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg), "normalize");
|
|
@@ -14152,13 +13680,13 @@ var require_lib9 = __commonJS({
|
|
|
14152
13680
|
});
|
|
14153
13681
|
|
|
14154
13682
|
// node_modules/.pnpm/npm-pick-manifest@10.0.0/node_modules/npm-pick-manifest/lib/index.js
|
|
14155
|
-
var
|
|
13683
|
+
var require_lib9 = __commonJS({
|
|
14156
13684
|
"node_modules/.pnpm/npm-pick-manifest@10.0.0/node_modules/npm-pick-manifest/lib/index.js"(exports2, module2) {
|
|
14157
13685
|
"use strict";
|
|
14158
13686
|
var npa = require_npa();
|
|
14159
13687
|
var semver = require_semver2();
|
|
14160
|
-
var { checkEngine } =
|
|
14161
|
-
var normalizeBin =
|
|
13688
|
+
var { checkEngine } = require_lib7();
|
|
13689
|
+
var normalizeBin = require_lib8();
|
|
14162
13690
|
var engineOk = /* @__PURE__ */ __name((manifest, npmVersion, nodeVersion) => {
|
|
14163
13691
|
try {
|
|
14164
13692
|
checkEngine(manifest, npmVersion, nodeVersion);
|
|
@@ -14322,7 +13850,7 @@ var require_clone = __commonJS({
|
|
|
14322
13850
|
var getRevs = require_revs();
|
|
14323
13851
|
var spawn = require_spawn();
|
|
14324
13852
|
var { isWindows } = require_utils();
|
|
14325
|
-
var pickManifest =
|
|
13853
|
+
var pickManifest = require_lib9();
|
|
14326
13854
|
var fs = require("fs/promises");
|
|
14327
13855
|
module2.exports = (repo, ref = "HEAD", target = null, opts = {}) => getRevs(repo, opts).then((revs) => clone(
|
|
14328
13856
|
repo,
|
|
@@ -14468,7 +13996,7 @@ var require_is_clean = __commonJS({
|
|
|
14468
13996
|
});
|
|
14469
13997
|
|
|
14470
13998
|
// node_modules/.pnpm/@npmcli+git@6.0.3/node_modules/@npmcli/git/lib/index.js
|
|
14471
|
-
var
|
|
13999
|
+
var require_lib10 = __commonJS({
|
|
14472
14000
|
"node_modules/.pnpm/@npmcli+git@6.0.3/node_modules/@npmcli/git/lib/index.js"(exports2, module2) {
|
|
14473
14001
|
module2.exports = {
|
|
14474
14002
|
clone: require_clone(),
|
|
@@ -14502,7 +14030,7 @@ var require_normalize = __commonJS({
|
|
|
14502
14030
|
var _glob;
|
|
14503
14031
|
function lazyLoadGlob() {
|
|
14504
14032
|
if (!_glob) {
|
|
14505
|
-
_glob =
|
|
14033
|
+
_glob = require_commonjs5().glob;
|
|
14506
14034
|
}
|
|
14507
14035
|
return _glob;
|
|
14508
14036
|
}
|
|
@@ -14891,7 +14419,7 @@ var require_normalize = __commonJS({
|
|
|
14891
14419
|
normalizePackageBin(data, changes);
|
|
14892
14420
|
}
|
|
14893
14421
|
if (steps.includes("gitHead") && !data.gitHead) {
|
|
14894
|
-
const git =
|
|
14422
|
+
const git = require_lib10();
|
|
14895
14423
|
const gitRoot = await git.find({ cwd: pkg.path, root });
|
|
14896
14424
|
let head;
|
|
14897
14425
|
if (gitRoot) {
|
|
@@ -15116,7 +14644,7 @@ var require_sort2 = __commonJS({
|
|
|
15116
14644
|
});
|
|
15117
14645
|
|
|
15118
14646
|
// node_modules/.pnpm/@npmcli+package-json@7.0.0/node_modules/@npmcli/package-json/lib/index.js
|
|
15119
|
-
var
|
|
14647
|
+
var require_lib11 = __commonJS({
|
|
15120
14648
|
"node_modules/.pnpm/@npmcli+package-json@7.0.0/node_modules/@npmcli/package-json/lib/index.js"(exports2, module2) {
|
|
15121
14649
|
var { readFile, writeFile } = require("node:fs/promises");
|
|
15122
14650
|
var { resolve } = require("node:path");
|
|
@@ -15372,4 +14900,4 @@ var require_lib12 = __commonJS({
|
|
|
15372
14900
|
});
|
|
15373
14901
|
|
|
15374
14902
|
// src/external/@npmcli/package-json.js
|
|
15375
|
-
module.exports =
|
|
14903
|
+
module.exports = require_lib11();
|