@settlemint/sdk-cli 2.3.2-pr2274a4c0 → 2.3.2-pr6c3d348a
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 +145 -145
- package/dist/cli.js.map +3 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -242163,7 +242163,7 @@ var require_Schema = __commonJS((exports) => {
|
|
242163
242163
|
var seq = require_seq();
|
242164
242164
|
var string4 = require_string();
|
242165
242165
|
var tags = require_tags();
|
242166
|
-
var sortMapEntriesByKey = (a8,
|
242166
|
+
var sortMapEntriesByKey = (a8, b4) => a8.key < b4.key ? -1 : a8.key > b4.key ? 1 : 0;
|
242167
242167
|
|
242168
242168
|
class Schema {
|
242169
242169
|
constructor({ compat: compat2, customTags, merge: merge4, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
@@ -242758,7 +242758,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
242758
242758
|
const { uniqueKeys } = ctx.options;
|
242759
242759
|
if (uniqueKeys === false)
|
242760
242760
|
return false;
|
242761
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8,
|
242761
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8, b4) => a8 === b4 || identity2.isScalar(a8) && identity2.isScalar(b4) && a8.value === b4.value;
|
242762
242762
|
return items.some((pair) => isEqual(pair.key, search));
|
242763
242763
|
}
|
242764
242764
|
exports.mapIncludes = mapIncludes;
|
@@ -243437,12 +243437,12 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
243437
243437
|
};
|
243438
243438
|
}
|
243439
243439
|
const valueEnd = offset + source.length;
|
243440
|
-
const
|
243440
|
+
const re4 = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
|
243441
243441
|
return {
|
243442
243442
|
value: value4,
|
243443
243443
|
type: _type,
|
243444
|
-
comment:
|
243445
|
-
range: [offset, valueEnd,
|
243444
|
+
comment: re4.comment,
|
243445
|
+
range: [offset, valueEnd, re4.offset]
|
243446
243446
|
};
|
243447
243447
|
}
|
243448
243448
|
function plainValue(source, onError) {
|
@@ -243814,10 +243814,10 @@ var require_compose_node = __commonJS((exports) => {
|
|
243814
243814
|
if (alias.source.endsWith(":"))
|
243815
243815
|
onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true);
|
243816
243816
|
const valueEnd = offset + source.length;
|
243817
|
-
const
|
243818
|
-
alias.range = [offset, valueEnd,
|
243819
|
-
if (
|
243820
|
-
alias.comment =
|
243817
|
+
const re4 = resolveEnd.resolveEnd(end, valueEnd, options.strict, onError);
|
243818
|
+
alias.range = [offset, valueEnd, re4.offset];
|
243819
|
+
if (re4.comment)
|
243820
|
+
alias.comment = re4.comment;
|
243821
243821
|
return alias;
|
243822
243822
|
}
|
243823
243823
|
exports.composeEmptyNode = composeEmptyNode;
|
@@ -243855,10 +243855,10 @@ var require_compose_doc = __commonJS((exports) => {
|
|
243855
243855
|
}
|
243856
243856
|
doc2.contents = value4 ? composeNode.composeNode(ctx, value4, props, onError) : composeNode.composeEmptyNode(ctx, props.end, start3, null, props, onError);
|
243857
243857
|
const contentEnd = doc2.contents.range[2];
|
243858
|
-
const
|
243859
|
-
if (
|
243860
|
-
doc2.comment =
|
243861
|
-
doc2.range = [offset, contentEnd,
|
243858
|
+
const re4 = resolveEnd.resolveEnd(end, contentEnd, false, onError);
|
243859
|
+
if (re4.comment)
|
243860
|
+
doc2.comment = re4.comment;
|
243861
|
+
doc2.range = [offset, contentEnd, re4.offset];
|
243862
243862
|
return doc2;
|
243863
243863
|
}
|
243864
243864
|
exports.composeDoc = composeDoc;
|
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
262458
262458
|
var package_default = {
|
262459
262459
|
name: "@settlemint/sdk-cli",
|
262460
262460
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
262461
|
-
version: "2.3.2-
|
262461
|
+
version: "2.3.2-pr6c3d348a",
|
262462
262462
|
type: "module",
|
262463
262463
|
private: false,
|
262464
262464
|
license: "FSL-1.1-MIT",
|
@@ -262507,8 +262507,8 @@ var package_default = {
|
|
262507
262507
|
"@inquirer/input": "4.1.10",
|
262508
262508
|
"@inquirer/password": "4.0.13",
|
262509
262509
|
"@inquirer/select": "4.2.1",
|
262510
|
-
"@settlemint/sdk-js": "2.3.2-
|
262511
|
-
"@settlemint/sdk-utils": "2.3.2-
|
262510
|
+
"@settlemint/sdk-js": "2.3.2-pr6c3d348a",
|
262511
|
+
"@settlemint/sdk-utils": "2.3.2-pr6c3d348a",
|
262512
262512
|
"@types/node": "22.15.21",
|
262513
262513
|
"@types/semver": "7.7.0",
|
262514
262514
|
"@types/which": "3.0.4",
|
@@ -275035,11 +275035,11 @@ function createPublicClient(parameters) {
|
|
275035
275035
|
// ../viem/dist/viem.mjs
|
275036
275036
|
var C4 = ((a7) => (a7.PINCODE = "PINCODE", a7.OTP = "OTP", a7.SECRET_CODES = "SECRET_CODES", a7))(C4 || {});
|
275037
275037
|
var u6 = ((i6) => (i6.SHA1 = "SHA1", i6.SHA224 = "SHA224", i6.SHA256 = "SHA256", i6.SHA384 = "SHA384", i6.SHA512 = "SHA512", i6.SHA3_224 = "SHA3-224", i6.SHA3_256 = "SHA3-256", i6.SHA3_384 = "SHA3-384", i6.SHA3_512 = "SHA3-512", i6))(u6 || {});
|
275038
|
-
var
|
275039
|
-
var
|
275040
|
-
async function
|
275038
|
+
var O6 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), chainId: exports_external.string().optional(), chainName: exports_external.string(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
|
275039
|
+
var A5 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), rpcUrl: UrlOrPathSchema2 });
|
275040
|
+
async function ie4(t8) {
|
275041
275041
|
ensureServer();
|
275042
|
-
let e10 = validate2(
|
275042
|
+
let e10 = validate2(A5, t8);
|
275043
275043
|
return createPublicClient({ transport: http(e10.rpcUrl, { fetchOptions: { headers: e10.accessToken ? { "x-auth-token": e10.accessToken } : undefined } }) }).getChainId();
|
275044
275044
|
}
|
275045
275045
|
|
@@ -275052,7 +275052,7 @@ async function codegenViem(env2) {
|
|
275052
275052
|
note("[Codegen] No RPC endpoints found, skipping Viem resources generation", "warn");
|
275053
275053
|
return;
|
275054
275054
|
}
|
275055
|
-
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await
|
275055
|
+
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await ie4({
|
275056
275056
|
accessToken: env2.SETTLEMINT_ACCESS_TOKEN,
|
275057
275057
|
rpcUrl: env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT
|
275058
275058
|
});
|
@@ -276504,7 +276504,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
276504
276504
|
...kits.map((template2) => ({
|
276505
276505
|
name: template2.name,
|
276506
276506
|
value: template2
|
276507
|
-
})).sort((a7,
|
276507
|
+
})).sort((a7, b4) => a7.name.localeCompare(b4.name))
|
276508
276508
|
]
|
276509
276509
|
});
|
276510
276510
|
return template;
|
@@ -276903,14 +276903,14 @@ var et3 = l3((Re3, tt2) => {
|
|
276903
276903
|
let { pathEnv: r6, pathExt: s7, pathExtExe: o8 } = Q4(t8, e10), i6 = [], a7 = (u7) => new Promise((f5, p5) => {
|
276904
276904
|
if (u7 === r6.length)
|
276905
276905
|
return e10.all && i6.length ? f5(i6) : p5(J3(t8));
|
276906
|
-
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8),
|
276907
|
-
f5(c3(
|
276906
|
+
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8), b4 = !w5 && /^\.[\\\/]/.test(t8) ? t8.slice(0, 2) + m7 : m7;
|
276907
|
+
f5(c3(b4, u7, 0));
|
276908
276908
|
}), c3 = (u7, f5, p5) => new Promise((d6, w5) => {
|
276909
276909
|
if (p5 === s7.length)
|
276910
276910
|
return d6(a7(f5 + 1));
|
276911
276911
|
let m7 = s7[p5];
|
276912
|
-
V5(u7 + m7, { pathExt: o8 }, (
|
276913
|
-
if (!
|
276912
|
+
V5(u7 + m7, { pathExt: o8 }, (b4, Ot2) => {
|
276913
|
+
if (!b4 && Ot2)
|
276914
276914
|
if (e10.all)
|
276915
276915
|
i6.push(u7 + m7);
|
276916
276916
|
else
|
@@ -277001,27 +277001,27 @@ var dt3 = l3((Le3, pt2) => {
|
|
277001
277001
|
};
|
277002
277002
|
});
|
277003
277003
|
var ht3 = l3((je3, ft2) => {
|
277004
|
-
var
|
277004
|
+
var O7 = h8("fs"), Zt2 = dt3();
|
277005
277005
|
function te4(t8) {
|
277006
277006
|
let n6 = Buffer.alloc(150), r6;
|
277007
277007
|
try {
|
277008
|
-
r6 =
|
277008
|
+
r6 = O7.openSync(t8, "r"), O7.readSync(r6, n6, 0, 150, 0), O7.closeSync(r6);
|
277009
277009
|
} catch {}
|
277010
277010
|
return Zt2(n6.toString());
|
277011
277011
|
}
|
277012
277012
|
ft2.exports = te4;
|
277013
277013
|
});
|
277014
277014
|
var wt3 = l3((Fe3, Et2) => {
|
277015
|
-
var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(),
|
277016
|
-
function
|
277015
|
+
var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(), re4 = process.platform === "win32", se4 = /\.(?:com|exe)$/i, oe4 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
277016
|
+
function ie5(t8) {
|
277017
277017
|
t8.file = mt2(t8);
|
277018
277018
|
let e10 = t8.file && ne3(t8.file);
|
277019
277019
|
return e10 ? (t8.args.unshift(t8.file), t8.command = e10, mt2(t8)) : t8.file;
|
277020
277020
|
}
|
277021
277021
|
function ce3(t8) {
|
277022
|
-
if (!
|
277022
|
+
if (!re4)
|
277023
277023
|
return t8;
|
277024
|
-
let e10 =
|
277024
|
+
let e10 = ie5(t8), n6 = !se4.test(e10);
|
277025
277025
|
if (t8.options.forceShell || n6) {
|
277026
277026
|
let r6 = oe4.test(e10);
|
277027
277027
|
t8.command = ee4.normalize(t8.command), t8.command = gt3.command(t8.command), t8.args = t8.args.map((o8) => gt3.argument(o8, r6));
|
@@ -277084,20 +277084,20 @@ var bt3 = l3((ze3, vt2) => {
|
|
277084
277084
|
};
|
277085
277085
|
});
|
277086
277086
|
var Ct3 = l3((He3, E6) => {
|
277087
|
-
var yt2 = h8("child_process"), T4 = wt3(),
|
277087
|
+
var yt2 = h8("child_process"), T4 = wt3(), A6 = bt3();
|
277088
277088
|
function _t2(t8, e10, n6) {
|
277089
277089
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawn(r6.command, r6.args, r6.options);
|
277090
|
-
return
|
277090
|
+
return A6.hookChildProcess(s7, r6), s7;
|
277091
277091
|
}
|
277092
277092
|
function pe4(t8, e10, n6) {
|
277093
277093
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawnSync(r6.command, r6.args, r6.options);
|
277094
|
-
return s7.error = s7.error ||
|
277094
|
+
return s7.error = s7.error || A6.verifyENOENTSync(s7.status, r6), s7;
|
277095
277095
|
}
|
277096
277096
|
E6.exports = _t2;
|
277097
277097
|
E6.exports.spawn = _t2;
|
277098
277098
|
E6.exports.sync = pe4;
|
277099
277099
|
E6.exports._parse = T4;
|
277100
|
-
E6.exports._enoent =
|
277100
|
+
E6.exports._enoent = A6;
|
277101
277101
|
});
|
277102
277102
|
var Lt3 = /^path$/i;
|
277103
277103
|
var q6 = { key: "PATH", value: "" };
|
@@ -277171,7 +277171,7 @@ function xe4(t8) {
|
|
277171
277171
|
}
|
277172
277172
|
return e10.signal;
|
277173
277173
|
}
|
277174
|
-
var
|
277174
|
+
var R7 = class {
|
277175
277175
|
_process;
|
277176
277176
|
_aborted = false;
|
277177
277177
|
_options;
|
@@ -277285,7 +277285,7 @@ var R8 = class {
|
|
277285
277285
|
};
|
277286
277286
|
};
|
277287
277287
|
var ve4 = (t8, e10, n6) => {
|
277288
|
-
let r6 = new
|
277288
|
+
let r6 = new R7(t8, e10, n6);
|
277289
277289
|
return r6.spawn(), r6;
|
277290
277290
|
};
|
277291
277291
|
var be3 = ve4;
|
@@ -277457,8 +277457,8 @@ async function detectPackageManager2(cwd2, options = {}) {
|
|
277457
277457
|
const scriptArg = process.argv[1];
|
277458
277458
|
if (scriptArg) {
|
277459
277459
|
for (const packageManager of packageManagers) {
|
277460
|
-
const
|
277461
|
-
if (
|
277460
|
+
const re4 = new RegExp(`[/\\\\]\\.?${packageManager.command}`);
|
277461
|
+
if (re4.test(scriptArg)) {
|
277462
277462
|
return packageManager;
|
277463
277463
|
}
|
277464
277464
|
}
|
@@ -277634,7 +277634,7 @@ function E6() {
|
|
277634
277634
|
l4 || (l4 = [s7.slice(0, 99), "", true]);
|
277635
277635
|
}
|
277636
277636
|
return l4;
|
277637
|
-
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g5 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000),
|
277637
|
+
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g5 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000), A6 = new Array(156).join("\x00"), m7 = (s7, e10, t8, i6) => i6 === null ? false : (s7.write(i6 + A6, e10, t8, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > t8);
|
277638
277638
|
return k5 = B4, k5;
|
277639
277639
|
}
|
277640
277640
|
var e$3;
|
@@ -277822,11 +277822,11 @@ function ft2() {
|
|
277822
277822
|
if (X$1)
|
277823
277823
|
return s$5;
|
277824
277824
|
X$1 = 1;
|
277825
|
-
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"),
|
277825
|
+
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R8 = Symbol("emittingEnd"), g5 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $6 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b4 = Symbol("resume"), i6 = Symbol("buffer"), a7 = Symbol("pipes"), n6 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r6 = Symbol("destroyed"), P6 = Symbol("error"), x7 = Symbol("emitData"), V6 = Symbol("emitEnd"), N7 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O7 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h9) => Promise.resolve().then(h9), J3 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J3 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W6 = J3 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h9) => h9 === "end" || h9 === "finish" || h9 === "prefinish", tt2 = (h9) => h9 instanceof ArrayBuffer || typeof h9 == "object" && h9.constructor && h9.constructor.name === "ArrayBuffer" && h9.byteLength >= 0, et4 = (h9) => !Buffer.isBuffer(h9) && ArrayBuffer.isView(h9);
|
277826
277826
|
|
277827
277827
|
class z4 {
|
277828
277828
|
constructor(t8, e10, s7) {
|
277829
|
-
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[
|
277829
|
+
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[b4](), e10.on("drain", this.ondrain);
|
277830
277830
|
}
|
277831
277831
|
unpipe() {
|
277832
277832
|
this.dest.removeListener("drain", this.ondrain);
|
@@ -277848,7 +277848,7 @@ function ft2() {
|
|
277848
277848
|
|
277849
277849
|
class F3 extends q7 {
|
277850
277850
|
constructor(t8) {
|
277851
|
-
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[
|
277851
|
+
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R8] = false, this[B4] = false, this[g5] = null, this.writable = true, this.readable = true, this[n6] = 0, this[r6] = false, t8 && t8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i6] }), t8 && t8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a7] }), this[E7] = t8 && t8.signal, this[O7] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
|
277852
277852
|
}
|
277853
277853
|
get bufferLength() {
|
277854
277854
|
return this[n6];
|
@@ -277879,14 +277879,14 @@ function ft2() {
|
|
277879
277879
|
this[p5] = this[p5] || !!t8;
|
277880
277880
|
}
|
277881
277881
|
[_5]() {
|
277882
|
-
this[
|
277882
|
+
this[O7] = true, this.emit("abort", this[E7].reason), this.destroy(this[E7].reason);
|
277883
277883
|
}
|
277884
277884
|
get aborted() {
|
277885
|
-
return this[
|
277885
|
+
return this[O7];
|
277886
277886
|
}
|
277887
277887
|
set aborted(t8) {}
|
277888
277888
|
write(t8, e10, s7) {
|
277889
|
-
if (this[
|
277889
|
+
if (this[O7])
|
277890
277890
|
return false;
|
277891
277891
|
if (this[m7])
|
277892
277892
|
throw new Error("write after end");
|
@@ -277911,11 +277911,11 @@ function ft2() {
|
|
277911
277911
|
end(t8, e10, s7) {
|
277912
277912
|
return typeof t8 == "function" && (s7 = t8, t8 = null), typeof e10 == "function" && (s7 = e10, e10 = "utf8"), t8 && this.write(t8, e10), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[S4]) && this[d6](), this;
|
277913
277913
|
}
|
277914
|
-
[
|
277914
|
+
[b4]() {
|
277915
277915
|
this[r6] || (this[S4] = false, this[M5] = true, this.emit("resume"), this[i6].length ? this[T4]() : this[m7] ? this[d6]() : this.emit("drain"));
|
277916
277916
|
}
|
277917
277917
|
resume() {
|
277918
|
-
return this[
|
277918
|
+
return this[b4]();
|
277919
277919
|
}
|
277920
277920
|
pause() {
|
277921
277921
|
this[M5] = false, this[S4] = true;
|
@@ -277948,7 +277948,7 @@ function ft2() {
|
|
277948
277948
|
if (this[r6])
|
277949
277949
|
return;
|
277950
277950
|
const s7 = this[y4];
|
277951
|
-
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[
|
277951
|
+
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[b4]()) : this[b4]()), t8;
|
277952
277952
|
}
|
277953
277953
|
unpipe(t8) {
|
277954
277954
|
const e10 = this[a7].find((s7) => s7.dest === t8);
|
@@ -277959,13 +277959,13 @@ function ft2() {
|
|
277959
277959
|
}
|
277960
277960
|
on(t8, e10) {
|
277961
277961
|
const s7 = super.on(t8, e10);
|
277962
|
-
return t8 === "data" && !this[a7].length && !this.flowing ? this[
|
277962
|
+
return t8 === "data" && !this[a7].length && !this.flowing ? this[b4]() : t8 === "readable" && this[n6] !== 0 ? super.emit("readable") : k6(t8) && this[y4] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[g5] && (this[p5] ? w6(() => e10.call(this, this[g5])) : e10.call(this, this[g5])), s7;
|
277963
277963
|
}
|
277964
277964
|
get emittedEnd() {
|
277965
277965
|
return this[y4];
|
277966
277966
|
}
|
277967
277967
|
[d6]() {
|
277968
|
-
!this[
|
277968
|
+
!this[R8] && !this[y4] && !this[r6] && this[i6].length === 0 && this[m7] && (this[R8] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B4] && this.emit("close"), this[R8] = false);
|
277969
277969
|
}
|
277970
277970
|
emit(t8, e10, ...s7) {
|
277971
277971
|
if (t8 !== "error" && t8 !== "close" && t8 !== r6 && this[r6])
|
@@ -278044,15 +278044,15 @@ function ft2() {
|
|
278044
278044
|
if (this[m7])
|
278045
278045
|
return e10();
|
278046
278046
|
let u7 = null, Q4 = null;
|
278047
|
-
const
|
278047
|
+
const A6 = (L6) => {
|
278048
278048
|
this.removeListener("data", U7), this.removeListener("end", C5), this.removeListener(r6, D3), e10(), Q4(L6);
|
278049
278049
|
}, U7 = (L6) => {
|
278050
|
-
this.removeListener("error",
|
278050
|
+
this.removeListener("error", A6), this.removeListener("end", C5), this.removeListener(r6, D3), this.pause(), u7({ value: L6, done: !!this[m7] });
|
278051
278051
|
}, C5 = () => {
|
278052
|
-
this.removeListener("error",
|
278053
|
-
}, D3 = () =>
|
278052
|
+
this.removeListener("error", A6), this.removeListener("data", U7), this.removeListener(r6, D3), e10(), u7({ done: true });
|
278053
|
+
}, D3 = () => A6(new Error("stream destroyed"));
|
278054
278054
|
return new Promise((L6, it2) => {
|
278055
|
-
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error",
|
278055
|
+
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error", A6), this.once("end", C5), this.once("data", U7);
|
278056
278056
|
});
|
278057
278057
|
}, throw: e10, return: e10, [K4]() {
|
278058
278058
|
return this;
|
@@ -278198,7 +278198,7 @@ function tt2() {
|
|
278198
278198
|
if (H$1)
|
278199
278199
|
return j3;
|
278200
278200
|
H$1 = 1;
|
278201
|
-
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"),
|
278201
|
+
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R8 = Symbol("emitEnd2"), d6 = Symbol("async"), b4 = (o8) => Promise.resolve().then(o8), C5 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $6 = C5 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C5 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J3 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
|
278202
278202
|
|
278203
278203
|
class U7 {
|
278204
278204
|
constructor(t8, e10, i6) {
|
@@ -278259,7 +278259,7 @@ function tt2() {
|
|
278259
278259
|
if (this[n6])
|
278260
278260
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
278261
278261
|
typeof e10 == "function" && (i6 = e10, e10 = "utf8"), e10 || (e10 = "utf8");
|
278262
|
-
const l4 = this[d6] ?
|
278262
|
+
const l4 = this[d6] ? b4 : (f5) => f5();
|
278263
278263
|
return !this[r6] && !Buffer.isBuffer(t8) && (J3(t8) ? t8 = Buffer.from(t8.buffer, t8.byteOffset, t8.byteLength) : v6(t8) ? t8 = Buffer.from(t8) : typeof t8 != "string" && (this.objectMode = true)), this[r6] ? (this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : t8.length ? (typeof t8 == "string" && !(e10 === this[h9] && !this[m7].lastNeed) && (t8 = Buffer.from(t8, e10)), Buffer.isBuffer(t8) && this[h9] && (t8 = this[m7].write(t8)), this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : (this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing);
|
278264
278264
|
}
|
278265
278265
|
read(t8) {
|
@@ -278314,7 +278314,7 @@ function tt2() {
|
|
278314
278314
|
if (this[n6])
|
278315
278315
|
return;
|
278316
278316
|
const i6 = this[c3];
|
278317
|
-
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ?
|
278317
|
+
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ? b4(() => this[p5]()) : this[p5]()), t8;
|
278318
278318
|
}
|
278319
278319
|
unpipe(t8) {
|
278320
278320
|
const e10 = this.pipes.find((i6) => i6.dest === t8);
|
@@ -278325,7 +278325,7 @@ function tt2() {
|
|
278325
278325
|
}
|
278326
278326
|
on(t8, e10) {
|
278327
278327
|
const i6 = super.on(t8, e10);
|
278328
|
-
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ?
|
278328
|
+
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ? b4(() => e10.call(this, this[E7])) : e10.call(this, this[E7])), i6;
|
278329
278329
|
}
|
278330
278330
|
get emittedEnd() {
|
278331
278331
|
return this[c3];
|
@@ -278337,7 +278337,7 @@ function tt2() {
|
|
278337
278337
|
if (t8 !== "error" && t8 !== "close" && t8 !== n6 && this[n6])
|
278338
278338
|
return;
|
278339
278339
|
if (t8 === "data")
|
278340
|
-
return e10 ? this[d6] ?
|
278340
|
+
return e10 ? this[d6] ? b4(() => this[D3](e10)) : this[D3](e10) : false;
|
278341
278341
|
if (t8 === "end")
|
278342
278342
|
return this[F3]();
|
278343
278343
|
if (t8 === "close") {
|
@@ -278366,9 +278366,9 @@ function tt2() {
|
|
278366
278366
|
return this[a7](), e10;
|
278367
278367
|
}
|
278368
278368
|
[F3]() {
|
278369
|
-
this[c3] || (this[c3] = true, this.readable = false, this[d6] ?
|
278369
|
+
this[c3] || (this[c3] = true, this.readable = false, this[d6] ? b4(() => this[R8]()) : this[R8]());
|
278370
278370
|
}
|
278371
|
-
[
|
278371
|
+
[R8]() {
|
278372
278372
|
if (this[m7]) {
|
278373
278373
|
const e10 = this[m7].end();
|
278374
278374
|
if (e10) {
|
@@ -278407,14 +278407,14 @@ function tt2() {
|
|
278407
278407
|
return Promise.resolve({ done: true });
|
278408
278408
|
let i6 = null, l4 = null;
|
278409
278409
|
const f5 = (g5) => {
|
278410
|
-
this.removeListener("data",
|
278411
|
-
},
|
278412
|
-
this.removeListener("error", f5), this.removeListener("end",
|
278413
|
-
},
|
278414
|
-
this.removeListener("error", f5), this.removeListener("data",
|
278410
|
+
this.removeListener("data", A6), this.removeListener("end", O7), l4(g5);
|
278411
|
+
}, A6 = (g5) => {
|
278412
|
+
this.removeListener("error", f5), this.removeListener("end", O7), this.pause(), i6({ value: g5, done: !!this[u7] });
|
278413
|
+
}, O7 = () => {
|
278414
|
+
this.removeListener("error", f5), this.removeListener("data", A6), i6({ done: true });
|
278415
278415
|
}, W6 = () => f5(new Error("stream destroyed"));
|
278416
278416
|
return new Promise((g5, z4) => {
|
278417
|
-
l4 = z4, i6 = g5, this.once(n6, W6), this.once("error", f5), this.once("end",
|
278417
|
+
l4 = z4, i6 = g5, this.once(n6, W6), this.once("error", f5), this.once("end", O7), this.once("data", A6);
|
278418
278418
|
});
|
278419
278419
|
} };
|
278420
278420
|
}
|
@@ -278483,7 +278483,7 @@ function J3() {
|
|
278483
278483
|
if (typeof e10 == "function" && (i6 = e10, e10 = "utf8"), typeof s7 == "string" && (s7 = n6.from(s7, e10)), this[f5])
|
278484
278484
|
return;
|
278485
278485
|
w6(this[t8], "zlib binding closed");
|
278486
|
-
const m7 = this[t8]._handle,
|
278486
|
+
const m7 = this[t8]._handle, R8 = m7.close;
|
278487
278487
|
m7.close = () => {};
|
278488
278488
|
const G4 = this[t8].close;
|
278489
278489
|
this[t8].close = () => {}, n6.concat = (l4) => l4;
|
@@ -278494,18 +278494,18 @@ function J3() {
|
|
278494
278494
|
} catch (l4) {
|
278495
278495
|
n6.concat = E7, this[_6](new d6(l4));
|
278496
278496
|
} finally {
|
278497
|
-
this[t8] && (this[t8]._handle = m7, m7.close =
|
278497
|
+
this[t8] && (this[t8]._handle = m7, m7.close = R8, this[t8].close = G4, this[t8].removeAllListeners("error"));
|
278498
278498
|
}
|
278499
278499
|
this[t8] && this[t8].on("error", (l4) => this[_6](new d6(l4)));
|
278500
|
-
let
|
278500
|
+
let b4;
|
278501
278501
|
if (h9)
|
278502
278502
|
if (Array.isArray(h9) && h9.length > 0) {
|
278503
|
-
|
278503
|
+
b4 = this[c3](n6.from(h9[0]));
|
278504
278504
|
for (let l4 = 1;l4 < h9.length; l4++)
|
278505
|
-
|
278505
|
+
b4 = this[c3](h9[l4]);
|
278506
278506
|
} else
|
278507
|
-
|
278508
|
-
return i6 && i6(),
|
278507
|
+
b4 = this[c3](n6.from(h9));
|
278508
|
+
return i6 && i6(), b4;
|
278509
278509
|
}
|
278510
278510
|
[c3](s7) {
|
278511
278511
|
return super.write(s7);
|
@@ -278525,8 +278525,8 @@ function J3() {
|
|
278525
278525
|
if (this[F3] !== s7 || this[S4] !== e10) {
|
278526
278526
|
this.flush(u7.Z_SYNC_FLUSH), w6(this[t8], "zlib binding closed");
|
278527
278527
|
const i6 = this[t8].flush;
|
278528
|
-
this[t8].flush = (m7,
|
278529
|
-
this.flush(m7),
|
278528
|
+
this[t8].flush = (m7, R8) => {
|
278529
|
+
this.flush(m7), R8();
|
278530
278530
|
};
|
278531
278531
|
try {
|
278532
278532
|
this[t8].params(s7, e10);
|
@@ -278584,24 +278584,24 @@ function J3() {
|
|
278584
278584
|
}
|
278585
278585
|
}
|
278586
278586
|
|
278587
|
-
class
|
278587
|
+
class O7 extends x7 {
|
278588
278588
|
constructor(s7, e10) {
|
278589
278589
|
s7 = s7 || {}, s7.flush = s7.flush || u7.BROTLI_OPERATION_PROCESS, s7.finishFlush = s7.finishFlush || u7.BROTLI_OPERATION_FINISH, super(s7, e10), this[y4] = u7.BROTLI_OPERATION_FLUSH;
|
278590
278590
|
}
|
278591
278591
|
}
|
278592
278592
|
|
278593
|
-
class v6 extends
|
278593
|
+
class v6 extends O7 {
|
278594
278594
|
constructor(s7) {
|
278595
278595
|
super(s7, "BrotliCompress");
|
278596
278596
|
}
|
278597
278597
|
}
|
278598
278598
|
|
278599
|
-
class
|
278599
|
+
class A6 extends O7 {
|
278600
278600
|
constructor(s7) {
|
278601
278601
|
super(s7, "BrotliDecompress");
|
278602
278602
|
}
|
278603
278603
|
}
|
278604
|
-
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress =
|
278604
|
+
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress = A6) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
|
278605
278605
|
constructor() {
|
278606
278606
|
throw new Error("Brotli is not supported in this version of Node.js");
|
278607
278607
|
}
|
@@ -278613,7 +278613,7 @@ function rt4() {
|
|
278613
278613
|
if (F$2)
|
278614
278614
|
return O$1;
|
278615
278615
|
F$2 = 1;
|
278616
|
-
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C6 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"),
|
278616
|
+
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C6 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"), b4 = Symbol("emit"), r6 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g5 = Symbol("consumeChunkSub"), q7 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N7 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R8 = Symbol("sawNullBlock"), A6 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X6) => true;
|
278617
278617
|
return O$1 = P6(class extends v6 {
|
278618
278618
|
constructor(t8) {
|
278619
278619
|
t8 = t8 || {}, super(t8), this.file = t8.file || "", this[E$1] = null, this.on(T5, (s7) => {
|
@@ -278622,7 +278622,7 @@ function rt4() {
|
|
278622
278622
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
278623
278623
|
}), this.strict = !!t8.strict, this.maxMetaEntrySize = t8.maxMetaEntrySize || G4, this.filter = typeof t8.filter == "function" ? t8.filter : K4;
|
278624
278624
|
const i6 = t8.file && (t8.file.endsWith(".tar.br") || t8.file.endsWith(".tbr"));
|
278625
|
-
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[
|
278625
|
+
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[R8] = false, this[A6] = false, this.on("end", () => this[V6]()), typeof t8.onwarn == "function" && this.on("warn", t8.onwarn), typeof t8.onentry == "function" && this.on("entry", t8.onentry);
|
278626
278626
|
}
|
278627
278627
|
[Y4](t8, i6) {
|
278628
278628
|
this[E$1] === null && (this[E$1] = false);
|
@@ -278633,8 +278633,8 @@ function rt4() {
|
|
278633
278633
|
return this.warn("TAR_ENTRY_INVALID", o8);
|
278634
278634
|
}
|
278635
278635
|
if (s7.nullBlock)
|
278636
|
-
this[
|
278637
|
-
else if (this[
|
278636
|
+
this[R8] ? (this[A6] = true, this[h9] === "begin" && (this[h9] = "header"), this[b4]("eof")) : (this[R8] = true, this[b4]("nullBlock"));
|
278637
|
+
else if (this[R8] = false, !s7.cksumValid)
|
278638
278638
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s7 });
|
278639
278639
|
else if (!s7.path)
|
278640
278640
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header: s7 });
|
@@ -278654,7 +278654,7 @@ function rt4() {
|
|
278654
278654
|
e10.on("end", w6);
|
278655
278655
|
} else
|
278656
278656
|
this[E$1] = true;
|
278657
|
-
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[
|
278657
|
+
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[b4]("ignoredEntry", e10), this[h9] = "ignore", e10.resume()) : e10.size > 0 && (this[c3] = "", e10.on("data", (w6) => this[c3] += w6), this[h9] = "meta") : (this[l4] = null, e10.ignore = e10.ignore || !this.filter(e10.path, e10), e10.ignore ? (this[b4]("ignoredEntry", e10), this[h9] = e10.remain ? "ignore" : "header", e10.resume()) : (e10.remain ? this[h9] = "body" : (this[h9] = "header", e10.end()), this[a7] ? this[f5].push(e10) : (this[f5].push(e10), this[I7]())));
|
278658
278658
|
}
|
278659
278659
|
}
|
278660
278660
|
}
|
@@ -278682,11 +278682,11 @@ function rt4() {
|
|
278682
278682
|
const s7 = this[d6], o8 = this[q7](t8, i6);
|
278683
278683
|
return this[d6] || this[H4](s7), o8;
|
278684
278684
|
}
|
278685
|
-
[
|
278685
|
+
[b4](t8, i6, s7) {
|
278686
278686
|
!this[f5].length && !this[a7] ? this.emit(t8, i6, s7) : this[f5].push([t8, i6, s7]);
|
278687
278687
|
}
|
278688
278688
|
[H4](t8) {
|
278689
|
-
switch (this[
|
278689
|
+
switch (this[b4]("meta", this[c3]), t8.type) {
|
278690
278690
|
case "ExtendedHeader":
|
278691
278691
|
case "OldExtendedHeader":
|
278692
278692
|
this[l4] = C6.parse(this[c3], this[l4], false);
|
@@ -278753,7 +278753,7 @@ function rt4() {
|
|
278753
278753
|
const i6 = this[n6] ? this[n6].length : 0;
|
278754
278754
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t8.blockRemain} more bytes, only ${i6} available)`, { entry: t8 }), this[n6] && t8.write(this[n6]), t8.end();
|
278755
278755
|
}
|
278756
|
-
this[
|
278756
|
+
this[b4](T5);
|
278757
278757
|
}
|
278758
278758
|
}
|
278759
278759
|
[_6](t8) {
|
@@ -278768,7 +278768,7 @@ function rt4() {
|
|
278768
278768
|
this[n6] = null, this[g5](i6);
|
278769
278769
|
} else
|
278770
278770
|
this[g5](t8);
|
278771
|
-
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[
|
278771
|
+
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[A6]; ) {
|
278772
278772
|
const i6 = this[n6];
|
278773
278773
|
this[n6] = null, this[g5](i6);
|
278774
278774
|
}
|
@@ -278779,7 +278779,7 @@ function rt4() {
|
|
278779
278779
|
[g5](t8) {
|
278780
278780
|
let i6 = 0;
|
278781
278781
|
const s7 = t8.length;
|
278782
|
-
for (;i6 + 512 <= s7 && !this[m7] && !this[
|
278782
|
+
for (;i6 + 512 <= s7 && !this[m7] && !this[A6]; )
|
278783
278783
|
switch (this[h9]) {
|
278784
278784
|
case "begin":
|
278785
278785
|
case "header":
|
@@ -278809,15 +278809,15 @@ function X6() {
|
|
278809
278809
|
return s$4;
|
278810
278810
|
v$1 = 1;
|
278811
278811
|
const H4 = tt2(), I7 = nt2.EventEmitter, r6 = V5;
|
278812
|
-
let
|
278813
|
-
if (!
|
278812
|
+
let R8 = r6.writev;
|
278813
|
+
if (!R8) {
|
278814
278814
|
const c3 = process.binding("fs"), t8 = c3.FSReqWrap || c3.FSReqCallback;
|
278815
|
-
|
278816
|
-
const G4 = (J4, K4) =>
|
278815
|
+
R8 = (e10, i6, $6, A6) => {
|
278816
|
+
const G4 = (J4, K4) => A6(J4, K4, i6), j4 = new t8;
|
278817
278817
|
j4.oncomplete = G4, c3.writeBuffers(e10, i6, $6, j4);
|
278818
278818
|
};
|
278819
278819
|
}
|
278820
|
-
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g5 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C6 = Symbol("_write"),
|
278820
|
+
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g5 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C6 = Symbol("_write"), b4 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
|
278821
278821
|
|
278822
278822
|
class D3 extends H4 {
|
278823
278823
|
constructor(t8, e10) {
|
@@ -278921,9 +278921,9 @@ function X6() {
|
|
278921
278921
|
}
|
278922
278922
|
}
|
278923
278923
|
|
278924
|
-
class
|
278924
|
+
class O7 extends I7 {
|
278925
278925
|
constructor(t8, e10) {
|
278926
|
-
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[
|
278926
|
+
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[b4] = false, this[g5] = false, this[E7] = false, this[n6] = [], this[l4] = t8, this[s7] = typeof e10.fd == "number" ? e10.fd : null, this[q7] = e10.mode === undefined ? 438 : e10.mode, this[u7] = typeof e10.start == "number" ? e10.start : null, this[m7] = typeof e10.autoClose == "boolean" ? e10.autoClose : true;
|
278927
278927
|
const i6 = this[u7] !== null ? "r+" : "w";
|
278928
278928
|
this[F3] = e10.flags === undefined, this[o8] = this[F3] ? i6 : e10.flags, this[s7] === null && this[a7]();
|
278929
278929
|
}
|
@@ -278942,7 +278942,7 @@ function X6() {
|
|
278942
278942
|
return this[l4];
|
278943
278943
|
}
|
278944
278944
|
[d6](t8) {
|
278945
|
-
this[h9](), this[
|
278945
|
+
this[h9](), this[b4] = true, this.emit("error", t8);
|
278946
278946
|
}
|
278947
278947
|
[a7]() {
|
278948
278948
|
r6.open(this[l4], this[o8], this[q7], (t8, e10) => this[y4](t8, e10));
|
@@ -278951,16 +278951,16 @@ function X6() {
|
|
278951
278951
|
this[F3] && this[o8] === "r+" && t8 && t8.code === "ENOENT" ? (this[o8] = "w", this[a7]()) : t8 ? this[d6](t8) : (this[s7] = e10, this.emit("open", e10), this[x7]());
|
278952
278952
|
}
|
278953
278953
|
end(t8, e10) {
|
278954
|
-
return t8 && this.write(t8, e10), this[g5] = true, !this[
|
278954
|
+
return t8 && this.write(t8, e10), this[g5] = true, !this[b4] && !this[n6].length && typeof this[s7] == "number" && this[_6](null, 0), this;
|
278955
278955
|
}
|
278956
278956
|
write(t8, e10) {
|
278957
|
-
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g5] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[
|
278957
|
+
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g5] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b4] || this[n6].length ? (this[n6].push(t8), this[E7] = true, false) : (this[b4] = true, this[C6](t8), true);
|
278958
278958
|
}
|
278959
278959
|
[C6](t8) {
|
278960
278960
|
r6.write(this[s7], t8, 0, t8.length, this[u7], (e10, i6) => this[_6](e10, i6));
|
278961
278961
|
}
|
278962
278962
|
[_6](t8, e10) {
|
278963
|
-
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[
|
278963
|
+
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[b4] = false, this[g5] && !this[B4] ? (this[B4] = true, this[h9](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
|
278964
278964
|
}
|
278965
278965
|
[x7]() {
|
278966
278966
|
if (this[n6].length === 0)
|
@@ -278969,7 +278969,7 @@ function X6() {
|
|
278969
278969
|
this[C6](this[n6].pop());
|
278970
278970
|
else {
|
278971
278971
|
const t8 = this[n6];
|
278972
|
-
this[n6] = [],
|
278972
|
+
this[n6] = [], R8(this[s7], t8, this[u7], (e10, i6) => this[_6](e10, i6));
|
278973
278973
|
}
|
278974
278974
|
}
|
278975
278975
|
[h9]() {
|
@@ -278980,7 +278980,7 @@ function X6() {
|
|
278980
278980
|
}
|
278981
278981
|
}
|
278982
278982
|
|
278983
|
-
class U7 extends
|
278983
|
+
class U7 extends O7 {
|
278984
278984
|
[a7]() {
|
278985
278985
|
let t8;
|
278986
278986
|
if (this[F3] && this[o8] === "r+")
|
@@ -279013,7 +279013,7 @@ function X6() {
|
|
279013
279013
|
}
|
279014
279014
|
}
|
279015
279015
|
}
|
279016
|
-
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream =
|
279016
|
+
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream = O7, s$4.WriteStreamSync = U7, s$4;
|
279017
279017
|
}
|
279018
279018
|
var r$1 = { exports: {} };
|
279019
279019
|
var i$2;
|
@@ -279166,11 +279166,11 @@ function S4() {
|
|
279166
279166
|
return n6.sync = d6, n6.native = (e10, r6) => a7(u7(e10), i6(r6)), n6.manual = (e10, r6) => o8(u7(e10), i6(r6)), n6.nativeSync = (e10, r6) => c3(u7(e10), i6(r6)), n6.manualSync = (e10, r6) => q7(u7(e10), i6(r6)), m7 = n6, m7;
|
279167
279167
|
}
|
279168
279168
|
var y$12;
|
279169
|
-
var
|
279169
|
+
var O7;
|
279170
279170
|
function F$1() {
|
279171
|
-
if (
|
279171
|
+
if (O7)
|
279172
279172
|
return y$12;
|
279173
|
-
|
279173
|
+
O7 = 1;
|
279174
279174
|
const c3 = V5, a7 = H$2, T5 = c3.lchown ? "lchown" : "chown", I7 = c3.lchownSync ? "lchownSync" : "chownSync", i6 = c3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u7 = (r6, e10, n6) => {
|
279175
279175
|
try {
|
279176
279176
|
return c3[I7](r6, e10, n6);
|
@@ -279195,9 +279195,9 @@ function F$1() {
|
|
279195
279195
|
throw t9;
|
279196
279196
|
D3(r6, e10, n6);
|
279197
279197
|
}
|
279198
|
-
} : (r6, e10, n6) => u7(r6, e10, n6),
|
279198
|
+
} : (r6, e10, n6) => u7(r6, e10, n6), R8 = process.version;
|
279199
279199
|
let N7 = (r6, e10, n6) => c3.readdir(r6, e10, n6), q7 = (r6, e10) => c3.readdirSync(r6, e10);
|
279200
|
-
/^v4\./.test(
|
279200
|
+
/^v4\./.test(R8) && (N7 = (r6, e10, n6) => c3.readdir(r6, n6));
|
279201
279201
|
const h9 = (r6, e10, n6, t9) => {
|
279202
279202
|
c3[T5](r6, e10, n6, _6(r6, e10, n6, (o8) => {
|
279203
279203
|
t9(o8 && o8.code !== "ENOENT" ? o8 : null);
|
@@ -279267,11 +279267,11 @@ function F$1() {
|
|
279267
279267
|
};
|
279268
279268
|
return y$12 = E7, E7.sync = m8, y$12;
|
279269
279269
|
}
|
279270
|
-
var
|
279270
|
+
var R8;
|
279271
279271
|
function H4() {
|
279272
|
-
if (
|
279272
|
+
if (R8)
|
279273
279273
|
return r$1.exports;
|
279274
|
-
|
279274
|
+
R8 = 1;
|
279275
279275
|
const g5 = S4(), l4 = V5, p5 = H$2, x7 = F$1(), y4 = a$7();
|
279276
279276
|
|
279277
279277
|
class D3 extends Error {
|
@@ -279477,7 +279477,7 @@ function Os() {
|
|
279477
279477
|
if (y4)
|
279478
279478
|
return G4;
|
279479
279479
|
y4 = 1;
|
279480
|
-
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"),
|
279480
|
+
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"), O8 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W6 = Symbol("unsupported"), j4 = Symbol("checkPath"), b4 = Symbol("mkdir"), m8 = Symbol("onError"), $6 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A6 = Symbol("maybeClose"), x7 = Symbol("skip"), E7 = Symbol("doChown"), R9 = Symbol("uid"), _6 = Symbol("gid"), g5 = Symbol("checkedCwd"), X$12 = Ds, J4 = F3(), C6 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a8, s8) => {
|
279481
279481
|
if (!C6)
|
279482
279482
|
return r6.unlink(a8, s8);
|
279483
279483
|
const i7 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
@@ -279505,7 +279505,7 @@ function Os() {
|
|
279505
279505
|
class L6 extends is {
|
279506
279506
|
constructor(s8) {
|
279507
279507
|
if (s8 || (s8 = {}), s8.ondone = (i7) => {
|
279508
|
-
this[P6] = true, this[
|
279508
|
+
this[P6] = true, this[A6]();
|
279509
279509
|
}, super(s8), this[g5] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$6] = 0, this[P6] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
|
279510
279510
|
if (typeof s8.uid != "number" || typeof s8.gid != "number")
|
279511
279511
|
throw new TypeError("cannot set owner without number uid and gid");
|
@@ -279519,7 +279519,7 @@ function Os() {
|
|
279519
279519
|
warn(s8, i7, e11 = {}) {
|
279520
279520
|
return (s8 === "TAR_BAD_ARCHIVE" || s8 === "TAR_ABORT") && (e11.recoverable = false), super.warn(s8, i7, e11);
|
279521
279521
|
}
|
279522
|
-
[
|
279522
|
+
[A6]() {
|
279523
279523
|
this[P6] && this[$6] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
279524
279524
|
}
|
279525
279525
|
[j4](s8) {
|
@@ -279579,13 +279579,13 @@ function Os() {
|
|
279579
279579
|
[m8](s8, i7) {
|
279580
279580
|
s8.name === "CwdError" ? this.emit("error", s8) : (this.warn("TAR_ENTRY_ERROR", s8, { entry: i7 }), this[S5](), i7.resume());
|
279581
279581
|
}
|
279582
|
-
[
|
279582
|
+
[b4](s8, i7, e11) {
|
279583
279583
|
M5(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7, noChmod: this.noChmod }, e11);
|
279584
279584
|
}
|
279585
279585
|
[E7](s8) {
|
279586
279586
|
return this.forceChown || this.preserveOwner && (typeof s8.uid == "number" && s8.uid !== this.processUid || typeof s8.gid == "number" && s8.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
279587
279587
|
}
|
279588
|
-
[
|
279588
|
+
[R9](s8) {
|
279589
279589
|
return Q4(this.uid, s8.uid, this.processUid);
|
279590
279590
|
}
|
279591
279591
|
[_6](s8) {
|
@@ -279615,7 +279615,7 @@ function Os() {
|
|
279615
279615
|
}
|
279616
279616
|
if (this[E7](s8)) {
|
279617
279617
|
o9++;
|
279618
|
-
const f5 = this[
|
279618
|
+
const f5 = this[R9](s8), k6 = this[_6](s8);
|
279619
279619
|
r6.fchown(p6, f5, k6, (D3) => D3 ? r6.chown(n7, f5, k6, (I7) => u8(I7 && D3)) : u8());
|
279620
279620
|
}
|
279621
279621
|
u8();
|
@@ -279627,7 +279627,7 @@ function Os() {
|
|
279627
279627
|
}
|
279628
279628
|
[F$12](s8, i7) {
|
279629
279629
|
const e11 = s8.mode & 4095 || this.dmode;
|
279630
|
-
this[
|
279630
|
+
this[b4](s8.absolute, e11, (t9) => {
|
279631
279631
|
if (t9) {
|
279632
279632
|
this[m8](t9, s8), i7();
|
279633
279633
|
return;
|
@@ -279636,24 +279636,24 @@ function Os() {
|
|
279636
279636
|
const u8 = (h9) => {
|
279637
279637
|
--o9 === 0 && (i7(), this[S5](), s8.resume());
|
279638
279638
|
};
|
279639
|
-
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[
|
279639
|
+
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[R9](s8), this[_6](s8), u8)), u8();
|
279640
279640
|
});
|
279641
279641
|
}
|
279642
279642
|
[W6](s8) {
|
279643
279643
|
s8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s8.type}`, { entry: s8 }), s8.resume();
|
279644
279644
|
}
|
279645
279645
|
[B4](s8, i7) {
|
279646
|
-
this[
|
279646
|
+
this[O8](s8, s8.linkpath, "symlink", i7);
|
279647
279647
|
}
|
279648
279648
|
[z$1](s8, i7) {
|
279649
279649
|
const e11 = l5(w6.resolve(this.cwd, s8.linkpath));
|
279650
|
-
this[
|
279650
|
+
this[O8](s8, e11, "link", i7);
|
279651
279651
|
}
|
279652
279652
|
[V$1]() {
|
279653
279653
|
this[$6]++;
|
279654
279654
|
}
|
279655
279655
|
[S5]() {
|
279656
|
-
this[$6]--, this[
|
279656
|
+
this[$6]--, this[A6]();
|
279657
279657
|
}
|
279658
279658
|
[x7](s8) {
|
279659
279659
|
this[S5](), s8.resume();
|
@@ -279674,7 +279674,7 @@ function Os() {
|
|
279674
279674
|
const e11 = (h9) => {
|
279675
279675
|
this[v6](s8), i7(h9);
|
279676
279676
|
}, t9 = () => {
|
279677
|
-
this[
|
279677
|
+
this[b4](this.cwd, this.dmode, (h9) => {
|
279678
279678
|
if (h9) {
|
279679
279679
|
this[m8](h9, s8), e11();
|
279680
279680
|
return;
|
@@ -279685,7 +279685,7 @@ function Os() {
|
|
279685
279685
|
if (s8.absolute !== this.cwd) {
|
279686
279686
|
const h9 = l5(w6.dirname(s8.absolute));
|
279687
279687
|
if (h9 !== this.cwd)
|
279688
|
-
return this[
|
279688
|
+
return this[b4](h9, this.dmode, (c4) => {
|
279689
279689
|
if (c4) {
|
279690
279690
|
this[m8](c4, s8), e11();
|
279691
279691
|
return;
|
@@ -279736,7 +279736,7 @@ function Os() {
|
|
279736
279736
|
return this[F$12](i7, e11);
|
279737
279737
|
}
|
279738
279738
|
}
|
279739
|
-
[
|
279739
|
+
[O8](s8, i7, e11, t9) {
|
279740
279740
|
r6[e11](i7, s8.absolute, (o9) => {
|
279741
279741
|
o9 ? this[m8](o9, s8) : (this[S5](), s8.resume()), t9();
|
279742
279742
|
});
|
@@ -279756,7 +279756,7 @@ function Os() {
|
|
279756
279756
|
}
|
279757
279757
|
[q7](s8) {
|
279758
279758
|
if (this[v6](s8), !this[g5]) {
|
279759
|
-
const o9 = this[
|
279759
|
+
const o9 = this[b4](this.cwd, this.dmode);
|
279760
279760
|
if (o9)
|
279761
279761
|
return this[m8](o9, s8);
|
279762
279762
|
this[g5] = true;
|
@@ -279764,7 +279764,7 @@ function Os() {
|
|
279764
279764
|
if (s8.absolute !== this.cwd) {
|
279765
279765
|
const o9 = l5(w6.dirname(s8.absolute));
|
279766
279766
|
if (o9 !== this.cwd) {
|
279767
|
-
const u8 = this[
|
279767
|
+
const u8 = this[b4](o9, this.dmode);
|
279768
279768
|
if (u8)
|
279769
279769
|
return this[m8](u8, s8);
|
279770
279770
|
}
|
@@ -279825,7 +279825,7 @@ function Os() {
|
|
279825
279825
|
}
|
279826
279826
|
}
|
279827
279827
|
if (this[E7](s8)) {
|
279828
|
-
const n7 = this[
|
279828
|
+
const n7 = this[R9](s8), p6 = this[_6](s8);
|
279829
279829
|
try {
|
279830
279830
|
r6.fchownSync(o9, n7, p6);
|
279831
279831
|
} catch (f5) {
|
@@ -279840,7 +279840,7 @@ function Os() {
|
|
279840
279840
|
});
|
279841
279841
|
}
|
279842
279842
|
[F$12](s8, i7) {
|
279843
|
-
const e11 = s8.mode & 4095 || this.dmode, t9 = this[
|
279843
|
+
const e11 = s8.mode & 4095 || this.dmode, t9 = this[b4](s8.absolute, e11);
|
279844
279844
|
if (t9) {
|
279845
279845
|
this[m8](t9, s8), i7();
|
279846
279846
|
return;
|
@@ -279851,18 +279851,18 @@ function Os() {
|
|
279851
279851
|
} catch {}
|
279852
279852
|
if (this[E7](s8))
|
279853
279853
|
try {
|
279854
|
-
r6.chownSync(s8.absolute, this[
|
279854
|
+
r6.chownSync(s8.absolute, this[R9](s8), this[_6](s8));
|
279855
279855
|
} catch {}
|
279856
279856
|
i7(), s8.resume();
|
279857
279857
|
}
|
279858
|
-
[
|
279858
|
+
[b4](s8, i7) {
|
279859
279859
|
try {
|
279860
279860
|
return M5.sync(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7 });
|
279861
279861
|
} catch (e11) {
|
279862
279862
|
return e11;
|
279863
279863
|
}
|
279864
279864
|
}
|
279865
|
-
[
|
279865
|
+
[O8](s8, i7, e11, t9) {
|
279866
279866
|
try {
|
279867
279867
|
r6[e11 + "Sync"](i7, s8.absolute), t9(), s8.resume();
|
279868
279868
|
} catch (o9) {
|
@@ -279899,11 +279899,11 @@ function v6() {
|
|
279899
279899
|
new y5.ReadStreamSync(o9, { readSize: s8, size: t9.size }).pipe(e11);
|
279900
279900
|
}, h9 = (r6, e11) => {
|
279901
279901
|
const o9 = new u8(r6), t9 = r6.maxReadSize || 16 * 1024 * 1024, s8 = r6.file, n7 = new Promise((i7, a8) => {
|
279902
|
-
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4,
|
279902
|
+
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4, R9) => {
|
279903
279903
|
if (c4)
|
279904
279904
|
a8(c4);
|
279905
279905
|
else {
|
279906
|
-
const S5 = new y5.ReadStream(s8, { readSize: t9, size:
|
279906
|
+
const S5 = new y5.ReadStream(s8, { readSize: t9, size: R9.size });
|
279907
279907
|
S5.on("error", a8), S5.pipe(o9);
|
279908
279908
|
}
|
279909
279909
|
});
|
@@ -280809,7 +280809,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
280809
280809
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
280810
280810
|
name: target.name,
|
280811
280811
|
value: target.id
|
280812
|
-
})).sort((a8,
|
280812
|
+
})).sort((a8, b4) => a8.name.localeCompare(b4.name))
|
280813
280813
|
});
|
280814
280814
|
return platformConfig.deploymentEngineTargets.find((target) => target.id === provider);
|
280815
280815
|
}
|
@@ -280840,7 +280840,7 @@ async function regionPrompt(provider, argument) {
|
|
280840
280840
|
choices: provider.clusters.map((cluster) => ({
|
280841
280841
|
name: cluster.name,
|
280842
280842
|
value: cluster.id
|
280843
|
-
})).sort((a8,
|
280843
|
+
})).sort((a8, b4) => a8.name.localeCompare(b4.name))
|
280844
280844
|
});
|
280845
280845
|
return provider.clusters.find((cluster) => cluster.id === region);
|
280846
280846
|
}
|
@@ -282727,19 +282727,19 @@ function configCommand() {
|
|
282727
282727
|
useCases: useCases.map((useCase) => ({
|
282728
282728
|
id: useCase.id,
|
282729
282729
|
name: useCase.name
|
282730
|
-
})).sort((a8,
|
282730
|
+
})).sort((a8, b4) => a8.name.localeCompare(b4.name)),
|
282731
282731
|
kits: kits.map((kit) => ({
|
282732
282732
|
id: kit.id,
|
282733
282733
|
name: kit.name,
|
282734
282734
|
description: kit.description,
|
282735
282735
|
npmPackage: kit.npmPackageName
|
282736
|
-
})).sort((a8,
|
282736
|
+
})).sort((a8, b4) => a8.name.localeCompare(b4.name)),
|
282737
282737
|
deploymentEngineTargets: platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
|
282738
282738
|
providerId: provider.id,
|
282739
282739
|
regionId: getRegionId(region.id),
|
282740
282740
|
providerName: provider.name,
|
282741
282741
|
regionName: region.name
|
282742
|
-
}))).sort((a8,
|
282742
|
+
}))).sort((a8, b4) => a8.providerId.localeCompare(b4.providerId) || a8.regionId.localeCompare(b4.regionId)),
|
282743
282743
|
preDeployedAbis: platformConfig.preDeployedAbis.filter(({ featureflagged }) => !featureflagged).flatMap(({ abis }) => abis).sort()
|
282744
282744
|
};
|
282745
282745
|
if (output === "json") {
|
@@ -283179,7 +283179,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
283179
283179
|
choices: selectableUseCases.map((useCase2) => ({
|
283180
283180
|
name: formatUseCaseName(useCase2.name),
|
283181
283181
|
value: useCase2.id
|
283182
|
-
})).sort((a8,
|
283182
|
+
})).sort((a8, b4) => a8.name.localeCompare(b4.name))
|
283183
283183
|
});
|
283184
283184
|
return platformConfig.smartContractSets.sets.find((set2) => set2.id === useCase);
|
283185
283185
|
}
|
@@ -284302,4 +284302,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
284302
284302
|
// src/cli.ts
|
284303
284303
|
sdkCliCommand();
|
284304
284304
|
|
284305
|
-
//# debugId=
|
284305
|
+
//# debugId=0D4CB3D3D188B36664756E2164756E21
|