@settlemint/sdk-cli 0.6.56 → 0.6.57-mainaa83ea1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +316 -286
- package/dist/cli.js.map +13 -12
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1755,11 +1755,11 @@ var require_buffer_from = __commonJS((exports, module) => {
|
|
|
1755
1755
|
var require_source_map_support = __commonJS((exports, module) => {
|
|
1756
1756
|
var SourceMapConsumer = require_source_map().SourceMapConsumer;
|
|
1757
1757
|
var path3 = __require("path");
|
|
1758
|
-
var
|
|
1758
|
+
var fs3;
|
|
1759
1759
|
try {
|
|
1760
|
-
|
|
1761
|
-
if (!
|
|
1762
|
-
|
|
1760
|
+
fs3 = __require("fs");
|
|
1761
|
+
if (!fs3.existsSync || !fs3.readFileSync) {
|
|
1762
|
+
fs3 = null;
|
|
1763
1763
|
}
|
|
1764
1764
|
} catch (err) {
|
|
1765
1765
|
}
|
|
@@ -1827,15 +1827,15 @@ var require_source_map_support = __commonJS((exports, module) => {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
var contents = "";
|
|
1829
1829
|
try {
|
|
1830
|
-
if (!
|
|
1830
|
+
if (!fs3) {
|
|
1831
1831
|
var xhr = new XMLHttpRequest;
|
|
1832
1832
|
xhr.open("GET", path4, false);
|
|
1833
1833
|
xhr.send(null);
|
|
1834
1834
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
1835
1835
|
contents = xhr.responseText;
|
|
1836
1836
|
}
|
|
1837
|
-
} else if (
|
|
1838
|
-
contents =
|
|
1837
|
+
} else if (fs3.existsSync(path4)) {
|
|
1838
|
+
contents = fs3.readFileSync(path4, "utf8");
|
|
1839
1839
|
}
|
|
1840
1840
|
} catch (er) {
|
|
1841
1841
|
}
|
|
@@ -2101,9 +2101,9 @@ var require_source_map_support = __commonJS((exports, module) => {
|
|
|
2101
2101
|
var line = +match[2];
|
|
2102
2102
|
var column = +match[3];
|
|
2103
2103
|
var contents = fileContentsCache[source];
|
|
2104
|
-
if (!contents &&
|
|
2104
|
+
if (!contents && fs3 && fs3.existsSync(source)) {
|
|
2105
2105
|
try {
|
|
2106
|
-
contents =
|
|
2106
|
+
contents = fs3.readFileSync(source, "utf8");
|
|
2107
2107
|
} catch (er) {
|
|
2108
2108
|
contents = "";
|
|
2109
2109
|
}
|
|
@@ -5894,10 +5894,10 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
5894
5894
|
function and(f, g) {
|
|
5895
5895
|
return (arg) => f(arg) && g(arg);
|
|
5896
5896
|
}
|
|
5897
|
-
function or(...
|
|
5897
|
+
function or(...fs3) {
|
|
5898
5898
|
return (...args) => {
|
|
5899
5899
|
let lastResult;
|
|
5900
|
-
for (const f of
|
|
5900
|
+
for (const f of fs3) {
|
|
5901
5901
|
lastResult = f(...args);
|
|
5902
5902
|
if (lastResult) {
|
|
5903
5903
|
return lastResult;
|
|
@@ -7354,7 +7354,7 @@ ${lanes.join(`
|
|
|
7354
7354
|
var tracing;
|
|
7355
7355
|
var tracingEnabled;
|
|
7356
7356
|
((tracingEnabled2) => {
|
|
7357
|
-
let
|
|
7357
|
+
let fs3;
|
|
7358
7358
|
let traceCount = 0;
|
|
7359
7359
|
let traceFd = 0;
|
|
7360
7360
|
let mode;
|
|
@@ -7363,9 +7363,9 @@ ${lanes.join(`
|
|
|
7363
7363
|
const legend = [];
|
|
7364
7364
|
function startTracing2(tracingMode, traceDir, configFilePath) {
|
|
7365
7365
|
Debug.assert(!tracing, "Tracing already started");
|
|
7366
|
-
if (
|
|
7366
|
+
if (fs3 === undefined) {
|
|
7367
7367
|
try {
|
|
7368
|
-
|
|
7368
|
+
fs3 = __require("fs");
|
|
7369
7369
|
} catch (e) {
|
|
7370
7370
|
throw new Error(`tracing requires having fs
|
|
7371
7371
|
(original error: ${e.message || e})`);
|
|
@@ -7376,8 +7376,8 @@ ${lanes.join(`
|
|
|
7376
7376
|
if (legendPath === undefined) {
|
|
7377
7377
|
legendPath = combinePaths(traceDir, "legend.json");
|
|
7378
7378
|
}
|
|
7379
|
-
if (!
|
|
7380
|
-
|
|
7379
|
+
if (!fs3.existsSync(traceDir)) {
|
|
7380
|
+
fs3.mkdirSync(traceDir, { recursive: true });
|
|
7381
7381
|
}
|
|
7382
7382
|
const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
|
|
7383
7383
|
const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
|
|
@@ -7387,10 +7387,10 @@ ${lanes.join(`
|
|
|
7387
7387
|
tracePath,
|
|
7388
7388
|
typesPath
|
|
7389
7389
|
});
|
|
7390
|
-
traceFd =
|
|
7390
|
+
traceFd = fs3.openSync(tracePath, "w");
|
|
7391
7391
|
tracing = tracingEnabled2;
|
|
7392
7392
|
const meta = { cat: "__metadata", ph: "M", ts: 1000 * timestamp(), pid: 1, tid: 1 };
|
|
7393
|
-
|
|
7393
|
+
fs3.writeSync(traceFd, `[
|
|
7394
7394
|
` + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(`,
|
|
7395
7395
|
`));
|
|
7396
7396
|
}
|
|
@@ -7398,10 +7398,10 @@ ${lanes.join(`
|
|
|
7398
7398
|
function stopTracing() {
|
|
7399
7399
|
Debug.assert(tracing, "Tracing is not in progress");
|
|
7400
7400
|
Debug.assert(!!typeCatalog.length === (mode !== "server"));
|
|
7401
|
-
|
|
7401
|
+
fs3.writeSync(traceFd, `
|
|
7402
7402
|
]
|
|
7403
7403
|
`);
|
|
7404
|
-
|
|
7404
|
+
fs3.closeSync(traceFd);
|
|
7405
7405
|
tracing = undefined;
|
|
7406
7406
|
if (typeCatalog.length) {
|
|
7407
7407
|
dumpTypes(typeCatalog);
|
|
@@ -7466,13 +7466,13 @@ ${lanes.join(`
|
|
|
7466
7466
|
if (mode === "server" && phase === "checkTypes")
|
|
7467
7467
|
return;
|
|
7468
7468
|
mark("beginTracing");
|
|
7469
|
-
|
|
7469
|
+
fs3.writeSync(traceFd, `,
|
|
7470
7470
|
{"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
|
|
7471
7471
|
if (extras)
|
|
7472
|
-
|
|
7472
|
+
fs3.writeSync(traceFd, `,${extras}`);
|
|
7473
7473
|
if (args)
|
|
7474
|
-
|
|
7475
|
-
|
|
7474
|
+
fs3.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
|
|
7475
|
+
fs3.writeSync(traceFd, `}`);
|
|
7476
7476
|
mark("endTracing");
|
|
7477
7477
|
measure("Tracing", "beginTracing", "endTracing");
|
|
7478
7478
|
}
|
|
@@ -7494,9 +7494,9 @@ ${lanes.join(`
|
|
|
7494
7494
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
7495
7495
|
mark("beginDumpTypes");
|
|
7496
7496
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
7497
|
-
const typesFd =
|
|
7497
|
+
const typesFd = fs3.openSync(typesPath, "w");
|
|
7498
7498
|
const recursionIdentityMap = /* @__PURE__ */ new Map;
|
|
7499
|
-
|
|
7499
|
+
fs3.writeSync(typesFd, "[");
|
|
7500
7500
|
const numTypes = types.length;
|
|
7501
7501
|
for (let i = 0;i < numTypes; i++) {
|
|
7502
7502
|
const type = types[i];
|
|
@@ -7592,15 +7592,15 @@ ${lanes.join(`
|
|
|
7592
7592
|
flags: Debug.formatTypeFlags(type.flags).split("|"),
|
|
7593
7593
|
display
|
|
7594
7594
|
};
|
|
7595
|
-
|
|
7595
|
+
fs3.writeSync(typesFd, JSON.stringify(descriptor));
|
|
7596
7596
|
if (i < numTypes - 1) {
|
|
7597
|
-
|
|
7597
|
+
fs3.writeSync(typesFd, `,
|
|
7598
7598
|
`);
|
|
7599
7599
|
}
|
|
7600
7600
|
}
|
|
7601
|
-
|
|
7601
|
+
fs3.writeSync(typesFd, `]
|
|
7602
7602
|
`);
|
|
7603
|
-
|
|
7603
|
+
fs3.closeSync(typesFd);
|
|
7604
7604
|
mark("endDumpTypes");
|
|
7605
7605
|
measure("Dump types", "beginDumpTypes", "endDumpTypes");
|
|
7606
7606
|
}
|
|
@@ -7608,7 +7608,7 @@ ${lanes.join(`
|
|
|
7608
7608
|
if (!legendPath) {
|
|
7609
7609
|
return;
|
|
7610
7610
|
}
|
|
7611
|
-
|
|
7611
|
+
fs3.writeFileSync(legendPath, JSON.stringify(legend));
|
|
7612
7612
|
}
|
|
7613
7613
|
tracingEnabled2.dumpLegend = dumpLegend;
|
|
7614
7614
|
})(tracingEnabled || (tracingEnabled = {}));
|
|
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
|
|
|
197427
197427
|
code: "ENOENT"
|
|
197428
197428
|
}), getPathInfo = (e9, t7) => {
|
|
197429
197429
|
var r6 = t7.colon || or;
|
|
197430
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
197430
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ApWx3BrdGk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
197431
197431
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
197432
197432
|
var a5 = nr ? n6.split(r6) : [""];
|
|
197433
197433
|
if (nr) {
|
|
@@ -200564,7 +200564,7 @@ ${whileRunning(e9)}`;
|
|
|
200564
200564
|
};
|
|
200565
200565
|
ni = Object.assign(async function _main() {
|
|
200566
200566
|
var e9 = new Cli({
|
|
200567
|
-
binaryVersion: "0.6.
|
|
200567
|
+
binaryVersion: "0.6.57-mainaa83ea1",
|
|
200568
200568
|
binaryLabel: "gql.tada CLI",
|
|
200569
200569
|
binaryName: "gql.tada"
|
|
200570
200570
|
});
|
|
@@ -203073,24 +203073,24 @@ var require_ls = __commonJS((exports, module) => {
|
|
|
203073
203073
|
|
|
203074
203074
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/fsx.js
|
|
203075
203075
|
var require_fsx = __commonJS((exports, module) => {
|
|
203076
|
-
var
|
|
203076
|
+
var fs3 = __require("fs");
|
|
203077
203077
|
var ENCODING = "utf8";
|
|
203078
203078
|
function readFileX(filepath, encoding = null) {
|
|
203079
203079
|
if (!encoding) {
|
|
203080
203080
|
encoding = ENCODING;
|
|
203081
203081
|
}
|
|
203082
|
-
return
|
|
203082
|
+
return fs3.readFileSync(filepath, encoding);
|
|
203083
203083
|
}
|
|
203084
203084
|
function writeFileX(filepath, str) {
|
|
203085
|
-
return
|
|
203085
|
+
return fs3.writeFileSync(filepath, str, ENCODING);
|
|
203086
203086
|
}
|
|
203087
203087
|
var fsx = {
|
|
203088
|
-
chmodSync:
|
|
203089
|
-
existsSync:
|
|
203090
|
-
readdirSync:
|
|
203091
|
-
readFileSync:
|
|
203092
|
-
writeFileSync:
|
|
203093
|
-
appendFileSync:
|
|
203088
|
+
chmodSync: fs3.chmodSync,
|
|
203089
|
+
existsSync: fs3.existsSync,
|
|
203090
|
+
readdirSync: fs3.readdirSync,
|
|
203091
|
+
readFileSync: fs3.readFileSync,
|
|
203092
|
+
writeFileSync: fs3.writeFileSync,
|
|
203093
|
+
appendFileSync: fs3.appendFileSync,
|
|
203094
203094
|
readFileX,
|
|
203095
203095
|
writeFileX
|
|
203096
203096
|
};
|
|
@@ -203164,7 +203164,7 @@ var require_package2 = __commonJS((exports, module) => {
|
|
|
203164
203164
|
|
|
203165
203165
|
// ../../node_modules/dotenv/lib/main.js
|
|
203166
203166
|
var require_main = __commonJS((exports, module) => {
|
|
203167
|
-
var
|
|
203167
|
+
var fs3 = __require("fs");
|
|
203168
203168
|
var path3 = __require("path");
|
|
203169
203169
|
var os = __require("os");
|
|
203170
203170
|
var crypto = __require("crypto");
|
|
@@ -203273,7 +203273,7 @@ var require_main = __commonJS((exports, module) => {
|
|
|
203273
203273
|
if (options && options.path && options.path.length > 0) {
|
|
203274
203274
|
if (Array.isArray(options.path)) {
|
|
203275
203275
|
for (const filepath of options.path) {
|
|
203276
|
-
if (
|
|
203276
|
+
if (fs3.existsSync(filepath)) {
|
|
203277
203277
|
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
203278
203278
|
}
|
|
203279
203279
|
}
|
|
@@ -203283,7 +203283,7 @@ var require_main = __commonJS((exports, module) => {
|
|
|
203283
203283
|
} else {
|
|
203284
203284
|
possibleVaultPath = path3.resolve(process.cwd(), ".env.vault");
|
|
203285
203285
|
}
|
|
203286
|
-
if (
|
|
203286
|
+
if (fs3.existsSync(possibleVaultPath)) {
|
|
203287
203287
|
return possibleVaultPath;
|
|
203288
203288
|
}
|
|
203289
203289
|
return null;
|
|
@@ -203327,7 +203327,7 @@ var require_main = __commonJS((exports, module) => {
|
|
|
203327
203327
|
const parsedAll = {};
|
|
203328
203328
|
for (const path4 of optionPaths) {
|
|
203329
203329
|
try {
|
|
203330
|
-
const parsed = DotenvModule.parse(
|
|
203330
|
+
const parsed = DotenvModule.parse(fs3.readFileSync(path4, { encoding }));
|
|
203331
203331
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
203332
203332
|
} catch (e9) {
|
|
203333
203333
|
if (debug2) {
|
|
@@ -209434,9 +209434,9 @@ var require_parseEnvironmentFromDotenvKey = __commonJS((exports, module) => {
|
|
|
209434
209434
|
|
|
209435
209435
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/detectEncoding.js
|
|
209436
209436
|
var require_detectEncoding = __commonJS((exports, module) => {
|
|
209437
|
-
var
|
|
209437
|
+
var fs3 = __require("fs");
|
|
209438
209438
|
function detectEncoding(filepath) {
|
|
209439
|
-
const buffer =
|
|
209439
|
+
const buffer = fs3.readFileSync(filepath);
|
|
209440
209440
|
if (buffer.length >= 2 && buffer[0] === 255 && buffer[1] === 254) {
|
|
209441
209441
|
return "utf16le";
|
|
209442
209442
|
}
|
|
@@ -215942,8 +215942,8 @@ var require_commonjs4 = __commonJS((exports) => {
|
|
|
215942
215942
|
#children;
|
|
215943
215943
|
nocase;
|
|
215944
215944
|
#fs;
|
|
215945
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
215946
|
-
this.#fs = fsFromOption2(
|
|
215945
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs4 = defaultFS2 } = {}) {
|
|
215946
|
+
this.#fs = fsFromOption2(fs4);
|
|
215947
215947
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
215948
215948
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
215949
215949
|
}
|
|
@@ -216420,8 +216420,8 @@ var require_commonjs4 = __commonJS((exports) => {
|
|
|
216420
216420
|
parseRootPath(dir) {
|
|
216421
216421
|
return node_path_1.win32.parse(dir).root.toUpperCase();
|
|
216422
216422
|
}
|
|
216423
|
-
newRoot(
|
|
216424
|
-
return new PathWin322(this.rootPath, IFDIR2, undefined, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
216423
|
+
newRoot(fs4) {
|
|
216424
|
+
return new PathWin322(this.rootPath, IFDIR2, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs4 });
|
|
216425
216425
|
}
|
|
216426
216426
|
isAbsolute(p4) {
|
|
216427
216427
|
return p4.startsWith("/") || p4.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p4);
|
|
@@ -216439,8 +216439,8 @@ var require_commonjs4 = __commonJS((exports) => {
|
|
|
216439
216439
|
parseRootPath(_dir) {
|
|
216440
216440
|
return "/";
|
|
216441
216441
|
}
|
|
216442
|
-
newRoot(
|
|
216443
|
-
return new PathPosix2(this.rootPath, IFDIR2, undefined, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
216442
|
+
newRoot(fs4) {
|
|
216443
|
+
return new PathPosix2(this.rootPath, IFDIR2, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs4 });
|
|
216444
216444
|
}
|
|
216445
216445
|
isAbsolute(p4) {
|
|
216446
216446
|
return p4.startsWith("/");
|
|
@@ -218401,7 +218401,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
218401
218401
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
218402
218402
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
218403
218403
|
var getPathInfo2 = (cmd2, {
|
|
218404
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218404
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ApWx3BrdGk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218405
218405
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
218406
218406
|
delimiter: optDelimiter = delimiter
|
|
218407
218407
|
}) => {
|
|
@@ -218605,7 +218605,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
218605
218605
|
let pathToInitial;
|
|
218606
218606
|
try {
|
|
218607
218607
|
pathToInitial = which.sync(initialCmd, {
|
|
218608
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218608
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ApWx3BrdGk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218609
218609
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
218610
218610
|
}).toLowerCase();
|
|
218611
218611
|
} catch (err) {
|
|
@@ -219266,7 +219266,7 @@ var require_ini = __commonJS((exports, module) => {
|
|
|
219266
219266
|
|
|
219267
219267
|
// ../../node_modules/@npmcli/git/lib/opts.js
|
|
219268
219268
|
var require_opts = __commonJS((exports, module) => {
|
|
219269
|
-
var
|
|
219269
|
+
var fs4 = __require("node:fs");
|
|
219270
219270
|
var os = __require("node:os");
|
|
219271
219271
|
var path5 = __require("node:path");
|
|
219272
219272
|
var ini = require_ini();
|
|
@@ -219276,8 +219276,8 @@ var require_opts = __commonJS((exports, module) => {
|
|
|
219276
219276
|
if (cachedConfig === null) {
|
|
219277
219277
|
try {
|
|
219278
219278
|
cachedConfig = {};
|
|
219279
|
-
if (
|
|
219280
|
-
const configContent =
|
|
219279
|
+
if (fs4.existsSync(gitConfigPath)) {
|
|
219280
|
+
const configContent = fs4.readFileSync(gitConfigPath, "utf-8");
|
|
219281
219281
|
cachedConfig = ini.parse(configContent);
|
|
219282
219282
|
}
|
|
219283
219283
|
} catch (error5) {
|
|
@@ -219322,7 +219322,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
219322
219322
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
219323
219323
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
219324
219324
|
var getPathInfo2 = (cmd2, {
|
|
219325
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
219325
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ApWx3BrdGk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
219326
219326
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
219327
219327
|
delimiter: optDelimiter = delimiter
|
|
219328
219328
|
}) => {
|
|
@@ -221341,7 +221341,7 @@ var require_npa = __commonJS((exports, module) => {
|
|
|
221341
221341
|
var require_current_env = __commonJS((exports, module) => {
|
|
221342
221342
|
var process5 = __require("node:process");
|
|
221343
221343
|
var nodeOs = __require("node:os");
|
|
221344
|
-
var
|
|
221344
|
+
var fs4 = __require("node:fs");
|
|
221345
221345
|
function isMusl(file) {
|
|
221346
221346
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
221347
221347
|
}
|
|
@@ -221354,7 +221354,7 @@ var require_current_env = __commonJS((exports, module) => {
|
|
|
221354
221354
|
var LDD_PATH = "/usr/bin/ldd";
|
|
221355
221355
|
function getFamilyFromFilesystem() {
|
|
221356
221356
|
try {
|
|
221357
|
-
const content =
|
|
221357
|
+
const content = fs4.readFileSync(LDD_PATH, "utf-8");
|
|
221358
221358
|
if (content.includes("musl")) {
|
|
221359
221359
|
return "musl";
|
|
221360
221360
|
}
|
|
@@ -221840,7 +221840,7 @@ var require_clone = __commonJS((exports, module) => {
|
|
|
221840
221840
|
var spawn2 = require_spawn();
|
|
221841
221841
|
var { isWindows } = require_utils8();
|
|
221842
221842
|
var pickManifest = require_lib10();
|
|
221843
|
-
var
|
|
221843
|
+
var fs4 = __require("fs/promises");
|
|
221844
221844
|
module.exports = (repo, ref = "HEAD", target = null, opts = {}) => getRevs(repo, opts).then((revs) => clone(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
|
|
221845
221845
|
var maybeShallow = (repo, opts) => {
|
|
221846
221846
|
if (opts.gitShallow === false || opts.gitShallow) {
|
|
@@ -221885,7 +221885,7 @@ var require_clone = __commonJS((exports, module) => {
|
|
|
221885
221885
|
const shallow = maybeShallow(repo, opts);
|
|
221886
221886
|
const fetchOrigin = ["fetch", "origin", revDoc.rawRef].concat(shallow ? ["--depth=1"] : []);
|
|
221887
221887
|
const git = (args) => spawn2(args, { ...opts, cwd: target });
|
|
221888
|
-
return
|
|
221888
|
+
return fs4.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git(["config", "--local", "--add", "core.longpaths", "true"]) : null).then(() => git(["remote", "add", "origin", repo])).then(() => git(fetchOrigin)).then(() => git(["checkout", revDoc.sha])).then(() => updateSubmodules(target, opts)).then(() => revDoc.sha);
|
|
221889
221889
|
};
|
|
221890
221890
|
var branch = (repo, revDoc, target, opts) => {
|
|
221891
221891
|
const args = [
|
|
@@ -221920,7 +221920,7 @@ var require_clone = __commonJS((exports, module) => {
|
|
|
221920
221920
|
return spawn2(args, opts).then(() => revDoc.sha);
|
|
221921
221921
|
};
|
|
221922
221922
|
var updateSubmodules = async (target, opts) => {
|
|
221923
|
-
const hasSubmodules = await
|
|
221923
|
+
const hasSubmodules = await fs4.stat(`${target}/.gitmodules`).then(() => true).catch(() => false);
|
|
221924
221924
|
if (!hasSubmodules) {
|
|
221925
221925
|
return null;
|
|
221926
221926
|
}
|
|
@@ -221936,7 +221936,7 @@ var require_clone = __commonJS((exports, module) => {
|
|
|
221936
221936
|
const lp = isWindows(opts) ? ["--config", "core.longpaths=true"] : [];
|
|
221937
221937
|
const cloneArgs = ["clone", "--mirror", "-q", repo, target + "/.git"];
|
|
221938
221938
|
const git = (args) => spawn2(args, { ...opts, cwd: target });
|
|
221939
|
-
return
|
|
221939
|
+
return fs4.mkdir(target, { recursive: true }).then(() => git(cloneArgs.concat(lp))).then(() => git(["init"])).then(() => git(["checkout", ref])).then(() => updateSubmodules(target, opts)).then(() => git(["rev-parse", "--revs-only", "HEAD"])).then(({ stdout }) => stdout.trim());
|
|
221940
221940
|
};
|
|
221941
221941
|
});
|
|
221942
221942
|
|
|
@@ -223858,7 +223858,7 @@ var require_make_warning = __commonJS((exports, module) => {
|
|
|
223858
223858
|
var require_normalize = __commonJS((exports, module) => {
|
|
223859
223859
|
var valid = require_valid();
|
|
223860
223860
|
var clean = require_clean();
|
|
223861
|
-
var
|
|
223861
|
+
var fs4 = __require("node:fs/promises");
|
|
223862
223862
|
var path5 = __require("node:path");
|
|
223863
223863
|
var { log } = require_lib2();
|
|
223864
223864
|
var _hostedGitInfo;
|
|
@@ -224070,7 +224070,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224070
224070
|
}
|
|
224071
224071
|
if (steps.includes("serverjs") && !scripts.start) {
|
|
224072
224072
|
try {
|
|
224073
|
-
await
|
|
224073
|
+
await fs4.access(path5.join(pkg.path, "server.js"));
|
|
224074
224074
|
scripts.start = "node server.js";
|
|
224075
224075
|
data.scripts = scripts;
|
|
224076
224076
|
changes?.push('"scripts.start" was set to "node server.js"');
|
|
@@ -224102,7 +224102,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224102
224102
|
}
|
|
224103
224103
|
if (steps.includes("authors") && !data.contributors) {
|
|
224104
224104
|
try {
|
|
224105
|
-
const authorData = await
|
|
224105
|
+
const authorData = await fs4.readFile(path5.join(pkg.path, "AUTHORS"), "utf8");
|
|
224106
224106
|
const authors = authorData.split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
224107
224107
|
data.contributors = authors;
|
|
224108
224108
|
changes?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file');
|
|
@@ -224129,7 +224129,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224129
224129
|
}
|
|
224130
224130
|
}
|
|
224131
224131
|
if (readmeFile) {
|
|
224132
|
-
const readmeData = await
|
|
224132
|
+
const readmeData = await fs4.readFile(path5.join(pkg.path, readmeFile), "utf8");
|
|
224133
224133
|
data.readme = readmeData;
|
|
224134
224134
|
data.readmeFilename = readmeFile;
|
|
224135
224135
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
@@ -224169,7 +224169,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224169
224169
|
let head;
|
|
224170
224170
|
if (gitRoot) {
|
|
224171
224171
|
try {
|
|
224172
|
-
head = await
|
|
224172
|
+
head = await fs4.readFile(path5.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
224173
224173
|
} catch (err) {
|
|
224174
224174
|
}
|
|
224175
224175
|
}
|
|
@@ -224179,14 +224179,14 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224179
224179
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
224180
224180
|
const headFile = path5.resolve(gitRoot, ".git", headRef);
|
|
224181
224181
|
try {
|
|
224182
|
-
headData = await
|
|
224182
|
+
headData = await fs4.readFile(headFile, "utf8");
|
|
224183
224183
|
headData = headData.replace(/^ref: /, "").trim();
|
|
224184
224184
|
} catch (err) {
|
|
224185
224185
|
}
|
|
224186
224186
|
if (!headData) {
|
|
224187
224187
|
const packFile = path5.resolve(gitRoot, ".git/packed-refs");
|
|
224188
224188
|
try {
|
|
224189
|
-
let refs = await
|
|
224189
|
+
let refs = await fs4.readFile(packFile, "utf8");
|
|
224190
224190
|
if (refs) {
|
|
224191
224191
|
refs = refs.split(`
|
|
224192
224192
|
`);
|
|
@@ -224219,7 +224219,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224219
224219
|
const hasDTSFields = "types" in data || "typings" in data;
|
|
224220
224220
|
if (!hasDTSFields) {
|
|
224221
224221
|
try {
|
|
224222
|
-
await
|
|
224222
|
+
await fs4.access(path5.join(pkg.path, dts));
|
|
224223
224223
|
data.types = dts.split(path5.sep).join("/");
|
|
224224
224224
|
} catch {
|
|
224225
224225
|
}
|
|
@@ -224330,7 +224330,7 @@ var require_normalize = __commonJS((exports, module) => {
|
|
|
224330
224330
|
if (steps.includes("binRefs") && data.bin instanceof Object) {
|
|
224331
224331
|
for (const key in data.bin) {
|
|
224332
224332
|
try {
|
|
224333
|
-
await
|
|
224333
|
+
await fs4.access(path5.resolve(pkg.path, data.bin[key]));
|
|
224334
224334
|
} catch {
|
|
224335
224335
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
224336
224336
|
}
|
|
@@ -227255,7 +227255,7 @@ var require_command = __commonJS((exports) => {
|
|
|
227255
227255
|
var EventEmitter3 = __require("events").EventEmitter;
|
|
227256
227256
|
var childProcess = __require("child_process");
|
|
227257
227257
|
var path5 = __require("path");
|
|
227258
|
-
var
|
|
227258
|
+
var fs4 = __require("fs");
|
|
227259
227259
|
var process7 = __require("process");
|
|
227260
227260
|
var { Argument, humanReadableArgName } = require_argument();
|
|
227261
227261
|
var { CommanderError } = require_error2();
|
|
@@ -227707,11 +227707,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
227707
227707
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
227708
227708
|
function findFile(baseDir, baseName) {
|
|
227709
227709
|
const localBin = path5.resolve(baseDir, baseName);
|
|
227710
|
-
if (
|
|
227710
|
+
if (fs4.existsSync(localBin))
|
|
227711
227711
|
return localBin;
|
|
227712
227712
|
if (sourceExt.includes(path5.extname(baseName)))
|
|
227713
227713
|
return;
|
|
227714
|
-
const foundExt = sourceExt.find((ext2) =>
|
|
227714
|
+
const foundExt = sourceExt.find((ext2) => fs4.existsSync(`${localBin}${ext2}`));
|
|
227715
227715
|
if (foundExt)
|
|
227716
227716
|
return `${localBin}${foundExt}`;
|
|
227717
227717
|
return;
|
|
@@ -227723,7 +227723,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
227723
227723
|
if (this._scriptPath) {
|
|
227724
227724
|
let resolvedScriptPath;
|
|
227725
227725
|
try {
|
|
227726
|
-
resolvedScriptPath =
|
|
227726
|
+
resolvedScriptPath = fs4.realpathSync(this._scriptPath);
|
|
227727
227727
|
} catch (err) {
|
|
227728
227728
|
resolvedScriptPath = this._scriptPath;
|
|
227729
227729
|
}
|
|
@@ -230726,7 +230726,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230726
230726
|
var { Minipass: Minipass3 } = require_minipass();
|
|
230727
230727
|
var Pax = require_pax();
|
|
230728
230728
|
var Header = require_header();
|
|
230729
|
-
var
|
|
230729
|
+
var fs4 = __require("fs");
|
|
230730
230730
|
var path5 = __require("path");
|
|
230731
230731
|
var normPath = require_normalize_windows_path();
|
|
230732
230732
|
var stripSlash = require_strip_trailing_slashes();
|
|
@@ -230829,7 +230829,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230829
230829
|
return super.emit(ev, ...data);
|
|
230830
230830
|
}
|
|
230831
230831
|
[LSTAT]() {
|
|
230832
|
-
|
|
230832
|
+
fs4.lstat(this.absolute, (er2, stat9) => {
|
|
230833
230833
|
if (er2) {
|
|
230834
230834
|
return this.emit("error", er2);
|
|
230835
230835
|
}
|
|
@@ -230908,7 +230908,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230908
230908
|
this.end();
|
|
230909
230909
|
}
|
|
230910
230910
|
[SYMLINK]() {
|
|
230911
|
-
|
|
230911
|
+
fs4.readlink(this.absolute, (er2, linkpath) => {
|
|
230912
230912
|
if (er2) {
|
|
230913
230913
|
return this.emit("error", er2);
|
|
230914
230914
|
}
|
|
@@ -230945,7 +230945,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230945
230945
|
this[OPENFILE]();
|
|
230946
230946
|
}
|
|
230947
230947
|
[OPENFILE]() {
|
|
230948
|
-
|
|
230948
|
+
fs4.open(this.absolute, "r", (er2, fd) => {
|
|
230949
230949
|
if (er2) {
|
|
230950
230950
|
return this.emit("error", er2);
|
|
230951
230951
|
}
|
|
@@ -230969,7 +230969,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230969
230969
|
}
|
|
230970
230970
|
[READ3]() {
|
|
230971
230971
|
const { fd, buf, offset, length, pos } = this;
|
|
230972
|
-
|
|
230972
|
+
fs4.read(fd, buf, offset, length, pos, (er2, bytesRead) => {
|
|
230973
230973
|
if (er2) {
|
|
230974
230974
|
return this[CLOSE](() => this.emit("error", er2));
|
|
230975
230975
|
}
|
|
@@ -230977,7 +230977,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
230977
230977
|
});
|
|
230978
230978
|
}
|
|
230979
230979
|
[CLOSE](cb) {
|
|
230980
|
-
|
|
230980
|
+
fs4.close(this.fd, cb);
|
|
230981
230981
|
}
|
|
230982
230982
|
[ONREAD](bytesRead) {
|
|
230983
230983
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -231042,19 +231042,19 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
231042
231042
|
|
|
231043
231043
|
class WriteEntrySync extends WriteEntry {
|
|
231044
231044
|
[LSTAT]() {
|
|
231045
|
-
this[ONLSTAT](
|
|
231045
|
+
this[ONLSTAT](fs4.lstatSync(this.absolute));
|
|
231046
231046
|
}
|
|
231047
231047
|
[SYMLINK]() {
|
|
231048
|
-
this[ONREADLINK](
|
|
231048
|
+
this[ONREADLINK](fs4.readlinkSync(this.absolute));
|
|
231049
231049
|
}
|
|
231050
231050
|
[OPENFILE]() {
|
|
231051
|
-
this[ONOPENFILE](
|
|
231051
|
+
this[ONOPENFILE](fs4.openSync(this.absolute, "r"));
|
|
231052
231052
|
}
|
|
231053
231053
|
[READ3]() {
|
|
231054
231054
|
let threw = true;
|
|
231055
231055
|
try {
|
|
231056
231056
|
const { fd, buf, offset, length, pos } = this;
|
|
231057
|
-
const bytesRead =
|
|
231057
|
+
const bytesRead = fs4.readSync(fd, buf, offset, length, pos);
|
|
231058
231058
|
this[ONREAD](bytesRead);
|
|
231059
231059
|
threw = false;
|
|
231060
231060
|
} finally {
|
|
@@ -231071,7 +231071,7 @@ var require_write_entry = __commonJS((exports, module) => {
|
|
|
231071
231071
|
cb();
|
|
231072
231072
|
}
|
|
231073
231073
|
[CLOSE](cb) {
|
|
231074
|
-
|
|
231074
|
+
fs4.closeSync(this.fd);
|
|
231075
231075
|
cb();
|
|
231076
231076
|
}
|
|
231077
231077
|
}
|
|
@@ -231598,7 +231598,7 @@ var require_pack = __commonJS((exports, module) => {
|
|
|
231598
231598
|
var WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
231599
231599
|
var WRITE = Symbol("write");
|
|
231600
231600
|
var ONDRAIN = Symbol("ondrain");
|
|
231601
|
-
var
|
|
231601
|
+
var fs4 = __require("fs");
|
|
231602
231602
|
var path5 = __require("path");
|
|
231603
231603
|
var warner = require_warn_mixin();
|
|
231604
231604
|
var normPath = require_normalize_windows_path();
|
|
@@ -231708,7 +231708,7 @@ var require_pack = __commonJS((exports, module) => {
|
|
|
231708
231708
|
job.pending = true;
|
|
231709
231709
|
this[JOBS] += 1;
|
|
231710
231710
|
const stat9 = this.follow ? "stat" : "lstat";
|
|
231711
|
-
|
|
231711
|
+
fs4[stat9](job.absolute, (er2, stat10) => {
|
|
231712
231712
|
job.pending = false;
|
|
231713
231713
|
this[JOBS] -= 1;
|
|
231714
231714
|
if (er2) {
|
|
@@ -231729,7 +231729,7 @@ var require_pack = __commonJS((exports, module) => {
|
|
|
231729
231729
|
[READDIR](job) {
|
|
231730
231730
|
job.pending = true;
|
|
231731
231731
|
this[JOBS] += 1;
|
|
231732
|
-
|
|
231732
|
+
fs4.readdir(job.absolute, (er2, entries) => {
|
|
231733
231733
|
job.pending = false;
|
|
231734
231734
|
this[JOBS] -= 1;
|
|
231735
231735
|
if (er2) {
|
|
@@ -231890,10 +231890,10 @@ var require_pack = __commonJS((exports, module) => {
|
|
|
231890
231890
|
}
|
|
231891
231891
|
[STAT](job) {
|
|
231892
231892
|
const stat9 = this.follow ? "statSync" : "lstatSync";
|
|
231893
|
-
this[ONSTAT](job,
|
|
231893
|
+
this[ONSTAT](job, fs4[stat9](job.absolute));
|
|
231894
231894
|
}
|
|
231895
231895
|
[READDIR](job, stat9) {
|
|
231896
|
-
this[ONREADDIR](job,
|
|
231896
|
+
this[ONREADDIR](job, fs4.readdirSync(job.absolute));
|
|
231897
231897
|
}
|
|
231898
231898
|
[PIPE](job) {
|
|
231899
231899
|
const source = job.entry;
|
|
@@ -232435,8 +232435,8 @@ var require_minipass3 = __commonJS((exports, module) => {
|
|
|
232435
232435
|
var require_fs_minipass = __commonJS((exports) => {
|
|
232436
232436
|
var MiniPass = require_minipass3();
|
|
232437
232437
|
var EE = __require("events").EventEmitter;
|
|
232438
|
-
var
|
|
232439
|
-
var writev =
|
|
232438
|
+
var fs4 = __require("fs");
|
|
232439
|
+
var writev = fs4.writev;
|
|
232440
232440
|
if (!writev) {
|
|
232441
232441
|
const binding = process.binding("fs");
|
|
232442
232442
|
const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
|
|
@@ -232510,7 +232510,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232510
232510
|
throw new TypeError("this is a readable stream");
|
|
232511
232511
|
}
|
|
232512
232512
|
[_open]() {
|
|
232513
|
-
|
|
232513
|
+
fs4.open(this[_path], "r", (er2, fd) => this[_onopen](er2, fd));
|
|
232514
232514
|
}
|
|
232515
232515
|
[_onopen](er2, fd) {
|
|
232516
232516
|
if (er2)
|
|
@@ -232530,7 +232530,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232530
232530
|
const buf = this[_makeBuf]();
|
|
232531
232531
|
if (buf.length === 0)
|
|
232532
232532
|
return process.nextTick(() => this[_onread](null, 0, buf));
|
|
232533
|
-
|
|
232533
|
+
fs4.read(this[_fd], buf, 0, buf.length, null, (er2, br2, buf2) => this[_onread](er2, br2, buf2));
|
|
232534
232534
|
}
|
|
232535
232535
|
}
|
|
232536
232536
|
[_onread](er2, br2, buf) {
|
|
@@ -232544,7 +232544,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232544
232544
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
232545
232545
|
const fd = this[_fd];
|
|
232546
232546
|
this[_fd] = null;
|
|
232547
|
-
|
|
232547
|
+
fs4.close(fd, (er2) => er2 ? this.emit("error", er2) : this.emit("close"));
|
|
232548
232548
|
}
|
|
232549
232549
|
}
|
|
232550
232550
|
[_onerror](er2) {
|
|
@@ -232588,7 +232588,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232588
232588
|
[_open]() {
|
|
232589
232589
|
let threw = true;
|
|
232590
232590
|
try {
|
|
232591
|
-
this[_onopen](null,
|
|
232591
|
+
this[_onopen](null, fs4.openSync(this[_path], "r"));
|
|
232592
232592
|
threw = false;
|
|
232593
232593
|
} finally {
|
|
232594
232594
|
if (threw)
|
|
@@ -232602,7 +232602,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232602
232602
|
this[_reading] = true;
|
|
232603
232603
|
do {
|
|
232604
232604
|
const buf = this[_makeBuf]();
|
|
232605
|
-
const br2 = buf.length === 0 ? 0 :
|
|
232605
|
+
const br2 = buf.length === 0 ? 0 : fs4.readSync(this[_fd], buf, 0, buf.length, null);
|
|
232606
232606
|
if (!this[_handleChunk](br2, buf))
|
|
232607
232607
|
break;
|
|
232608
232608
|
} while (true);
|
|
@@ -232618,7 +232618,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232618
232618
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
232619
232619
|
const fd = this[_fd];
|
|
232620
232620
|
this[_fd] = null;
|
|
232621
|
-
|
|
232621
|
+
fs4.closeSync(fd);
|
|
232622
232622
|
this.emit("close");
|
|
232623
232623
|
}
|
|
232624
232624
|
}
|
|
@@ -232666,7 +232666,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232666
232666
|
this.emit("error", er2);
|
|
232667
232667
|
}
|
|
232668
232668
|
[_open]() {
|
|
232669
|
-
|
|
232669
|
+
fs4.open(this[_path], this[_flags], this[_mode], (er2, fd) => this[_onopen](er2, fd));
|
|
232670
232670
|
}
|
|
232671
232671
|
[_onopen](er2, fd) {
|
|
232672
232672
|
if (this[_defaultFlag] && this[_flags] === "r+" && er2 && er2.code === "ENOENT") {
|
|
@@ -232705,7 +232705,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232705
232705
|
return true;
|
|
232706
232706
|
}
|
|
232707
232707
|
[_write](buf) {
|
|
232708
|
-
|
|
232708
|
+
fs4.write(this[_fd], buf, 0, buf.length, this[_pos], (er2, bw) => this[_onwrite](er2, bw));
|
|
232709
232709
|
}
|
|
232710
232710
|
[_onwrite](er2, bw) {
|
|
232711
232711
|
if (er2)
|
|
@@ -232744,7 +232744,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232744
232744
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
232745
232745
|
const fd = this[_fd];
|
|
232746
232746
|
this[_fd] = null;
|
|
232747
|
-
|
|
232747
|
+
fs4.close(fd, (er2) => er2 ? this.emit("error", er2) : this.emit("close"));
|
|
232748
232748
|
}
|
|
232749
232749
|
}
|
|
232750
232750
|
}
|
|
@@ -232754,7 +232754,7 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232754
232754
|
let fd;
|
|
232755
232755
|
if (this[_defaultFlag] && this[_flags] === "r+") {
|
|
232756
232756
|
try {
|
|
232757
|
-
fd =
|
|
232757
|
+
fd = fs4.openSync(this[_path], this[_flags], this[_mode]);
|
|
232758
232758
|
} catch (er2) {
|
|
232759
232759
|
if (er2.code === "ENOENT") {
|
|
232760
232760
|
this[_flags] = "w";
|
|
@@ -232763,21 +232763,21 @@ var require_fs_minipass = __commonJS((exports) => {
|
|
|
232763
232763
|
throw er2;
|
|
232764
232764
|
}
|
|
232765
232765
|
} else
|
|
232766
|
-
fd =
|
|
232766
|
+
fd = fs4.openSync(this[_path], this[_flags], this[_mode]);
|
|
232767
232767
|
this[_onopen](null, fd);
|
|
232768
232768
|
}
|
|
232769
232769
|
[_close]() {
|
|
232770
232770
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
232771
232771
|
const fd = this[_fd];
|
|
232772
232772
|
this[_fd] = null;
|
|
232773
|
-
|
|
232773
|
+
fs4.closeSync(fd);
|
|
232774
232774
|
this.emit("close");
|
|
232775
232775
|
}
|
|
232776
232776
|
}
|
|
232777
232777
|
[_write](buf) {
|
|
232778
232778
|
let threw = true;
|
|
232779
232779
|
try {
|
|
232780
|
-
this[_onwrite](null,
|
|
232780
|
+
this[_onwrite](null, fs4.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
232781
232781
|
threw = false;
|
|
232782
232782
|
} finally {
|
|
232783
232783
|
if (threw)
|
|
@@ -233219,7 +233219,7 @@ var require_parse5 = __commonJS((exports, module) => {
|
|
|
233219
233219
|
var require_list = __commonJS((exports, module) => {
|
|
233220
233220
|
var hlo = require_high_level_opt();
|
|
233221
233221
|
var Parser = require_parse5();
|
|
233222
|
-
var
|
|
233222
|
+
var fs4 = __require("fs");
|
|
233223
233223
|
var fsm = require_fs_minipass();
|
|
233224
233224
|
var path5 = __require("path");
|
|
233225
233225
|
var stripSlash = require_strip_trailing_slashes();
|
|
@@ -233276,16 +233276,16 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233276
233276
|
let threw = true;
|
|
233277
233277
|
let fd;
|
|
233278
233278
|
try {
|
|
233279
|
-
const stat9 =
|
|
233279
|
+
const stat9 = fs4.statSync(file);
|
|
233280
233280
|
const readSize = opt2.maxReadSize || 16 * 1024 * 1024;
|
|
233281
233281
|
if (stat9.size < readSize) {
|
|
233282
|
-
p5.end(
|
|
233282
|
+
p5.end(fs4.readFileSync(file));
|
|
233283
233283
|
} else {
|
|
233284
233284
|
let pos = 0;
|
|
233285
233285
|
const buf = Buffer.allocUnsafe(readSize);
|
|
233286
|
-
fd =
|
|
233286
|
+
fd = fs4.openSync(file, "r");
|
|
233287
233287
|
while (pos < stat9.size) {
|
|
233288
|
-
const bytesRead =
|
|
233288
|
+
const bytesRead = fs4.readSync(fd, buf, 0, readSize, pos);
|
|
233289
233289
|
pos += bytesRead;
|
|
233290
233290
|
p5.write(buf.slice(0, bytesRead));
|
|
233291
233291
|
}
|
|
@@ -233295,7 +233295,7 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233295
233295
|
} finally {
|
|
233296
233296
|
if (threw && fd) {
|
|
233297
233297
|
try {
|
|
233298
|
-
|
|
233298
|
+
fs4.closeSync(fd);
|
|
233299
233299
|
} catch (er2) {
|
|
233300
233300
|
}
|
|
233301
233301
|
}
|
|
@@ -233308,7 +233308,7 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233308
233308
|
const p5 = new Promise((resolve5, reject) => {
|
|
233309
233309
|
parse5.on("error", reject);
|
|
233310
233310
|
parse5.on("end", resolve5);
|
|
233311
|
-
|
|
233311
|
+
fs4.stat(file, (er2, stat9) => {
|
|
233312
233312
|
if (er2) {
|
|
233313
233313
|
reject(er2);
|
|
233314
233314
|
} else {
|
|
@@ -233421,7 +233421,7 @@ var require_create = __commonJS((exports, module) => {
|
|
|
233421
233421
|
var require_replace2 = __commonJS((exports, module) => {
|
|
233422
233422
|
var hlo = require_high_level_opt();
|
|
233423
233423
|
var Pack = require_pack();
|
|
233424
|
-
var
|
|
233424
|
+
var fs4 = __require("fs");
|
|
233425
233425
|
var fsm = require_fs_minipass();
|
|
233426
233426
|
var t8 = require_list();
|
|
233427
233427
|
var path5 = __require("path");
|
|
@@ -233447,20 +233447,20 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233447
233447
|
let position;
|
|
233448
233448
|
try {
|
|
233449
233449
|
try {
|
|
233450
|
-
fd =
|
|
233450
|
+
fd = fs4.openSync(opt2.file, "r+");
|
|
233451
233451
|
} catch (er2) {
|
|
233452
233452
|
if (er2.code === "ENOENT") {
|
|
233453
|
-
fd =
|
|
233453
|
+
fd = fs4.openSync(opt2.file, "w+");
|
|
233454
233454
|
} else {
|
|
233455
233455
|
throw er2;
|
|
233456
233456
|
}
|
|
233457
233457
|
}
|
|
233458
|
-
const st2 =
|
|
233458
|
+
const st2 = fs4.fstatSync(fd);
|
|
233459
233459
|
const headBuf = Buffer.alloc(512);
|
|
233460
233460
|
POSITION:
|
|
233461
233461
|
for (position = 0;position < st2.size; position += 512) {
|
|
233462
233462
|
for (let bufPos = 0, bytes = 0;bufPos < 512; bufPos += bytes) {
|
|
233463
|
-
bytes =
|
|
233463
|
+
bytes = fs4.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
233464
233464
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
233465
233465
|
throw new Error("cannot append to compressed archives");
|
|
233466
233466
|
}
|
|
@@ -233486,7 +233486,7 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233486
233486
|
} finally {
|
|
233487
233487
|
if (threw) {
|
|
233488
233488
|
try {
|
|
233489
|
-
|
|
233489
|
+
fs4.closeSync(fd);
|
|
233490
233490
|
} catch (er2) {
|
|
233491
233491
|
}
|
|
233492
233492
|
}
|
|
@@ -233506,7 +233506,7 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233506
233506
|
const getPos = (fd, size, cb_) => {
|
|
233507
233507
|
const cb2 = (er2, pos) => {
|
|
233508
233508
|
if (er2) {
|
|
233509
|
-
|
|
233509
|
+
fs4.close(fd, (_5) => cb_(er2));
|
|
233510
233510
|
} else {
|
|
233511
233511
|
cb_(null, pos);
|
|
233512
233512
|
}
|
|
@@ -233523,7 +233523,7 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233523
233523
|
}
|
|
233524
233524
|
bufPos += bytes;
|
|
233525
233525
|
if (bufPos < 512 && bytes) {
|
|
233526
|
-
return
|
|
233526
|
+
return fs4.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
233527
233527
|
}
|
|
233528
233528
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
233529
233529
|
return cb2(new Error("cannot append to compressed archives"));
|
|
@@ -233547,9 +233547,9 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233547
233547
|
opt2.mtimeCache.set(h7.path, h7.mtime);
|
|
233548
233548
|
}
|
|
233549
233549
|
bufPos = 0;
|
|
233550
|
-
|
|
233550
|
+
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
233551
233551
|
};
|
|
233552
|
-
|
|
233552
|
+
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
233553
233553
|
};
|
|
233554
233554
|
const promise = new Promise((resolve5, reject) => {
|
|
233555
233555
|
p5.on("error", reject);
|
|
@@ -233557,14 +233557,14 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233557
233557
|
const onopen = (er2, fd) => {
|
|
233558
233558
|
if (er2 && er2.code === "ENOENT" && flag === "r+") {
|
|
233559
233559
|
flag = "w+";
|
|
233560
|
-
return
|
|
233560
|
+
return fs4.open(opt2.file, flag, onopen);
|
|
233561
233561
|
}
|
|
233562
233562
|
if (er2) {
|
|
233563
233563
|
return reject(er2);
|
|
233564
233564
|
}
|
|
233565
|
-
|
|
233565
|
+
fs4.fstat(fd, (er3, st2) => {
|
|
233566
233566
|
if (er3) {
|
|
233567
|
-
return
|
|
233567
|
+
return fs4.close(fd, () => reject(er3));
|
|
233568
233568
|
}
|
|
233569
233569
|
getPos(fd, st2.size, (er4, position) => {
|
|
233570
233570
|
if (er4) {
|
|
@@ -233581,7 +233581,7 @@ var require_replace2 = __commonJS((exports, module) => {
|
|
|
233581
233581
|
});
|
|
233582
233582
|
});
|
|
233583
233583
|
};
|
|
233584
|
-
|
|
233584
|
+
fs4.open(opt2.file, flag, onopen);
|
|
233585
233585
|
});
|
|
233586
233586
|
return cb ? promise.then(cb, cb) : promise;
|
|
233587
233587
|
};
|
|
@@ -233648,24 +233648,24 @@ var require_update = __commonJS((exports, module) => {
|
|
|
233648
233648
|
// ../../node_modules/mkdirp/lib/opts-arg.js
|
|
233649
233649
|
var require_opts_arg = __commonJS((exports, module) => {
|
|
233650
233650
|
var { promisify } = __require("util");
|
|
233651
|
-
var
|
|
233651
|
+
var fs4 = __require("fs");
|
|
233652
233652
|
var optsArg = (opts) => {
|
|
233653
233653
|
if (!opts)
|
|
233654
|
-
opts = { mode: 511, fs:
|
|
233654
|
+
opts = { mode: 511, fs: fs4 };
|
|
233655
233655
|
else if (typeof opts === "object")
|
|
233656
|
-
opts = { mode: 511, fs:
|
|
233656
|
+
opts = { mode: 511, fs: fs4, ...opts };
|
|
233657
233657
|
else if (typeof opts === "number")
|
|
233658
|
-
opts = { mode: opts, fs:
|
|
233658
|
+
opts = { mode: opts, fs: fs4 };
|
|
233659
233659
|
else if (typeof opts === "string")
|
|
233660
|
-
opts = { mode: parseInt(opts, 8), fs:
|
|
233660
|
+
opts = { mode: parseInt(opts, 8), fs: fs4 };
|
|
233661
233661
|
else
|
|
233662
233662
|
throw new TypeError("invalid options argument");
|
|
233663
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir ||
|
|
233663
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs4.mkdir;
|
|
233664
233664
|
opts.mkdirAsync = promisify(opts.mkdir);
|
|
233665
|
-
opts.stat = opts.stat || opts.fs.stat ||
|
|
233665
|
+
opts.stat = opts.stat || opts.fs.stat || fs4.stat;
|
|
233666
233666
|
opts.statAsync = promisify(opts.stat);
|
|
233667
|
-
opts.statSync = opts.statSync || opts.fs.statSync ||
|
|
233668
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync ||
|
|
233667
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs4.statSync;
|
|
233668
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs4.mkdirSync;
|
|
233669
233669
|
return opts;
|
|
233670
233670
|
};
|
|
233671
233671
|
module.exports = optsArg;
|
|
@@ -233815,12 +233815,12 @@ var require_mkdirp_native = __commonJS((exports, module) => {
|
|
|
233815
233815
|
|
|
233816
233816
|
// ../../node_modules/mkdirp/lib/use-native.js
|
|
233817
233817
|
var require_use_native = __commonJS((exports, module) => {
|
|
233818
|
-
var
|
|
233818
|
+
var fs4 = __require("fs");
|
|
233819
233819
|
var version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
|
|
233820
233820
|
var versArr = version.replace(/^v/, "").split(".");
|
|
233821
233821
|
var hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
233822
|
-
var useNative = !hasNative ? () => false : (opts) => opts.mkdir ===
|
|
233823
|
-
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync ===
|
|
233822
|
+
var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs4.mkdir;
|
|
233823
|
+
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs4.mkdirSync;
|
|
233824
233824
|
module.exports = { useNative, useNativeSync };
|
|
233825
233825
|
});
|
|
233826
233826
|
|
|
@@ -233851,14 +233851,14 @@ var require_mkdirp = __commonJS((exports, module) => {
|
|
|
233851
233851
|
|
|
233852
233852
|
// ../../node_modules/chownr/chownr.js
|
|
233853
233853
|
var require_chownr = __commonJS((exports, module) => {
|
|
233854
|
-
var
|
|
233854
|
+
var fs4 = __require("fs");
|
|
233855
233855
|
var path5 = __require("path");
|
|
233856
|
-
var LCHOWN =
|
|
233857
|
-
var LCHOWNSYNC =
|
|
233858
|
-
var needEISDIRHandled =
|
|
233856
|
+
var LCHOWN = fs4.lchown ? "lchown" : "chown";
|
|
233857
|
+
var LCHOWNSYNC = fs4.lchownSync ? "lchownSync" : "chownSync";
|
|
233858
|
+
var needEISDIRHandled = fs4.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
233859
233859
|
var lchownSync = (path6, uid, gid) => {
|
|
233860
233860
|
try {
|
|
233861
|
-
return
|
|
233861
|
+
return fs4[LCHOWNSYNC](path6, uid, gid);
|
|
233862
233862
|
} catch (er2) {
|
|
233863
233863
|
if (er2.code !== "ENOENT")
|
|
233864
233864
|
throw er2;
|
|
@@ -233866,7 +233866,7 @@ var require_chownr = __commonJS((exports, module) => {
|
|
|
233866
233866
|
};
|
|
233867
233867
|
var chownSync = (path6, uid, gid) => {
|
|
233868
233868
|
try {
|
|
233869
|
-
return
|
|
233869
|
+
return fs4.chownSync(path6, uid, gid);
|
|
233870
233870
|
} catch (er2) {
|
|
233871
233871
|
if (er2.code !== "ENOENT")
|
|
233872
233872
|
throw er2;
|
|
@@ -233876,7 +233876,7 @@ var require_chownr = __commonJS((exports, module) => {
|
|
|
233876
233876
|
if (!er2 || er2.code !== "EISDIR")
|
|
233877
233877
|
cb(er2);
|
|
233878
233878
|
else
|
|
233879
|
-
|
|
233879
|
+
fs4.chown(path6, uid, gid, cb);
|
|
233880
233880
|
} : (_5, __, ___, cb) => cb;
|
|
233881
233881
|
var handleEISDirSync = needEISDIRHandled ? (path6, uid, gid) => {
|
|
233882
233882
|
try {
|
|
@@ -233888,18 +233888,18 @@ var require_chownr = __commonJS((exports, module) => {
|
|
|
233888
233888
|
}
|
|
233889
233889
|
} : (path6, uid, gid) => lchownSync(path6, uid, gid);
|
|
233890
233890
|
var nodeVersion = process.version;
|
|
233891
|
-
var readdir4 = (path6, options, cb) =>
|
|
233892
|
-
var readdirSync2 = (path6, options) =>
|
|
233891
|
+
var readdir4 = (path6, options, cb) => fs4.readdir(path6, options, cb);
|
|
233892
|
+
var readdirSync2 = (path6, options) => fs4.readdirSync(path6, options);
|
|
233893
233893
|
if (/^v4\./.test(nodeVersion))
|
|
233894
|
-
readdir4 = (path6, options, cb) =>
|
|
233894
|
+
readdir4 = (path6, options, cb) => fs4.readdir(path6, cb);
|
|
233895
233895
|
var chown = (cpath, uid, gid, cb) => {
|
|
233896
|
-
|
|
233896
|
+
fs4[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er2) => {
|
|
233897
233897
|
cb(er2 && er2.code !== "ENOENT" ? er2 : null);
|
|
233898
233898
|
}));
|
|
233899
233899
|
};
|
|
233900
233900
|
var chownrKid = (p5, child, uid, gid, cb) => {
|
|
233901
233901
|
if (typeof child === "string")
|
|
233902
|
-
return
|
|
233902
|
+
return fs4.lstat(path5.resolve(p5, child), (er2, stats) => {
|
|
233903
233903
|
if (er2)
|
|
233904
233904
|
return cb(er2.code !== "ENOENT" ? er2 : null);
|
|
233905
233905
|
stats.name = child;
|
|
@@ -233943,7 +233943,7 @@ var require_chownr = __commonJS((exports, module) => {
|
|
|
233943
233943
|
var chownrKidSync = (p5, child, uid, gid) => {
|
|
233944
233944
|
if (typeof child === "string") {
|
|
233945
233945
|
try {
|
|
233946
|
-
const stats =
|
|
233946
|
+
const stats = fs4.lstatSync(path5.resolve(p5, child));
|
|
233947
233947
|
stats.name = child;
|
|
233948
233948
|
child = stats;
|
|
233949
233949
|
} catch (er2) {
|
|
@@ -233980,7 +233980,7 @@ var require_chownr = __commonJS((exports, module) => {
|
|
|
233980
233980
|
// ../../node_modules/tar/lib/mkdir.js
|
|
233981
233981
|
var require_mkdir = __commonJS((exports, module) => {
|
|
233982
233982
|
var mkdirp = require_mkdirp();
|
|
233983
|
-
var
|
|
233983
|
+
var fs4 = __require("fs");
|
|
233984
233984
|
var path5 = __require("path");
|
|
233985
233985
|
var chownr = require_chownr();
|
|
233986
233986
|
var normPath = require_normalize_windows_path();
|
|
@@ -234009,7 +234009,7 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234009
234009
|
var cGet = (cache, key2) => cache.get(normPath(key2));
|
|
234010
234010
|
var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
|
|
234011
234011
|
var checkCwd = (dir, cb) => {
|
|
234012
|
-
|
|
234012
|
+
fs4.stat(dir, (er2, st2) => {
|
|
234013
234013
|
if (er2 || !st2.isDirectory()) {
|
|
234014
234014
|
er2 = new CwdError(dir, er2 && er2.code || "ENOTDIR");
|
|
234015
234015
|
}
|
|
@@ -234036,7 +234036,7 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234036
234036
|
if (created && doChown) {
|
|
234037
234037
|
chownr(created, uid, gid, (er3) => done(er3));
|
|
234038
234038
|
} else if (needChmod) {
|
|
234039
|
-
|
|
234039
|
+
fs4.chmod(dir, mode, cb);
|
|
234040
234040
|
} else {
|
|
234041
234041
|
cb();
|
|
234042
234042
|
}
|
|
@@ -234064,22 +234064,22 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234064
234064
|
if (cGet(cache, part)) {
|
|
234065
234065
|
return mkdir_(part, parts, mode, cache, unlink2, cwd, created, cb);
|
|
234066
234066
|
}
|
|
234067
|
-
|
|
234067
|
+
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink2, cwd, created, cb));
|
|
234068
234068
|
};
|
|
234069
234069
|
var onmkdir = (part, parts, mode, cache, unlink2, cwd, created, cb) => (er2) => {
|
|
234070
234070
|
if (er2) {
|
|
234071
|
-
|
|
234071
|
+
fs4.lstat(part, (statEr, st2) => {
|
|
234072
234072
|
if (statEr) {
|
|
234073
234073
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
234074
234074
|
cb(statEr);
|
|
234075
234075
|
} else if (st2.isDirectory()) {
|
|
234076
234076
|
mkdir_(part, parts, mode, cache, unlink2, cwd, created, cb);
|
|
234077
234077
|
} else if (unlink2) {
|
|
234078
|
-
|
|
234078
|
+
fs4.unlink(part, (er3) => {
|
|
234079
234079
|
if (er3) {
|
|
234080
234080
|
return cb(er3);
|
|
234081
234081
|
}
|
|
234082
|
-
|
|
234082
|
+
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink2, cwd, created, cb));
|
|
234083
234083
|
});
|
|
234084
234084
|
} else if (st2.isSymbolicLink()) {
|
|
234085
234085
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -234096,7 +234096,7 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234096
234096
|
let ok = false;
|
|
234097
234097
|
let code2 = "ENOTDIR";
|
|
234098
234098
|
try {
|
|
234099
|
-
ok =
|
|
234099
|
+
ok = fs4.statSync(dir).isDirectory();
|
|
234100
234100
|
} catch (er2) {
|
|
234101
234101
|
code2 = er2.code;
|
|
234102
234102
|
} finally {
|
|
@@ -234123,7 +234123,7 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234123
234123
|
chownr.sync(created2, uid, gid);
|
|
234124
234124
|
}
|
|
234125
234125
|
if (needChmod) {
|
|
234126
|
-
|
|
234126
|
+
fs4.chmodSync(dir, mode);
|
|
234127
234127
|
}
|
|
234128
234128
|
};
|
|
234129
234129
|
if (cache && cGet(cache, dir) === true) {
|
|
@@ -234145,17 +234145,17 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234145
234145
|
continue;
|
|
234146
234146
|
}
|
|
234147
234147
|
try {
|
|
234148
|
-
|
|
234148
|
+
fs4.mkdirSync(part, mode);
|
|
234149
234149
|
created = created || part;
|
|
234150
234150
|
cSet(cache, part, true);
|
|
234151
234151
|
} catch (er2) {
|
|
234152
|
-
const st2 =
|
|
234152
|
+
const st2 = fs4.lstatSync(part);
|
|
234153
234153
|
if (st2.isDirectory()) {
|
|
234154
234154
|
cSet(cache, part, true);
|
|
234155
234155
|
continue;
|
|
234156
234156
|
} else if (unlink2) {
|
|
234157
|
-
|
|
234158
|
-
|
|
234157
|
+
fs4.unlinkSync(part);
|
|
234158
|
+
fs4.mkdirSync(part, mode);
|
|
234159
234159
|
created = created || part;
|
|
234160
234160
|
cSet(cache, part, true);
|
|
234161
234161
|
continue;
|
|
@@ -234294,8 +234294,8 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
234294
234294
|
var require_get_write_flag = __commonJS((exports, module) => {
|
|
234295
234295
|
var platform2 = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
234296
234296
|
var isWindows2 = platform2 === "win32";
|
|
234297
|
-
var
|
|
234298
|
-
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } =
|
|
234297
|
+
var fs4 = global.__FAKE_TESTING_FS__ || __require("fs");
|
|
234298
|
+
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs4.constants;
|
|
234299
234299
|
var fMapEnabled = isWindows2 && !!UV_FS_O_FILEMAP;
|
|
234300
234300
|
var fMapLimit = 512 * 1024;
|
|
234301
234301
|
var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
|
@@ -234306,7 +234306,7 @@ var require_get_write_flag = __commonJS((exports, module) => {
|
|
|
234306
234306
|
var require_unpack = __commonJS((exports, module) => {
|
|
234307
234307
|
var assert = __require("assert");
|
|
234308
234308
|
var Parser = require_parse5();
|
|
234309
|
-
var
|
|
234309
|
+
var fs4 = __require("fs");
|
|
234310
234310
|
var fsm = require_fs_minipass();
|
|
234311
234311
|
var path5 = __require("path");
|
|
234312
234312
|
var mkdir4 = require_mkdir();
|
|
@@ -234348,23 +234348,23 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234348
234348
|
var DEFAULT_MAX_DEPTH = 1024;
|
|
234349
234349
|
var unlinkFile = (path6, cb) => {
|
|
234350
234350
|
if (!isWindows2) {
|
|
234351
|
-
return
|
|
234351
|
+
return fs4.unlink(path6, cb);
|
|
234352
234352
|
}
|
|
234353
234353
|
const name2 = path6 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
234354
|
-
|
|
234354
|
+
fs4.rename(path6, name2, (er2) => {
|
|
234355
234355
|
if (er2) {
|
|
234356
234356
|
return cb(er2);
|
|
234357
234357
|
}
|
|
234358
|
-
|
|
234358
|
+
fs4.unlink(name2, cb);
|
|
234359
234359
|
});
|
|
234360
234360
|
};
|
|
234361
234361
|
var unlinkFileSync = (path6) => {
|
|
234362
234362
|
if (!isWindows2) {
|
|
234363
|
-
return
|
|
234363
|
+
return fs4.unlinkSync(path6);
|
|
234364
234364
|
}
|
|
234365
234365
|
const name2 = path6 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
234366
|
-
|
|
234367
|
-
|
|
234366
|
+
fs4.renameSync(path6, name2);
|
|
234367
|
+
fs4.unlinkSync(name2);
|
|
234368
234368
|
};
|
|
234369
234369
|
var uint32 = (a8, b4, c3) => a8 === a8 >>> 0 ? a8 : b4 === b4 >>> 0 ? b4 : c3;
|
|
234370
234370
|
var cacheKeyNormalize = (path6) => stripSlash(normPath(normalize3(path6))).toLowerCase();
|
|
@@ -234587,7 +234587,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234587
234587
|
});
|
|
234588
234588
|
stream2.on("error", (er2) => {
|
|
234589
234589
|
if (stream2.fd) {
|
|
234590
|
-
|
|
234590
|
+
fs4.close(stream2.fd, () => {
|
|
234591
234591
|
});
|
|
234592
234592
|
}
|
|
234593
234593
|
stream2.write = () => true;
|
|
@@ -234598,7 +234598,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234598
234598
|
const done = (er2) => {
|
|
234599
234599
|
if (er2) {
|
|
234600
234600
|
if (stream2.fd) {
|
|
234601
|
-
|
|
234601
|
+
fs4.close(stream2.fd, () => {
|
|
234602
234602
|
});
|
|
234603
234603
|
}
|
|
234604
234604
|
this[ONERROR](er2, entry);
|
|
@@ -234606,7 +234606,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234606
234606
|
return;
|
|
234607
234607
|
}
|
|
234608
234608
|
if (--actions2 === 0) {
|
|
234609
|
-
|
|
234609
|
+
fs4.close(stream2.fd, (er3) => {
|
|
234610
234610
|
if (er3) {
|
|
234611
234611
|
this[ONERROR](er3, entry);
|
|
234612
234612
|
} else {
|
|
@@ -234623,13 +234623,13 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234623
234623
|
actions2++;
|
|
234624
234624
|
const atime = entry.atime || new Date;
|
|
234625
234625
|
const mtime = entry.mtime;
|
|
234626
|
-
|
|
234626
|
+
fs4.futimes(fd, atime, mtime, (er2) => er2 ? fs4.utimes(abs, atime, mtime, (er22) => done(er22 && er2)) : done());
|
|
234627
234627
|
}
|
|
234628
234628
|
if (this[DOCHOWN](entry)) {
|
|
234629
234629
|
actions2++;
|
|
234630
234630
|
const uid = this[UID](entry);
|
|
234631
234631
|
const gid = this[GID](entry);
|
|
234632
|
-
|
|
234632
|
+
fs4.fchown(fd, uid, gid, (er2) => er2 ? fs4.chown(abs, uid, gid, (er22) => done(er22 && er2)) : done());
|
|
234633
234633
|
}
|
|
234634
234634
|
done();
|
|
234635
234635
|
});
|
|
@@ -234661,11 +234661,11 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234661
234661
|
};
|
|
234662
234662
|
if (entry.mtime && !this.noMtime) {
|
|
234663
234663
|
actions2++;
|
|
234664
|
-
|
|
234664
|
+
fs4.utimes(entry.absolute, entry.atime || new Date, entry.mtime, done);
|
|
234665
234665
|
}
|
|
234666
234666
|
if (this[DOCHOWN](entry)) {
|
|
234667
234667
|
actions2++;
|
|
234668
|
-
|
|
234668
|
+
fs4.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
234669
234669
|
}
|
|
234670
234670
|
done();
|
|
234671
234671
|
});
|
|
@@ -234745,7 +234745,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234745
234745
|
afterMakeParent();
|
|
234746
234746
|
};
|
|
234747
234747
|
const afterMakeParent = () => {
|
|
234748
|
-
|
|
234748
|
+
fs4.lstat(entry.absolute, (lstatEr, st2) => {
|
|
234749
234749
|
if (st2 && (this.keep || this.newer && st2.mtime > entry.mtime)) {
|
|
234750
234750
|
this[SKIP](entry);
|
|
234751
234751
|
done();
|
|
@@ -234761,10 +234761,10 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234761
234761
|
if (!needChmod) {
|
|
234762
234762
|
return afterChmod();
|
|
234763
234763
|
}
|
|
234764
|
-
return
|
|
234764
|
+
return fs4.chmod(entry.absolute, entry.mode, afterChmod);
|
|
234765
234765
|
}
|
|
234766
234766
|
if (entry.absolute !== this.cwd) {
|
|
234767
|
-
return
|
|
234767
|
+
return fs4.rmdir(entry.absolute, (er2) => this[MAKEFS](er2, entry, done));
|
|
234768
234768
|
}
|
|
234769
234769
|
}
|
|
234770
234770
|
if (entry.absolute === this.cwd) {
|
|
@@ -234800,7 +234800,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234800
234800
|
}
|
|
234801
234801
|
}
|
|
234802
234802
|
[LINK](entry, linkpath, link, done) {
|
|
234803
|
-
|
|
234803
|
+
fs4[link](linkpath, entry.absolute, (er2) => {
|
|
234804
234804
|
if (er2) {
|
|
234805
234805
|
this[ONERROR](er2, entry);
|
|
234806
234806
|
} else {
|
|
@@ -234842,7 +234842,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234842
234842
|
}
|
|
234843
234843
|
}
|
|
234844
234844
|
}
|
|
234845
|
-
const [lstatEr, st2] = callSync(() =>
|
|
234845
|
+
const [lstatEr, st2] = callSync(() => fs4.lstatSync(entry.absolute));
|
|
234846
234846
|
if (st2 && (this.keep || this.newer && st2.mtime > entry.mtime)) {
|
|
234847
234847
|
return this[SKIP](entry);
|
|
234848
234848
|
}
|
|
@@ -234853,11 +234853,11 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234853
234853
|
if (entry.type === "Directory") {
|
|
234854
234854
|
const needChmod = !this.noChmod && entry.mode && (st2.mode & 4095) !== entry.mode;
|
|
234855
234855
|
const [er4] = needChmod ? callSync(() => {
|
|
234856
|
-
|
|
234856
|
+
fs4.chmodSync(entry.absolute, entry.mode);
|
|
234857
234857
|
}) : [];
|
|
234858
234858
|
return this[MAKEFS](er4, entry);
|
|
234859
234859
|
}
|
|
234860
|
-
const [er3] = callSync(() =>
|
|
234860
|
+
const [er3] = callSync(() => fs4.rmdirSync(entry.absolute));
|
|
234861
234861
|
this[MAKEFS](er3, entry);
|
|
234862
234862
|
}
|
|
234863
234863
|
const [er2] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -234868,7 +234868,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234868
234868
|
const oner = (er2) => {
|
|
234869
234869
|
let closeError;
|
|
234870
234870
|
try {
|
|
234871
|
-
|
|
234871
|
+
fs4.closeSync(fd);
|
|
234872
234872
|
} catch (e10) {
|
|
234873
234873
|
closeError = e10;
|
|
234874
234874
|
}
|
|
@@ -234879,7 +234879,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234879
234879
|
};
|
|
234880
234880
|
let fd;
|
|
234881
234881
|
try {
|
|
234882
|
-
fd =
|
|
234882
|
+
fd = fs4.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
234883
234883
|
} catch (er2) {
|
|
234884
234884
|
return oner(er2);
|
|
234885
234885
|
}
|
|
@@ -234890,7 +234890,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234890
234890
|
}
|
|
234891
234891
|
tx.on("data", (chunk) => {
|
|
234892
234892
|
try {
|
|
234893
|
-
|
|
234893
|
+
fs4.writeSync(fd, chunk, 0, chunk.length);
|
|
234894
234894
|
} catch (er2) {
|
|
234895
234895
|
oner(er2);
|
|
234896
234896
|
}
|
|
@@ -234901,10 +234901,10 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234901
234901
|
const atime = entry.atime || new Date;
|
|
234902
234902
|
const mtime = entry.mtime;
|
|
234903
234903
|
try {
|
|
234904
|
-
|
|
234904
|
+
fs4.futimesSync(fd, atime, mtime);
|
|
234905
234905
|
} catch (futimeser) {
|
|
234906
234906
|
try {
|
|
234907
|
-
|
|
234907
|
+
fs4.utimesSync(entry.absolute, atime, mtime);
|
|
234908
234908
|
} catch (utimeser) {
|
|
234909
234909
|
er2 = futimeser;
|
|
234910
234910
|
}
|
|
@@ -234914,10 +234914,10 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234914
234914
|
const uid = this[UID](entry);
|
|
234915
234915
|
const gid = this[GID](entry);
|
|
234916
234916
|
try {
|
|
234917
|
-
|
|
234917
|
+
fs4.fchownSync(fd, uid, gid);
|
|
234918
234918
|
} catch (fchowner) {
|
|
234919
234919
|
try {
|
|
234920
|
-
|
|
234920
|
+
fs4.chownSync(entry.absolute, uid, gid);
|
|
234921
234921
|
} catch (chowner) {
|
|
234922
234922
|
er2 = er2 || fchowner;
|
|
234923
234923
|
}
|
|
@@ -234936,13 +234936,13 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234936
234936
|
}
|
|
234937
234937
|
if (entry.mtime && !this.noMtime) {
|
|
234938
234938
|
try {
|
|
234939
|
-
|
|
234939
|
+
fs4.utimesSync(entry.absolute, entry.atime || new Date, entry.mtime);
|
|
234940
234940
|
} catch (er3) {
|
|
234941
234941
|
}
|
|
234942
234942
|
}
|
|
234943
234943
|
if (this[DOCHOWN](entry)) {
|
|
234944
234944
|
try {
|
|
234945
|
-
|
|
234945
|
+
fs4.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
234946
234946
|
} catch (er3) {
|
|
234947
234947
|
}
|
|
234948
234948
|
}
|
|
@@ -234969,7 +234969,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234969
234969
|
}
|
|
234970
234970
|
[LINK](entry, linkpath, link, done) {
|
|
234971
234971
|
try {
|
|
234972
|
-
|
|
234972
|
+
fs4[link + "Sync"](linkpath, entry.absolute);
|
|
234973
234973
|
done();
|
|
234974
234974
|
entry.resume();
|
|
234975
234975
|
} catch (er2) {
|
|
@@ -234985,7 +234985,7 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234985
234985
|
var require_extract = __commonJS((exports, module) => {
|
|
234986
234986
|
var hlo = require_high_level_opt();
|
|
234987
234987
|
var Unpack = require_unpack();
|
|
234988
|
-
var
|
|
234988
|
+
var fs4 = __require("fs");
|
|
234989
234989
|
var fsm = require_fs_minipass();
|
|
234990
234990
|
var path5 = __require("path");
|
|
234991
234991
|
var stripSlash = require_strip_trailing_slashes();
|
|
@@ -235029,7 +235029,7 @@ var require_extract = __commonJS((exports, module) => {
|
|
|
235029
235029
|
var extractFileSync = (opt2) => {
|
|
235030
235030
|
const u6 = new Unpack.Sync(opt2);
|
|
235031
235031
|
const file = opt2.file;
|
|
235032
|
-
const stat9 =
|
|
235032
|
+
const stat9 = fs4.statSync(file);
|
|
235033
235033
|
const readSize = opt2.maxReadSize || 16 * 1024 * 1024;
|
|
235034
235034
|
const stream2 = new fsm.ReadStreamSync(file, {
|
|
235035
235035
|
readSize,
|
|
@@ -235044,7 +235044,7 @@ var require_extract = __commonJS((exports, module) => {
|
|
|
235044
235044
|
const p5 = new Promise((resolve5, reject) => {
|
|
235045
235045
|
u6.on("error", reject);
|
|
235046
235046
|
u6.on("close", resolve5);
|
|
235047
|
-
|
|
235047
|
+
fs4.stat(file, (er2, stat9) => {
|
|
235048
235048
|
if (er2) {
|
|
235049
235049
|
reject(er2);
|
|
235050
235050
|
} else {
|
|
@@ -235084,7 +235084,7 @@ var require_tar = __commonJS((exports) => {
|
|
|
235084
235084
|
var require_windows = __commonJS((exports, module) => {
|
|
235085
235085
|
module.exports = isexe;
|
|
235086
235086
|
isexe.sync = sync3;
|
|
235087
|
-
var
|
|
235087
|
+
var fs4 = __require("fs");
|
|
235088
235088
|
function checkPathExt(path6, options) {
|
|
235089
235089
|
var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;
|
|
235090
235090
|
if (!pathext) {
|
|
@@ -235109,12 +235109,12 @@ var require_windows = __commonJS((exports, module) => {
|
|
|
235109
235109
|
return checkPathExt(path6, options);
|
|
235110
235110
|
}
|
|
235111
235111
|
function isexe(path6, options, cb) {
|
|
235112
|
-
|
|
235112
|
+
fs4.stat(path6, function(er2, stat9) {
|
|
235113
235113
|
cb(er2, er2 ? false : checkStat(stat9, path6, options));
|
|
235114
235114
|
});
|
|
235115
235115
|
}
|
|
235116
235116
|
function sync3(path6, options) {
|
|
235117
|
-
return checkStat(
|
|
235117
|
+
return checkStat(fs4.statSync(path6), path6, options);
|
|
235118
235118
|
}
|
|
235119
235119
|
});
|
|
235120
235120
|
|
|
@@ -235122,14 +235122,14 @@ var require_windows = __commonJS((exports, module) => {
|
|
|
235122
235122
|
var require_mode = __commonJS((exports, module) => {
|
|
235123
235123
|
module.exports = isexe;
|
|
235124
235124
|
isexe.sync = sync3;
|
|
235125
|
-
var
|
|
235125
|
+
var fs4 = __require("fs");
|
|
235126
235126
|
function isexe(path6, options, cb) {
|
|
235127
|
-
|
|
235127
|
+
fs4.stat(path6, function(er2, stat9) {
|
|
235128
235128
|
cb(er2, er2 ? false : checkStat(stat9, options));
|
|
235129
235129
|
});
|
|
235130
235130
|
}
|
|
235131
235131
|
function sync3(path6, options) {
|
|
235132
|
-
return checkStat(
|
|
235132
|
+
return checkStat(fs4.statSync(path6), options);
|
|
235133
235133
|
}
|
|
235134
235134
|
function checkStat(stat9, options) {
|
|
235135
235135
|
return stat9.isFile() && checkMode(stat9, options);
|
|
@@ -235151,7 +235151,7 @@ var require_mode = __commonJS((exports, module) => {
|
|
|
235151
235151
|
|
|
235152
235152
|
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/index.js
|
|
235153
235153
|
var require_isexe = __commonJS((exports, module) => {
|
|
235154
|
-
var
|
|
235154
|
+
var fs4 = __require("fs");
|
|
235155
235155
|
var core;
|
|
235156
235156
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
235157
235157
|
core = require_windows();
|
|
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
235213
235213
|
const colon = opt2.colon || COLON;
|
|
235214
235214
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235215
235215
|
...isWindows2 ? [process.cwd()] : [],
|
|
235216
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
235216
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ApWx3BrdGk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
235217
235217
|
];
|
|
235218
235218
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235219
235219
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -235393,16 +235393,16 @@ var require_shebang_command = __commonJS((exports, module) => {
|
|
|
235393
235393
|
|
|
235394
235394
|
// ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
235395
235395
|
var require_readShebang = __commonJS((exports, module) => {
|
|
235396
|
-
var
|
|
235396
|
+
var fs4 = __require("fs");
|
|
235397
235397
|
var shebangCommand2 = require_shebang_command();
|
|
235398
235398
|
function readShebang(command) {
|
|
235399
235399
|
const size = 150;
|
|
235400
235400
|
const buffer = Buffer.alloc(size);
|
|
235401
235401
|
let fd;
|
|
235402
235402
|
try {
|
|
235403
|
-
fd =
|
|
235404
|
-
|
|
235405
|
-
|
|
235403
|
+
fd = fs4.openSync(command, "r");
|
|
235404
|
+
fs4.readSync(fd, buffer, 0, size, 0);
|
|
235405
|
+
fs4.closeSync(fd);
|
|
235406
235406
|
} catch (e10) {
|
|
235407
235407
|
}
|
|
235408
235408
|
return shebangCommand2(buffer.toString());
|
|
@@ -239634,7 +239634,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239634
239634
|
terminate() {
|
|
239635
239635
|
if (!Vt2(this))
|
|
239636
239636
|
throw Gt2("terminate");
|
|
239637
|
-
|
|
239637
|
+
fs4(this);
|
|
239638
239638
|
}
|
|
239639
239639
|
};
|
|
239640
239640
|
u6(en, "TransformStreamDefaultController");
|
|
@@ -239687,13 +239687,13 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239687
239687
|
});
|
|
239688
239688
|
}
|
|
239689
239689
|
u6(Ro, "TransformStreamDefaultControllerPerformTransform");
|
|
239690
|
-
function
|
|
239690
|
+
function fs4(n6) {
|
|
239691
239691
|
const o7 = n6._controlledTransformStream, a8 = o7._readable._readableStreamController;
|
|
239692
239692
|
Le3(a8);
|
|
239693
239693
|
const p5 = new TypeError("TransformStream terminated");
|
|
239694
239694
|
jr2(o7, p5);
|
|
239695
239695
|
}
|
|
239696
|
-
u6(
|
|
239696
|
+
u6(fs4, "TransformStreamDefaultControllerTerminate");
|
|
239697
239697
|
function cs(n6, o7) {
|
|
239698
239698
|
const a8 = n6._transformStreamController;
|
|
239699
239699
|
if (n6._backpressure) {
|
|
@@ -256272,14 +256272,14 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
256272
256272
|
case "scalar":
|
|
256273
256273
|
case "single-quoted-scalar":
|
|
256274
256274
|
case "double-quoted-scalar": {
|
|
256275
|
-
const
|
|
256275
|
+
const fs4 = this.flowScalar(this.type);
|
|
256276
256276
|
if (atNextItem || it2.value) {
|
|
256277
|
-
map3.items.push({ start: start3, key:
|
|
256277
|
+
map3.items.push({ start: start3, key: fs4, sep: [] });
|
|
256278
256278
|
this.onKeyLine = true;
|
|
256279
256279
|
} else if (it2.sep) {
|
|
256280
|
-
this.stack.push(
|
|
256280
|
+
this.stack.push(fs4);
|
|
256281
256281
|
} else {
|
|
256282
|
-
Object.assign(it2, { key:
|
|
256282
|
+
Object.assign(it2, { key: fs4, sep: [] });
|
|
256283
256283
|
this.onKeyLine = true;
|
|
256284
256284
|
}
|
|
256285
256285
|
return;
|
|
@@ -256397,13 +256397,13 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
256397
256397
|
case "scalar":
|
|
256398
256398
|
case "single-quoted-scalar":
|
|
256399
256399
|
case "double-quoted-scalar": {
|
|
256400
|
-
const
|
|
256400
|
+
const fs4 = this.flowScalar(this.type);
|
|
256401
256401
|
if (!it2 || it2.value)
|
|
256402
|
-
fc.items.push({ start: [], key:
|
|
256402
|
+
fc.items.push({ start: [], key: fs4, sep: [] });
|
|
256403
256403
|
else if (it2.sep)
|
|
256404
|
-
this.stack.push(
|
|
256404
|
+
this.stack.push(fs4);
|
|
256405
256405
|
else
|
|
256406
|
-
Object.assign(it2, { key:
|
|
256406
|
+
Object.assign(it2, { key: fs4, sep: [] });
|
|
256407
256407
|
return;
|
|
256408
256408
|
}
|
|
256409
256409
|
case "flow-map-end":
|
|
@@ -256854,6 +256854,17 @@ function toPath2(urlOrPath) {
|
|
|
256854
256854
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
256855
256855
|
}
|
|
256856
256856
|
|
|
256857
|
+
// ../../node_modules/path-exists/index.js
|
|
256858
|
+
import fs2, { promises as fsPromises2 } from "node:fs";
|
|
256859
|
+
function pathExistsSync(path2) {
|
|
256860
|
+
try {
|
|
256861
|
+
fs2.accessSync(path2);
|
|
256862
|
+
return true;
|
|
256863
|
+
} catch {
|
|
256864
|
+
return false;
|
|
256865
|
+
}
|
|
256866
|
+
}
|
|
256867
|
+
|
|
256857
256868
|
// ../../node_modules/find-up/index.js
|
|
256858
256869
|
var findUpStop = Symbol("findUpStop");
|
|
256859
256870
|
async function findUpMultiple(name, options = {}) {
|
|
@@ -257015,6 +257026,7 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
|
|
|
257015
257026
|
|
|
257016
257027
|
// ../utils/dist/index.mjs
|
|
257017
257028
|
import { spawn as spawn2 } from "node:child_process";
|
|
257029
|
+
import { mkdirSync } from "node:fs";
|
|
257018
257030
|
|
|
257019
257031
|
// ../../node_modules/yoctocolors/base.js
|
|
257020
257032
|
var exports_base = {};
|
|
@@ -265351,8 +265363,8 @@ class PathScurryBase {
|
|
|
265351
265363
|
#children;
|
|
265352
265364
|
nocase;
|
|
265353
265365
|
#fs;
|
|
265354
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
265355
|
-
this.#fs = fsFromOption(
|
|
265366
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs3 = defaultFS } = {}) {
|
|
265367
|
+
this.#fs = fsFromOption(fs3);
|
|
265356
265368
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
265357
265369
|
cwd = fileURLToPath3(cwd);
|
|
265358
265370
|
}
|
|
@@ -265828,8 +265840,8 @@ class PathScurryWin32 extends PathScurryBase {
|
|
|
265828
265840
|
parseRootPath(dir) {
|
|
265829
265841
|
return win32.parse(dir).root.toUpperCase();
|
|
265830
265842
|
}
|
|
265831
|
-
newRoot(
|
|
265832
|
-
return new PathWin32(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
265843
|
+
newRoot(fs3) {
|
|
265844
|
+
return new PathWin32(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs3 });
|
|
265833
265845
|
}
|
|
265834
265846
|
isAbsolute(p4) {
|
|
265835
265847
|
return p4.startsWith("/") || p4.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p4);
|
|
@@ -265846,8 +265858,8 @@ class PathScurryPosix extends PathScurryBase {
|
|
|
265846
265858
|
parseRootPath(_dir) {
|
|
265847
265859
|
return "/";
|
|
265848
265860
|
}
|
|
265849
|
-
newRoot(
|
|
265850
|
-
return new PathPosix(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
265861
|
+
newRoot(fs3) {
|
|
265862
|
+
return new PathPosix(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs3 });
|
|
265851
265863
|
}
|
|
265852
265864
|
isAbsolute(p4) {
|
|
265853
265865
|
return p4.startsWith("/");
|
|
@@ -267513,8 +267525,8 @@ var glob = Object.assign(glob_, {
|
|
|
267513
267525
|
glob.glob = glob;
|
|
267514
267526
|
|
|
267515
267527
|
// ../../node_modules/package-manager-detector/dist/detect.mjs
|
|
267516
|
-
import
|
|
267517
|
-
import
|
|
267528
|
+
import fs3 from "node:fs";
|
|
267529
|
+
import fsPromises3 from "node:fs/promises";
|
|
267518
267530
|
import path4 from "node:path";
|
|
267519
267531
|
import process4 from "node:process";
|
|
267520
267532
|
|
|
@@ -267570,7 +267582,7 @@ async function parsePackageJson(filepath, onUnknown) {
|
|
|
267570
267582
|
}
|
|
267571
267583
|
function handlePackageManager(filepath, onUnknown) {
|
|
267572
267584
|
try {
|
|
267573
|
-
const pkg = JSON.parse(
|
|
267585
|
+
const pkg = JSON.parse(fs3.readFileSync(filepath, "utf8"));
|
|
267574
267586
|
let agent;
|
|
267575
267587
|
if (typeof pkg.packageManager === "string") {
|
|
267576
267588
|
const [name2, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
|
|
@@ -267595,7 +267607,7 @@ function handlePackageManager(filepath, onUnknown) {
|
|
|
267595
267607
|
}
|
|
267596
267608
|
async function fileExists(filePath) {
|
|
267597
267609
|
try {
|
|
267598
|
-
const stats = await
|
|
267610
|
+
const stats = await fsPromises3.stat(filePath);
|
|
267599
267611
|
if (stats.isFile()) {
|
|
267600
267612
|
return true;
|
|
267601
267613
|
}
|
|
@@ -267742,6 +267754,9 @@ async function loadEnvironmentEnv(validateEnv, prod, path5 = process.cwd()) {
|
|
|
267742
267754
|
if (prod) {
|
|
267743
267755
|
process.env.NODE_ENV = "production";
|
|
267744
267756
|
}
|
|
267757
|
+
if (!pathExistsSync(path5)) {
|
|
267758
|
+
mkdirSync(path5, { recursive: true });
|
|
267759
|
+
}
|
|
267745
267760
|
let { parsed } = import_dotenvx.config({ convention: "nextjs", logLevel: "error", overload: true, quiet: true, path: path5 });
|
|
267746
267761
|
if (!parsed) {
|
|
267747
267762
|
parsed = {};
|
|
@@ -269946,6 +269961,7 @@ var {
|
|
|
269946
269961
|
} = import__.default;
|
|
269947
269962
|
|
|
269948
269963
|
// ../utils/dist/environment.mjs
|
|
269964
|
+
import { mkdirSync as mkdirSync2 } from "node:fs";
|
|
269949
269965
|
var import_dotenvx3 = __toESM(require_main2(), 1);
|
|
269950
269966
|
import { readFile as readFile3, writeFile as writeFile4 } from "node:fs/promises";
|
|
269951
269967
|
import { dirname as dirname32, join as join3 } from "node:path";
|
|
@@ -270039,6 +270055,9 @@ async function loadEnvironmentEnv2(validateEnv, prod, path5 = process.cwd()) {
|
|
|
270039
270055
|
if (prod) {
|
|
270040
270056
|
process.env.NODE_ENV = "production";
|
|
270041
270057
|
}
|
|
270058
|
+
if (!pathExistsSync(path5)) {
|
|
270059
|
+
mkdirSync2(path5, { recursive: true });
|
|
270060
|
+
}
|
|
270042
270061
|
let { parsed } = import_dotenvx3.config({ convention: "nextjs", logLevel: "error", overload: true, quiet: true, path: path5 });
|
|
270043
270062
|
if (!parsed) {
|
|
270044
270063
|
parsed = {};
|
|
@@ -270073,12 +270092,9 @@ async function findMonoRepoRoot(startDir) {
|
|
|
270073
270092
|
while (currentDir !== "/") {
|
|
270074
270093
|
const packageJsonPath = join3(currentDir, "package.json");
|
|
270075
270094
|
if (await exists3(packageJsonPath)) {
|
|
270076
|
-
|
|
270077
|
-
|
|
270078
|
-
|
|
270079
|
-
return currentDir;
|
|
270080
|
-
}
|
|
270081
|
-
} catch {
|
|
270095
|
+
const packageJson = tryParseJson2(await readFile3(packageJsonPath, "utf-8"));
|
|
270096
|
+
if (packageJson?.workspaces && Array.isArray(packageJson?.workspaces) && packageJson?.workspaces.length > 0) {
|
|
270097
|
+
return currentDir;
|
|
270082
270098
|
}
|
|
270083
270099
|
}
|
|
270084
270100
|
const parentDir = dirname32(currentDir);
|
|
@@ -270096,8 +270112,8 @@ async function findMonoRepoPackages(projectDir) {
|
|
|
270096
270112
|
return [projectDir];
|
|
270097
270113
|
}
|
|
270098
270114
|
const packageJsonPath = join3(monoRepoRoot, "package.json");
|
|
270099
|
-
const packageJson =
|
|
270100
|
-
const workspaces = packageJson
|
|
270115
|
+
const packageJson = tryParseJson2(await readFile3(packageJsonPath, "utf-8"));
|
|
270116
|
+
const workspaces = packageJson?.workspaces ?? [];
|
|
270101
270117
|
const packagePaths = await Promise.all(workspaces.map(async (workspace) => {
|
|
270102
270118
|
const matches = await glob(join3(monoRepoRoot, workspace, "package.json"));
|
|
270103
270119
|
return matches.map((match2) => join3(match2, ".."));
|
|
@@ -270483,12 +270499,8 @@ async function ensureConfigDir() {
|
|
|
270483
270499
|
}
|
|
270484
270500
|
async function readConfig() {
|
|
270485
270501
|
await ensureConfigDir();
|
|
270486
|
-
|
|
270487
|
-
|
|
270488
|
-
return JSON.parse(content);
|
|
270489
|
-
} catch {
|
|
270490
|
-
return { instances: {} };
|
|
270491
|
-
}
|
|
270502
|
+
const content = await readFile4(CONFIG_FILE, "utf-8");
|
|
270503
|
+
return tryParseJson(content, { instances: {} });
|
|
270492
270504
|
}
|
|
270493
270505
|
async function writeConfig(config4) {
|
|
270494
270506
|
await ensureConfigDir();
|
|
@@ -273253,7 +273265,7 @@ function connectCommand() {
|
|
|
273253
273265
|
var package_default = {
|
|
273254
273266
|
name: "@settlemint/sdk-cli",
|
|
273255
273267
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
273256
|
-
version: "0.6.
|
|
273268
|
+
version: "0.6.57-mainaa83ea1",
|
|
273257
273269
|
type: "module",
|
|
273258
273270
|
private: false,
|
|
273259
273271
|
license: "FSL-1.1-MIT",
|
|
@@ -273304,8 +273316,8 @@ var package_default = {
|
|
|
273304
273316
|
"@inquirer/input": "4.1.0",
|
|
273305
273317
|
"@inquirer/password": "4.0.3",
|
|
273306
273318
|
"@inquirer/select": "4.0.3",
|
|
273307
|
-
"@settlemint/sdk-js": "0.6.
|
|
273308
|
-
"@settlemint/sdk-utils": "0.6.
|
|
273319
|
+
"@settlemint/sdk-js": "0.6.57-mainaa83ea1",
|
|
273320
|
+
"@settlemint/sdk-utils": "0.6.57-mainaa83ea1",
|
|
273309
273321
|
"get-tsconfig": "4.8.1",
|
|
273310
273322
|
giget: "1.2.3"
|
|
273311
273323
|
},
|
|
@@ -275916,7 +275928,7 @@ console.log(JSON.stringify(hardhat.userConfig));`], {
|
|
|
275916
275928
|
},
|
|
275917
275929
|
silent: true
|
|
275918
275930
|
});
|
|
275919
|
-
const config4 =
|
|
275931
|
+
const config4 = tryParseJson(output.join(" "));
|
|
275920
275932
|
if (isHardhatConfig(config4)) {
|
|
275921
275933
|
return config4;
|
|
275922
275934
|
}
|
|
@@ -276071,8 +276083,11 @@ function hardhatTestCommand() {
|
|
|
276071
276083
|
return test;
|
|
276072
276084
|
}
|
|
276073
276085
|
|
|
276086
|
+
// src/commands/smart-contract-set/subgraph/build.ts
|
|
276087
|
+
import { dirname as dirname7 } from "node:path";
|
|
276088
|
+
|
|
276074
276089
|
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276075
|
-
import { rm as rm4
|
|
276090
|
+
import { rm as rm4 } from "node:fs/promises";
|
|
276076
276091
|
|
|
276077
276092
|
// src/commands/smart-contract-set/subgraph/utils/sanitize-name.ts
|
|
276078
276093
|
var import_slugify = __toESM(require_slugify(), 1);
|
|
@@ -276085,8 +276100,9 @@ function sanitizeName(value4, length = 35) {
|
|
|
276085
276100
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
276086
276101
|
}
|
|
276087
276102
|
|
|
276088
|
-
// src/commands/smart-contract-set/subgraph/utils/
|
|
276089
|
-
|
|
276103
|
+
// src/commands/smart-contract-set/subgraph/utils/subgraph-config.ts
|
|
276104
|
+
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
276105
|
+
import { basename as basename4, join as join8 } from "node:path";
|
|
276090
276106
|
|
|
276091
276107
|
// ../../node_modules/yaml/dist/index.js
|
|
276092
276108
|
var composer = require_composer();
|
|
@@ -276135,24 +276151,34 @@ var $visit = visit2.visit;
|
|
|
276135
276151
|
var $visitAsync = visit2.visitAsync;
|
|
276136
276152
|
|
|
276137
276153
|
// src/commands/smart-contract-set/subgraph/utils/subgraph-config.ts
|
|
276138
|
-
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
276139
|
-
import { basename as basename4, join as join8 } from "node:path";
|
|
276140
276154
|
var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
|
|
276141
|
-
var isGenerated = () => exists2(CONFIG_FILE_PATH);
|
|
276142
|
-
var getSubgraphYamlFile = async (
|
|
276143
|
-
|
|
276144
|
-
|
|
276155
|
+
var isGenerated = (path8 = process.cwd()) => exists2(join8(path8, CONFIG_FILE_PATH));
|
|
276156
|
+
var getSubgraphYamlFile = async (path8 = process.cwd()) => {
|
|
276157
|
+
const generated = await isGenerated(path8);
|
|
276158
|
+
if (generated && await exists2(join8(path8, "generated/scs.subgraph.yaml"))) {
|
|
276159
|
+
return join8(path8, "generated/scs.subgraph.yaml");
|
|
276160
|
+
}
|
|
276161
|
+
if (await exists2(join8(path8, "subgraph/subgraph.yaml"))) {
|
|
276162
|
+
return join8(path8, "subgraph/subgraph.yaml");
|
|
276163
|
+
}
|
|
276164
|
+
if (await exists2(join8(path8, "subgraph.yaml"))) {
|
|
276165
|
+
return join8(path8, "subgraph.yaml");
|
|
276166
|
+
}
|
|
276167
|
+
throw new Error("Subgraph configuration file not found");
|
|
276168
|
+
};
|
|
276169
|
+
var getSubgraphYamlConfig = async (path8 = process.cwd()) => {
|
|
276170
|
+
const subgraphYamlFile = await getSubgraphYamlFile(path8);
|
|
276145
276171
|
const rawYamlConfig = await readFile7(subgraphYamlFile);
|
|
276146
276172
|
return $parse(rawYamlConfig.toString());
|
|
276147
276173
|
};
|
|
276148
|
-
var updateSubgraphYamlConfig = async (config4) => {
|
|
276149
|
-
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276174
|
+
var updateSubgraphYamlConfig = async (config4, cwd2 = process.cwd()) => {
|
|
276175
|
+
const subgraphYamlFile = await getSubgraphYamlFile(cwd2);
|
|
276150
276176
|
await writeFile8(subgraphYamlFile, $stringify(config4));
|
|
276151
276177
|
};
|
|
276152
276178
|
var getSubgraphConfig = async (path8 = process.cwd()) => {
|
|
276153
276179
|
try {
|
|
276154
276180
|
const configContents = await readFile7(join8(path8, CONFIG_FILE_PATH));
|
|
276155
|
-
const currentConfig =
|
|
276181
|
+
const currentConfig = tryParseJson(configContents.toString());
|
|
276156
276182
|
return currentConfig;
|
|
276157
276183
|
} catch (err) {
|
|
276158
276184
|
const error5 = err;
|
|
@@ -276162,12 +276188,16 @@ var getSubgraphConfig = async (path8 = process.cwd()) => {
|
|
|
276162
276188
|
};
|
|
276163
276189
|
|
|
276164
276190
|
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276165
|
-
|
|
276191
|
+
var import_semver = __toESM(require_semver2(), 1);
|
|
276192
|
+
async function subgraphSetup({ env: env2, instance, accessToken, autoAccept }) {
|
|
276166
276193
|
const theGraphMiddleware = await getTheGraphMiddleware({ env: env2, instance, accessToken, autoAccept });
|
|
276167
276194
|
if (!theGraphMiddleware) {
|
|
276168
276195
|
cancel2("No Graph Middleware selected. Please select one to continue.");
|
|
276169
276196
|
}
|
|
276170
|
-
await
|
|
276197
|
+
const generated = await isGenerated();
|
|
276198
|
+
if (generated) {
|
|
276199
|
+
await executeCommand("forge", ["build"]);
|
|
276200
|
+
}
|
|
276171
276201
|
if (await exists2("./generated")) {
|
|
276172
276202
|
await rm4("./generated", { recursive: true, force: true });
|
|
276173
276203
|
}
|
|
@@ -276182,7 +276212,7 @@ async function subgraphSetup({ env: env2, instance, accessToken, isGenerated: is
|
|
|
276182
276212
|
}
|
|
276183
276213
|
const isFixedNetwork = (theGraphMiddleware.entityVersion ?? 4) >= 4;
|
|
276184
276214
|
const network = isFixedNetwork ? "settlemint" : sanitizeName(await getNodeName({ env: env2, instance, accessToken }), 30);
|
|
276185
|
-
if (
|
|
276215
|
+
if (generated) {
|
|
276186
276216
|
const { command, args } = await getPackageManagerExecutable();
|
|
276187
276217
|
await executeCommand(command, [
|
|
276188
276218
|
...args,
|
|
@@ -276197,7 +276227,7 @@ async function subgraphSetup({ env: env2, instance, accessToken, isGenerated: is
|
|
|
276197
276227
|
]);
|
|
276198
276228
|
}
|
|
276199
276229
|
const yamlConfig = await getSubgraphYamlConfig();
|
|
276200
|
-
if (
|
|
276230
|
+
if (generated) {
|
|
276201
276231
|
yamlConfig.features = ["nonFatalErrors", "fullTextSearch", "ipfsOnEthereumContracts"];
|
|
276202
276232
|
}
|
|
276203
276233
|
for (const dataSource of yamlConfig.dataSources) {
|
|
@@ -276214,8 +276244,7 @@ async function subgraphSetup({ env: env2, instance, accessToken, isGenerated: is
|
|
|
276214
276244
|
template.network = network;
|
|
276215
276245
|
}
|
|
276216
276246
|
}
|
|
276217
|
-
|
|
276218
|
-
await writeFile9(subgraphYamlFile, $stringify(yamlConfig));
|
|
276247
|
+
await updateSubgraphYamlConfig(yamlConfig);
|
|
276219
276248
|
return theGraphMiddleware;
|
|
276220
276249
|
}
|
|
276221
276250
|
async function getTheGraphMiddleware({
|
|
@@ -276263,23 +276292,22 @@ function subgraphBuildCommand() {
|
|
|
276263
276292
|
return missingAccessTokenError();
|
|
276264
276293
|
}
|
|
276265
276294
|
const instance = await instancePrompt(env2, true);
|
|
276266
|
-
const generated = await isGenerated();
|
|
276267
276295
|
await subgraphSetup({
|
|
276268
|
-
isGenerated: generated,
|
|
276269
276296
|
env: env2,
|
|
276270
276297
|
instance,
|
|
276271
276298
|
accessToken,
|
|
276272
276299
|
autoAccept
|
|
276273
276300
|
});
|
|
276274
|
-
const cwd2 = generated ? process.cwd() : "./subgraph";
|
|
276275
276301
|
const { command, args } = await getPackageManagerExecutable();
|
|
276276
276302
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276303
|
+
const cwd2 = dirname7(subgraphYamlFile);
|
|
276277
276304
|
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
|
|
276278
276305
|
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
|
|
276279
276306
|
});
|
|
276280
276307
|
}
|
|
276281
276308
|
|
|
276282
276309
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
|
276310
|
+
import { dirname as dirname8 } from "node:path";
|
|
276283
276311
|
function subgraphCodegenCommand() {
|
|
276284
276312
|
return new Command2("codegen").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").description("Codegen the subgraph types").action(async ({ acceptDefaults, prod }) => {
|
|
276285
276313
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
@@ -276289,21 +276317,23 @@ function subgraphCodegenCommand() {
|
|
|
276289
276317
|
return missingAccessTokenError();
|
|
276290
276318
|
}
|
|
276291
276319
|
const instance = await instancePrompt(env2, true);
|
|
276292
|
-
const generated = await isGenerated();
|
|
276293
276320
|
await subgraphSetup({
|
|
276294
|
-
isGenerated: generated,
|
|
276295
276321
|
env: env2,
|
|
276296
276322
|
instance,
|
|
276297
276323
|
accessToken,
|
|
276298
276324
|
autoAccept
|
|
276299
276325
|
});
|
|
276300
|
-
const cwd2 = generated ? process.cwd() : "./subgraph";
|
|
276301
276326
|
const { command, args } = await getPackageManagerExecutable();
|
|
276302
276327
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276303
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276328
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276329
|
+
cwd: dirname8(subgraphYamlFile)
|
|
276330
|
+
});
|
|
276304
276331
|
});
|
|
276305
276332
|
}
|
|
276306
276333
|
|
|
276334
|
+
// src/commands/smart-contract-set/subgraph/deploy.ts
|
|
276335
|
+
import { dirname as dirname9 } from "node:path";
|
|
276336
|
+
|
|
276307
276337
|
// src/commands/smart-contract-set/prompts/subgraph-name.prompt.ts
|
|
276308
276338
|
async function subgraphNamePrompt2(defaultName, env2, accept, prod) {
|
|
276309
276339
|
const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : env2.SETTLEMINT_THEGRAPH_SUBGRAPH_NAME;
|
|
@@ -276341,19 +276371,19 @@ function subgraphDeployCommand() {
|
|
|
276341
276371
|
return missingAccessTokenError();
|
|
276342
276372
|
}
|
|
276343
276373
|
const instance = await instancePrompt(env2, true);
|
|
276344
|
-
const generated = await isGenerated();
|
|
276345
276374
|
const theGraphMiddleware = await subgraphSetup({
|
|
276346
|
-
isGenerated: generated,
|
|
276347
276375
|
env: env2,
|
|
276348
276376
|
instance,
|
|
276349
276377
|
accessToken,
|
|
276350
276378
|
autoAccept
|
|
276351
276379
|
});
|
|
276352
|
-
const cwd2 = generated ? process.cwd() : "./subgraph";
|
|
276353
276380
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276354
276381
|
await updateSpecVersion(theGraphMiddleware.specVersion);
|
|
276355
276382
|
const { command, args } = await getPackageManagerExecutable();
|
|
276356
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276383
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276384
|
+
cwd: dirname9(subgraphYamlFile)
|
|
276385
|
+
});
|
|
276386
|
+
const generated = await isGenerated();
|
|
276357
276387
|
if (generated) {
|
|
276358
276388
|
const currentConfig = await getSubgraphConfig();
|
|
276359
276389
|
if (!currentConfig || currentConfig?.datasources.some((ds) => ds.address === "0x0000000000000000000000000000000000000000")) {
|
|
@@ -276432,4 +276462,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
|
|
|
276432
276462
|
cancel2(reason);
|
|
276433
276463
|
});
|
|
276434
276464
|
|
|
276435
|
-
//# debugId=
|
|
276465
|
+
//# debugId=4C0DB0AC0EAD43AB64756E2164756E21
|