pnpm 7.2.0 → 7.2.1
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/bin/pnpm.cjs +2 -2
- package/dist/node_modules/.modules.yaml +2 -2
- package/dist/pnpm.cjs +764 -423
- package/dist/pnpx.cjs +763 -422
- package/package.json +19 -19
package/dist/pnpm.cjs
CHANGED
|
@@ -3182,7 +3182,7 @@ var require_lib4 = __commonJS({
|
|
|
3182
3182
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3183
3183
|
var defaultManifest = {
|
|
3184
3184
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3185
|
-
version: "7.2.
|
|
3185
|
+
version: "7.2.1" != null && true ? "7.2.1" : "0.0.0"
|
|
3186
3186
|
};
|
|
3187
3187
|
var pkgJson;
|
|
3188
3188
|
if (require.main == null) {
|
|
@@ -3326,8 +3326,8 @@ var require_ansi_colors = __commonJS({
|
|
|
3326
3326
|
style2.wrap = (input, newline) => {
|
|
3327
3327
|
if (input.includes(close))
|
|
3328
3328
|
input = input.replace(regex, close + open);
|
|
3329
|
-
let
|
|
3330
|
-
return newline ?
|
|
3329
|
+
let output = open + input + close;
|
|
3330
|
+
return newline ? output.replace(/\r*\n/g, `${close}$&${open}`) : output;
|
|
3331
3331
|
};
|
|
3332
3332
|
return style2;
|
|
3333
3333
|
};
|
|
@@ -3554,9 +3554,9 @@ var require_utils = __commonJS({
|
|
|
3554
3554
|
let spaces = (newline + indent).match(/[^\S\n]/g) || [];
|
|
3555
3555
|
width -= spaces.length;
|
|
3556
3556
|
let source = `.{1,${width}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`;
|
|
3557
|
-
let
|
|
3557
|
+
let output = str.trim();
|
|
3558
3558
|
let regex = new RegExp(source, "g");
|
|
3559
|
-
let lines =
|
|
3559
|
+
let lines = output.match(regex) || [];
|
|
3560
3560
|
lines = lines.map((line) => line.replace(/\n$/, ""));
|
|
3561
3561
|
if (options.padEnd)
|
|
3562
3562
|
lines = lines.map((line) => line.padEnd(width, " "));
|
|
@@ -5548,15 +5548,15 @@ var require_select = __commonJS({
|
|
|
5548
5548
|
prompt = [prefix, message2, separator, ""].join(" ");
|
|
5549
5549
|
this.state.prompt = prompt;
|
|
5550
5550
|
}
|
|
5551
|
-
let
|
|
5551
|
+
let output = await this.format();
|
|
5552
5552
|
let help = await this.error() || await this.hint();
|
|
5553
5553
|
let body = await this.renderChoices();
|
|
5554
5554
|
let footer = await this.footer();
|
|
5555
|
-
if (
|
|
5556
|
-
prompt +=
|
|
5555
|
+
if (output)
|
|
5556
|
+
prompt += output;
|
|
5557
5557
|
if (help && !prompt.includes(help))
|
|
5558
5558
|
prompt += " " + help;
|
|
5559
|
-
if (submitted && !
|
|
5559
|
+
if (submitted && !output && !body.trim() && this.multiple && this.emptyError != null) {
|
|
5560
5560
|
prompt += this.styles.danger(this.emptyError);
|
|
5561
5561
|
}
|
|
5562
5562
|
this.clear(size);
|
|
@@ -5683,7 +5683,7 @@ var require_placeholder = __commonJS({
|
|
|
5683
5683
|
let style = color || prompt.styles.placeholder;
|
|
5684
5684
|
let inverse = utils.inverse(prompt.styles.primary);
|
|
5685
5685
|
let blinker = (str) => inverse(prompt.styles.black(str));
|
|
5686
|
-
let
|
|
5686
|
+
let output = input;
|
|
5687
5687
|
let char = " ";
|
|
5688
5688
|
let reverse = blinker(char);
|
|
5689
5689
|
if (prompt.blink && prompt.blink.off === true) {
|
|
@@ -5701,17 +5701,17 @@ var require_placeholder = __commonJS({
|
|
|
5701
5701
|
let placeholder = initial && initial.startsWith(input) && initial !== input;
|
|
5702
5702
|
let cursor = placeholder ? blinker(initial[input.length]) : reverse;
|
|
5703
5703
|
if (pos !== input.length && showCursor === true) {
|
|
5704
|
-
|
|
5704
|
+
output = input.slice(0, pos) + blinker(input[pos]) + input.slice(pos + 1);
|
|
5705
5705
|
cursor = "";
|
|
5706
5706
|
}
|
|
5707
5707
|
if (showCursor === false) {
|
|
5708
5708
|
cursor = "";
|
|
5709
5709
|
}
|
|
5710
5710
|
if (placeholder) {
|
|
5711
|
-
let raw = prompt.styles.unstyle(
|
|
5712
|
-
return
|
|
5711
|
+
let raw = prompt.styles.unstyle(output + cursor);
|
|
5712
|
+
return output + cursor + style(initial.slice(raw.length));
|
|
5713
5713
|
}
|
|
5714
|
-
return
|
|
5714
|
+
return output + cursor;
|
|
5715
5715
|
};
|
|
5716
5716
|
}
|
|
5717
5717
|
});
|
|
@@ -6020,12 +6020,12 @@ var require_boolean = __commonJS({
|
|
|
6020
6020
|
this.state.prompt = promptLine;
|
|
6021
6021
|
let header = await this.header();
|
|
6022
6022
|
let value = this.value = this.cast(input);
|
|
6023
|
-
let
|
|
6023
|
+
let output = await this.format(value);
|
|
6024
6024
|
let help = await this.error() || await this.hint();
|
|
6025
6025
|
let footer = await this.footer();
|
|
6026
6026
|
if (help && !promptLine.includes(help))
|
|
6027
|
-
|
|
6028
|
-
promptLine += " " +
|
|
6027
|
+
output += " " + help;
|
|
6028
|
+
promptLine += " " + output;
|
|
6029
6029
|
this.clear(size);
|
|
6030
6030
|
this.write([header, promptLine, footer].filter(Boolean).join("\n"));
|
|
6031
6031
|
this.restore();
|
|
@@ -6325,12 +6325,12 @@ var require_string = __commonJS({
|
|
|
6325
6325
|
let prompt = [prefix, message2, separator].filter(Boolean).join(" ");
|
|
6326
6326
|
this.state.prompt = prompt;
|
|
6327
6327
|
let header = await this.header();
|
|
6328
|
-
let
|
|
6328
|
+
let output = await this.format();
|
|
6329
6329
|
let help = await this.error() || await this.hint();
|
|
6330
6330
|
let footer = await this.footer();
|
|
6331
|
-
if (help && !
|
|
6332
|
-
|
|
6333
|
-
prompt += " " +
|
|
6331
|
+
if (help && !output.includes(help))
|
|
6332
|
+
output += " " + help;
|
|
6333
|
+
prompt += " " + output;
|
|
6334
6334
|
this.clear(size);
|
|
6335
6335
|
this.write([header, prompt, footer].filter(Boolean).join("\n"));
|
|
6336
6336
|
this.restore();
|
|
@@ -6781,17 +6781,17 @@ var require_scale = __commonJS({
|
|
|
6781
6781
|
this.state.prompt = prompt;
|
|
6782
6782
|
}
|
|
6783
6783
|
let header = await this.header();
|
|
6784
|
-
let
|
|
6784
|
+
let output = await this.format();
|
|
6785
6785
|
let key = await this.renderScaleKey();
|
|
6786
6786
|
let help = await this.error() || await this.hint();
|
|
6787
6787
|
let body = await this.renderChoices();
|
|
6788
6788
|
let footer = await this.footer();
|
|
6789
6789
|
let err = this.emptyError;
|
|
6790
|
-
if (
|
|
6791
|
-
prompt +=
|
|
6790
|
+
if (output)
|
|
6791
|
+
prompt += output;
|
|
6792
6792
|
if (help && !prompt.includes(help))
|
|
6793
6793
|
prompt += " " + help;
|
|
6794
|
-
if (submitted && !
|
|
6794
|
+
if (submitted && !output && !body.trim() && this.multiple && err != null) {
|
|
6795
6795
|
prompt += this.styles.danger(err);
|
|
6796
6796
|
}
|
|
6797
6797
|
this.clear(size);
|
|
@@ -7176,7 +7176,7 @@ var require_snippet = __commonJS({
|
|
|
7176
7176
|
if (typeof this.interpolate !== "function")
|
|
7177
7177
|
await this.initialize();
|
|
7178
7178
|
await this.interpolate(this.state, true);
|
|
7179
|
-
let { invalid, missing, output
|
|
7179
|
+
let { invalid, missing, output, values: values2 } = this.state;
|
|
7180
7180
|
if (invalid.size) {
|
|
7181
7181
|
let err = "";
|
|
7182
7182
|
for (let [key, value] of invalid)
|
|
@@ -7189,7 +7189,7 @@ var require_snippet = __commonJS({
|
|
|
7189
7189
|
this.state.error = "Required: " + [...missing.keys()].join(", ");
|
|
7190
7190
|
return super.submit();
|
|
7191
7191
|
}
|
|
7192
|
-
let lines = colors.unstyle(
|
|
7192
|
+
let lines = colors.unstyle(output).split("\n");
|
|
7193
7193
|
let result2 = lines.map((v) => v.slice(1)).join("\n");
|
|
7194
7194
|
this.value = { values: values2, result: result2 };
|
|
7195
7195
|
return super.submit();
|
|
@@ -7348,15 +7348,15 @@ var require_survey = __commonJS({
|
|
|
7348
7348
|
let prompt = [prefix, message2, separator].filter(Boolean).join(" ");
|
|
7349
7349
|
this.state.prompt = prompt;
|
|
7350
7350
|
let header = await this.header();
|
|
7351
|
-
let
|
|
7351
|
+
let output = await this.format();
|
|
7352
7352
|
let help = await this.error() || await this.hint();
|
|
7353
7353
|
let body = await this.renderChoices();
|
|
7354
7354
|
let footer = await this.footer();
|
|
7355
|
-
if (
|
|
7356
|
-
prompt += " " +
|
|
7355
|
+
if (output || !help)
|
|
7356
|
+
prompt += " " + output;
|
|
7357
7357
|
if (help && !prompt.includes(help))
|
|
7358
7358
|
prompt += " " + help;
|
|
7359
|
-
if (submitted && !
|
|
7359
|
+
if (submitted && !output && !body && this.multiple && this.type !== "form") {
|
|
7360
7360
|
prompt += this.styles.danger(this.emptyError);
|
|
7361
7361
|
}
|
|
7362
7362
|
this.clear(size);
|
|
@@ -7476,10 +7476,10 @@ var require_toggle = __commonJS({
|
|
|
7476
7476
|
let prefix = await this.prefix();
|
|
7477
7477
|
let separator = await this.separator();
|
|
7478
7478
|
let message2 = await this.message();
|
|
7479
|
-
let
|
|
7479
|
+
let output = await this.format();
|
|
7480
7480
|
let help = await this.error() || await this.hint();
|
|
7481
7481
|
let footer = await this.footer();
|
|
7482
|
-
let prompt = [prefix, message2, separator,
|
|
7482
|
+
let prompt = [prefix, message2, separator, output].join(" ");
|
|
7483
7483
|
this.state.prompt = prompt;
|
|
7484
7484
|
if (help && !prompt.includes(help))
|
|
7485
7485
|
prompt += " " + help;
|
|
@@ -9259,7 +9259,7 @@ var require_bole = __commonJS({
|
|
|
9259
9259
|
}
|
|
9260
9260
|
return levels.reduce(makeLogger, boleLogger);
|
|
9261
9261
|
}
|
|
9262
|
-
bole.output = function
|
|
9262
|
+
bole.output = function output(opt) {
|
|
9263
9263
|
let b = false;
|
|
9264
9264
|
if (Array.isArray(opt)) {
|
|
9265
9265
|
opt.forEach(bole.output);
|
|
@@ -12832,8 +12832,8 @@ var require_ca_file = __commonJS({
|
|
|
12832
12832
|
try {
|
|
12833
12833
|
const contents = graceful_fs_1.default.readFileSync(filePath, "utf8");
|
|
12834
12834
|
const delim = "-----END CERTIFICATE-----";
|
|
12835
|
-
const
|
|
12836
|
-
return
|
|
12835
|
+
const output = contents.split(delim).filter((ca) => Boolean(ca.trim())).map((ca) => `${ca.trimLeft()}${delim}`);
|
|
12836
|
+
return output;
|
|
12837
12837
|
} catch (err) {
|
|
12838
12838
|
if (err.code === "ENOENT")
|
|
12839
12839
|
return void 0;
|
|
@@ -13383,9 +13383,9 @@ var require_config_chain = __commonJS({
|
|
|
13383
13383
|
}
|
|
13384
13384
|
});
|
|
13385
13385
|
|
|
13386
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13386
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
13387
13387
|
var require_envKeyToSetting = __commonJS({
|
|
13388
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13388
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports2, module2) {
|
|
13389
13389
|
module2.exports = function(x) {
|
|
13390
13390
|
const colonIndex = x.indexOf(":");
|
|
13391
13391
|
if (colonIndex === -1) {
|
|
@@ -13408,9 +13408,9 @@ var require_envKeyToSetting = __commonJS({
|
|
|
13408
13408
|
}
|
|
13409
13409
|
});
|
|
13410
13410
|
|
|
13411
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13411
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/util.js
|
|
13412
13412
|
var require_util = __commonJS({
|
|
13413
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13413
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/util.js"(exports2) {
|
|
13414
13414
|
"use strict";
|
|
13415
13415
|
var fs2 = require("fs");
|
|
13416
13416
|
var path2 = require("path");
|
|
@@ -13520,9 +13520,9 @@ var require_util = __commonJS({
|
|
|
13520
13520
|
}
|
|
13521
13521
|
});
|
|
13522
13522
|
|
|
13523
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13523
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/types.js
|
|
13524
13524
|
var require_types2 = __commonJS({
|
|
13525
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13525
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/types.js"(exports2) {
|
|
13526
13526
|
"use strict";
|
|
13527
13527
|
var path2 = require("path");
|
|
13528
13528
|
var Stream = require("stream").Stream;
|
|
@@ -13655,9 +13655,9 @@ var require_types2 = __commonJS({
|
|
|
13655
13655
|
}
|
|
13656
13656
|
});
|
|
13657
13657
|
|
|
13658
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13658
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
13659
13659
|
var require_conf = __commonJS({
|
|
13660
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13660
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/conf.js"(exports2, module2) {
|
|
13661
13661
|
"use strict";
|
|
13662
13662
|
var { readCAFileSync } = require_dist();
|
|
13663
13663
|
var fs2 = require("fs");
|
|
@@ -13756,7 +13756,7 @@ var require_conf = __commonJS({
|
|
|
13756
13756
|
}
|
|
13757
13757
|
const ca = readCAFileSync(file);
|
|
13758
13758
|
if (ca) {
|
|
13759
|
-
this.set("ca",
|
|
13759
|
+
this.set("ca", ca);
|
|
13760
13760
|
}
|
|
13761
13761
|
}
|
|
13762
13762
|
loadUser() {
|
|
@@ -13784,9 +13784,9 @@ var require_conf = __commonJS({
|
|
|
13784
13784
|
}
|
|
13785
13785
|
});
|
|
13786
13786
|
|
|
13787
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13787
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
13788
13788
|
var require_defaults = __commonJS({
|
|
13789
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13789
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports2) {
|
|
13790
13790
|
"use strict";
|
|
13791
13791
|
var os = require("os");
|
|
13792
13792
|
var path2 = require("path");
|
|
@@ -13951,9 +13951,9 @@ var require_defaults = __commonJS({
|
|
|
13951
13951
|
}
|
|
13952
13952
|
});
|
|
13953
13953
|
|
|
13954
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13954
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/index.js
|
|
13955
13955
|
var require_npm_conf = __commonJS({
|
|
13956
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.
|
|
13956
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@1.0.4/node_modules/@pnpm/npm-conf/index.js"(exports2, module2) {
|
|
13957
13957
|
"use strict";
|
|
13958
13958
|
var path2 = require("path");
|
|
13959
13959
|
var Conf = require_conf();
|
|
@@ -35771,17 +35771,17 @@ var require_path = __commonJS({
|
|
|
35771
35771
|
return path2.normalize(path2.concat(cwd, x));
|
|
35772
35772
|
},
|
|
35773
35773
|
normalize(x) {
|
|
35774
|
-
let
|
|
35774
|
+
let output = [], skip = 0;
|
|
35775
35775
|
x.split("/").reverse().filter((x2) => x2 !== ".").forEach((x2) => {
|
|
35776
35776
|
if (x2 === "..") {
|
|
35777
35777
|
skip++;
|
|
35778
35778
|
} else if (skip === 0) {
|
|
35779
|
-
|
|
35779
|
+
output.push(x2);
|
|
35780
35780
|
} else {
|
|
35781
35781
|
skip--;
|
|
35782
35782
|
}
|
|
35783
35783
|
});
|
|
35784
|
-
const result2 =
|
|
35784
|
+
const result2 = output.reverse().join("/");
|
|
35785
35785
|
return (isBrowser && result2[0] === "/" ? result2[1] === "/" ? window.location.protocol : window.location.origin : "") + result2;
|
|
35786
35786
|
},
|
|
35787
35787
|
isData: (x) => x.indexOf("data:") === 0,
|
|
@@ -36377,13 +36377,13 @@ var require_reportError = __commonJS({
|
|
|
36377
36377
|
var colorPath = chalk_1.default.gray;
|
|
36378
36378
|
function reportError(logObj, config) {
|
|
36379
36379
|
const errorInfo = getErrorInfo(logObj, config);
|
|
36380
|
-
let
|
|
36380
|
+
let output = formatErrorSummary(errorInfo.title, logObj["err"]["code"]);
|
|
36381
36381
|
if (errorInfo.body) {
|
|
36382
|
-
|
|
36382
|
+
output += `
|
|
36383
36383
|
|
|
36384
36384
|
${errorInfo.body}`;
|
|
36385
36385
|
}
|
|
36386
|
-
return
|
|
36386
|
+
return output;
|
|
36387
36387
|
}
|
|
36388
36388
|
exports2.default = reportError;
|
|
36389
36389
|
function getErrorInfo(logObj, config) {
|
|
@@ -36444,19 +36444,19 @@ ${errorInfo.body}`;
|
|
|
36444
36444
|
}
|
|
36445
36445
|
function formatNoMatchingVersion(err, msg) {
|
|
36446
36446
|
const meta = msg["packageMeta"];
|
|
36447
|
-
let
|
|
36447
|
+
let output = `The latest release of ${meta.name} is "${meta["dist-tags"].latest}".${constants_1.EOL}`;
|
|
36448
36448
|
if (!(0, equals_1.default)(Object.keys(meta["dist-tags"]), ["latest"])) {
|
|
36449
|
-
|
|
36449
|
+
output += constants_1.EOL + "Other releases are:" + constants_1.EOL;
|
|
36450
36450
|
for (const tag in meta["dist-tags"]) {
|
|
36451
36451
|
if (tag !== "latest") {
|
|
36452
|
-
|
|
36452
|
+
output += ` * ${tag}: ${meta["dist-tags"][tag]}${constants_1.EOL}`;
|
|
36453
36453
|
}
|
|
36454
36454
|
}
|
|
36455
36455
|
}
|
|
36456
|
-
|
|
36456
|
+
output += `${constants_1.EOL}If you need the full list of all ${Object.keys(meta.versions).length} published versions run "$ pnpm view ${meta.name} versions".`;
|
|
36457
36457
|
return {
|
|
36458
36458
|
title: err.message,
|
|
36459
|
-
body:
|
|
36459
|
+
body: output
|
|
36460
36460
|
};
|
|
36461
36461
|
}
|
|
36462
36462
|
function reportUnexpectedStore(err, msg) {
|
|
@@ -36485,43 +36485,43 @@ You may change the virtual store location by changing the value of the virtual-s
|
|
|
36485
36485
|
};
|
|
36486
36486
|
}
|
|
36487
36487
|
function reportStoreBreakingChange(msg) {
|
|
36488
|
-
let
|
|
36488
|
+
let output = `Store path: ${colorPath(msg.storePath)}
|
|
36489
36489
|
|
|
36490
36490
|
Run "pnpm install" to recreate node_modules.`;
|
|
36491
36491
|
if (msg.additionalInformation) {
|
|
36492
|
-
|
|
36492
|
+
output = `${output}${constants_1.EOL}${constants_1.EOL}${msg.additionalInformation}`;
|
|
36493
36493
|
}
|
|
36494
|
-
|
|
36494
|
+
output += formatRelatedSources(msg);
|
|
36495
36495
|
return {
|
|
36496
36496
|
title: "The store used for the current node_modules is incompatible with the current version of pnpm",
|
|
36497
|
-
body:
|
|
36497
|
+
body: output
|
|
36498
36498
|
};
|
|
36499
36499
|
}
|
|
36500
36500
|
function reportModulesBreakingChange(msg) {
|
|
36501
|
-
let
|
|
36501
|
+
let output = `node_modules path: ${colorPath(msg.modulesPath)}
|
|
36502
36502
|
|
|
36503
36503
|
Run ${highlight("pnpm install")} to recreate node_modules.`;
|
|
36504
36504
|
if (msg.additionalInformation) {
|
|
36505
|
-
|
|
36505
|
+
output = `${output}${constants_1.EOL}${constants_1.EOL}${msg.additionalInformation}`;
|
|
36506
36506
|
}
|
|
36507
|
-
|
|
36507
|
+
output += formatRelatedSources(msg);
|
|
36508
36508
|
return {
|
|
36509
36509
|
title: "The current version of pnpm is not compatible with the available node_modules structure",
|
|
36510
|
-
body:
|
|
36510
|
+
body: output
|
|
36511
36511
|
};
|
|
36512
36512
|
}
|
|
36513
36513
|
function formatRelatedSources(msg) {
|
|
36514
|
-
let
|
|
36514
|
+
let output = "";
|
|
36515
36515
|
if (!msg.relatedIssue && !msg.relatedPR)
|
|
36516
|
-
return
|
|
36517
|
-
|
|
36516
|
+
return output;
|
|
36517
|
+
output += constants_1.EOL;
|
|
36518
36518
|
if (msg.relatedIssue) {
|
|
36519
|
-
|
|
36519
|
+
output += constants_1.EOL + `Related issue: ${colorPath(`https://github.com/pnpm/pnpm/issues/${msg.relatedIssue}`)}`;
|
|
36520
36520
|
}
|
|
36521
36521
|
if (msg.relatedPR) {
|
|
36522
|
-
|
|
36522
|
+
output += constants_1.EOL + `Related PR: ${colorPath(`https://github.com/pnpm/pnpm/pull/${msg.relatedPR}`)}`;
|
|
36523
36523
|
}
|
|
36524
|
-
return
|
|
36524
|
+
return output;
|
|
36525
36525
|
}
|
|
36526
36526
|
function formatGenericError(errorMessage, stack2) {
|
|
36527
36527
|
if (stack2) {
|
|
@@ -36559,12 +36559,12 @@ You can run ${highlight("pnpm install --force")} to refetch the modified package
|
|
|
36559
36559
|
};
|
|
36560
36560
|
}
|
|
36561
36561
|
function formatRecursiveCommandSummary(msg) {
|
|
36562
|
-
const
|
|
36562
|
+
const output = constants_1.EOL + `Summary: ${chalk_1.default.red(`${msg.fails.length} fails`)}, ${msg.passes} passes` + constants_1.EOL + constants_1.EOL + msg.fails.map((fail) => {
|
|
36563
36563
|
return fail.prefix + ":" + constants_1.EOL + formatErrorSummary(fail.message);
|
|
36564
36564
|
}).join(constants_1.EOL + constants_1.EOL);
|
|
36565
36565
|
return {
|
|
36566
36566
|
title: "",
|
|
36567
|
-
body:
|
|
36567
|
+
body: output
|
|
36568
36568
|
};
|
|
36569
36569
|
}
|
|
36570
36570
|
function reportBadTarballSize(err, msg) {
|
|
@@ -36596,9 +36596,9 @@ For instance, \`pnpm install --fetch-retries 5 --network-concurrency 1\``
|
|
|
36596
36596
|
return { title: "Command failed." };
|
|
36597
36597
|
}
|
|
36598
36598
|
function reportEngineError(msg) {
|
|
36599
|
-
let
|
|
36599
|
+
let output = "";
|
|
36600
36600
|
if (msg.wanted.pnpm) {
|
|
36601
|
-
|
|
36601
|
+
output += `Your pnpm version is incompatible with "${msg.packageId}".
|
|
36602
36602
|
|
|
36603
36603
|
Expected version: ${msg.wanted.pnpm}
|
|
36604
36604
|
Got: ${msg.current.pnpm}
|
|
@@ -36610,9 +36610,9 @@ To install the latest version of pnpm, run "pnpm i -g pnpm".
|
|
|
36610
36610
|
To check your pnpm version, run "pnpm -v".`;
|
|
36611
36611
|
}
|
|
36612
36612
|
if (msg.wanted.node) {
|
|
36613
|
-
if (
|
|
36614
|
-
|
|
36615
|
-
|
|
36613
|
+
if (output)
|
|
36614
|
+
output += constants_1.EOL + constants_1.EOL;
|
|
36615
|
+
output += `Your Node version is incompatible with "${msg.packageId}".
|
|
36616
36616
|
|
|
36617
36617
|
Expected version: ${msg.wanted.node}
|
|
36618
36618
|
Got: ${msg.current.node}
|
|
@@ -36622,7 +36622,7 @@ To fix this issue, install the required Node version.`;
|
|
|
36622
36622
|
}
|
|
36623
36623
|
return {
|
|
36624
36624
|
title: "Unsupported environment (bad pnpm and/or Node.js version)",
|
|
36625
|
-
body:
|
|
36625
|
+
body: output
|
|
36626
36626
|
};
|
|
36627
36627
|
}
|
|
36628
36628
|
function reportAuthError(err, msg, config) {
|
|
@@ -36636,18 +36636,18 @@ To fix this issue, install the required Node version.`;
|
|
|
36636
36636
|
foundSettings.push(`${key}=${hideSecureInfo(key, value)}`);
|
|
36637
36637
|
}
|
|
36638
36638
|
}
|
|
36639
|
-
let
|
|
36639
|
+
let output = msg.hint ? `${msg.hint}${constants_1.EOL}${constants_1.EOL}` : "";
|
|
36640
36640
|
if (foundSettings.length === 0) {
|
|
36641
|
-
|
|
36641
|
+
output += `No authorization settings were found in the configs.
|
|
36642
36642
|
Try to log in to the registry by running "pnpm login"
|
|
36643
36643
|
or add the auth tokens manually to the ~/.npmrc file.`;
|
|
36644
36644
|
} else {
|
|
36645
|
-
|
|
36645
|
+
output += `These authorization settings were found:
|
|
36646
36646
|
${foundSettings.join("\n")}`;
|
|
36647
36647
|
}
|
|
36648
36648
|
return {
|
|
36649
36649
|
title: err.message,
|
|
36650
|
-
body:
|
|
36650
|
+
body: output
|
|
36651
36651
|
};
|
|
36652
36652
|
}
|
|
36653
36653
|
function hideSecureInfo(key, value) {
|
|
@@ -39731,7 +39731,7 @@ var require_objectAssign = __commonJS({
|
|
|
39731
39731
|
if (target == null) {
|
|
39732
39732
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
39733
39733
|
}
|
|
39734
|
-
var
|
|
39734
|
+
var output = Object(target);
|
|
39735
39735
|
var idx = 1;
|
|
39736
39736
|
var length = arguments.length;
|
|
39737
39737
|
while (idx < length) {
|
|
@@ -39739,13 +39739,13 @@ var require_objectAssign = __commonJS({
|
|
|
39739
39739
|
if (source != null) {
|
|
39740
39740
|
for (var nextKey in source) {
|
|
39741
39741
|
if (_has(nextKey, source)) {
|
|
39742
|
-
|
|
39742
|
+
output[nextKey] = source[nextKey];
|
|
39743
39743
|
}
|
|
39744
39744
|
}
|
|
39745
39745
|
}
|
|
39746
39746
|
idx += 1;
|
|
39747
39747
|
}
|
|
39748
|
-
return
|
|
39748
|
+
return output;
|
|
39749
39749
|
}
|
|
39750
39750
|
module2.exports = typeof Object.assign === "function" ? Object.assign : _objectAssign;
|
|
39751
39751
|
}
|
|
@@ -42952,13 +42952,13 @@ var require_merge_stream = __commonJS({
|
|
|
42952
42952
|
var { PassThrough } = require("stream");
|
|
42953
42953
|
module2.exports = function() {
|
|
42954
42954
|
var sources = [];
|
|
42955
|
-
var
|
|
42956
|
-
|
|
42957
|
-
|
|
42958
|
-
|
|
42959
|
-
|
|
42955
|
+
var output = new PassThrough({ objectMode: true });
|
|
42956
|
+
output.setMaxListeners(0);
|
|
42957
|
+
output.add = add;
|
|
42958
|
+
output.isEmpty = isEmpty2;
|
|
42959
|
+
output.on("unpipe", remove);
|
|
42960
42960
|
Array.prototype.slice.call(arguments).forEach(add);
|
|
42961
|
-
return
|
|
42961
|
+
return output;
|
|
42962
42962
|
function add(source) {
|
|
42963
42963
|
if (Array.isArray(source)) {
|
|
42964
42964
|
source.forEach(add);
|
|
@@ -42966,8 +42966,8 @@ var require_merge_stream = __commonJS({
|
|
|
42966
42966
|
}
|
|
42967
42967
|
sources.push(source);
|
|
42968
42968
|
source.once("end", remove.bind(null, source));
|
|
42969
|
-
source.once("error",
|
|
42970
|
-
source.pipe(
|
|
42969
|
+
source.once("error", output.emit.bind(output, "error"));
|
|
42970
|
+
source.pipe(output, { end: false });
|
|
42971
42971
|
return this;
|
|
42972
42972
|
}
|
|
42973
42973
|
function isEmpty2() {
|
|
@@ -42977,8 +42977,8 @@ var require_merge_stream = __commonJS({
|
|
|
42977
42977
|
sources = sources.filter(function(it) {
|
|
42978
42978
|
return it !== source;
|
|
42979
42979
|
});
|
|
42980
|
-
if (!sources.length &&
|
|
42981
|
-
|
|
42980
|
+
if (!sources.length && output.readable) {
|
|
42981
|
+
output.end();
|
|
42982
42982
|
}
|
|
42983
42983
|
}
|
|
42984
42984
|
};
|
|
@@ -44381,7 +44381,7 @@ var require_stringify3 = __commonJS({
|
|
|
44381
44381
|
let stringify = (node, parent = {}) => {
|
|
44382
44382
|
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
44383
44383
|
let invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
44384
|
-
let
|
|
44384
|
+
let output = "";
|
|
44385
44385
|
if (node.value) {
|
|
44386
44386
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
|
44387
44387
|
return "\\" + node.value;
|
|
@@ -44393,10 +44393,10 @@ var require_stringify3 = __commonJS({
|
|
|
44393
44393
|
}
|
|
44394
44394
|
if (node.nodes) {
|
|
44395
44395
|
for (let child of node.nodes) {
|
|
44396
|
-
|
|
44396
|
+
output += stringify(child);
|
|
44397
44397
|
}
|
|
44398
44398
|
}
|
|
44399
|
-
return
|
|
44399
|
+
return output;
|
|
44400
44400
|
};
|
|
44401
44401
|
return stringify(ast);
|
|
44402
44402
|
};
|
|
@@ -44849,7 +44849,7 @@ var require_compile = __commonJS({
|
|
|
44849
44849
|
let invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
44850
44850
|
let invalid = invalidBlock === true || invalidNode === true;
|
|
44851
44851
|
let prefix = options.escapeInvalid === true ? "\\" : "";
|
|
44852
|
-
let
|
|
44852
|
+
let output = "";
|
|
44853
44853
|
if (node.isOpen === true) {
|
|
44854
44854
|
return prefix + node.value;
|
|
44855
44855
|
}
|
|
@@ -44877,10 +44877,10 @@ var require_compile = __commonJS({
|
|
|
44877
44877
|
}
|
|
44878
44878
|
if (node.nodes) {
|
|
44879
44879
|
for (let child of node.nodes) {
|
|
44880
|
-
|
|
44880
|
+
output += walk(child, node);
|
|
44881
44881
|
}
|
|
44882
44882
|
}
|
|
44883
|
-
return
|
|
44883
|
+
return output;
|
|
44884
44884
|
};
|
|
44885
44885
|
return walk(ast);
|
|
44886
44886
|
};
|
|
@@ -45280,23 +45280,23 @@ var require_braces = __commonJS({
|
|
|
45280
45280
|
var expand = require_expand2();
|
|
45281
45281
|
var parse = require_parse4();
|
|
45282
45282
|
var braces = (input, options = {}) => {
|
|
45283
|
-
let
|
|
45283
|
+
let output = [];
|
|
45284
45284
|
if (Array.isArray(input)) {
|
|
45285
45285
|
for (let pattern of input) {
|
|
45286
45286
|
let result2 = braces.create(pattern, options);
|
|
45287
45287
|
if (Array.isArray(result2)) {
|
|
45288
|
-
|
|
45288
|
+
output.push(...result2);
|
|
45289
45289
|
} else {
|
|
45290
|
-
|
|
45290
|
+
output.push(result2);
|
|
45291
45291
|
}
|
|
45292
45292
|
}
|
|
45293
45293
|
} else {
|
|
45294
|
-
|
|
45294
|
+
output = [].concat(braces.create(input, options));
|
|
45295
45295
|
}
|
|
45296
45296
|
if (options && options.expand === true && options.nodupes === true) {
|
|
45297
|
-
|
|
45297
|
+
output = [...new Set(output)];
|
|
45298
45298
|
}
|
|
45299
|
-
return
|
|
45299
|
+
return output;
|
|
45300
45300
|
};
|
|
45301
45301
|
braces.parse = (input, options = {}) => parse(input, options);
|
|
45302
45302
|
braces.stringify = (input, options = {}) => {
|
|
@@ -45521,21 +45521,21 @@ var require_utils4 = __commonJS({
|
|
|
45521
45521
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
45522
45522
|
};
|
|
45523
45523
|
exports2.removePrefix = (input, state = {}) => {
|
|
45524
|
-
let
|
|
45525
|
-
if (
|
|
45526
|
-
|
|
45524
|
+
let output = input;
|
|
45525
|
+
if (output.startsWith("./")) {
|
|
45526
|
+
output = output.slice(2);
|
|
45527
45527
|
state.prefix = "./";
|
|
45528
45528
|
}
|
|
45529
|
-
return
|
|
45529
|
+
return output;
|
|
45530
45530
|
};
|
|
45531
45531
|
exports2.wrapOutput = (input, state = {}, options = {}) => {
|
|
45532
45532
|
const prepend = options.contains ? "" : "^";
|
|
45533
45533
|
const append = options.contains ? "" : "$";
|
|
45534
|
-
let
|
|
45534
|
+
let output = `${prepend}(?:${input})${append}`;
|
|
45535
45535
|
if (state.negated === true) {
|
|
45536
|
-
|
|
45536
|
+
output = `(?:^(?!${output}).*$)`;
|
|
45537
45537
|
}
|
|
45538
|
-
return
|
|
45538
|
+
return output;
|
|
45539
45539
|
};
|
|
45540
45540
|
}
|
|
45541
45541
|
});
|
|
@@ -46019,14 +46019,14 @@ var require_parse5 = __commonJS({
|
|
|
46019
46019
|
token.prev = prev;
|
|
46020
46020
|
token.parens = state.parens;
|
|
46021
46021
|
token.output = state.output;
|
|
46022
|
-
const
|
|
46022
|
+
const output = (opts.capture ? "(" : "") + token.open;
|
|
46023
46023
|
increment("parens");
|
|
46024
46024
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
46025
|
-
push({ type: "paren", extglob: true, value: advance(), output
|
|
46025
|
+
push({ type: "paren", extglob: true, value: advance(), output });
|
|
46026
46026
|
extglobs.push(token);
|
|
46027
46027
|
};
|
|
46028
46028
|
const extglobClose = (token) => {
|
|
46029
|
-
let
|
|
46029
|
+
let output = token.close + (opts.capture ? ")" : "");
|
|
46030
46030
|
let rest;
|
|
46031
46031
|
if (token.type === "negate") {
|
|
46032
46032
|
let extglobStar = star;
|
|
@@ -46034,22 +46034,22 @@ var require_parse5 = __commonJS({
|
|
|
46034
46034
|
extglobStar = globstar(opts);
|
|
46035
46035
|
}
|
|
46036
46036
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) {
|
|
46037
|
-
|
|
46037
|
+
output = token.close = `)$))${extglobStar}`;
|
|
46038
46038
|
}
|
|
46039
46039
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
46040
46040
|
const expression = parse(rest, { ...options, fastpaths: false }).output;
|
|
46041
|
-
|
|
46041
|
+
output = token.close = `)${expression})${extglobStar})`;
|
|
46042
46042
|
}
|
|
46043
46043
|
if (token.prev.type === "bos") {
|
|
46044
46044
|
state.negatedExtglob = true;
|
|
46045
46045
|
}
|
|
46046
46046
|
}
|
|
46047
|
-
push({ type: "paren", extglob: true, value, output
|
|
46047
|
+
push({ type: "paren", extglob: true, value, output });
|
|
46048
46048
|
decrement("parens");
|
|
46049
46049
|
};
|
|
46050
46050
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
46051
46051
|
let backslashes = false;
|
|
46052
|
-
let
|
|
46052
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first2, rest, index) => {
|
|
46053
46053
|
if (first2 === "\\") {
|
|
46054
46054
|
backslashes = true;
|
|
46055
46055
|
return m;
|
|
@@ -46076,18 +46076,18 @@ var require_parse5 = __commonJS({
|
|
|
46076
46076
|
});
|
|
46077
46077
|
if (backslashes === true) {
|
|
46078
46078
|
if (opts.unescape === true) {
|
|
46079
|
-
|
|
46079
|
+
output = output.replace(/\\/g, "");
|
|
46080
46080
|
} else {
|
|
46081
|
-
|
|
46081
|
+
output = output.replace(/\\+/g, (m) => {
|
|
46082
46082
|
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
46083
46083
|
});
|
|
46084
46084
|
}
|
|
46085
46085
|
}
|
|
46086
|
-
if (
|
|
46086
|
+
if (output === input && opts.contains === true) {
|
|
46087
46087
|
state.output = input;
|
|
46088
46088
|
return state;
|
|
46089
46089
|
}
|
|
46090
|
-
state.output = utils.wrapOutput(
|
|
46090
|
+
state.output = utils.wrapOutput(output, state, options);
|
|
46091
46091
|
return state;
|
|
46092
46092
|
}
|
|
46093
46093
|
while (!eos()) {
|
|
@@ -46257,7 +46257,7 @@ var require_parse5 = __commonJS({
|
|
|
46257
46257
|
push({ type: "text", value, output: value });
|
|
46258
46258
|
continue;
|
|
46259
46259
|
}
|
|
46260
|
-
let
|
|
46260
|
+
let output = ")";
|
|
46261
46261
|
if (brace.dots === true) {
|
|
46262
46262
|
const arr = tokens.slice();
|
|
46263
46263
|
const range = [];
|
|
@@ -46270,20 +46270,20 @@ var require_parse5 = __commonJS({
|
|
|
46270
46270
|
range.unshift(arr[i].value);
|
|
46271
46271
|
}
|
|
46272
46272
|
}
|
|
46273
|
-
|
|
46273
|
+
output = expandRange(range, opts);
|
|
46274
46274
|
state.backtrack = true;
|
|
46275
46275
|
}
|
|
46276
46276
|
if (brace.comma !== true && brace.dots !== true) {
|
|
46277
46277
|
const out = state.output.slice(0, brace.outputIndex);
|
|
46278
46278
|
const toks = state.tokens.slice(brace.tokensIndex);
|
|
46279
46279
|
brace.value = brace.output = "\\{";
|
|
46280
|
-
value =
|
|
46280
|
+
value = output = "\\}";
|
|
46281
46281
|
state.output = out;
|
|
46282
46282
|
for (const t of toks) {
|
|
46283
46283
|
state.output += t.output || t.value;
|
|
46284
46284
|
}
|
|
46285
46285
|
}
|
|
46286
|
-
push({ type: "brace", value, output
|
|
46286
|
+
push({ type: "brace", value, output });
|
|
46287
46287
|
decrement("braces");
|
|
46288
46288
|
braces.pop();
|
|
46289
46289
|
continue;
|
|
@@ -46296,13 +46296,13 @@ var require_parse5 = __commonJS({
|
|
|
46296
46296
|
continue;
|
|
46297
46297
|
}
|
|
46298
46298
|
if (value === ",") {
|
|
46299
|
-
let
|
|
46299
|
+
let output = value;
|
|
46300
46300
|
const brace = braces[braces.length - 1];
|
|
46301
46301
|
if (brace && stack2[stack2.length - 1] === "braces") {
|
|
46302
46302
|
brace.comma = true;
|
|
46303
|
-
|
|
46303
|
+
output = "|";
|
|
46304
46304
|
}
|
|
46305
|
-
push({ type: "comma", value, output
|
|
46305
|
+
push({ type: "comma", value, output });
|
|
46306
46306
|
continue;
|
|
46307
46307
|
}
|
|
46308
46308
|
if (value === "/") {
|
|
@@ -46343,14 +46343,14 @@ var require_parse5 = __commonJS({
|
|
|
46343
46343
|
}
|
|
46344
46344
|
if (prev && prev.type === "paren") {
|
|
46345
46345
|
const next = peek2();
|
|
46346
|
-
let
|
|
46346
|
+
let output = value;
|
|
46347
46347
|
if (next === "<" && !utils.supportsLookbehinds()) {
|
|
46348
46348
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
46349
46349
|
}
|
|
46350
46350
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
|
|
46351
|
-
|
|
46351
|
+
output = `\\${value}`;
|
|
46352
46352
|
}
|
|
46353
|
-
push({ type: "text", value, output
|
|
46353
|
+
push({ type: "text", value, output });
|
|
46354
46354
|
continue;
|
|
46355
46355
|
}
|
|
46356
46356
|
if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
|
|
@@ -46628,8 +46628,8 @@ var require_parse5 = __commonJS({
|
|
|
46628
46628
|
}
|
|
46629
46629
|
}
|
|
46630
46630
|
};
|
|
46631
|
-
const
|
|
46632
|
-
let source = create(
|
|
46631
|
+
const output = utils.removePrefix(input, state);
|
|
46632
|
+
let source = create(output);
|
|
46633
46633
|
if (source && opts.strictSlashes !== true) {
|
|
46634
46634
|
source += `${SLASH_LITERAL}?`;
|
|
46635
46635
|
}
|
|
@@ -46677,8 +46677,8 @@ var require_picomatch = __commonJS({
|
|
|
46677
46677
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
46678
46678
|
}
|
|
46679
46679
|
const matcher = (input, returnObject = false) => {
|
|
46680
|
-
const { isMatch, match, output
|
|
46681
|
-
const result2 = { glob, state, regex, posix, input, output
|
|
46680
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
46681
|
+
const result2 = { glob, state, regex, posix, input, output, match, isMatch };
|
|
46682
46682
|
if (typeof opts.onResult === "function") {
|
|
46683
46683
|
opts.onResult(result2);
|
|
46684
46684
|
}
|
|
@@ -46713,19 +46713,19 @@ var require_picomatch = __commonJS({
|
|
|
46713
46713
|
const opts = options || {};
|
|
46714
46714
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
46715
46715
|
let match = input === glob;
|
|
46716
|
-
let
|
|
46716
|
+
let output = match && format ? format(input) : input;
|
|
46717
46717
|
if (match === false) {
|
|
46718
|
-
|
|
46719
|
-
match =
|
|
46718
|
+
output = format ? format(input) : input;
|
|
46719
|
+
match = output === glob;
|
|
46720
46720
|
}
|
|
46721
46721
|
if (match === false || opts.capture === true) {
|
|
46722
46722
|
if (opts.matchBase === true || opts.basename === true) {
|
|
46723
46723
|
match = picomatch.matchBase(input, regex, options, posix);
|
|
46724
46724
|
} else {
|
|
46725
|
-
match = regex.exec(
|
|
46725
|
+
match = regex.exec(output);
|
|
46726
46726
|
}
|
|
46727
46727
|
}
|
|
46728
|
-
return { isMatch: Boolean(match), match, output
|
|
46728
|
+
return { isMatch: Boolean(match), match, output };
|
|
46729
46729
|
};
|
|
46730
46730
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
46731
46731
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -53504,8 +53504,8 @@ var require_depd = __commonJS({
|
|
|
53504
53504
|
return;
|
|
53505
53505
|
}
|
|
53506
53506
|
var format = process.stderr.isTTY ? formatColor : formatPlain;
|
|
53507
|
-
var
|
|
53508
|
-
process.stderr.write(
|
|
53507
|
+
var output = format.call(this, msg, caller, stack2.slice(i));
|
|
53508
|
+
process.stderr.write(output + "\n", "utf8");
|
|
53509
53509
|
}
|
|
53510
53510
|
function callSiteLocation(callSite) {
|
|
53511
53511
|
var file = callSite.getFileName() || "<anonymous>";
|
|
@@ -59457,7 +59457,7 @@ var require_slice_ansi = __commonJS({
|
|
|
59457
59457
|
];
|
|
59458
59458
|
var wrapAnsi = (code) => `${ESCAPES[0]}[${code}m`;
|
|
59459
59459
|
var checkAnsi = (ansiCodes, isEscapes, endAnsiCode) => {
|
|
59460
|
-
let
|
|
59460
|
+
let output = [];
|
|
59461
59461
|
ansiCodes = [...ansiCodes];
|
|
59462
59462
|
for (let ansiCode of ansiCodes) {
|
|
59463
59463
|
const ansiCodeOrigin = ansiCode;
|
|
@@ -59468,25 +59468,25 @@ var require_slice_ansi = __commonJS({
|
|
|
59468
59468
|
if (item) {
|
|
59469
59469
|
const indexEscape = ansiCodes.indexOf(item.toString());
|
|
59470
59470
|
if (indexEscape === -1) {
|
|
59471
|
-
|
|
59471
|
+
output.push(wrapAnsi(isEscapes ? item : ansiCodeOrigin));
|
|
59472
59472
|
} else {
|
|
59473
59473
|
ansiCodes.splice(indexEscape, 1);
|
|
59474
59474
|
}
|
|
59475
59475
|
} else if (isEscapes) {
|
|
59476
|
-
|
|
59476
|
+
output.push(wrapAnsi(0));
|
|
59477
59477
|
break;
|
|
59478
59478
|
} else {
|
|
59479
|
-
|
|
59479
|
+
output.push(wrapAnsi(ansiCodeOrigin));
|
|
59480
59480
|
}
|
|
59481
59481
|
}
|
|
59482
59482
|
if (isEscapes) {
|
|
59483
|
-
|
|
59483
|
+
output = output.filter((element, index) => output.indexOf(element) === index);
|
|
59484
59484
|
if (endAnsiCode !== void 0) {
|
|
59485
59485
|
const fistEscapeCode = wrapAnsi(ansiStyles.codes.get(Number.parseInt(endAnsiCode, 10)));
|
|
59486
|
-
|
|
59486
|
+
output = output.reduce((current, next) => next === fistEscapeCode ? [next, ...current] : [...current, next], []);
|
|
59487
59487
|
}
|
|
59488
59488
|
}
|
|
59489
|
-
return
|
|
59489
|
+
return output.join("");
|
|
59490
59490
|
};
|
|
59491
59491
|
module2.exports = (string, begin, end) => {
|
|
59492
59492
|
const characters = [...string];
|
|
@@ -59495,7 +59495,7 @@ var require_slice_ansi = __commonJS({
|
|
|
59495
59495
|
let isInsideEscape = false;
|
|
59496
59496
|
let ansiCode;
|
|
59497
59497
|
let visible = 0;
|
|
59498
|
-
let
|
|
59498
|
+
let output = "";
|
|
59499
59499
|
for (const [index, character] of characters.entries()) {
|
|
59500
59500
|
let leftEscape = false;
|
|
59501
59501
|
if (ESCAPES.includes(character)) {
|
|
@@ -59521,15 +59521,15 @@ var require_slice_ansi = __commonJS({
|
|
|
59521
59521
|
}
|
|
59522
59522
|
}
|
|
59523
59523
|
if (visible > begin && visible <= stringEnd) {
|
|
59524
|
-
|
|
59524
|
+
output += character;
|
|
59525
59525
|
} else if (visible === begin && !isInsideEscape && ansiCode !== void 0) {
|
|
59526
|
-
|
|
59526
|
+
output = checkAnsi(ansiCodes);
|
|
59527
59527
|
} else if (visible >= stringEnd) {
|
|
59528
|
-
|
|
59528
|
+
output += checkAnsi(ansiCodes, true, ansiCode);
|
|
59529
59529
|
break;
|
|
59530
59530
|
}
|
|
59531
59531
|
}
|
|
59532
|
-
return
|
|
59532
|
+
return output;
|
|
59533
59533
|
};
|
|
59534
59534
|
}
|
|
59535
59535
|
});
|
|
@@ -61945,29 +61945,29 @@ var require_createStream = __commonJS({
|
|
|
61945
61945
|
const body = rows.map((literalRow) => {
|
|
61946
61946
|
return (0, _drawRow.default)(literalRow, config.border);
|
|
61947
61947
|
}).join("");
|
|
61948
|
-
let
|
|
61949
|
-
|
|
61950
|
-
|
|
61951
|
-
|
|
61952
|
-
|
|
61953
|
-
|
|
61954
|
-
process.stdout.write(
|
|
61948
|
+
let output;
|
|
61949
|
+
output = "";
|
|
61950
|
+
output += (0, _drawBorder.drawBorderTop)(columnWidthIndex, config.border);
|
|
61951
|
+
output += body;
|
|
61952
|
+
output += (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border);
|
|
61953
|
+
output = output.trimEnd();
|
|
61954
|
+
process.stdout.write(output);
|
|
61955
61955
|
};
|
|
61956
61956
|
var append = (row, columnWidthIndex, config) => {
|
|
61957
61957
|
const rows = prepareData([row], config);
|
|
61958
61958
|
const body = rows.map((literalRow) => {
|
|
61959
61959
|
return (0, _drawRow.default)(literalRow, config.border);
|
|
61960
61960
|
}).join("");
|
|
61961
|
-
let
|
|
61961
|
+
let output = "";
|
|
61962
61962
|
const bottom = (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border);
|
|
61963
61963
|
if (bottom !== "\n") {
|
|
61964
|
-
|
|
61964
|
+
output = "\r\x1B[K";
|
|
61965
61965
|
}
|
|
61966
|
-
|
|
61967
|
-
|
|
61968
|
-
|
|
61969
|
-
|
|
61970
|
-
process.stdout.write(
|
|
61966
|
+
output += (0, _drawBorder.drawBorderJoin)(columnWidthIndex, config.border);
|
|
61967
|
+
output += body;
|
|
61968
|
+
output += bottom;
|
|
61969
|
+
output = output.trimEnd();
|
|
61970
|
+
process.stdout.write(output);
|
|
61971
61971
|
};
|
|
61972
61972
|
var createStream = (userConfig = {}) => {
|
|
61973
61973
|
const config = (0, _makeStreamConfig.default)(userConfig);
|
|
@@ -62033,30 +62033,30 @@ var require_drawTable = __commonJS({
|
|
|
62033
62033
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62034
62034
|
}
|
|
62035
62035
|
var drawTable = (rows, border, columnSizeIndex, rowSpanIndex, drawHorizontalLine, singleLine) => {
|
|
62036
|
-
let
|
|
62036
|
+
let output;
|
|
62037
62037
|
let realRowIndex;
|
|
62038
62038
|
let rowHeight;
|
|
62039
62039
|
const rowCount = rows.length;
|
|
62040
62040
|
realRowIndex = 0;
|
|
62041
|
-
|
|
62041
|
+
output = "";
|
|
62042
62042
|
if (drawHorizontalLine(realRowIndex, rowCount)) {
|
|
62043
|
-
|
|
62043
|
+
output += (0, _drawBorder.drawBorderTop)(columnSizeIndex, border);
|
|
62044
62044
|
}
|
|
62045
62045
|
rows.forEach((row, index0) => {
|
|
62046
|
-
|
|
62046
|
+
output += (0, _drawRow.default)(row, border);
|
|
62047
62047
|
if (!rowHeight) {
|
|
62048
62048
|
rowHeight = rowSpanIndex[realRowIndex];
|
|
62049
62049
|
realRowIndex++;
|
|
62050
62050
|
}
|
|
62051
62051
|
rowHeight--;
|
|
62052
62052
|
if (!singleLine && rowHeight === 0 && index0 !== rowCount - 1 && drawHorizontalLine(realRowIndex, rowCount)) {
|
|
62053
|
-
|
|
62053
|
+
output += (0, _drawBorder.drawBorderJoin)(columnSizeIndex, border);
|
|
62054
62054
|
}
|
|
62055
62055
|
});
|
|
62056
62056
|
if (drawHorizontalLine(realRowIndex, rowCount)) {
|
|
62057
|
-
|
|
62057
|
+
output += (0, _drawBorder.drawBorderBottom)(columnSizeIndex, border);
|
|
62058
62058
|
}
|
|
62059
|
-
return
|
|
62059
|
+
return output;
|
|
62060
62060
|
};
|
|
62061
62061
|
var _default = drawTable;
|
|
62062
62062
|
exports2.default = _default;
|
|
@@ -71804,11 +71804,11 @@ var require_sanitize_filename = __commonJS({
|
|
|
71804
71804
|
}
|
|
71805
71805
|
module2.exports = function(input, options) {
|
|
71806
71806
|
var replacement = options && options.replacement || "";
|
|
71807
|
-
var
|
|
71807
|
+
var output = sanitize(input, replacement);
|
|
71808
71808
|
if (replacement === "") {
|
|
71809
|
-
return
|
|
71809
|
+
return output;
|
|
71810
71810
|
}
|
|
71811
|
-
return sanitize(
|
|
71811
|
+
return sanitize(output, "");
|
|
71812
71812
|
};
|
|
71813
71813
|
}
|
|
71814
71814
|
});
|
|
@@ -88189,7 +88189,7 @@ var require_slice_ansi2 = __commonJS({
|
|
|
88189
88189
|
if (at < 0 || until < 0)
|
|
88190
88190
|
throw new RangeError(`Negative indices aren't supported by this implementation`);
|
|
88191
88191
|
const length = until - at;
|
|
88192
|
-
let
|
|
88192
|
+
let output = ``;
|
|
88193
88193
|
let skipped = 0;
|
|
88194
88194
|
let visible = 0;
|
|
88195
88195
|
while (orig.length > 0) {
|
|
@@ -88198,14 +88198,14 @@ var require_slice_ansi2 = __commonJS({
|
|
|
88198
88198
|
const skipping = Math.min(at - skipped, graphemes.length);
|
|
88199
88199
|
graphemes = graphemes.slice(skipping);
|
|
88200
88200
|
const displaying = Math.min(length - visible, graphemes.length);
|
|
88201
|
-
|
|
88201
|
+
output += graphemes.slice(0, displaying).join(``);
|
|
88202
88202
|
skipped += skipping;
|
|
88203
88203
|
visible += displaying;
|
|
88204
88204
|
if (typeof lookup[2] !== `undefined`)
|
|
88205
|
-
|
|
88205
|
+
output += lookup[2];
|
|
88206
88206
|
orig = orig.slice(lookup[0].length);
|
|
88207
88207
|
}
|
|
88208
|
-
return
|
|
88208
|
+
return output;
|
|
88209
88209
|
};
|
|
88210
88210
|
}
|
|
88211
88211
|
});
|
|
@@ -89562,29 +89562,29 @@ var require_createStream2 = __commonJS({
|
|
|
89562
89562
|
const body = rows.map((literalRow) => {
|
|
89563
89563
|
return (0, _drawRow.default)(literalRow, config.border);
|
|
89564
89564
|
}).join("");
|
|
89565
|
-
let
|
|
89566
|
-
|
|
89567
|
-
|
|
89568
|
-
|
|
89569
|
-
|
|
89570
|
-
|
|
89571
|
-
process.stdout.write(
|
|
89565
|
+
let output;
|
|
89566
|
+
output = "";
|
|
89567
|
+
output += (0, _drawBorder.drawBorderTop)(columnWidthIndex, config.border);
|
|
89568
|
+
output += body;
|
|
89569
|
+
output += (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border);
|
|
89570
|
+
output = (0, _trimEnd2.default)(output);
|
|
89571
|
+
process.stdout.write(output);
|
|
89572
89572
|
};
|
|
89573
89573
|
var append = (row, columnWidthIndex, config) => {
|
|
89574
89574
|
const rows = prepareData([row], config);
|
|
89575
89575
|
const body = rows.map((literalRow) => {
|
|
89576
89576
|
return (0, _drawRow.default)(literalRow, config.border);
|
|
89577
89577
|
}).join("");
|
|
89578
|
-
let
|
|
89578
|
+
let output = "";
|
|
89579
89579
|
const bottom = (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border);
|
|
89580
89580
|
if (bottom !== "\n") {
|
|
89581
|
-
|
|
89581
|
+
output = "\r\x1B[K";
|
|
89582
89582
|
}
|
|
89583
|
-
|
|
89584
|
-
|
|
89585
|
-
|
|
89586
|
-
|
|
89587
|
-
process.stdout.write(
|
|
89583
|
+
output += (0, _drawBorder.drawBorderJoin)(columnWidthIndex, config.border);
|
|
89584
|
+
output += body;
|
|
89585
|
+
output += bottom;
|
|
89586
|
+
output = (0, _trimEnd2.default)(output);
|
|
89587
|
+
process.stdout.write(output);
|
|
89588
89588
|
};
|
|
89589
89589
|
var createStream = (userConfig = {}) => {
|
|
89590
89590
|
const config = (0, _makeStreamConfig.default)(userConfig);
|
|
@@ -89650,30 +89650,30 @@ var require_drawTable2 = __commonJS({
|
|
|
89650
89650
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
89651
89651
|
}
|
|
89652
89652
|
var drawTable = (rows, border, columnSizeIndex, rowSpanIndex, drawHorizontalLine, singleLine) => {
|
|
89653
|
-
let
|
|
89653
|
+
let output;
|
|
89654
89654
|
let realRowIndex;
|
|
89655
89655
|
let rowHeight;
|
|
89656
89656
|
const rowCount = rows.length;
|
|
89657
89657
|
realRowIndex = 0;
|
|
89658
|
-
|
|
89658
|
+
output = "";
|
|
89659
89659
|
if (drawHorizontalLine(realRowIndex, rowCount)) {
|
|
89660
|
-
|
|
89660
|
+
output += (0, _drawBorder.drawBorderTop)(columnSizeIndex, border);
|
|
89661
89661
|
}
|
|
89662
89662
|
rows.forEach((row, index0) => {
|
|
89663
|
-
|
|
89663
|
+
output += (0, _drawRow.default)(row, border);
|
|
89664
89664
|
if (!rowHeight) {
|
|
89665
89665
|
rowHeight = rowSpanIndex[realRowIndex];
|
|
89666
89666
|
realRowIndex++;
|
|
89667
89667
|
}
|
|
89668
89668
|
rowHeight--;
|
|
89669
89669
|
if (!singleLine && rowHeight === 0 && index0 !== rowCount - 1 && drawHorizontalLine(realRowIndex, rowCount)) {
|
|
89670
|
-
|
|
89670
|
+
output += (0, _drawBorder.drawBorderJoin)(columnSizeIndex, border);
|
|
89671
89671
|
}
|
|
89672
89672
|
});
|
|
89673
89673
|
if (drawHorizontalLine(realRowIndex, rowCount)) {
|
|
89674
|
-
|
|
89674
|
+
output += (0, _drawBorder.drawBorderBottom)(columnSizeIndex, border);
|
|
89675
89675
|
}
|
|
89676
|
-
return
|
|
89676
|
+
return output;
|
|
89677
89677
|
};
|
|
89678
89678
|
var _default = drawTable;
|
|
89679
89679
|
exports2.default = _default;
|
|
@@ -90159,11 +90159,11 @@ ${JSON.stringify(newOverrides, null, 2)}`
|
|
|
90159
90159
|
output: JSON.stringify(auditReport, null, 2)
|
|
90160
90160
|
};
|
|
90161
90161
|
}
|
|
90162
|
-
let
|
|
90162
|
+
let output = "";
|
|
90163
90163
|
const auditLevel = AUDIT_LEVEL_NUMBER[opts.auditLevel ?? "low"];
|
|
90164
90164
|
const advisories = Object.values(auditReport.advisories).filter(({ severity }) => AUDIT_LEVEL_NUMBER[severity] >= auditLevel).sort((a1, a2) => AUDIT_LEVEL_NUMBER[a2.severity] - AUDIT_LEVEL_NUMBER[a1.severity]);
|
|
90165
90165
|
for (const advisory of advisories) {
|
|
90166
|
-
|
|
90166
|
+
output += (0, table_1.table)([
|
|
90167
90167
|
[AUDIT_COLOR[advisory.severity](advisory.severity), chalk_1.default.bold(advisory.title)],
|
|
90168
90168
|
["Package", advisory.module_name],
|
|
90169
90169
|
["Vulnerable versions", advisory.vulnerable_versions],
|
|
@@ -90172,8 +90172,8 @@ ${JSON.stringify(newOverrides, null, 2)}`
|
|
|
90172
90172
|
], cli_utils_1.TABLE_OPTIONS);
|
|
90173
90173
|
}
|
|
90174
90174
|
return {
|
|
90175
|
-
exitCode:
|
|
90176
|
-
output: `${
|
|
90175
|
+
exitCode: output ? 1 : 0,
|
|
90176
|
+
output: `${output}${reportSummary(auditReport.metadata.vulnerabilities, totalVulnerabilityCount)}`
|
|
90177
90177
|
};
|
|
90178
90178
|
}
|
|
90179
90179
|
exports2.handler = handler;
|
|
@@ -90422,88 +90422,126 @@ var require_promise_share = __commonJS({
|
|
|
90422
90422
|
}
|
|
90423
90423
|
});
|
|
90424
90424
|
|
|
90425
|
-
// ../../node_modules/.pnpm/uuid@3.
|
|
90425
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/rng.js
|
|
90426
90426
|
var require_rng = __commonJS({
|
|
90427
|
-
"../../node_modules/.pnpm/uuid@3.
|
|
90428
|
-
|
|
90429
|
-
|
|
90430
|
-
|
|
90431
|
-
};
|
|
90427
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/rng.js"(exports2) {
|
|
90428
|
+
"use strict";
|
|
90429
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90430
|
+
value: true
|
|
90431
|
+
});
|
|
90432
|
+
exports2.default = rng;
|
|
90433
|
+
var _crypto = _interopRequireDefault(require("crypto"));
|
|
90434
|
+
function _interopRequireDefault(obj) {
|
|
90435
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90436
|
+
}
|
|
90437
|
+
var rnds8Pool = new Uint8Array(256);
|
|
90438
|
+
var poolPtr = rnds8Pool.length;
|
|
90439
|
+
function rng() {
|
|
90440
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
90441
|
+
_crypto.default.randomFillSync(rnds8Pool);
|
|
90442
|
+
poolPtr = 0;
|
|
90443
|
+
}
|
|
90444
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
90445
|
+
}
|
|
90446
|
+
}
|
|
90447
|
+
});
|
|
90448
|
+
|
|
90449
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/regex.js
|
|
90450
|
+
var require_regex = __commonJS({
|
|
90451
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/regex.js"(exports2) {
|
|
90452
|
+
"use strict";
|
|
90453
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90454
|
+
value: true
|
|
90455
|
+
});
|
|
90456
|
+
exports2.default = void 0;
|
|
90457
|
+
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
90458
|
+
exports2.default = _default;
|
|
90459
|
+
}
|
|
90460
|
+
});
|
|
90461
|
+
|
|
90462
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/validate.js
|
|
90463
|
+
var require_validate = __commonJS({
|
|
90464
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/validate.js"(exports2) {
|
|
90465
|
+
"use strict";
|
|
90466
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90467
|
+
value: true
|
|
90468
|
+
});
|
|
90469
|
+
exports2.default = void 0;
|
|
90470
|
+
var _regex = _interopRequireDefault(require_regex());
|
|
90471
|
+
function _interopRequireDefault(obj) {
|
|
90472
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90473
|
+
}
|
|
90474
|
+
function validate(uuid) {
|
|
90475
|
+
return typeof uuid === "string" && _regex.default.test(uuid);
|
|
90476
|
+
}
|
|
90477
|
+
var _default = validate;
|
|
90478
|
+
exports2.default = _default;
|
|
90432
90479
|
}
|
|
90433
90480
|
});
|
|
90434
90481
|
|
|
90435
|
-
// ../../node_modules/.pnpm/uuid@3.
|
|
90436
|
-
var
|
|
90437
|
-
"../../node_modules/.pnpm/uuid@3.
|
|
90482
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/stringify.js
|
|
90483
|
+
var require_stringify4 = __commonJS({
|
|
90484
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/stringify.js"(exports2) {
|
|
90485
|
+
"use strict";
|
|
90486
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90487
|
+
value: true
|
|
90488
|
+
});
|
|
90489
|
+
exports2.default = void 0;
|
|
90490
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
90491
|
+
function _interopRequireDefault(obj) {
|
|
90492
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90493
|
+
}
|
|
90438
90494
|
var byteToHex = [];
|
|
90439
|
-
for (i = 0; i < 256; ++i) {
|
|
90440
|
-
byteToHex
|
|
90495
|
+
for (let i = 0; i < 256; ++i) {
|
|
90496
|
+
byteToHex.push((i + 256).toString(16).substr(1));
|
|
90441
90497
|
}
|
|
90442
|
-
|
|
90443
|
-
|
|
90444
|
-
|
|
90445
|
-
|
|
90446
|
-
|
|
90447
|
-
|
|
90448
|
-
|
|
90449
|
-
|
|
90450
|
-
|
|
90451
|
-
|
|
90452
|
-
|
|
90453
|
-
|
|
90454
|
-
|
|
90455
|
-
bth[buf[i2++]],
|
|
90456
|
-
bth[buf[i2++]],
|
|
90457
|
-
"-",
|
|
90458
|
-
bth[buf[i2++]],
|
|
90459
|
-
bth[buf[i2++]],
|
|
90460
|
-
"-",
|
|
90461
|
-
bth[buf[i2++]],
|
|
90462
|
-
bth[buf[i2++]],
|
|
90463
|
-
bth[buf[i2++]],
|
|
90464
|
-
bth[buf[i2++]],
|
|
90465
|
-
bth[buf[i2++]],
|
|
90466
|
-
bth[buf[i2++]]
|
|
90467
|
-
].join("");
|
|
90468
|
-
}
|
|
90469
|
-
module2.exports = bytesToUuid;
|
|
90470
|
-
}
|
|
90471
|
-
});
|
|
90472
|
-
|
|
90473
|
-
// ../../node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v1.js
|
|
90498
|
+
function stringify(arr, offset = 0) {
|
|
90499
|
+
const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
90500
|
+
if (!(0, _validate.default)(uuid)) {
|
|
90501
|
+
throw TypeError("Stringified UUID is invalid");
|
|
90502
|
+
}
|
|
90503
|
+
return uuid;
|
|
90504
|
+
}
|
|
90505
|
+
var _default = stringify;
|
|
90506
|
+
exports2.default = _default;
|
|
90507
|
+
}
|
|
90508
|
+
});
|
|
90509
|
+
|
|
90510
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v1.js
|
|
90474
90511
|
var require_v1 = __commonJS({
|
|
90475
|
-
"../../node_modules/.pnpm/uuid@3.
|
|
90476
|
-
|
|
90477
|
-
|
|
90512
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v1.js"(exports2) {
|
|
90513
|
+
"use strict";
|
|
90514
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90515
|
+
value: true
|
|
90516
|
+
});
|
|
90517
|
+
exports2.default = void 0;
|
|
90518
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
90519
|
+
var _stringify = _interopRequireDefault(require_stringify4());
|
|
90520
|
+
function _interopRequireDefault(obj) {
|
|
90521
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90522
|
+
}
|
|
90478
90523
|
var _nodeId;
|
|
90479
90524
|
var _clockseq;
|
|
90480
90525
|
var _lastMSecs = 0;
|
|
90481
90526
|
var _lastNSecs = 0;
|
|
90482
90527
|
function v1(options, buf, offset) {
|
|
90483
|
-
|
|
90484
|
-
|
|
90528
|
+
let i = buf && offset || 0;
|
|
90529
|
+
const b = buf || new Array(16);
|
|
90485
90530
|
options = options || {};
|
|
90486
|
-
|
|
90487
|
-
|
|
90531
|
+
let node = options.node || _nodeId;
|
|
90532
|
+
let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
|
90488
90533
|
if (node == null || clockseq == null) {
|
|
90489
|
-
|
|
90534
|
+
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
90490
90535
|
if (node == null) {
|
|
90491
|
-
node = _nodeId = [
|
|
90492
|
-
seedBytes[0] | 1,
|
|
90493
|
-
seedBytes[1],
|
|
90494
|
-
seedBytes[2],
|
|
90495
|
-
seedBytes[3],
|
|
90496
|
-
seedBytes[4],
|
|
90497
|
-
seedBytes[5]
|
|
90498
|
-
];
|
|
90536
|
+
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
90499
90537
|
}
|
|
90500
90538
|
if (clockseq == null) {
|
|
90501
90539
|
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
|
90502
90540
|
}
|
|
90503
90541
|
}
|
|
90504
|
-
|
|
90505
|
-
|
|
90506
|
-
|
|
90542
|
+
let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
|
90543
|
+
let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
|
90544
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
|
90507
90545
|
if (dt < 0 && options.clockseq === void 0) {
|
|
90508
90546
|
clockseq = clockseq + 1 & 16383;
|
|
90509
90547
|
}
|
|
@@ -90517,62 +90555,361 @@ var require_v1 = __commonJS({
|
|
|
90517
90555
|
_lastNSecs = nsecs;
|
|
90518
90556
|
_clockseq = clockseq;
|
|
90519
90557
|
msecs += 122192928e5;
|
|
90520
|
-
|
|
90558
|
+
const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
|
90521
90559
|
b[i++] = tl >>> 24 & 255;
|
|
90522
90560
|
b[i++] = tl >>> 16 & 255;
|
|
90523
90561
|
b[i++] = tl >>> 8 & 255;
|
|
90524
90562
|
b[i++] = tl & 255;
|
|
90525
|
-
|
|
90563
|
+
const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
|
90526
90564
|
b[i++] = tmh >>> 8 & 255;
|
|
90527
90565
|
b[i++] = tmh & 255;
|
|
90528
90566
|
b[i++] = tmh >>> 24 & 15 | 16;
|
|
90529
90567
|
b[i++] = tmh >>> 16 & 255;
|
|
90530
90568
|
b[i++] = clockseq >>> 8 | 128;
|
|
90531
90569
|
b[i++] = clockseq & 255;
|
|
90532
|
-
for (
|
|
90570
|
+
for (let n = 0; n < 6; ++n) {
|
|
90533
90571
|
b[i + n] = node[n];
|
|
90534
90572
|
}
|
|
90535
|
-
return buf
|
|
90573
|
+
return buf || (0, _stringify.default)(b);
|
|
90574
|
+
}
|
|
90575
|
+
var _default = v1;
|
|
90576
|
+
exports2.default = _default;
|
|
90577
|
+
}
|
|
90578
|
+
});
|
|
90579
|
+
|
|
90580
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/parse.js
|
|
90581
|
+
var require_parse7 = __commonJS({
|
|
90582
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/parse.js"(exports2) {
|
|
90583
|
+
"use strict";
|
|
90584
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90585
|
+
value: true
|
|
90586
|
+
});
|
|
90587
|
+
exports2.default = void 0;
|
|
90588
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
90589
|
+
function _interopRequireDefault(obj) {
|
|
90590
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90591
|
+
}
|
|
90592
|
+
function parse(uuid) {
|
|
90593
|
+
if (!(0, _validate.default)(uuid)) {
|
|
90594
|
+
throw TypeError("Invalid UUID");
|
|
90595
|
+
}
|
|
90596
|
+
let v;
|
|
90597
|
+
const arr = new Uint8Array(16);
|
|
90598
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
90599
|
+
arr[1] = v >>> 16 & 255;
|
|
90600
|
+
arr[2] = v >>> 8 & 255;
|
|
90601
|
+
arr[3] = v & 255;
|
|
90602
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
90603
|
+
arr[5] = v & 255;
|
|
90604
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
90605
|
+
arr[7] = v & 255;
|
|
90606
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
90607
|
+
arr[9] = v & 255;
|
|
90608
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
|
90609
|
+
arr[11] = v / 4294967296 & 255;
|
|
90610
|
+
arr[12] = v >>> 24 & 255;
|
|
90611
|
+
arr[13] = v >>> 16 & 255;
|
|
90612
|
+
arr[14] = v >>> 8 & 255;
|
|
90613
|
+
arr[15] = v & 255;
|
|
90614
|
+
return arr;
|
|
90615
|
+
}
|
|
90616
|
+
var _default = parse;
|
|
90617
|
+
exports2.default = _default;
|
|
90618
|
+
}
|
|
90619
|
+
});
|
|
90620
|
+
|
|
90621
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v35.js
|
|
90622
|
+
var require_v35 = __commonJS({
|
|
90623
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v35.js"(exports2) {
|
|
90624
|
+
"use strict";
|
|
90625
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90626
|
+
value: true
|
|
90627
|
+
});
|
|
90628
|
+
exports2.default = _default;
|
|
90629
|
+
exports2.URL = exports2.DNS = void 0;
|
|
90630
|
+
var _stringify = _interopRequireDefault(require_stringify4());
|
|
90631
|
+
var _parse = _interopRequireDefault(require_parse7());
|
|
90632
|
+
function _interopRequireDefault(obj) {
|
|
90633
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90634
|
+
}
|
|
90635
|
+
function stringToBytes(str) {
|
|
90636
|
+
str = unescape(encodeURIComponent(str));
|
|
90637
|
+
const bytes = [];
|
|
90638
|
+
for (let i = 0; i < str.length; ++i) {
|
|
90639
|
+
bytes.push(str.charCodeAt(i));
|
|
90640
|
+
}
|
|
90641
|
+
return bytes;
|
|
90642
|
+
}
|
|
90643
|
+
var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
90644
|
+
exports2.DNS = DNS;
|
|
90645
|
+
var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
90646
|
+
exports2.URL = URL2;
|
|
90647
|
+
function _default(name, version, hashfunc) {
|
|
90648
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
90649
|
+
if (typeof value === "string") {
|
|
90650
|
+
value = stringToBytes(value);
|
|
90651
|
+
}
|
|
90652
|
+
if (typeof namespace === "string") {
|
|
90653
|
+
namespace = (0, _parse.default)(namespace);
|
|
90654
|
+
}
|
|
90655
|
+
if (namespace.length !== 16) {
|
|
90656
|
+
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
90657
|
+
}
|
|
90658
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
90659
|
+
bytes.set(namespace);
|
|
90660
|
+
bytes.set(value, namespace.length);
|
|
90661
|
+
bytes = hashfunc(bytes);
|
|
90662
|
+
bytes[6] = bytes[6] & 15 | version;
|
|
90663
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
90664
|
+
if (buf) {
|
|
90665
|
+
offset = offset || 0;
|
|
90666
|
+
for (let i = 0; i < 16; ++i) {
|
|
90667
|
+
buf[offset + i] = bytes[i];
|
|
90668
|
+
}
|
|
90669
|
+
return buf;
|
|
90670
|
+
}
|
|
90671
|
+
return (0, _stringify.default)(bytes);
|
|
90672
|
+
}
|
|
90673
|
+
try {
|
|
90674
|
+
generateUUID.name = name;
|
|
90675
|
+
} catch (err) {
|
|
90676
|
+
}
|
|
90677
|
+
generateUUID.DNS = DNS;
|
|
90678
|
+
generateUUID.URL = URL2;
|
|
90679
|
+
return generateUUID;
|
|
90680
|
+
}
|
|
90681
|
+
}
|
|
90682
|
+
});
|
|
90683
|
+
|
|
90684
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/md5.js
|
|
90685
|
+
var require_md5 = __commonJS({
|
|
90686
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/md5.js"(exports2) {
|
|
90687
|
+
"use strict";
|
|
90688
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90689
|
+
value: true
|
|
90690
|
+
});
|
|
90691
|
+
exports2.default = void 0;
|
|
90692
|
+
var _crypto = _interopRequireDefault(require("crypto"));
|
|
90693
|
+
function _interopRequireDefault(obj) {
|
|
90694
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90695
|
+
}
|
|
90696
|
+
function md5(bytes) {
|
|
90697
|
+
if (Array.isArray(bytes)) {
|
|
90698
|
+
bytes = Buffer.from(bytes);
|
|
90699
|
+
} else if (typeof bytes === "string") {
|
|
90700
|
+
bytes = Buffer.from(bytes, "utf8");
|
|
90701
|
+
}
|
|
90702
|
+
return _crypto.default.createHash("md5").update(bytes).digest();
|
|
90703
|
+
}
|
|
90704
|
+
var _default = md5;
|
|
90705
|
+
exports2.default = _default;
|
|
90706
|
+
}
|
|
90707
|
+
});
|
|
90708
|
+
|
|
90709
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v3.js
|
|
90710
|
+
var require_v3 = __commonJS({
|
|
90711
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v3.js"(exports2) {
|
|
90712
|
+
"use strict";
|
|
90713
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90714
|
+
value: true
|
|
90715
|
+
});
|
|
90716
|
+
exports2.default = void 0;
|
|
90717
|
+
var _v = _interopRequireDefault(require_v35());
|
|
90718
|
+
var _md = _interopRequireDefault(require_md5());
|
|
90719
|
+
function _interopRequireDefault(obj) {
|
|
90720
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90536
90721
|
}
|
|
90537
|
-
|
|
90722
|
+
var v3 = (0, _v.default)("v3", 48, _md.default);
|
|
90723
|
+
var _default = v3;
|
|
90724
|
+
exports2.default = _default;
|
|
90538
90725
|
}
|
|
90539
90726
|
});
|
|
90540
90727
|
|
|
90541
|
-
// ../../node_modules/.pnpm/uuid@3.
|
|
90728
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v4.js
|
|
90542
90729
|
var require_v4 = __commonJS({
|
|
90543
|
-
"../../node_modules/.pnpm/uuid@3.
|
|
90544
|
-
|
|
90545
|
-
|
|
90730
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v4.js"(exports2) {
|
|
90731
|
+
"use strict";
|
|
90732
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90733
|
+
value: true
|
|
90734
|
+
});
|
|
90735
|
+
exports2.default = void 0;
|
|
90736
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
90737
|
+
var _stringify = _interopRequireDefault(require_stringify4());
|
|
90738
|
+
function _interopRequireDefault(obj) {
|
|
90739
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90740
|
+
}
|
|
90546
90741
|
function v4(options, buf, offset) {
|
|
90547
|
-
var i = buf && offset || 0;
|
|
90548
|
-
if (typeof options == "string") {
|
|
90549
|
-
buf = options === "binary" ? new Array(16) : null;
|
|
90550
|
-
options = null;
|
|
90551
|
-
}
|
|
90552
90742
|
options = options || {};
|
|
90553
|
-
|
|
90743
|
+
const rnds = options.random || (options.rng || _rng.default)();
|
|
90554
90744
|
rnds[6] = rnds[6] & 15 | 64;
|
|
90555
90745
|
rnds[8] = rnds[8] & 63 | 128;
|
|
90556
90746
|
if (buf) {
|
|
90557
|
-
|
|
90558
|
-
|
|
90747
|
+
offset = offset || 0;
|
|
90748
|
+
for (let i = 0; i < 16; ++i) {
|
|
90749
|
+
buf[offset + i] = rnds[i];
|
|
90559
90750
|
}
|
|
90751
|
+
return buf;
|
|
90752
|
+
}
|
|
90753
|
+
return (0, _stringify.default)(rnds);
|
|
90754
|
+
}
|
|
90755
|
+
var _default = v4;
|
|
90756
|
+
exports2.default = _default;
|
|
90757
|
+
}
|
|
90758
|
+
});
|
|
90759
|
+
|
|
90760
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/sha1.js
|
|
90761
|
+
var require_sha1 = __commonJS({
|
|
90762
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/sha1.js"(exports2) {
|
|
90763
|
+
"use strict";
|
|
90764
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90765
|
+
value: true
|
|
90766
|
+
});
|
|
90767
|
+
exports2.default = void 0;
|
|
90768
|
+
var _crypto = _interopRequireDefault(require("crypto"));
|
|
90769
|
+
function _interopRequireDefault(obj) {
|
|
90770
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90771
|
+
}
|
|
90772
|
+
function sha1(bytes) {
|
|
90773
|
+
if (Array.isArray(bytes)) {
|
|
90774
|
+
bytes = Buffer.from(bytes);
|
|
90775
|
+
} else if (typeof bytes === "string") {
|
|
90776
|
+
bytes = Buffer.from(bytes, "utf8");
|
|
90560
90777
|
}
|
|
90561
|
-
return
|
|
90778
|
+
return _crypto.default.createHash("sha1").update(bytes).digest();
|
|
90779
|
+
}
|
|
90780
|
+
var _default = sha1;
|
|
90781
|
+
exports2.default = _default;
|
|
90782
|
+
}
|
|
90783
|
+
});
|
|
90784
|
+
|
|
90785
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v5.js
|
|
90786
|
+
var require_v5 = __commonJS({
|
|
90787
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v5.js"(exports2) {
|
|
90788
|
+
"use strict";
|
|
90789
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90790
|
+
value: true
|
|
90791
|
+
});
|
|
90792
|
+
exports2.default = void 0;
|
|
90793
|
+
var _v = _interopRequireDefault(require_v35());
|
|
90794
|
+
var _sha = _interopRequireDefault(require_sha1());
|
|
90795
|
+
function _interopRequireDefault(obj) {
|
|
90796
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90562
90797
|
}
|
|
90563
|
-
|
|
90798
|
+
var v5 = (0, _v.default)("v5", 80, _sha.default);
|
|
90799
|
+
var _default = v5;
|
|
90800
|
+
exports2.default = _default;
|
|
90801
|
+
}
|
|
90802
|
+
});
|
|
90803
|
+
|
|
90804
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/nil.js
|
|
90805
|
+
var require_nil = __commonJS({
|
|
90806
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/nil.js"(exports2) {
|
|
90807
|
+
"use strict";
|
|
90808
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90809
|
+
value: true
|
|
90810
|
+
});
|
|
90811
|
+
exports2.default = void 0;
|
|
90812
|
+
var _default = "00000000-0000-0000-0000-000000000000";
|
|
90813
|
+
exports2.default = _default;
|
|
90564
90814
|
}
|
|
90565
90815
|
});
|
|
90566
90816
|
|
|
90567
|
-
// ../../node_modules/.pnpm/uuid@3.
|
|
90568
|
-
var
|
|
90569
|
-
"../../node_modules/.pnpm/uuid@3.
|
|
90570
|
-
|
|
90571
|
-
|
|
90572
|
-
|
|
90573
|
-
|
|
90574
|
-
|
|
90575
|
-
|
|
90817
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/version.js
|
|
90818
|
+
var require_version = __commonJS({
|
|
90819
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/version.js"(exports2) {
|
|
90820
|
+
"use strict";
|
|
90821
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90822
|
+
value: true
|
|
90823
|
+
});
|
|
90824
|
+
exports2.default = void 0;
|
|
90825
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
90826
|
+
function _interopRequireDefault(obj) {
|
|
90827
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90828
|
+
}
|
|
90829
|
+
function version(uuid) {
|
|
90830
|
+
if (!(0, _validate.default)(uuid)) {
|
|
90831
|
+
throw TypeError("Invalid UUID");
|
|
90832
|
+
}
|
|
90833
|
+
return parseInt(uuid.substr(14, 1), 16);
|
|
90834
|
+
}
|
|
90835
|
+
var _default = version;
|
|
90836
|
+
exports2.default = _default;
|
|
90837
|
+
}
|
|
90838
|
+
});
|
|
90839
|
+
|
|
90840
|
+
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/index.js
|
|
90841
|
+
var require_dist11 = __commonJS({
|
|
90842
|
+
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/index.js"(exports2) {
|
|
90843
|
+
"use strict";
|
|
90844
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
90845
|
+
value: true
|
|
90846
|
+
});
|
|
90847
|
+
Object.defineProperty(exports2, "v1", {
|
|
90848
|
+
enumerable: true,
|
|
90849
|
+
get: function() {
|
|
90850
|
+
return _v.default;
|
|
90851
|
+
}
|
|
90852
|
+
});
|
|
90853
|
+
Object.defineProperty(exports2, "v3", {
|
|
90854
|
+
enumerable: true,
|
|
90855
|
+
get: function() {
|
|
90856
|
+
return _v2.default;
|
|
90857
|
+
}
|
|
90858
|
+
});
|
|
90859
|
+
Object.defineProperty(exports2, "v4", {
|
|
90860
|
+
enumerable: true,
|
|
90861
|
+
get: function() {
|
|
90862
|
+
return _v3.default;
|
|
90863
|
+
}
|
|
90864
|
+
});
|
|
90865
|
+
Object.defineProperty(exports2, "v5", {
|
|
90866
|
+
enumerable: true,
|
|
90867
|
+
get: function() {
|
|
90868
|
+
return _v4.default;
|
|
90869
|
+
}
|
|
90870
|
+
});
|
|
90871
|
+
Object.defineProperty(exports2, "NIL", {
|
|
90872
|
+
enumerable: true,
|
|
90873
|
+
get: function() {
|
|
90874
|
+
return _nil.default;
|
|
90875
|
+
}
|
|
90876
|
+
});
|
|
90877
|
+
Object.defineProperty(exports2, "version", {
|
|
90878
|
+
enumerable: true,
|
|
90879
|
+
get: function() {
|
|
90880
|
+
return _version.default;
|
|
90881
|
+
}
|
|
90882
|
+
});
|
|
90883
|
+
Object.defineProperty(exports2, "validate", {
|
|
90884
|
+
enumerable: true,
|
|
90885
|
+
get: function() {
|
|
90886
|
+
return _validate.default;
|
|
90887
|
+
}
|
|
90888
|
+
});
|
|
90889
|
+
Object.defineProperty(exports2, "stringify", {
|
|
90890
|
+
enumerable: true,
|
|
90891
|
+
get: function() {
|
|
90892
|
+
return _stringify.default;
|
|
90893
|
+
}
|
|
90894
|
+
});
|
|
90895
|
+
Object.defineProperty(exports2, "parse", {
|
|
90896
|
+
enumerable: true,
|
|
90897
|
+
get: function() {
|
|
90898
|
+
return _parse.default;
|
|
90899
|
+
}
|
|
90900
|
+
});
|
|
90901
|
+
var _v = _interopRequireDefault(require_v1());
|
|
90902
|
+
var _v2 = _interopRequireDefault(require_v3());
|
|
90903
|
+
var _v3 = _interopRequireDefault(require_v4());
|
|
90904
|
+
var _v4 = _interopRequireDefault(require_v5());
|
|
90905
|
+
var _nil = _interopRequireDefault(require_nil());
|
|
90906
|
+
var _version = _interopRequireDefault(require_version());
|
|
90907
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
90908
|
+
var _stringify = _interopRequireDefault(require_stringify4());
|
|
90909
|
+
var _parse = _interopRequireDefault(require_parse7());
|
|
90910
|
+
function _interopRequireDefault(obj) {
|
|
90911
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
90912
|
+
}
|
|
90576
90913
|
}
|
|
90577
90914
|
});
|
|
90578
90915
|
|
|
@@ -90587,7 +90924,7 @@ var require_connectStoreController = __commonJS({
|
|
|
90587
90924
|
var fetch_1 = __importDefault(require_lib30());
|
|
90588
90925
|
var p_limit_12 = __importDefault(require_p_limit());
|
|
90589
90926
|
var promise_share_1 = __importDefault(require_promise_share());
|
|
90590
|
-
var uuid_1 =
|
|
90927
|
+
var uuid_1 = require_dist11();
|
|
90591
90928
|
async function default_1(initOpts) {
|
|
90592
90929
|
const remotePrefix = initOpts.remotePrefix;
|
|
90593
90930
|
const limitedFetch = limitFetch.bind(null, (0, p_limit_12.default)(initOpts.concurrency ?? 100));
|
|
@@ -90643,7 +90980,7 @@ var require_connectStoreController = __commonJS({
|
|
|
90643
90980
|
});
|
|
90644
90981
|
}
|
|
90645
90982
|
async function requestPackage(remotePrefix, limitedFetch, wantedDependency, options) {
|
|
90646
|
-
const msgId = uuid_1.
|
|
90983
|
+
const msgId = (0, uuid_1.v4)();
|
|
90647
90984
|
return limitedFetch(`${remotePrefix}/requestPackage`, {
|
|
90648
90985
|
msgId,
|
|
90649
90986
|
options,
|
|
@@ -90671,7 +91008,7 @@ var require_connectStoreController = __commonJS({
|
|
|
90671
91008
|
});
|
|
90672
91009
|
}
|
|
90673
91010
|
function fetchPackage(remotePrefix, limitedFetch, options) {
|
|
90674
|
-
const msgId = uuid_1.
|
|
91011
|
+
const msgId = (0, uuid_1.v4)();
|
|
90675
91012
|
return limitedFetch(`${remotePrefix}/fetchPackage`, {
|
|
90676
91013
|
msgId,
|
|
90677
91014
|
options
|
|
@@ -91259,7 +91596,7 @@ var require_priority_queue = __commonJS({
|
|
|
91259
91596
|
});
|
|
91260
91597
|
|
|
91261
91598
|
// ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
91262
|
-
var
|
|
91599
|
+
var require_dist12 = __commonJS({
|
|
91263
91600
|
"../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"(exports2) {
|
|
91264
91601
|
"use strict";
|
|
91265
91602
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -91560,7 +91897,7 @@ var require_packageRequester = __commonJS({
|
|
|
91560
91897
|
var package_is_installable_1 = __importDefault(require_lib19());
|
|
91561
91898
|
var read_package_json_1 = __importDefault(require_lib35());
|
|
91562
91899
|
var dependency_path_1 = require_lib52();
|
|
91563
|
-
var p_queue_1 = __importDefault(
|
|
91900
|
+
var p_queue_1 = __importDefault(require_dist12());
|
|
91564
91901
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
91565
91902
|
var p_defer_1 = __importDefault(require_p_defer2());
|
|
91566
91903
|
var path_temp_1 = __importDefault(require_path_temp());
|
|
@@ -105733,8 +106070,8 @@ var require_lib77 = __commonJS({
|
|
|
105733
106070
|
if (outputs.length > 0) {
|
|
105734
106071
|
const pipe = new stream_12.PassThrough();
|
|
105735
106072
|
stdout = pipe;
|
|
105736
|
-
for (const
|
|
105737
|
-
pipe.pipe(
|
|
106073
|
+
for (const output of outputs) {
|
|
106074
|
+
pipe.pipe(output);
|
|
105738
106075
|
}
|
|
105739
106076
|
}
|
|
105740
106077
|
if (errors.length > 0) {
|
|
@@ -105749,15 +106086,15 @@ var require_lib77 = __commonJS({
|
|
|
105749
106086
|
stdout: new pipe_2.ProtectedStream(stdout),
|
|
105750
106087
|
stderr: new pipe_2.ProtectedStream(stderr)
|
|
105751
106088
|
}).run();
|
|
105752
|
-
await Promise.all(outputs.map((
|
|
106089
|
+
await Promise.all(outputs.map((output) => {
|
|
105753
106090
|
return new Promise((resolve, reject2) => {
|
|
105754
|
-
|
|
106091
|
+
output.on(`error`, (error) => {
|
|
105755
106092
|
reject2(error);
|
|
105756
106093
|
});
|
|
105757
|
-
|
|
106094
|
+
output.on(`close`, () => {
|
|
105758
106095
|
resolve();
|
|
105759
106096
|
});
|
|
105760
|
-
|
|
106097
|
+
output.end();
|
|
105761
106098
|
});
|
|
105762
106099
|
}));
|
|
105763
106100
|
await Promise.all(errors.map((err) => {
|
|
@@ -109252,7 +109589,7 @@ var require_lib85 = __commonJS({
|
|
|
109252
109589
|
});
|
|
109253
109590
|
|
|
109254
109591
|
// ../../node_modules/.pnpm/symlink-dir@5.0.1/node_modules/symlink-dir/dist/index.js
|
|
109255
|
-
var
|
|
109592
|
+
var require_dist13 = __commonJS({
|
|
109256
109593
|
"../../node_modules/.pnpm/symlink-dir@5.0.1/node_modules/symlink-dir/dist/index.js"(exports2, module2) {
|
|
109257
109594
|
"use strict";
|
|
109258
109595
|
var betterPathResolve = require_better_path_resolve();
|
|
@@ -109333,7 +109670,7 @@ var require_symlinkDirectRootDependency = __commonJS({
|
|
|
109333
109670
|
var path_1 = __importDefault(require("path"));
|
|
109334
109671
|
var core_loggers_1 = require_lib9();
|
|
109335
109672
|
var logger_1 = require_lib6();
|
|
109336
|
-
var symlink_dir_1 = __importDefault(
|
|
109673
|
+
var symlink_dir_1 = __importDefault(require_dist13());
|
|
109337
109674
|
var DEP_TYPE_BY_DEPS_FIELD_NAME = {
|
|
109338
109675
|
dependencies: "prod",
|
|
109339
109676
|
devDependencies: "dev",
|
|
@@ -109390,7 +109727,7 @@ var require_lib86 = __commonJS({
|
|
|
109390
109727
|
exports2.symlinkDirectRootDependency = void 0;
|
|
109391
109728
|
var path_1 = __importDefault(require("path"));
|
|
109392
109729
|
var core_loggers_1 = require_lib9();
|
|
109393
|
-
var symlink_dir_1 = __importDefault(
|
|
109730
|
+
var symlink_dir_1 = __importDefault(require_dist13());
|
|
109394
109731
|
var symlinkDirectRootDependency_1 = __importDefault(require_symlinkDirectRootDependency());
|
|
109395
109732
|
exports2.symlinkDirectRootDependency = symlinkDirectRootDependency_1.default;
|
|
109396
109733
|
async function symlinkDependency(dependencyRealLocation, destModulesDir, importAs) {
|
|
@@ -116094,7 +116431,7 @@ var require_multi_range = __commonJS({
|
|
|
116094
116431
|
});
|
|
116095
116432
|
|
|
116096
116433
|
// ../../node_modules/.pnpm/semver-range-intersect@0.3.1/node_modules/semver-range-intersect/dist/index.js
|
|
116097
|
-
var
|
|
116434
|
+
var require_dist14 = __commonJS({
|
|
116098
116435
|
"../../node_modules/.pnpm/semver-range-intersect@0.3.1/node_modules/semver-range-intersect/dist/index.js"(exports2) {
|
|
116099
116436
|
"use strict";
|
|
116100
116437
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -116128,7 +116465,7 @@ var require_mergePeers = __commonJS({
|
|
|
116128
116465
|
"use strict";
|
|
116129
116466
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
116130
116467
|
exports2.safeIntersect = exports2.mergePeers = void 0;
|
|
116131
|
-
var semver_range_intersect_1 =
|
|
116468
|
+
var semver_range_intersect_1 = require_dist14();
|
|
116132
116469
|
function mergePeers(missingPeers) {
|
|
116133
116470
|
const conflicts = [];
|
|
116134
116471
|
const intersections = {};
|
|
@@ -132536,19 +132873,19 @@ var require_core7 = __commonJS({
|
|
|
132536
132873
|
};
|
|
132537
132874
|
}
|
|
132538
132875
|
function makeAnyOfMachine(inputs) {
|
|
132539
|
-
const
|
|
132876
|
+
const output = makeStateMachine();
|
|
132540
132877
|
const heads = [];
|
|
132541
|
-
let offset =
|
|
132878
|
+
let offset = output.nodes.length;
|
|
132542
132879
|
for (const input of inputs) {
|
|
132543
132880
|
heads.push(offset);
|
|
132544
132881
|
for (let t = 0; t < input.nodes.length; ++t)
|
|
132545
132882
|
if (!isTerminalNode(t))
|
|
132546
|
-
|
|
132883
|
+
output.nodes.push(cloneNode(input.nodes[t], offset));
|
|
132547
132884
|
offset += input.nodes.length - 2;
|
|
132548
132885
|
}
|
|
132549
132886
|
for (const head of heads)
|
|
132550
|
-
registerShortcut(
|
|
132551
|
-
return
|
|
132887
|
+
registerShortcut(output, constants.NODE_INITIAL, head);
|
|
132888
|
+
return output;
|
|
132552
132889
|
}
|
|
132553
132890
|
function injectNode(machine, node) {
|
|
132554
132891
|
machine.nodes.push(node);
|
|
@@ -132863,14 +133200,14 @@ var require_core7 = __commonJS({
|
|
|
132863
133200
|
};
|
|
132864
133201
|
}
|
|
132865
133202
|
function cloneNode(input, offset = 0) {
|
|
132866
|
-
const
|
|
133203
|
+
const output = makeNode();
|
|
132867
133204
|
for (const [test, transition] of input.dynamics)
|
|
132868
|
-
|
|
133205
|
+
output.dynamics.push([test, cloneTransition(transition, offset)]);
|
|
132869
133206
|
for (const transition of input.shortcuts)
|
|
132870
|
-
|
|
133207
|
+
output.shortcuts.push(cloneTransition(transition, offset));
|
|
132871
133208
|
for (const [segment, transitions] of Object.entries(input.statics))
|
|
132872
|
-
|
|
132873
|
-
return
|
|
133209
|
+
output.statics[segment] = transitions.map((transition) => cloneTransition(transition, offset));
|
|
133210
|
+
return output;
|
|
132874
133211
|
}
|
|
132875
133212
|
function registerDynamic(machine, from, test, to, reducer) {
|
|
132876
133213
|
machine.nodes[from].dynamics.push([
|
|
@@ -133761,7 +134098,7 @@ var require_help = __commonJS({
|
|
|
133761
134098
|
});
|
|
133762
134099
|
|
|
133763
134100
|
// ../../node_modules/.pnpm/clipanion@3.2.0-rc.6/node_modules/clipanion/lib/advanced/builtins/version.js
|
|
133764
|
-
var
|
|
134101
|
+
var require_version2 = __commonJS({
|
|
133765
134102
|
"../../node_modules/.pnpm/clipanion@3.2.0-rc.6/node_modules/clipanion/lib/advanced/builtins/version.js"(exports2) {
|
|
133766
134103
|
"use strict";
|
|
133767
134104
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -133785,7 +134122,7 @@ var require_builtins2 = __commonJS({
|
|
|
133785
134122
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
133786
134123
|
var definitions = require_definitions();
|
|
133787
134124
|
var help = require_help();
|
|
133788
|
-
var version =
|
|
134125
|
+
var version = require_version2();
|
|
133789
134126
|
exports2.DefinitionsCommand = definitions.DefinitionsCommand;
|
|
133790
134127
|
exports2.HelpCommand = help.HelpCommand;
|
|
133791
134128
|
exports2.VersionCommand = version.VersionCommand;
|
|
@@ -134191,7 +134528,7 @@ var require_MessageName = __commonJS({
|
|
|
134191
134528
|
});
|
|
134192
134529
|
|
|
134193
134530
|
// ../../node_modules/.pnpm/chevrotain@9.1.0/node_modules/chevrotain/lib/src/version.js
|
|
134194
|
-
var
|
|
134531
|
+
var require_version3 = __commonJS({
|
|
134195
134532
|
"../../node_modules/.pnpm/chevrotain@9.1.0/node_modules/chevrotain/lib/src/version.js"(exports2) {
|
|
134196
134533
|
"use strict";
|
|
134197
134534
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -142070,7 +142407,7 @@ var require_render_public = __commonJS({
|
|
|
142070
142407
|
"use strict";
|
|
142071
142408
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
142072
142409
|
exports2.createSyntaxDiagramsCode = void 0;
|
|
142073
|
-
var version_1 =
|
|
142410
|
+
var version_1 = require_version3();
|
|
142074
142411
|
function createSyntaxDiagramsCode(grammar, _a) {
|
|
142075
142412
|
var _b = _a === void 0 ? {} : _a, _c = _b.resourceBase, resourceBase = _c === void 0 ? "https://unpkg.com/chevrotain@" + version_1.VERSION + "/diagrams/" : _c, _d = _b.css, css = _d === void 0 ? "https://unpkg.com/chevrotain@" + version_1.VERSION + "/diagrams/diagrams.css" : _d;
|
|
142076
142413
|
var header = '\n<!-- This is a generated file -->\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n';
|
|
@@ -142091,7 +142428,7 @@ var require_api3 = __commonJS({
|
|
|
142091
142428
|
"use strict";
|
|
142092
142429
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
142093
142430
|
exports2.Parser = exports2.createSyntaxDiagramsCode = exports2.clearCache = exports2.GAstVisitor = exports2.serializeProduction = exports2.serializeGrammar = exports2.Terminal = exports2.Rule = exports2.RepetitionWithSeparator = exports2.RepetitionMandatoryWithSeparator = exports2.RepetitionMandatory = exports2.Repetition = exports2.Option = exports2.NonTerminal = exports2.Alternative = exports2.Alternation = exports2.defaultLexerErrorProvider = exports2.NoViableAltException = exports2.NotAllInputParsedException = exports2.MismatchedTokenException = exports2.isRecognitionException = exports2.EarlyExitException = exports2.defaultParserErrorProvider = exports2.tokenName = exports2.tokenMatcher = exports2.tokenLabel = exports2.EOF = exports2.createTokenInstance = exports2.createToken = exports2.LexerDefinitionErrorType = exports2.Lexer = exports2.EMPTY_ALT = exports2.ParserDefinitionErrorType = exports2.EmbeddedActionsParser = exports2.CstParser = exports2.VERSION = void 0;
|
|
142094
|
-
var version_1 =
|
|
142431
|
+
var version_1 = require_version3();
|
|
142095
142432
|
Object.defineProperty(exports2, "VERSION", { enumerable: true, get: function() {
|
|
142096
142433
|
return version_1.VERSION;
|
|
142097
142434
|
} });
|
|
@@ -142351,14 +142688,14 @@ var require_miscUtils = __commonJS({
|
|
|
142351
142688
|
}
|
|
142352
142689
|
exports.validateEnum = validateEnum;
|
|
142353
142690
|
function mapAndFilter(iterable, cb) {
|
|
142354
|
-
const
|
|
142691
|
+
const output = [];
|
|
142355
142692
|
for (const value of iterable) {
|
|
142356
142693
|
const out = cb(value);
|
|
142357
142694
|
if (out !== mapAndFilterSkip) {
|
|
142358
|
-
|
|
142695
|
+
output.push(out);
|
|
142359
142696
|
}
|
|
142360
142697
|
}
|
|
142361
|
-
return
|
|
142698
|
+
return output;
|
|
142362
142699
|
}
|
|
142363
142700
|
exports.mapAndFilter = mapAndFilter;
|
|
142364
142701
|
var mapAndFilterSkip = Symbol();
|
|
@@ -146559,7 +146896,7 @@ var require_execUtils = __commonJS({
|
|
|
146559
146896
|
});
|
|
146560
146897
|
|
|
146561
146898
|
// ../../node_modules/.pnpm/@sindresorhus+is@4.6.0/node_modules/@sindresorhus/is/dist/index.js
|
|
146562
|
-
var
|
|
146899
|
+
var require_dist15 = __commonJS({
|
|
146563
146900
|
"../../node_modules/.pnpm/@sindresorhus+is@4.6.0/node_modules/@sindresorhus/is/dist/index.js"(exports2, module2) {
|
|
146564
146901
|
"use strict";
|
|
146565
146902
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -150337,7 +150674,7 @@ var require_is_form_data = __commonJS({
|
|
|
150337
150674
|
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/is-form-data.js"(exports2) {
|
|
150338
150675
|
"use strict";
|
|
150339
150676
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150340
|
-
var is_1 =
|
|
150677
|
+
var is_1 = require_dist15();
|
|
150341
150678
|
exports2.default = (body) => is_1.default.nodeStream(body) && is_1.default.function_(body.getBoundary);
|
|
150342
150679
|
}
|
|
150343
150680
|
});
|
|
@@ -150349,7 +150686,7 @@ var require_get_body_size = __commonJS({
|
|
|
150349
150686
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150350
150687
|
var fs_1 = require("fs");
|
|
150351
150688
|
var util_1 = require("util");
|
|
150352
|
-
var is_1 =
|
|
150689
|
+
var is_1 = require_dist15();
|
|
150353
150690
|
var is_form_data_1 = require_is_form_data();
|
|
150354
150691
|
var statAsync = util_1.promisify(fs_1.stat);
|
|
150355
150692
|
exports2.default = async (body, headers) => {
|
|
@@ -150551,7 +150888,7 @@ var require_url_to_options2 = __commonJS({
|
|
|
150551
150888
|
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/core/utils/url-to-options.js"(exports2) {
|
|
150552
150889
|
"use strict";
|
|
150553
150890
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150554
|
-
var is_1 =
|
|
150891
|
+
var is_1 = require_dist15();
|
|
150555
150892
|
exports2.default = (url) => {
|
|
150556
150893
|
url = url;
|
|
150557
150894
|
const options = {
|
|
@@ -150747,7 +151084,7 @@ var require_normalize_arguments = __commonJS({
|
|
|
150747
151084
|
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/as-promise/normalize-arguments.js"(exports2) {
|
|
150748
151085
|
"use strict";
|
|
150749
151086
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150750
|
-
var is_1 =
|
|
151087
|
+
var is_1 = require_dist15();
|
|
150751
151088
|
var normalizeArguments = (options, defaults2) => {
|
|
150752
151089
|
if (is_1.default.null_(options.encoding)) {
|
|
150753
151090
|
throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");
|
|
@@ -150871,7 +151208,7 @@ var require_core8 = __commonJS({
|
|
|
150871
151208
|
var decompressResponse = require_decompress_response();
|
|
150872
151209
|
var http2wrapper = require_source6();
|
|
150873
151210
|
var lowercaseKeys = require_lowercase_keys();
|
|
150874
|
-
var is_1 =
|
|
151211
|
+
var is_1 = require_dist15();
|
|
150875
151212
|
var get_body_size_1 = require_get_body_size();
|
|
150876
151213
|
var is_form_data_1 = require_is_form_data();
|
|
150877
151214
|
var proxy_events_1 = require_proxy_events2();
|
|
@@ -152214,7 +152551,7 @@ var require_as_promise = __commonJS({
|
|
|
152214
152551
|
};
|
|
152215
152552
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152216
152553
|
var events_1 = require("events");
|
|
152217
|
-
var is_1 =
|
|
152554
|
+
var is_1 = require_dist15();
|
|
152218
152555
|
var PCancelable = require_p_cancelable();
|
|
152219
152556
|
var types_1 = require_types6();
|
|
152220
152557
|
var parse_body_1 = require_parse_body();
|
|
@@ -152403,7 +152740,7 @@ var require_deep_freeze = __commonJS({
|
|
|
152403
152740
|
"../../node_modules/.pnpm/got@11.8.5/node_modules/got/dist/source/utils/deep-freeze.js"(exports2) {
|
|
152404
152741
|
"use strict";
|
|
152405
152742
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152406
|
-
var is_1 =
|
|
152743
|
+
var is_1 = require_dist15();
|
|
152407
152744
|
function deepFreeze(object) {
|
|
152408
152745
|
for (const value of Object.values(object)) {
|
|
152409
152746
|
if (is_1.default.plainObject(value) || is_1.default.array(value)) {
|
|
@@ -152446,7 +152783,7 @@ var require_create = __commonJS({
|
|
|
152446
152783
|
};
|
|
152447
152784
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152448
152785
|
exports2.defaultHandler = void 0;
|
|
152449
|
-
var is_1 =
|
|
152786
|
+
var is_1 = require_dist15();
|
|
152450
152787
|
var as_promise_1 = require_as_promise();
|
|
152451
152788
|
var create_rejection_1 = require_create_rejection();
|
|
152452
152789
|
var core_1 = require_core8();
|
|
@@ -156138,11 +156475,11 @@ var require_libzipSync = __commonJS({
|
|
|
156138
156475
|
FS.createSpecialDirectories();
|
|
156139
156476
|
FS.filesystems = { MEMFS, NODEFS };
|
|
156140
156477
|
},
|
|
156141
|
-
init: function(input,
|
|
156478
|
+
init: function(input, output, error) {
|
|
156142
156479
|
FS.init.initialized = true;
|
|
156143
156480
|
FS.ensureErrnoError();
|
|
156144
156481
|
Module["stdin"] = input || Module["stdin"];
|
|
156145
|
-
Module["stdout"] =
|
|
156482
|
+
Module["stdout"] = output || Module["stdout"];
|
|
156146
156483
|
Module["stderr"] = error || Module["stderr"];
|
|
156147
156484
|
FS.createStandardStreams();
|
|
156148
156485
|
},
|
|
@@ -156249,9 +156586,9 @@ var require_libzipSync = __commonJS({
|
|
|
156249
156586
|
}
|
|
156250
156587
|
return node;
|
|
156251
156588
|
},
|
|
156252
|
-
createDevice: function(parent, name, input,
|
|
156589
|
+
createDevice: function(parent, name, input, output) {
|
|
156253
156590
|
var path2 = PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name);
|
|
156254
|
-
var mode = FS.getMode(!!input, !!
|
|
156591
|
+
var mode = FS.getMode(!!input, !!output);
|
|
156255
156592
|
if (!FS.createDevice.major)
|
|
156256
156593
|
FS.createDevice.major = 64;
|
|
156257
156594
|
var dev = FS.makedev(FS.createDevice.major++, 0);
|
|
@@ -156260,8 +156597,8 @@ var require_libzipSync = __commonJS({
|
|
|
156260
156597
|
stream.seekable = false;
|
|
156261
156598
|
},
|
|
156262
156599
|
close: function(stream) {
|
|
156263
|
-
if (
|
|
156264
|
-
|
|
156600
|
+
if (output && output.buffer && output.buffer.length) {
|
|
156601
|
+
output(10);
|
|
156265
156602
|
}
|
|
156266
156603
|
},
|
|
156267
156604
|
read: function(stream, buffer2, offset, length, pos) {
|
|
@@ -156289,7 +156626,7 @@ var require_libzipSync = __commonJS({
|
|
|
156289
156626
|
write: function(stream, buffer2, offset, length, pos) {
|
|
156290
156627
|
for (var i = 0; i < length; i++) {
|
|
156291
156628
|
try {
|
|
156292
|
-
|
|
156629
|
+
output(buffer2[offset + i]);
|
|
156293
156630
|
} catch (e) {
|
|
156294
156631
|
throw new FS.ErrnoError(29);
|
|
156295
156632
|
}
|
|
@@ -157186,7 +157523,7 @@ var require_libzipSync = __commonJS({
|
|
|
157186
157523
|
}
|
|
157187
157524
|
var decodeBase64 = typeof atob === "function" ? atob : function(input) {
|
|
157188
157525
|
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
157189
|
-
var
|
|
157526
|
+
var output = "";
|
|
157190
157527
|
var chr1, chr2, chr3;
|
|
157191
157528
|
var enc1, enc2, enc3, enc4;
|
|
157192
157529
|
var i = 0;
|
|
@@ -157199,15 +157536,15 @@ var require_libzipSync = __commonJS({
|
|
|
157199
157536
|
chr1 = enc1 << 2 | enc2 >> 4;
|
|
157200
157537
|
chr2 = (enc2 & 15) << 4 | enc3 >> 2;
|
|
157201
157538
|
chr3 = (enc3 & 3) << 6 | enc4;
|
|
157202
|
-
|
|
157539
|
+
output = output + String.fromCharCode(chr1);
|
|
157203
157540
|
if (enc3 !== 64) {
|
|
157204
|
-
|
|
157541
|
+
output = output + String.fromCharCode(chr2);
|
|
157205
157542
|
}
|
|
157206
157543
|
if (enc4 !== 64) {
|
|
157207
|
-
|
|
157544
|
+
output = output + String.fromCharCode(chr3);
|
|
157208
157545
|
}
|
|
157209
157546
|
} while (i < input.length);
|
|
157210
|
-
return
|
|
157547
|
+
return output;
|
|
157211
157548
|
};
|
|
157212
157549
|
function intArrayFromBase64(s) {
|
|
157213
157550
|
if (typeof ENVIRONMENT_IS_NODE === "boolean" && ENVIRONMENT_IS_NODE) {
|
|
@@ -158133,8 +158470,8 @@ var require_lib108 = __commonJS({
|
|
|
158133
158470
|
if (outputs.length > 0) {
|
|
158134
158471
|
const pipe = new stream_12.PassThrough();
|
|
158135
158472
|
stdout = pipe;
|
|
158136
|
-
for (const
|
|
158137
|
-
pipe.pipe(
|
|
158473
|
+
for (const output of outputs) {
|
|
158474
|
+
pipe.pipe(output);
|
|
158138
158475
|
}
|
|
158139
158476
|
}
|
|
158140
158477
|
if (errors.length > 0) {
|
|
@@ -158149,15 +158486,15 @@ var require_lib108 = __commonJS({
|
|
|
158149
158486
|
stdout: new pipe_2.ProtectedStream(stdout),
|
|
158150
158487
|
stderr: new pipe_2.ProtectedStream(stderr)
|
|
158151
158488
|
}).run();
|
|
158152
|
-
await Promise.all(outputs.map((
|
|
158489
|
+
await Promise.all(outputs.map((output) => {
|
|
158153
158490
|
return new Promise((resolve, reject2) => {
|
|
158154
|
-
|
|
158491
|
+
output.on(`error`, (error) => {
|
|
158155
158492
|
reject2(error);
|
|
158156
158493
|
});
|
|
158157
|
-
|
|
158494
|
+
output.on(`close`, () => {
|
|
158158
158495
|
resolve();
|
|
158159
158496
|
});
|
|
158160
|
-
|
|
158497
|
+
output.end();
|
|
158161
158498
|
});
|
|
158162
158499
|
}));
|
|
158163
158500
|
await Promise.all(errors.map((err) => {
|
|
@@ -161919,7 +162256,7 @@ var require_fs_minipass = __commonJS({
|
|
|
161919
162256
|
});
|
|
161920
162257
|
|
|
161921
162258
|
// ../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/parse.js
|
|
161922
|
-
var
|
|
162259
|
+
var require_parse8 = __commonJS({
|
|
161923
162260
|
"../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/parse.js"(exports2, module2) {
|
|
161924
162261
|
"use strict";
|
|
161925
162262
|
var warner = require_warn_mixin();
|
|
@@ -162299,7 +162636,7 @@ var require_list2 = __commonJS({
|
|
|
162299
162636
|
"../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/list.js"(exports2, module2) {
|
|
162300
162637
|
"use strict";
|
|
162301
162638
|
var hlo = require_high_level_opt();
|
|
162302
|
-
var Parser =
|
|
162639
|
+
var Parser = require_parse8();
|
|
162303
162640
|
var fs2 = require("fs");
|
|
162304
162641
|
var fsm = require_fs_minipass();
|
|
162305
162642
|
var path2 = require("path");
|
|
@@ -163356,7 +163693,7 @@ var require_unpack = __commonJS({
|
|
|
163356
163693
|
"../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/unpack.js"(exports2, module2) {
|
|
163357
163694
|
"use strict";
|
|
163358
163695
|
var assert = require("assert");
|
|
163359
|
-
var Parser =
|
|
163696
|
+
var Parser = require_parse8();
|
|
163360
163697
|
var fs2 = require("fs");
|
|
163361
163698
|
var fsm = require_fs_minipass();
|
|
163362
163699
|
var path2 = require("path");
|
|
@@ -164082,7 +164419,7 @@ var require_tar = __commonJS({
|
|
|
164082
164419
|
exports2.x = exports2.extract = require_extract2();
|
|
164083
164420
|
exports2.Pack = require_pack2();
|
|
164084
164421
|
exports2.Unpack = require_unpack();
|
|
164085
|
-
exports2.Parse =
|
|
164422
|
+
exports2.Parse = require_parse8();
|
|
164086
164423
|
exports2.ReadEntry = require_read_entry();
|
|
164087
164424
|
exports2.WriteEntry = require_write_entry();
|
|
164088
164425
|
exports2.Header = require_header();
|
|
@@ -165322,7 +165659,7 @@ var require_array3 = __commonJS({
|
|
|
165322
165659
|
});
|
|
165323
165660
|
|
|
165324
165661
|
// ../../node_modules/.pnpm/diff@4.0.2/node_modules/diff/lib/patch/parse.js
|
|
165325
|
-
var
|
|
165662
|
+
var require_parse9 = __commonJS({
|
|
165326
165663
|
"../../node_modules/.pnpm/diff@4.0.2/node_modules/diff/lib/patch/parse.js"(exports2) {
|
|
165327
165664
|
"use strict";
|
|
165328
165665
|
Object.defineProperty(exports2, "__esModule", {
|
|
@@ -165477,7 +165814,7 @@ var require_apply = __commonJS({
|
|
|
165477
165814
|
});
|
|
165478
165815
|
exports2.applyPatch = applyPatch;
|
|
165479
165816
|
exports2.applyPatches = applyPatches;
|
|
165480
|
-
var _parse =
|
|
165817
|
+
var _parse = require_parse9();
|
|
165481
165818
|
var _distanceIterator = _interopRequireDefault(require_distance_iterator());
|
|
165482
165819
|
function _interopRequireDefault(obj) {
|
|
165483
165820
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -165775,7 +166112,7 @@ var require_merge6 = __commonJS({
|
|
|
165775
166112
|
exports2.calcLineCount = calcLineCount;
|
|
165776
166113
|
exports2.merge = merge2;
|
|
165777
166114
|
var _create = require_create3();
|
|
165778
|
-
var _parse =
|
|
166115
|
+
var _parse = require_parse9();
|
|
165779
166116
|
var _array = require_array4();
|
|
165780
166117
|
function _toConsumableArray(arr) {
|
|
165781
166118
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
@@ -166296,7 +166633,7 @@ var require_lib109 = __commonJS({
|
|
|
166296
166633
|
var _json = require_json3();
|
|
166297
166634
|
var _array = require_array3();
|
|
166298
166635
|
var _apply = require_apply();
|
|
166299
|
-
var _parse =
|
|
166636
|
+
var _parse = require_parse9();
|
|
166300
166637
|
var _merge = require_merge6();
|
|
166301
166638
|
var _create = require_create3();
|
|
166302
166639
|
var _dmp = require_dmp();
|
|
@@ -175852,8 +176189,8 @@ var require_renderTree = __commonJS({
|
|
|
175852
176189
|
|
|
175853
176190
|
`;
|
|
175854
176191
|
async function default_1(packages, opts) {
|
|
175855
|
-
const
|
|
175856
|
-
return `${opts.depth > -1 &&
|
|
176192
|
+
const output = (await Promise.all(packages.map(async (pkg) => renderTreeForPackage(pkg, opts)))).filter(Boolean).join("\n\n");
|
|
176193
|
+
return `${opts.depth > -1 && output ? LEGEND : ""}${output}`;
|
|
175857
176194
|
}
|
|
175858
176195
|
exports2.default = default_1;
|
|
175859
176196
|
async function renderTreeForPackage(pkg, opts) {
|
|
@@ -175871,7 +176208,7 @@ var require_renderTree = __commonJS({
|
|
|
175871
176208
|
if (pkg.private) {
|
|
175872
176209
|
label += " (PRIVATE)";
|
|
175873
176210
|
}
|
|
175874
|
-
let
|
|
176211
|
+
let output = `${chalk_1.default.bold.underline(label)}
|
|
175875
176212
|
`;
|
|
175876
176213
|
const useColumns = opts.depth === 0 && !opts.long && !opts.search;
|
|
175877
176214
|
const dependenciesFields = [
|
|
@@ -175883,12 +176220,12 @@ var require_renderTree = __commonJS({
|
|
|
175883
176220
|
for (const dependenciesField of dependenciesFields) {
|
|
175884
176221
|
if (pkg[dependenciesField]?.length) {
|
|
175885
176222
|
const depsLabel = chalk_1.default.cyanBright(dependenciesField !== "unsavedDependencies" ? `${dependenciesField}:` : "not saved (you should add these dependencies to package.json if you need them):");
|
|
175886
|
-
|
|
176223
|
+
output += `
|
|
175887
176224
|
${depsLabel}
|
|
175888
176225
|
`;
|
|
175889
176226
|
const gPkgColor = dependenciesField === "unsavedDependencies" ? () => NOT_SAVED_DEP_CLR : getPkgColor;
|
|
175890
176227
|
if (useColumns && pkg[dependenciesField].length > 10) {
|
|
175891
|
-
|
|
176228
|
+
output += (0, cli_columns_1.default)(pkg[dependenciesField].map(printLabel.bind(printLabel, gPkgColor))) + "\n";
|
|
175892
176229
|
continue;
|
|
175893
176230
|
}
|
|
175894
176231
|
const data = await toArchyTree(gPkgColor, pkg[dependenciesField], {
|
|
@@ -175896,11 +176233,11 @@ ${depsLabel}
|
|
|
175896
176233
|
modules: path_1.default.join(pkg.path, "node_modules")
|
|
175897
176234
|
});
|
|
175898
176235
|
for (const d of data) {
|
|
175899
|
-
|
|
176236
|
+
output += (0, archy_1.default)(d);
|
|
175900
176237
|
}
|
|
175901
176238
|
}
|
|
175902
176239
|
}
|
|
175903
|
-
return
|
|
176240
|
+
return output.replace(/\n$/, "");
|
|
175904
176241
|
}
|
|
175905
176242
|
async function toArchyTree(getPkgColor2, entryNodes, opts) {
|
|
175906
176243
|
return Promise.all(sortPackages(entryNodes).map(async (node) => {
|
|
@@ -176066,14 +176403,14 @@ var require_recursive3 = __commonJS({
|
|
|
176066
176403
|
const outputs = [];
|
|
176067
176404
|
for (const { dir } of pkgs) {
|
|
176068
176405
|
try {
|
|
176069
|
-
const
|
|
176406
|
+
const output = await (0, list_1.render)([dir], params, {
|
|
176070
176407
|
...opts,
|
|
176071
176408
|
alwaysPrintRootPackage: depth === -1,
|
|
176072
176409
|
lockfileDir: opts.lockfileDir ?? dir
|
|
176073
176410
|
});
|
|
176074
|
-
if (!
|
|
176411
|
+
if (!output)
|
|
176075
176412
|
continue;
|
|
176076
|
-
outputs.push(
|
|
176413
|
+
outputs.push(output);
|
|
176077
176414
|
} catch (err) {
|
|
176078
176415
|
logger_1.default.info(err);
|
|
176079
176416
|
err["prefix"] = dir;
|
|
@@ -176870,10 +177207,10 @@ ${details}`;
|
|
|
176870
177207
|
}
|
|
176871
177208
|
exports2.renderPackageName = renderPackageName;
|
|
176872
177209
|
function renderCurrent({ current, wanted }) {
|
|
176873
|
-
const
|
|
177210
|
+
const output = current ?? "missing";
|
|
176874
177211
|
if (current === wanted)
|
|
176875
|
-
return
|
|
176876
|
-
return `${
|
|
177212
|
+
return output;
|
|
177213
|
+
return `${output} (wanted ${wanted})`;
|
|
176877
177214
|
}
|
|
176878
177215
|
exports2.renderCurrent = renderCurrent;
|
|
176879
177216
|
function renderLatest(outdatedPkg) {
|
|
@@ -178381,29 +178718,29 @@ so you may run "pnpm -w run ${scriptName}"`
|
|
|
178381
178718
|
if (lifecycleScripts.length === 0 && otherScripts.length === 0) {
|
|
178382
178719
|
return "There are no scripts specified.";
|
|
178383
178720
|
}
|
|
178384
|
-
let
|
|
178721
|
+
let output = "";
|
|
178385
178722
|
if (lifecycleScripts.length > 0) {
|
|
178386
|
-
|
|
178723
|
+
output += `Lifecycle scripts:
|
|
178387
178724
|
${renderCommands(lifecycleScripts)}`;
|
|
178388
178725
|
}
|
|
178389
178726
|
if (otherScripts.length > 0) {
|
|
178390
|
-
if (
|
|
178391
|
-
|
|
178392
|
-
|
|
178727
|
+
if (output !== "")
|
|
178728
|
+
output += "\n\n";
|
|
178729
|
+
output += `Commands available via "pnpm run":
|
|
178393
178730
|
${renderCommands(otherScripts)}`;
|
|
178394
178731
|
}
|
|
178395
178732
|
if (rootManifest?.scripts == null) {
|
|
178396
|
-
return
|
|
178733
|
+
return output;
|
|
178397
178734
|
}
|
|
178398
178735
|
const rootScripts = Object.entries(rootManifest.scripts);
|
|
178399
178736
|
if (rootScripts.length === 0) {
|
|
178400
|
-
return
|
|
178737
|
+
return output;
|
|
178401
178738
|
}
|
|
178402
|
-
if (
|
|
178403
|
-
|
|
178404
|
-
|
|
178739
|
+
if (output !== "")
|
|
178740
|
+
output += "\n\n";
|
|
178741
|
+
output += `Commands of the root workspace project (to run them, use "pnpm -w run"):
|
|
178405
178742
|
${renderCommands(rootScripts)}`;
|
|
178406
|
-
return
|
|
178743
|
+
return output;
|
|
178407
178744
|
}
|
|
178408
178745
|
function renderCommands(commands) {
|
|
178409
178746
|
return commands.map(([scriptName, script]) => ` ${scriptName}
|
|
@@ -179656,7 +179993,7 @@ ${newContent}`, "utf8");
|
|
|
179656
179993
|
});
|
|
179657
179994
|
|
|
179658
179995
|
// ../../node_modules/.pnpm/@pnpm+os.env.path-extender-posix@0.2.2/node_modules/@pnpm/os.env.path-extender-posix/dist/index.js
|
|
179659
|
-
var
|
|
179996
|
+
var require_dist16 = __commonJS({
|
|
179660
179997
|
"../../node_modules/.pnpm/@pnpm+os.env.path-extender-posix@0.2.2/node_modules/@pnpm/os.env.path-extender-posix/dist/index.js"(exports2) {
|
|
179661
179998
|
"use strict";
|
|
179662
179999
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -179744,9 +180081,9 @@ var require_has_symbols = __commonJS({
|
|
|
179744
180081
|
}
|
|
179745
180082
|
});
|
|
179746
180083
|
|
|
179747
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.1.
|
|
180084
|
+
// ../../node_modules/.pnpm/get-intrinsic@1.1.2/node_modules/get-intrinsic/index.js
|
|
179748
180085
|
var require_get_intrinsic = __commonJS({
|
|
179749
|
-
"../../node_modules/.pnpm/get-intrinsic@1.1.
|
|
180086
|
+
"../../node_modules/.pnpm/get-intrinsic@1.1.2/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
179750
180087
|
"use strict";
|
|
179751
180088
|
var undefined2;
|
|
179752
180089
|
var $SyntaxError = SyntaxError;
|
|
@@ -179934,6 +180271,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
179934
180271
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
179935
180272
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
179936
180273
|
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
180274
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
179937
180275
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
179938
180276
|
var reEscapeChar = /\\(\\)?/g;
|
|
179939
180277
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -179980,6 +180318,9 @@ var require_get_intrinsic = __commonJS({
|
|
|
179980
180318
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
179981
180319
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
179982
180320
|
}
|
|
180321
|
+
if ($exec(/^%?[^%]*%?$/g, name) === null) {
|
|
180322
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
180323
|
+
}
|
|
179983
180324
|
var parts = stringToPath(name);
|
|
179984
180325
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
179985
180326
|
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
@@ -183101,7 +183442,7 @@ var require_path_extender_windows = __commonJS({
|
|
|
183101
183442
|
});
|
|
183102
183443
|
|
|
183103
183444
|
// ../../node_modules/.pnpm/@pnpm+os.env.path-extender-windows@0.2.0/node_modules/@pnpm/os.env.path-extender-windows/dist/index.js
|
|
183104
|
-
var
|
|
183445
|
+
var require_dist17 = __commonJS({
|
|
183105
183446
|
"../../node_modules/.pnpm/@pnpm+os.env.path-extender-windows@0.2.0/node_modules/@pnpm/os.env.path-extender-windows/dist/index.js"(exports2) {
|
|
183106
183447
|
"use strict";
|
|
183107
183448
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -183146,8 +183487,8 @@ var require_path_extender = __commonJS({
|
|
|
183146
183487
|
};
|
|
183147
183488
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
183148
183489
|
exports2.renderWindowsReport = exports2.addDirToEnvPath = void 0;
|
|
183149
|
-
var os_env_path_extender_posix_1 =
|
|
183150
|
-
var os_env_path_extender_windows_1 =
|
|
183490
|
+
var os_env_path_extender_posix_1 = require_dist16();
|
|
183491
|
+
var os_env_path_extender_windows_1 = require_dist17();
|
|
183151
183492
|
function addDirToEnvPath(dir, opts) {
|
|
183152
183493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183153
183494
|
if (process.platform === "win32") {
|
|
@@ -183182,7 +183523,7 @@ var require_path_extender = __commonJS({
|
|
|
183182
183523
|
});
|
|
183183
183524
|
|
|
183184
183525
|
// ../../node_modules/.pnpm/@pnpm+os.env.path-extender@0.2.3/node_modules/@pnpm/os.env.path-extender/dist/index.js
|
|
183185
|
-
var
|
|
183526
|
+
var require_dist18 = __commonJS({
|
|
183186
183527
|
"../../node_modules/.pnpm/@pnpm+os.env.path-extender@0.2.3/node_modules/@pnpm/os.env.path-extender/dist/index.js"(exports2) {
|
|
183187
183528
|
"use strict";
|
|
183188
183529
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -183207,7 +183548,7 @@ var require_setup = __commonJS({
|
|
|
183207
183548
|
var path_1 = __importDefault(require("path"));
|
|
183208
183549
|
var cli_utils_1 = require_lib22();
|
|
183209
183550
|
var logger_1 = __importDefault(require_lib6());
|
|
183210
|
-
var os_env_path_extender_1 =
|
|
183551
|
+
var os_env_path_extender_1 = require_dist18();
|
|
183211
183552
|
var render_help_1 = __importDefault(require_lib31());
|
|
183212
183553
|
var rcOptionsTypes = () => ({});
|
|
183213
183554
|
exports2.rcOptionsTypes = rcOptionsTypes;
|
|
@@ -183284,14 +183625,14 @@ var require_setup = __commonJS({
|
|
|
183284
183625
|
if (report.oldSettings === report.newSettings) {
|
|
183285
183626
|
return "No changes to the environment were made. Everything is already up-to-date.";
|
|
183286
183627
|
}
|
|
183287
|
-
const
|
|
183628
|
+
const output = [];
|
|
183288
183629
|
if (report.configFile) {
|
|
183289
|
-
|
|
183630
|
+
output.push(reportConfigChange(report.configFile));
|
|
183290
183631
|
}
|
|
183291
|
-
|
|
183632
|
+
output.push(`Next configuration changes were made:
|
|
183292
183633
|
${report.newSettings}`);
|
|
183293
|
-
|
|
183294
|
-
return
|
|
183634
|
+
output.push("Setup complete. Open a new terminal to start using pnpm.");
|
|
183635
|
+
return output.join("\n\n");
|
|
183295
183636
|
}
|
|
183296
183637
|
function reportConfigChange(configReport) {
|
|
183297
183638
|
switch (configReport.changeType) {
|
|
@@ -184981,7 +185322,7 @@ var require_lodash = __commonJS({
|
|
|
184981
185322
|
});
|
|
184982
185323
|
|
|
184983
185324
|
// ../../node_modules/.pnpm/didyoumean2@5.0.0/node_modules/didyoumean2/dist/index.cjs
|
|
184984
|
-
var
|
|
185325
|
+
var require_dist19 = __commonJS({
|
|
184985
185326
|
"../../node_modules/.pnpm/didyoumean2@5.0.0/node_modules/didyoumean2/dist/index.cjs"(exports2) {
|
|
184986
185327
|
"use strict";
|
|
184987
185328
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -185163,7 +185504,7 @@ var require_lib127 = __commonJS({
|
|
|
185163
185504
|
var error_1 = __importDefault(require_lib8());
|
|
185164
185505
|
var find_workspace_dir_1 = __importDefault(require_lib103());
|
|
185165
185506
|
var nopt_1 = __importDefault(require_nopt());
|
|
185166
|
-
var didyoumean2_1 = __importStar2(
|
|
185507
|
+
var didyoumean2_1 = __importStar2(require_dist19());
|
|
185167
185508
|
var RECURSIVE_CMDS = /* @__PURE__ */ new Set(["recursive", "multi", "m"]);
|
|
185168
185509
|
async function parseCliArgs(opts, inputArgv) {
|
|
185169
185510
|
const noptExploratoryResults = (0, nopt_1.default)({
|
|
@@ -186049,18 +186390,18 @@ var require_formatError = __commonJS({
|
|
|
186049
186390
|
exports2.formatUnknownOptionsError = void 0;
|
|
186050
186391
|
var chalk_1 = __importDefault(require_source());
|
|
186051
186392
|
function formatUnknownOptionsError(unknownOptions) {
|
|
186052
|
-
let
|
|
186393
|
+
let output = chalk_1.default.bgRed.black("\u2009ERROR\u2009");
|
|
186053
186394
|
const unknownOptionsArray = Array.from(unknownOptions.keys());
|
|
186054
186395
|
if (unknownOptionsArray.length > 1) {
|
|
186055
|
-
return `${
|
|
186396
|
+
return `${output} ${chalk_1.default.red(`Unknown options: ${unknownOptionsArray.map((unknownOption2) => `'${unknownOption2}'`).join(", ")}`)}`;
|
|
186056
186397
|
}
|
|
186057
186398
|
const unknownOption = unknownOptionsArray[0];
|
|
186058
|
-
|
|
186399
|
+
output += ` ${chalk_1.default.red(`Unknown option: '${unknownOption}'`)}`;
|
|
186059
186400
|
const didYouMeanOptions = unknownOptions.get(unknownOption);
|
|
186060
186401
|
if (!didYouMeanOptions?.length) {
|
|
186061
|
-
return
|
|
186402
|
+
return output;
|
|
186062
186403
|
}
|
|
186063
|
-
return `${
|
|
186404
|
+
return `${output}
|
|
186064
186405
|
Did you mean '${didYouMeanOptions.join("', or '")}'? Use "--config.unknown=value" to force an unknown option.`;
|
|
186065
186406
|
}
|
|
186066
186407
|
exports2.formatUnknownOptionsError = formatUnknownOptionsError;
|
|
@@ -186440,7 +186781,7 @@ var require_main2 = __commonJS({
|
|
|
186440
186781
|
config.allProjects = allProjects;
|
|
186441
186782
|
config.workspaceDir = wsDir;
|
|
186442
186783
|
}
|
|
186443
|
-
let { output
|
|
186784
|
+
let { output, exitCode } = await (async () => {
|
|
186444
186785
|
await new Promise((resolve) => setTimeout(() => resolve(), 0));
|
|
186445
186786
|
if (config.updateNotifier !== false && !is_ci_1.default && !selfUpdate && !config.offline && !config.preferOffline && !config.fallbackCommandUsed && (cmd === "install" || cmd === "add")) {
|
|
186446
186787
|
(0, checkForUpdates_1.default)(config).catch(() => {
|
|
@@ -186476,12 +186817,12 @@ var require_main2 = __commonJS({
|
|
|
186476
186817
|
}
|
|
186477
186818
|
return result2;
|
|
186478
186819
|
})();
|
|
186479
|
-
if (
|
|
186480
|
-
if (!
|
|
186481
|
-
|
|
186820
|
+
if (output) {
|
|
186821
|
+
if (!output.endsWith("\n")) {
|
|
186822
|
+
output = `${output}
|
|
186482
186823
|
`;
|
|
186483
186824
|
}
|
|
186484
|
-
write(
|
|
186825
|
+
write(output);
|
|
186485
186826
|
}
|
|
186486
186827
|
if (!cmd) {
|
|
186487
186828
|
exitCode = 1;
|