@settlemint/sdk-cli 2.6.2-pr09addbf0 → 2.6.2-pr1a352baa
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 +331 -908
- package/dist/cli.js.map +4 -19
- package/package.json +8 -8
package/dist/cli.js
CHANGED
@@ -231828,124 +231828,6 @@ var require_slugify = __commonJS((exports, module) => {
|
|
231828
231828
|
});
|
231829
231829
|
});
|
231830
231830
|
|
231831
|
-
// ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
231832
|
-
var require_ansi_escapes = __commonJS((exports, module) => {
|
231833
|
-
var ansiEscapes = exports;
|
231834
|
-
exports.default = ansiEscapes;
|
231835
|
-
var ESC2 = "\x1B[";
|
231836
|
-
var OSC = "\x1B]";
|
231837
|
-
var BEL = "\x07";
|
231838
|
-
var SEP = ";";
|
231839
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
231840
|
-
ansiEscapes.cursorTo = (x6, y4) => {
|
231841
|
-
if (typeof x6 !== "number") {
|
231842
|
-
throw new TypeError("The `x` argument is required");
|
231843
|
-
}
|
231844
|
-
if (typeof y4 !== "number") {
|
231845
|
-
return ESC2 + (x6 + 1) + "G";
|
231846
|
-
}
|
231847
|
-
return ESC2 + (y4 + 1) + ";" + (x6 + 1) + "H";
|
231848
|
-
};
|
231849
|
-
ansiEscapes.cursorMove = (x6, y4) => {
|
231850
|
-
if (typeof x6 !== "number") {
|
231851
|
-
throw new TypeError("The `x` argument is required");
|
231852
|
-
}
|
231853
|
-
let ret = "";
|
231854
|
-
if (x6 < 0) {
|
231855
|
-
ret += ESC2 + -x6 + "D";
|
231856
|
-
} else if (x6 > 0) {
|
231857
|
-
ret += ESC2 + x6 + "C";
|
231858
|
-
}
|
231859
|
-
if (y4 < 0) {
|
231860
|
-
ret += ESC2 + -y4 + "A";
|
231861
|
-
} else if (y4 > 0) {
|
231862
|
-
ret += ESC2 + y4 + "B";
|
231863
|
-
}
|
231864
|
-
return ret;
|
231865
|
-
};
|
231866
|
-
ansiEscapes.cursorUp = (count = 1) => ESC2 + count + "A";
|
231867
|
-
ansiEscapes.cursorDown = (count = 1) => ESC2 + count + "B";
|
231868
|
-
ansiEscapes.cursorForward = (count = 1) => ESC2 + count + "C";
|
231869
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC2 + count + "D";
|
231870
|
-
ansiEscapes.cursorLeft = ESC2 + "G";
|
231871
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC2 + "s";
|
231872
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC2 + "u";
|
231873
|
-
ansiEscapes.cursorGetPosition = ESC2 + "6n";
|
231874
|
-
ansiEscapes.cursorNextLine = ESC2 + "E";
|
231875
|
-
ansiEscapes.cursorPrevLine = ESC2 + "F";
|
231876
|
-
ansiEscapes.cursorHide = ESC2 + "?25l";
|
231877
|
-
ansiEscapes.cursorShow = ESC2 + "?25h";
|
231878
|
-
ansiEscapes.eraseLines = (count) => {
|
231879
|
-
let clear = "";
|
231880
|
-
for (let i7 = 0;i7 < count; i7++) {
|
231881
|
-
clear += ansiEscapes.eraseLine + (i7 < count - 1 ? ansiEscapes.cursorUp() : "");
|
231882
|
-
}
|
231883
|
-
if (count) {
|
231884
|
-
clear += ansiEscapes.cursorLeft;
|
231885
|
-
}
|
231886
|
-
return clear;
|
231887
|
-
};
|
231888
|
-
ansiEscapes.eraseEndLine = ESC2 + "K";
|
231889
|
-
ansiEscapes.eraseStartLine = ESC2 + "1K";
|
231890
|
-
ansiEscapes.eraseLine = ESC2 + "2K";
|
231891
|
-
ansiEscapes.eraseDown = ESC2 + "J";
|
231892
|
-
ansiEscapes.eraseUp = ESC2 + "1J";
|
231893
|
-
ansiEscapes.eraseScreen = ESC2 + "2J";
|
231894
|
-
ansiEscapes.scrollUp = ESC2 + "S";
|
231895
|
-
ansiEscapes.scrollDown = ESC2 + "T";
|
231896
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
231897
|
-
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC2}0f` : `${ansiEscapes.eraseScreen}${ESC2}3J${ESC2}H`;
|
231898
|
-
ansiEscapes.beep = BEL;
|
231899
|
-
ansiEscapes.link = (text2, url2) => {
|
231900
|
-
return [
|
231901
|
-
OSC,
|
231902
|
-
"8",
|
231903
|
-
SEP,
|
231904
|
-
SEP,
|
231905
|
-
url2,
|
231906
|
-
BEL,
|
231907
|
-
text2,
|
231908
|
-
OSC,
|
231909
|
-
"8",
|
231910
|
-
SEP,
|
231911
|
-
SEP,
|
231912
|
-
BEL
|
231913
|
-
].join("");
|
231914
|
-
};
|
231915
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
231916
|
-
let ret = `${OSC}1337;File=inline=1`;
|
231917
|
-
if (options.width) {
|
231918
|
-
ret += `;width=${options.width}`;
|
231919
|
-
}
|
231920
|
-
if (options.height) {
|
231921
|
-
ret += `;height=${options.height}`;
|
231922
|
-
}
|
231923
|
-
if (options.preserveAspectRatio === false) {
|
231924
|
-
ret += ";preserveAspectRatio=0";
|
231925
|
-
}
|
231926
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
231927
|
-
};
|
231928
|
-
ansiEscapes.iTerm = {
|
231929
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
231930
|
-
annotation: (message, options = {}) => {
|
231931
|
-
let ret = `${OSC}1337;`;
|
231932
|
-
const hasX = typeof options.x !== "undefined";
|
231933
|
-
const hasY = typeof options.y !== "undefined";
|
231934
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
231935
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
231936
|
-
}
|
231937
|
-
message = message.replace(/\|/g, "");
|
231938
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
231939
|
-
if (options.length > 0) {
|
231940
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
231941
|
-
} else {
|
231942
|
-
ret += message;
|
231943
|
-
}
|
231944
|
-
return ret + BEL;
|
231945
|
-
}
|
231946
|
-
};
|
231947
|
-
});
|
231948
|
-
|
231949
231831
|
// ../../node_modules/.bun/abitype@1.1.0+50e9b7ffbf081acf/node_modules/abitype/dist/esm/version.js
|
231950
231832
|
var version2 = "1.1.0";
|
231951
231833
|
|
@@ -233941,16 +233823,16 @@ var init_lru = __esm(() => {
|
|
233941
233823
|
});
|
233942
233824
|
this.maxSize = size2;
|
233943
233825
|
}
|
233944
|
-
get(
|
233945
|
-
const value5 = super.get(
|
233946
|
-
if (super.has(
|
233947
|
-
this.delete(
|
233948
|
-
super.set(
|
233826
|
+
get(key2) {
|
233827
|
+
const value5 = super.get(key2);
|
233828
|
+
if (super.has(key2) && value5 !== undefined) {
|
233829
|
+
this.delete(key2);
|
233830
|
+
super.set(key2, value5);
|
233949
233831
|
}
|
233950
233832
|
return value5;
|
233951
233833
|
}
|
233952
|
-
set(
|
233953
|
-
super.set(
|
233834
|
+
set(key2, value5) {
|
233835
|
+
super.set(key2, value5);
|
233954
233836
|
if (this.maxSize && this.size > this.maxSize) {
|
233955
233837
|
const firstKey = this.keys().next().value;
|
233956
233838
|
if (firstKey)
|
@@ -234992,9 +234874,9 @@ var init_decodeErrorResult = __esm(() => {
|
|
234992
234874
|
});
|
234993
234875
|
|
234994
234876
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/stringify.js
|
234995
|
-
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (
|
234877
|
+
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key2, value_) => {
|
234996
234878
|
const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
|
234997
|
-
return typeof replacer === "function" ? replacer(
|
234879
|
+
return typeof replacer === "function" ? replacer(key2, value6) : value6;
|
234998
234880
|
}, space);
|
234999
234881
|
|
235000
234882
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
@@ -235108,13 +234990,13 @@ var init_stateOverride = __esm(() => {
|
|
235108
234990
|
|
235109
234991
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/errors/transaction.js
|
235110
234992
|
function prettyPrint(args) {
|
235111
|
-
const entries = Object.entries(args).map(([
|
234993
|
+
const entries = Object.entries(args).map(([key2, value5]) => {
|
235112
234994
|
if (value5 === undefined || value5 === false)
|
235113
234995
|
return null;
|
235114
|
-
return [
|
234996
|
+
return [key2, value5];
|
235115
234997
|
}).filter(Boolean);
|
235116
|
-
const maxLength = entries.reduce((acc, [
|
235117
|
-
return entries.map(([
|
234998
|
+
const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
|
234999
|
+
return entries.map(([key2, value5]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value5}`).join(`
|
235118
235000
|
`);
|
235119
235001
|
}
|
235120
235002
|
var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
|
@@ -236232,7 +236114,7 @@ var init_sha2 = __esm(() => {
|
|
236232
236114
|
});
|
236233
236115
|
|
236234
236116
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
|
236235
|
-
var HMAC, hmac = (hash3,
|
236117
|
+
var HMAC, hmac = (hash3, key2, message) => new HMAC(hash3, key2).update(message).digest();
|
236236
236118
|
var init_hmac = __esm(() => {
|
236237
236119
|
init_utils2();
|
236238
236120
|
HMAC = class HMAC extends Hash {
|
@@ -236241,7 +236123,7 @@ var init_hmac = __esm(() => {
|
|
236241
236123
|
this.finished = false;
|
236242
236124
|
this.destroyed = false;
|
236243
236125
|
ahash(hash3);
|
236244
|
-
const
|
236126
|
+
const key2 = toBytes2(_key);
|
236245
236127
|
this.iHash = hash3.create();
|
236246
236128
|
if (typeof this.iHash.update !== "function")
|
236247
236129
|
throw new Error("Expected instance of class which extends utils.Hash");
|
@@ -236249,7 +236131,7 @@ var init_hmac = __esm(() => {
|
|
236249
236131
|
this.outputLen = this.iHash.outputLen;
|
236250
236132
|
const blockLen = this.blockLen;
|
236251
236133
|
const pad2 = new Uint8Array(blockLen);
|
236252
|
-
pad2.set(
|
236134
|
+
pad2.set(key2.length > blockLen ? hash3.create().update(key2).digest() : key2);
|
236253
236135
|
for (let i7 = 0;i7 < pad2.length; i7++)
|
236254
236136
|
pad2[i7] ^= 54;
|
236255
236137
|
this.iHash.update(pad2);
|
@@ -236299,7 +236181,7 @@ var init_hmac = __esm(() => {
|
|
236299
236181
|
this.iHash.destroy();
|
236300
236182
|
}
|
236301
236183
|
};
|
236302
|
-
hmac.create = (hash3,
|
236184
|
+
hmac.create = (hash3, key2) => new HMAC(hash3, key2);
|
236303
236185
|
});
|
236304
236186
|
|
236305
236187
|
// ../../node_modules/.bun/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
|
@@ -236758,13 +236640,13 @@ function getMinHashLength(fieldOrder) {
|
|
236758
236640
|
const length = getFieldBytesLength(fieldOrder);
|
236759
236641
|
return length + Math.ceil(length / 2);
|
236760
236642
|
}
|
236761
|
-
function mapHashToField(
|
236762
|
-
const len =
|
236643
|
+
function mapHashToField(key2, fieldOrder, isLE2 = false) {
|
236644
|
+
const len = key2.length;
|
236763
236645
|
const fieldLen = getFieldBytesLength(fieldOrder);
|
236764
236646
|
const minLen = getMinHashLength(fieldOrder);
|
236765
236647
|
if (len < 16 || len < minLen || len > 1024)
|
236766
236648
|
throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
|
236767
|
-
const num = isLE2 ? bytesToNumberLE(
|
236649
|
+
const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
|
236768
236650
|
const reduced = mod(num, fieldOrder - _1n3) + _1n3;
|
236769
236651
|
return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
236770
236652
|
}
|
@@ -237079,20 +236961,20 @@ function weierstrassPoints(opts) {
|
|
237079
236961
|
function isWithinCurveOrder(num) {
|
237080
236962
|
return inRange(num, _1n5, CURVE.n);
|
237081
236963
|
}
|
237082
|
-
function normPrivateKeyToScalar(
|
236964
|
+
function normPrivateKeyToScalar(key2) {
|
237083
236965
|
const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
|
237084
|
-
if (lengths && typeof
|
237085
|
-
if (isBytes2(
|
237086
|
-
|
237087
|
-
if (typeof
|
236966
|
+
if (lengths && typeof key2 !== "bigint") {
|
236967
|
+
if (isBytes2(key2))
|
236968
|
+
key2 = bytesToHex2(key2);
|
236969
|
+
if (typeof key2 !== "string" || !lengths.includes(key2.length))
|
237088
236970
|
throw new Error("invalid private key");
|
237089
|
-
|
236971
|
+
key2 = key2.padStart(nByteLength * 2, "0");
|
237090
236972
|
}
|
237091
236973
|
let num;
|
237092
236974
|
try {
|
237093
|
-
num = typeof
|
236975
|
+
num = typeof key2 === "bigint" ? key2 : bytesToNumberBE(ensureBytes("private key", key2, nByteLength));
|
237094
236976
|
} catch (error48) {
|
237095
|
-
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof
|
236977
|
+
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key2);
|
237096
236978
|
}
|
237097
236979
|
if (wrapPrivateKey)
|
237098
236980
|
num = mod(num, N6);
|
@@ -237926,7 +237808,7 @@ var init_weierstrass = __esm(() => {
|
|
237926
237808
|
function getHash(hash3) {
|
237927
237809
|
return {
|
237928
237810
|
hash: hash3,
|
237929
|
-
hmac: (
|
237811
|
+
hmac: (key2, ...msgs) => hmac(hash3, key2, concatBytes(...msgs)),
|
237930
237812
|
randomBytes
|
237931
237813
|
};
|
237932
237814
|
}
|
@@ -238552,11 +238434,11 @@ function extract2(value_, { format: format2 }) {
|
|
238552
238434
|
const value5 = {};
|
238553
238435
|
function extract_(formatted2) {
|
238554
238436
|
const keys = Object.keys(formatted2);
|
238555
|
-
for (const
|
238556
|
-
if (
|
238557
|
-
value5[
|
238558
|
-
if (formatted2[
|
238559
|
-
extract_(formatted2[
|
238437
|
+
for (const key2 of keys) {
|
238438
|
+
if (key2 in value_)
|
238439
|
+
value5[key2] = value_[key2];
|
238440
|
+
if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
|
238441
|
+
extract_(formatted2[key2]);
|
238560
238442
|
}
|
238561
238443
|
}
|
238562
238444
|
const formatted = format2(value_ || {});
|
@@ -238572,8 +238454,8 @@ function defineFormatter(type5, format2) {
|
|
238572
238454
|
format: (args) => {
|
238573
238455
|
const formatted = format2(args);
|
238574
238456
|
if (exclude) {
|
238575
|
-
for (const
|
238576
|
-
delete formatted[
|
238457
|
+
for (const key2 of exclude) {
|
238458
|
+
delete formatted[key2];
|
238577
238459
|
}
|
238578
238460
|
}
|
238579
238461
|
return {
|
@@ -239119,9 +239001,9 @@ var init_hex = __esm(() => {
|
|
239119
239001
|
|
239120
239002
|
// ../../node_modules/.bun/ox@0.9.3+50e9b7ffbf081acf/node_modules/ox/_esm/core/Json.js
|
239121
239003
|
function stringify4(value5, replacer, space) {
|
239122
|
-
return JSON.stringify(value5, (
|
239004
|
+
return JSON.stringify(value5, (key2, value6) => {
|
239123
239005
|
if (typeof replacer === "function")
|
239124
|
-
return replacer(
|
239006
|
+
return replacer(key2, value6);
|
239125
239007
|
if (typeof value6 === "bigint")
|
239126
239008
|
return value6.toString() + bigIntSuffix;
|
239127
239009
|
return value6;
|
@@ -240664,11 +240546,11 @@ var require_visit = __commonJS((exports) => {
|
|
240664
240546
|
visit2.BREAK = BREAK;
|
240665
240547
|
visit2.SKIP = SKIP;
|
240666
240548
|
visit2.REMOVE = REMOVE;
|
240667
|
-
function visit_(
|
240668
|
-
const ctrl = callVisitor(
|
240549
|
+
function visit_(key2, node, visitor, path5) {
|
240550
|
+
const ctrl = callVisitor(key2, node, visitor, path5);
|
240669
240551
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
240670
|
-
replaceNode(
|
240671
|
-
return visit_(
|
240552
|
+
replaceNode(key2, path5, ctrl);
|
240553
|
+
return visit_(key2, ctrl, visitor, path5);
|
240672
240554
|
}
|
240673
240555
|
if (typeof ctrl !== "symbol") {
|
240674
240556
|
if (identity2.isCollection(node)) {
|
@@ -240712,11 +240594,11 @@ var require_visit = __commonJS((exports) => {
|
|
240712
240594
|
visitAsync.BREAK = BREAK;
|
240713
240595
|
visitAsync.SKIP = SKIP;
|
240714
240596
|
visitAsync.REMOVE = REMOVE;
|
240715
|
-
async function visitAsync_(
|
240716
|
-
const ctrl = await callVisitor(
|
240597
|
+
async function visitAsync_(key2, node, visitor, path5) {
|
240598
|
+
const ctrl = await callVisitor(key2, node, visitor, path5);
|
240717
240599
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
240718
|
-
replaceNode(
|
240719
|
-
return visitAsync_(
|
240600
|
+
replaceNode(key2, path5, ctrl);
|
240601
|
+
return visitAsync_(key2, ctrl, visitor, path5);
|
240720
240602
|
}
|
240721
240603
|
if (typeof ctrl !== "symbol") {
|
240722
240604
|
if (identity2.isCollection(node)) {
|
@@ -240766,27 +240648,27 @@ var require_visit = __commonJS((exports) => {
|
|
240766
240648
|
}
|
240767
240649
|
return visitor;
|
240768
240650
|
}
|
240769
|
-
function callVisitor(
|
240651
|
+
function callVisitor(key2, node, visitor, path5) {
|
240770
240652
|
if (typeof visitor === "function")
|
240771
|
-
return visitor(
|
240653
|
+
return visitor(key2, node, path5);
|
240772
240654
|
if (identity2.isMap(node))
|
240773
|
-
return visitor.Map?.(
|
240655
|
+
return visitor.Map?.(key2, node, path5);
|
240774
240656
|
if (identity2.isSeq(node))
|
240775
|
-
return visitor.Seq?.(
|
240657
|
+
return visitor.Seq?.(key2, node, path5);
|
240776
240658
|
if (identity2.isPair(node))
|
240777
|
-
return visitor.Pair?.(
|
240659
|
+
return visitor.Pair?.(key2, node, path5);
|
240778
240660
|
if (identity2.isScalar(node))
|
240779
|
-
return visitor.Scalar?.(
|
240661
|
+
return visitor.Scalar?.(key2, node, path5);
|
240780
240662
|
if (identity2.isAlias(node))
|
240781
|
-
return visitor.Alias?.(
|
240663
|
+
return visitor.Alias?.(key2, node, path5);
|
240782
240664
|
return;
|
240783
240665
|
}
|
240784
|
-
function replaceNode(
|
240666
|
+
function replaceNode(key2, path5, node) {
|
240785
240667
|
const parent = path5[path5.length - 1];
|
240786
240668
|
if (identity2.isCollection(parent)) {
|
240787
|
-
parent.items[
|
240669
|
+
parent.items[key2] = node;
|
240788
240670
|
} else if (identity2.isPair(parent)) {
|
240789
|
-
if (
|
240671
|
+
if (key2 === "key")
|
240790
240672
|
parent.key = node;
|
240791
240673
|
else
|
240792
240674
|
parent.value = node;
|
@@ -241017,7 +240899,7 @@ var require_anchors = __commonJS((exports) => {
|
|
241017
240899
|
|
241018
240900
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js
|
241019
240901
|
var require_applyReviver = __commonJS((exports) => {
|
241020
|
-
function applyReviver(reviver, obj,
|
240902
|
+
function applyReviver(reviver, obj, key2, val) {
|
241021
240903
|
if (val && typeof val === "object") {
|
241022
240904
|
if (Array.isArray(val)) {
|
241023
240905
|
for (let i8 = 0, len = val.length;i8 < len; ++i8) {
|
@@ -241057,7 +240939,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
241057
240939
|
}
|
241058
240940
|
}
|
241059
240941
|
}
|
241060
|
-
return reviver.call(obj,
|
240942
|
+
return reviver.call(obj, key2, val);
|
241061
240943
|
}
|
241062
240944
|
exports.applyReviver = applyReviver;
|
241063
240945
|
});
|
@@ -241386,29 +241268,29 @@ var require_Collection = __commonJS((exports) => {
|
|
241386
241268
|
if (isEmptyPath(path5))
|
241387
241269
|
this.add(value5);
|
241388
241270
|
else {
|
241389
|
-
const [
|
241390
|
-
const node = this.get(
|
241271
|
+
const [key2, ...rest] = path5;
|
241272
|
+
const node = this.get(key2, true);
|
241391
241273
|
if (identity2.isCollection(node))
|
241392
241274
|
node.addIn(rest, value5);
|
241393
241275
|
else if (node === undefined && this.schema)
|
241394
|
-
this.set(
|
241276
|
+
this.set(key2, collectionFromPath(this.schema, rest, value5));
|
241395
241277
|
else
|
241396
|
-
throw new Error(`Expected YAML collection at ${
|
241278
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
241397
241279
|
}
|
241398
241280
|
}
|
241399
241281
|
deleteIn(path5) {
|
241400
|
-
const [
|
241282
|
+
const [key2, ...rest] = path5;
|
241401
241283
|
if (rest.length === 0)
|
241402
|
-
return this.delete(
|
241403
|
-
const node = this.get(
|
241284
|
+
return this.delete(key2);
|
241285
|
+
const node = this.get(key2, true);
|
241404
241286
|
if (identity2.isCollection(node))
|
241405
241287
|
return node.deleteIn(rest);
|
241406
241288
|
else
|
241407
|
-
throw new Error(`Expected YAML collection at ${
|
241289
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
241408
241290
|
}
|
241409
241291
|
getIn(path5, keepScalar) {
|
241410
|
-
const [
|
241411
|
-
const node = this.get(
|
241292
|
+
const [key2, ...rest] = path5;
|
241293
|
+
const node = this.get(key2, true);
|
241412
241294
|
if (rest.length === 0)
|
241413
241295
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
241414
241296
|
else
|
@@ -241423,24 +241305,24 @@ var require_Collection = __commonJS((exports) => {
|
|
241423
241305
|
});
|
241424
241306
|
}
|
241425
241307
|
hasIn(path5) {
|
241426
|
-
const [
|
241308
|
+
const [key2, ...rest] = path5;
|
241427
241309
|
if (rest.length === 0)
|
241428
|
-
return this.has(
|
241429
|
-
const node = this.get(
|
241310
|
+
return this.has(key2);
|
241311
|
+
const node = this.get(key2, true);
|
241430
241312
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
241431
241313
|
}
|
241432
241314
|
setIn(path5, value5) {
|
241433
|
-
const [
|
241315
|
+
const [key2, ...rest] = path5;
|
241434
241316
|
if (rest.length === 0) {
|
241435
|
-
this.set(
|
241317
|
+
this.set(key2, value5);
|
241436
241318
|
} else {
|
241437
|
-
const node = this.get(
|
241319
|
+
const node = this.get(key2, true);
|
241438
241320
|
if (identity2.isCollection(node))
|
241439
241321
|
node.setIn(rest, value5);
|
241440
241322
|
else if (node === undefined && this.schema)
|
241441
|
-
this.set(
|
241323
|
+
this.set(key2, collectionFromPath(this.schema, rest, value5));
|
241442
241324
|
else
|
241443
|
-
throw new Error(`Expected YAML collection at ${
|
241325
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
241444
241326
|
}
|
241445
241327
|
}
|
241446
241328
|
}
|
@@ -242027,19 +241909,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
242027
241909
|
var Scalar = require_Scalar();
|
242028
241910
|
var stringify5 = require_stringify();
|
242029
241911
|
var stringifyComment = require_stringifyComment();
|
242030
|
-
function stringifyPair2({ key:
|
241912
|
+
function stringifyPair2({ key: key2, value: value5 }, ctx, onComment, onChompKeep) {
|
242031
241913
|
const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
242032
|
-
let keyComment = identity2.isNode(
|
241914
|
+
let keyComment = identity2.isNode(key2) && key2.comment || null;
|
242033
241915
|
if (simpleKeys) {
|
242034
241916
|
if (keyComment) {
|
242035
241917
|
throw new Error("With simple keys, key nodes cannot have comments");
|
242036
241918
|
}
|
242037
|
-
if (identity2.isCollection(
|
241919
|
+
if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
|
242038
241920
|
const msg = "With simple keys, collection cannot be used as a key value";
|
242039
241921
|
throw new Error(msg);
|
242040
241922
|
}
|
242041
241923
|
}
|
242042
|
-
let explicitKey = !simpleKeys && (!
|
241924
|
+
let explicitKey = !simpleKeys && (!key2 || keyComment && value5 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
|
242043
241925
|
ctx = Object.assign({}, ctx, {
|
242044
241926
|
allNullValues: false,
|
242045
241927
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -242047,7 +241929,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
242047
241929
|
});
|
242048
241930
|
let keyCommentDone = false;
|
242049
241931
|
let chompKeep = false;
|
242050
|
-
let str = stringify5.stringify(
|
241932
|
+
let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
242051
241933
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
242052
241934
|
if (simpleKeys)
|
242053
241935
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -242191,7 +242073,7 @@ var require_merge = __commonJS((exports) => {
|
|
242191
242073
|
}),
|
242192
242074
|
stringify: () => MERGE_KEY
|
242193
242075
|
};
|
242194
|
-
var isMergeKey = (ctx,
|
242076
|
+
var isMergeKey = (ctx, key2) => (merge4.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge4.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
|
242195
242077
|
function addMergeToJSMap(ctx, map4, value5) {
|
242196
242078
|
value5 = ctx && identity2.isAlias(value5) ? value5.resolve(ctx.doc) : value5;
|
242197
242079
|
if (identity2.isSeq(value5))
|
@@ -242208,14 +242090,14 @@ var require_merge = __commonJS((exports) => {
|
|
242208
242090
|
if (!identity2.isMap(source))
|
242209
242091
|
throw new Error("Merge sources must be maps or map aliases");
|
242210
242092
|
const srcMap = source.toJSON(null, ctx, Map);
|
242211
|
-
for (const [
|
242093
|
+
for (const [key2, value6] of srcMap) {
|
242212
242094
|
if (map4 instanceof Map) {
|
242213
|
-
if (!map4.has(
|
242214
|
-
map4.set(
|
242095
|
+
if (!map4.has(key2))
|
242096
|
+
map4.set(key2, value6);
|
242215
242097
|
} else if (map4 instanceof Set) {
|
242216
|
-
map4.add(
|
242217
|
-
} else if (!Object.prototype.hasOwnProperty.call(map4,
|
242218
|
-
Object.defineProperty(map4,
|
242098
|
+
map4.add(key2);
|
242099
|
+
} else if (!Object.prototype.hasOwnProperty.call(map4, key2)) {
|
242100
|
+
Object.defineProperty(map4, key2, {
|
242219
242101
|
value: value6,
|
242220
242102
|
writable: true,
|
242221
242103
|
enumerable: true,
|
@@ -242237,19 +242119,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
242237
242119
|
var stringify5 = require_stringify();
|
242238
242120
|
var identity2 = require_identity();
|
242239
242121
|
var toJS = require_toJS();
|
242240
|
-
function addPairToJSMap(ctx, map4, { key:
|
242241
|
-
if (identity2.isNode(
|
242242
|
-
|
242243
|
-
else if (merge4.isMergeKey(ctx,
|
242122
|
+
function addPairToJSMap(ctx, map4, { key: key2, value: value5 }) {
|
242123
|
+
if (identity2.isNode(key2) && key2.addToJSMap)
|
242124
|
+
key2.addToJSMap(ctx, map4, value5);
|
242125
|
+
else if (merge4.isMergeKey(ctx, key2))
|
242244
242126
|
merge4.addMergeToJSMap(ctx, map4, value5);
|
242245
242127
|
else {
|
242246
|
-
const jsKey = toJS.toJS(
|
242128
|
+
const jsKey = toJS.toJS(key2, "", ctx);
|
242247
242129
|
if (map4 instanceof Map) {
|
242248
242130
|
map4.set(jsKey, toJS.toJS(value5, jsKey, ctx));
|
242249
242131
|
} else if (map4 instanceof Set) {
|
242250
242132
|
map4.add(jsKey);
|
242251
242133
|
} else {
|
242252
|
-
const stringKey = stringifyKey(
|
242134
|
+
const stringKey = stringifyKey(key2, jsKey, ctx);
|
242253
242135
|
const jsValue = toJS.toJS(value5, stringKey, ctx);
|
242254
242136
|
if (stringKey in map4)
|
242255
242137
|
Object.defineProperty(map4, stringKey, {
|
@@ -242264,19 +242146,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
242264
242146
|
}
|
242265
242147
|
return map4;
|
242266
242148
|
}
|
242267
|
-
function stringifyKey(
|
242149
|
+
function stringifyKey(key2, jsKey, ctx) {
|
242268
242150
|
if (jsKey === null)
|
242269
242151
|
return "";
|
242270
242152
|
if (typeof jsKey !== "object")
|
242271
242153
|
return String(jsKey);
|
242272
|
-
if (identity2.isNode(
|
242154
|
+
if (identity2.isNode(key2) && ctx?.doc) {
|
242273
242155
|
const strCtx = stringify5.createStringifyContext(ctx.doc, {});
|
242274
242156
|
strCtx.anchors = new Set;
|
242275
242157
|
for (const node of ctx.anchors.keys())
|
242276
242158
|
strCtx.anchors.add(node.anchor);
|
242277
242159
|
strCtx.inFlow = true;
|
242278
242160
|
strCtx.inStringifyKey = true;
|
242279
|
-
const strKey =
|
242161
|
+
const strKey = key2.toString(strCtx);
|
242280
242162
|
if (!ctx.mapKeyWarned) {
|
242281
242163
|
let jsonStr = JSON.stringify(strKey);
|
242282
242164
|
if (jsonStr.length > 40)
|
@@ -242297,25 +242179,25 @@ var require_Pair = __commonJS((exports) => {
|
|
242297
242179
|
var stringifyPair2 = require_stringifyPair();
|
242298
242180
|
var addPairToJSMap = require_addPairToJSMap();
|
242299
242181
|
var identity2 = require_identity();
|
242300
|
-
function createPair(
|
242301
|
-
const k6 = createNode.createNode(
|
242182
|
+
function createPair(key2, value5, ctx) {
|
242183
|
+
const k6 = createNode.createNode(key2, undefined, ctx);
|
242302
242184
|
const v7 = createNode.createNode(value5, undefined, ctx);
|
242303
242185
|
return new Pair(k6, v7);
|
242304
242186
|
}
|
242305
242187
|
|
242306
242188
|
class Pair {
|
242307
|
-
constructor(
|
242189
|
+
constructor(key2, value5 = null) {
|
242308
242190
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
242309
|
-
this.key =
|
242191
|
+
this.key = key2;
|
242310
242192
|
this.value = value5;
|
242311
242193
|
}
|
242312
242194
|
clone(schema) {
|
242313
|
-
let { key:
|
242314
|
-
if (identity2.isNode(
|
242315
|
-
|
242195
|
+
let { key: key2, value: value5 } = this;
|
242196
|
+
if (identity2.isNode(key2))
|
242197
|
+
key2 = key2.clone(schema);
|
242316
242198
|
if (identity2.isNode(value5))
|
242317
242199
|
value5 = value5.clone(schema);
|
242318
|
-
return new Pair(
|
242200
|
+
return new Pair(key2, value5);
|
242319
242201
|
}
|
242320
242202
|
toJSON(_6, ctx) {
|
242321
242203
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -242482,11 +242364,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242482
242364
|
var identity2 = require_identity();
|
242483
242365
|
var Pair = require_Pair();
|
242484
242366
|
var Scalar = require_Scalar();
|
242485
|
-
function findPair(items,
|
242486
|
-
const k6 = identity2.isScalar(
|
242367
|
+
function findPair(items, key2) {
|
242368
|
+
const k6 = identity2.isScalar(key2) ? key2.value : key2;
|
242487
242369
|
for (const it2 of items) {
|
242488
242370
|
if (identity2.isPair(it2)) {
|
242489
|
-
if (it2.key ===
|
242371
|
+
if (it2.key === key2 || it2.key === k6)
|
242490
242372
|
return it2;
|
242491
242373
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
242492
242374
|
return it2;
|
@@ -242506,20 +242388,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242506
242388
|
static from(schema, obj, ctx) {
|
242507
242389
|
const { keepUndefined, replacer } = ctx;
|
242508
242390
|
const map4 = new this(schema);
|
242509
|
-
const add = (
|
242391
|
+
const add = (key2, value5) => {
|
242510
242392
|
if (typeof replacer === "function")
|
242511
|
-
value5 = replacer.call(obj,
|
242512
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
242393
|
+
value5 = replacer.call(obj, key2, value5);
|
242394
|
+
else if (Array.isArray(replacer) && !replacer.includes(key2))
|
242513
242395
|
return;
|
242514
242396
|
if (value5 !== undefined || keepUndefined)
|
242515
|
-
map4.items.push(Pair.createPair(
|
242397
|
+
map4.items.push(Pair.createPair(key2, value5, ctx));
|
242516
242398
|
};
|
242517
242399
|
if (obj instanceof Map) {
|
242518
|
-
for (const [
|
242519
|
-
add(
|
242400
|
+
for (const [key2, value5] of obj)
|
242401
|
+
add(key2, value5);
|
242520
242402
|
} else if (obj && typeof obj === "object") {
|
242521
|
-
for (const
|
242522
|
-
add(
|
242403
|
+
for (const key2 of Object.keys(obj))
|
242404
|
+
add(key2, obj[key2]);
|
242523
242405
|
}
|
242524
242406
|
if (typeof schema.sortMapEntries === "function") {
|
242525
242407
|
map4.items.sort(schema.sortMapEntries);
|
@@ -242553,23 +242435,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242553
242435
|
this.items.push(_pair);
|
242554
242436
|
}
|
242555
242437
|
}
|
242556
|
-
delete(
|
242557
|
-
const it2 = findPair(this.items,
|
242438
|
+
delete(key2) {
|
242439
|
+
const it2 = findPair(this.items, key2);
|
242558
242440
|
if (!it2)
|
242559
242441
|
return false;
|
242560
242442
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
242561
242443
|
return del.length > 0;
|
242562
242444
|
}
|
242563
|
-
get(
|
242564
|
-
const it2 = findPair(this.items,
|
242445
|
+
get(key2, keepScalar) {
|
242446
|
+
const it2 = findPair(this.items, key2);
|
242565
242447
|
const node = it2?.value;
|
242566
242448
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
242567
242449
|
}
|
242568
|
-
has(
|
242569
|
-
return !!findPair(this.items,
|
242450
|
+
has(key2) {
|
242451
|
+
return !!findPair(this.items, key2);
|
242570
242452
|
}
|
242571
|
-
set(
|
242572
|
-
this.add(new Pair.Pair(
|
242453
|
+
set(key2, value5) {
|
242454
|
+
this.add(new Pair.Pair(key2, value5), true);
|
242573
242455
|
}
|
242574
242456
|
toJSON(_6, ctx, Type) {
|
242575
242457
|
const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -242640,28 +242522,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242640
242522
|
add(value5) {
|
242641
242523
|
this.items.push(value5);
|
242642
242524
|
}
|
242643
|
-
delete(
|
242644
|
-
const idx = asItemIndex(
|
242525
|
+
delete(key2) {
|
242526
|
+
const idx = asItemIndex(key2);
|
242645
242527
|
if (typeof idx !== "number")
|
242646
242528
|
return false;
|
242647
242529
|
const del = this.items.splice(idx, 1);
|
242648
242530
|
return del.length > 0;
|
242649
242531
|
}
|
242650
|
-
get(
|
242651
|
-
const idx = asItemIndex(
|
242532
|
+
get(key2, keepScalar) {
|
242533
|
+
const idx = asItemIndex(key2);
|
242652
242534
|
if (typeof idx !== "number")
|
242653
242535
|
return;
|
242654
242536
|
const it2 = this.items[idx];
|
242655
242537
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
242656
242538
|
}
|
242657
|
-
has(
|
242658
|
-
const idx = asItemIndex(
|
242539
|
+
has(key2) {
|
242540
|
+
const idx = asItemIndex(key2);
|
242659
242541
|
return typeof idx === "number" && idx < this.items.length;
|
242660
242542
|
}
|
242661
|
-
set(
|
242662
|
-
const idx = asItemIndex(
|
242543
|
+
set(key2, value5) {
|
242544
|
+
const idx = asItemIndex(key2);
|
242663
242545
|
if (typeof idx !== "number")
|
242664
|
-
throw new Error(`Expected a valid index, not ${
|
242546
|
+
throw new Error(`Expected a valid index, not ${key2}.`);
|
242665
242547
|
const prev = this.items[idx];
|
242666
242548
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value5))
|
242667
242549
|
prev.value = value5;
|
@@ -242695,8 +242577,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242695
242577
|
let i8 = 0;
|
242696
242578
|
for (let it2 of obj) {
|
242697
242579
|
if (typeof replacer === "function") {
|
242698
|
-
const
|
242699
|
-
it2 = replacer.call(obj,
|
242580
|
+
const key2 = obj instanceof Set ? it2 : String(i8++);
|
242581
|
+
it2 = replacer.call(obj, key2, it2);
|
242700
242582
|
}
|
242701
242583
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
242702
242584
|
}
|
@@ -242704,8 +242586,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242704
242586
|
return seq;
|
242705
242587
|
}
|
242706
242588
|
}
|
242707
|
-
function asItemIndex(
|
242708
|
-
let idx = identity2.isScalar(
|
242589
|
+
function asItemIndex(key2) {
|
242590
|
+
let idx = identity2.isScalar(key2) ? key2.value : key2;
|
242709
242591
|
if (idx && typeof idx === "string")
|
242710
242592
|
idx = Number(idx);
|
242711
242593
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -243078,25 +242960,25 @@ ${cn.comment}` : item.comment;
|
|
243078
242960
|
for (let it2 of iterable) {
|
243079
242961
|
if (typeof replacer === "function")
|
243080
242962
|
it2 = replacer.call(iterable, String(i8++), it2);
|
243081
|
-
let
|
242963
|
+
let key2, value5;
|
243082
242964
|
if (Array.isArray(it2)) {
|
243083
242965
|
if (it2.length === 2) {
|
243084
|
-
|
242966
|
+
key2 = it2[0];
|
243085
242967
|
value5 = it2[1];
|
243086
242968
|
} else
|
243087
242969
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
243088
242970
|
} else if (it2 && it2 instanceof Object) {
|
243089
242971
|
const keys = Object.keys(it2);
|
243090
242972
|
if (keys.length === 1) {
|
243091
|
-
|
243092
|
-
value5 = it2[
|
242973
|
+
key2 = keys[0];
|
242974
|
+
value5 = it2[key2];
|
243093
242975
|
} else {
|
243094
242976
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
243095
242977
|
}
|
243096
242978
|
} else {
|
243097
|
-
|
242979
|
+
key2 = it2;
|
243098
242980
|
}
|
243099
|
-
pairs2.items.push(Pair.createPair(
|
242981
|
+
pairs2.items.push(Pair.createPair(key2, value5, ctx));
|
243100
242982
|
}
|
243101
242983
|
return pairs2;
|
243102
242984
|
}
|
@@ -243137,16 +243019,16 @@ var require_omap = __commonJS((exports) => {
|
|
243137
243019
|
if (ctx?.onCreate)
|
243138
243020
|
ctx.onCreate(map4);
|
243139
243021
|
for (const pair of this.items) {
|
243140
|
-
let
|
243022
|
+
let key2, value5;
|
243141
243023
|
if (identity2.isPair(pair)) {
|
243142
|
-
|
243143
|
-
value5 = toJS.toJS(pair.value,
|
243024
|
+
key2 = toJS.toJS(pair.key, "", ctx);
|
243025
|
+
value5 = toJS.toJS(pair.value, key2, ctx);
|
243144
243026
|
} else {
|
243145
|
-
|
243027
|
+
key2 = toJS.toJS(pair, "", ctx);
|
243146
243028
|
}
|
243147
|
-
if (map4.has(
|
243029
|
+
if (map4.has(key2))
|
243148
243030
|
throw new Error("Ordered maps must not include duplicate keys");
|
243149
|
-
map4.set(
|
243031
|
+
map4.set(key2, value5);
|
243150
243032
|
}
|
243151
243033
|
return map4;
|
243152
243034
|
}
|
@@ -243167,12 +243049,12 @@ var require_omap = __commonJS((exports) => {
|
|
243167
243049
|
resolve(seq, onError) {
|
243168
243050
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
243169
243051
|
const seenKeys = [];
|
243170
|
-
for (const { key:
|
243171
|
-
if (identity2.isScalar(
|
243172
|
-
if (seenKeys.includes(
|
243173
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
243052
|
+
for (const { key: key2 } of pairs$1.items) {
|
243053
|
+
if (identity2.isScalar(key2)) {
|
243054
|
+
if (seenKeys.includes(key2.value)) {
|
243055
|
+
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
243174
243056
|
} else {
|
243175
|
-
seenKeys.push(
|
243057
|
+
seenKeys.push(key2.value);
|
243176
243058
|
}
|
243177
243059
|
}
|
243178
243060
|
}
|
@@ -243346,30 +243228,30 @@ var require_set = __commonJS((exports) => {
|
|
243346
243228
|
super(schema);
|
243347
243229
|
this.tag = YAMLSet.tag;
|
243348
243230
|
}
|
243349
|
-
add(
|
243231
|
+
add(key2) {
|
243350
243232
|
let pair;
|
243351
|
-
if (identity2.isPair(
|
243352
|
-
pair =
|
243353
|
-
else if (
|
243354
|
-
pair = new Pair.Pair(
|
243233
|
+
if (identity2.isPair(key2))
|
243234
|
+
pair = key2;
|
243235
|
+
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
243236
|
+
pair = new Pair.Pair(key2.key, null);
|
243355
243237
|
else
|
243356
|
-
pair = new Pair.Pair(
|
243238
|
+
pair = new Pair.Pair(key2, null);
|
243357
243239
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
243358
243240
|
if (!prev)
|
243359
243241
|
this.items.push(pair);
|
243360
243242
|
}
|
243361
|
-
get(
|
243362
|
-
const pair = YAMLMap.findPair(this.items,
|
243243
|
+
get(key2, keepPair) {
|
243244
|
+
const pair = YAMLMap.findPair(this.items, key2);
|
243363
243245
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
243364
243246
|
}
|
243365
|
-
set(
|
243247
|
+
set(key2, value5) {
|
243366
243248
|
if (typeof value5 !== "boolean")
|
243367
243249
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value5}`);
|
243368
|
-
const prev = YAMLMap.findPair(this.items,
|
243250
|
+
const prev = YAMLMap.findPair(this.items, key2);
|
243369
243251
|
if (prev && !value5) {
|
243370
243252
|
this.items.splice(this.items.indexOf(prev), 1);
|
243371
243253
|
} else if (!prev && value5) {
|
243372
|
-
this.items.push(new Pair.Pair(
|
243254
|
+
this.items.push(new Pair.Pair(key2));
|
243373
243255
|
}
|
243374
243256
|
}
|
243375
243257
|
toJSON(_6, ctx) {
|
@@ -243604,7 +243486,7 @@ var require_tags = __commonJS((exports) => {
|
|
243604
243486
|
if (Array.isArray(customTags))
|
243605
243487
|
tags = [];
|
243606
243488
|
else {
|
243607
|
-
const keys = Array.from(schemas3.keys()).filter((
|
243489
|
+
const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
|
243608
243490
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
243609
243491
|
}
|
243610
243492
|
}
|
@@ -243620,7 +243502,7 @@ var require_tags = __commonJS((exports) => {
|
|
243620
243502
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
243621
243503
|
if (!tagObj) {
|
243622
243504
|
const tagName = JSON.stringify(tag);
|
243623
|
-
const keys = Object.keys(tagsByName).map((
|
243505
|
+
const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
|
243624
243506
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
243625
243507
|
}
|
243626
243508
|
if (!tags2.includes(tagObj))
|
@@ -243855,13 +243737,13 @@ var require_Document = __commonJS((exports) => {
|
|
243855
243737
|
setAnchors();
|
243856
243738
|
return node;
|
243857
243739
|
}
|
243858
|
-
createPair(
|
243859
|
-
const k6 = this.createNode(
|
243740
|
+
createPair(key2, value5, options = {}) {
|
243741
|
+
const k6 = this.createNode(key2, null, options);
|
243860
243742
|
const v7 = this.createNode(value5, null, options);
|
243861
243743
|
return new Pair.Pair(k6, v7);
|
243862
243744
|
}
|
243863
|
-
delete(
|
243864
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
243745
|
+
delete(key2) {
|
243746
|
+
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
243865
243747
|
}
|
243866
243748
|
deleteIn(path5) {
|
243867
243749
|
if (Collection.isEmptyPath(path5)) {
|
@@ -243872,27 +243754,27 @@ var require_Document = __commonJS((exports) => {
|
|
243872
243754
|
}
|
243873
243755
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
243874
243756
|
}
|
243875
|
-
get(
|
243876
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
243757
|
+
get(key2, keepScalar) {
|
243758
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
243877
243759
|
}
|
243878
243760
|
getIn(path5, keepScalar) {
|
243879
243761
|
if (Collection.isEmptyPath(path5))
|
243880
243762
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
243881
243763
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
243882
243764
|
}
|
243883
|
-
has(
|
243884
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
243765
|
+
has(key2) {
|
243766
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
|
243885
243767
|
}
|
243886
243768
|
hasIn(path5) {
|
243887
243769
|
if (Collection.isEmptyPath(path5))
|
243888
243770
|
return this.contents !== undefined;
|
243889
243771
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
243890
243772
|
}
|
243891
|
-
set(
|
243773
|
+
set(key2, value5) {
|
243892
243774
|
if (this.contents == null) {
|
243893
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
243775
|
+
this.contents = Collection.collectionFromPath(this.schema, [key2], value5);
|
243894
243776
|
} else if (assertCollection(this.contents)) {
|
243895
|
-
this.contents.set(
|
243777
|
+
this.contents.set(key2, value5);
|
243896
243778
|
}
|
243897
243779
|
}
|
243898
243780
|
setIn(path5, value5) {
|
@@ -244174,25 +244056,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
244174
244056
|
|
244175
244057
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
244176
244058
|
var require_util_contains_newline = __commonJS((exports) => {
|
244177
|
-
function containsNewline(
|
244178
|
-
if (!
|
244059
|
+
function containsNewline(key2) {
|
244060
|
+
if (!key2)
|
244179
244061
|
return null;
|
244180
|
-
switch (
|
244062
|
+
switch (key2.type) {
|
244181
244063
|
case "alias":
|
244182
244064
|
case "scalar":
|
244183
244065
|
case "double-quoted-scalar":
|
244184
244066
|
case "single-quoted-scalar":
|
244185
|
-
if (
|
244067
|
+
if (key2.source.includes(`
|
244186
244068
|
`))
|
244187
244069
|
return true;
|
244188
|
-
if (
|
244189
|
-
for (const st2 of
|
244070
|
+
if (key2.end) {
|
244071
|
+
for (const st2 of key2.end)
|
244190
244072
|
if (st2.type === "newline")
|
244191
244073
|
return true;
|
244192
244074
|
}
|
244193
244075
|
return false;
|
244194
244076
|
case "flow-collection":
|
244195
|
-
for (const it2 of
|
244077
|
+
for (const it2 of key2.items) {
|
244196
244078
|
for (const st2 of it2.start)
|
244197
244079
|
if (st2.type === "newline")
|
244198
244080
|
return true;
|
@@ -244257,10 +244139,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244257
244139
|
let offset = bm.offset;
|
244258
244140
|
let commentEnd = null;
|
244259
244141
|
for (const collItem of bm.items) {
|
244260
|
-
const { start: start3, key:
|
244142
|
+
const { start: start3, key: key2, sep: sep4, value: value5 } = collItem;
|
244261
244143
|
const keyProps = resolveProps.resolveProps(start3, {
|
244262
244144
|
indicator: "explicit-key-ind",
|
244263
|
-
next:
|
244145
|
+
next: key2 ?? sep4?.[0],
|
244264
244146
|
offset,
|
244265
244147
|
onError,
|
244266
244148
|
parentIndent: bm.indent,
|
@@ -244268,10 +244150,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244268
244150
|
});
|
244269
244151
|
const implicitKey = !keyProps.found;
|
244270
244152
|
if (implicitKey) {
|
244271
|
-
if (
|
244272
|
-
if (
|
244153
|
+
if (key2) {
|
244154
|
+
if (key2.type === "block-seq")
|
244273
244155
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
244274
|
-
else if ("indent" in
|
244156
|
+
else if ("indent" in key2 && key2.indent !== bm.indent)
|
244275
244157
|
onError(offset, "BAD_INDENT", startColMsg);
|
244276
244158
|
}
|
244277
244159
|
if (!keyProps.anchor && !keyProps.tag && !sep4) {
|
@@ -244285,17 +244167,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244285
244167
|
}
|
244286
244168
|
continue;
|
244287
244169
|
}
|
244288
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
244289
|
-
onError(
|
244170
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
|
244171
|
+
onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
244290
244172
|
}
|
244291
244173
|
} else if (keyProps.found?.indent !== bm.indent) {
|
244292
244174
|
onError(offset, "BAD_INDENT", startColMsg);
|
244293
244175
|
}
|
244294
244176
|
ctx.atKey = true;
|
244295
244177
|
const keyStart = keyProps.end;
|
244296
|
-
const keyNode =
|
244178
|
+
const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
244297
244179
|
if (ctx.schema.compat)
|
244298
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
244180
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
|
244299
244181
|
ctx.atKey = false;
|
244300
244182
|
if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
|
244301
244183
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -244305,7 +244187,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244305
244187
|
offset: keyNode.range[2],
|
244306
244188
|
onError,
|
244307
244189
|
parentIndent: bm.indent,
|
244308
|
-
startOnNewline: !
|
244190
|
+
startOnNewline: !key2 || key2.type === "block-scalar"
|
244309
244191
|
});
|
244310
244192
|
offset = valueProps.end;
|
244311
244193
|
if (valueProps.found) {
|
@@ -244461,11 +244343,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244461
244343
|
let offset = fc.offset + fc.start.source.length;
|
244462
244344
|
for (let i8 = 0;i8 < fc.items.length; ++i8) {
|
244463
244345
|
const collItem = fc.items[i8];
|
244464
|
-
const { start: start3, key:
|
244346
|
+
const { start: start3, key: key2, sep: sep4, value: value5 } = collItem;
|
244465
244347
|
const props = resolveProps.resolveProps(start3, {
|
244466
244348
|
flow: fcName,
|
244467
244349
|
indicator: "explicit-key-ind",
|
244468
|
-
next:
|
244350
|
+
next: key2 ?? sep4?.[0],
|
244469
244351
|
offset,
|
244470
244352
|
onError,
|
244471
244353
|
parentIndent: fc.indent,
|
@@ -244487,8 +244369,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244487
244369
|
offset = props.end;
|
244488
244370
|
continue;
|
244489
244371
|
}
|
244490
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
244491
|
-
onError(
|
244372
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
|
244373
|
+
onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
244492
244374
|
}
|
244493
244375
|
if (i8 === 0) {
|
244494
244376
|
if (props.comma)
|
@@ -244533,8 +244415,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244533
244415
|
} else {
|
244534
244416
|
ctx.atKey = true;
|
244535
244417
|
const keyStart = props.end;
|
244536
|
-
const keyNode =
|
244537
|
-
if (isBlock(
|
244418
|
+
const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
244419
|
+
if (isBlock(key2))
|
244538
244420
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
244539
244421
|
ctx.atKey = false;
|
244540
244422
|
const valueProps = resolveProps.resolveProps(sep4 ?? [], {
|
@@ -245345,7 +245227,7 @@ var require_composer = __commonJS((exports) => {
|
|
245345
245227
|
var node_process = __require("process");
|
245346
245228
|
var directives5 = require_directives2();
|
245347
245229
|
var Document = require_Document();
|
245348
|
-
var
|
245230
|
+
var errors4 = require_errors3();
|
245349
245231
|
var identity2 = require_identity();
|
245350
245232
|
var composeDoc = require_compose_doc();
|
245351
245233
|
var resolveEnd = require_resolve_end();
|
@@ -245396,9 +245278,9 @@ var require_composer = __commonJS((exports) => {
|
|
245396
245278
|
this.onError = (source, code2, message, warning) => {
|
245397
245279
|
const pos = getErrorPos(source);
|
245398
245280
|
if (warning)
|
245399
|
-
this.warnings.push(new
|
245281
|
+
this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
|
245400
245282
|
else
|
245401
|
-
this.errors.push(new
|
245283
|
+
this.errors.push(new errors4.YAMLParseError(pos, code2, message));
|
245402
245284
|
};
|
245403
245285
|
this.directives = new directives5.Directives({ version: options.version || "1.2" });
|
245404
245286
|
this.options = options;
|
@@ -245482,7 +245364,7 @@ ${cb}` : comment;
|
|
245482
245364
|
break;
|
245483
245365
|
case "error": {
|
245484
245366
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
245485
|
-
const error48 = new
|
245367
|
+
const error48 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
245486
245368
|
if (this.atDirectives || !this.doc)
|
245487
245369
|
this.errors.push(error48);
|
245488
245370
|
else
|
@@ -245492,7 +245374,7 @@ ${cb}` : comment;
|
|
245492
245374
|
case "doc-end": {
|
245493
245375
|
if (!this.doc) {
|
245494
245376
|
const msg = "Unexpected doc-end without preceding document";
|
245495
|
-
this.errors.push(new
|
245377
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
245496
245378
|
break;
|
245497
245379
|
}
|
245498
245380
|
this.doc.directives.docEnd = true;
|
@@ -245507,7 +245389,7 @@ ${end.comment}` : end.comment;
|
|
245507
245389
|
break;
|
245508
245390
|
}
|
245509
245391
|
default:
|
245510
|
-
this.errors.push(new
|
245392
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
245511
245393
|
}
|
245512
245394
|
}
|
245513
245395
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -245533,7 +245415,7 @@ ${end.comment}` : end.comment;
|
|
245533
245415
|
var require_cst_scalar = __commonJS((exports) => {
|
245534
245416
|
var resolveBlockScalar = require_resolve_block_scalar();
|
245535
245417
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
245536
|
-
var
|
245418
|
+
var errors4 = require_errors3();
|
245537
245419
|
var stringifyString = require_stringifyString();
|
245538
245420
|
function resolveAsScalar(token, strict = true, onError) {
|
245539
245421
|
if (token) {
|
@@ -245542,7 +245424,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245542
245424
|
if (onError)
|
245543
245425
|
onError(offset, code2, message);
|
245544
245426
|
else
|
245545
|
-
throw new
|
245427
|
+
throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
|
245546
245428
|
};
|
245547
245429
|
switch (token.type) {
|
245548
245430
|
case "scalar":
|
@@ -245656,9 +245538,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245656
245538
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
245657
245539
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
245658
245540
|
` });
|
245659
|
-
for (const
|
245660
|
-
if (
|
245661
|
-
delete token[
|
245541
|
+
for (const key2 of Object.keys(token))
|
245542
|
+
if (key2 !== "type" && key2 !== "offset")
|
245543
|
+
delete token[key2];
|
245662
245544
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
245663
245545
|
}
|
245664
245546
|
}
|
@@ -245707,9 +245589,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245707
245589
|
default: {
|
245708
245590
|
const indent2 = "indent" in token ? token.indent : -1;
|
245709
245591
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
245710
|
-
for (const
|
245711
|
-
if (
|
245712
|
-
delete token[
|
245592
|
+
for (const key2 of Object.keys(token))
|
245593
|
+
if (key2 !== "type" && key2 !== "offset")
|
245594
|
+
delete token[key2];
|
245713
245595
|
Object.assign(token, { type: type5, indent: indent2, source, end });
|
245714
245596
|
}
|
245715
245597
|
}
|
@@ -245761,12 +245643,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
245761
245643
|
}
|
245762
245644
|
}
|
245763
245645
|
}
|
245764
|
-
function stringifyItem({ start: start3, key:
|
245646
|
+
function stringifyItem({ start: start3, key: key2, sep: sep4, value: value5 }) {
|
245765
245647
|
let res = "";
|
245766
245648
|
for (const st2 of start3)
|
245767
245649
|
res += st2.source;
|
245768
|
-
if (
|
245769
|
-
res += stringifyToken(
|
245650
|
+
if (key2)
|
245651
|
+
res += stringifyToken(key2);
|
245770
245652
|
if (sep4)
|
245771
245653
|
for (const st2 of sep4)
|
245772
245654
|
res += st2.source;
|
@@ -247062,7 +246944,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247062
246944
|
});
|
247063
246945
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
247064
246946
|
const start4 = getFirstKeyStartProps(it2.start);
|
247065
|
-
const
|
246947
|
+
const key2 = it2.key;
|
247066
246948
|
const sep4 = it2.sep;
|
247067
246949
|
sep4.push(this.sourceToken);
|
247068
246950
|
delete it2.key;
|
@@ -247071,7 +246953,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247071
246953
|
type: "block-map",
|
247072
246954
|
offset: this.offset,
|
247073
246955
|
indent: this.indent,
|
247074
|
-
items: [{ start: start4, key:
|
246956
|
+
items: [{ start: start4, key: key2, sep: sep4 }]
|
247075
246957
|
});
|
247076
246958
|
} else if (start3.length > 0) {
|
247077
246959
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -247404,7 +247286,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247404
247286
|
var require_public_api = __commonJS((exports) => {
|
247405
247287
|
var composer = require_composer();
|
247406
247288
|
var Document = require_Document();
|
247407
|
-
var
|
247289
|
+
var errors4 = require_errors3();
|
247408
247290
|
var log = require_log();
|
247409
247291
|
var identity2 = require_identity();
|
247410
247292
|
var lineCounter = require_line_counter();
|
@@ -247421,8 +247303,8 @@ var require_public_api = __commonJS((exports) => {
|
|
247421
247303
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
247422
247304
|
if (prettyErrors && lineCounter2)
|
247423
247305
|
for (const doc2 of docs) {
|
247424
|
-
doc2.errors.forEach(
|
247425
|
-
doc2.warnings.forEach(
|
247306
|
+
doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
247307
|
+
doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
247426
247308
|
}
|
247427
247309
|
if (docs.length > 0)
|
247428
247310
|
return docs;
|
@@ -247437,13 +247319,13 @@ var require_public_api = __commonJS((exports) => {
|
|
247437
247319
|
if (!doc2)
|
247438
247320
|
doc2 = _doc;
|
247439
247321
|
else if (doc2.options.logLevel !== "silent") {
|
247440
|
-
doc2.errors.push(new
|
247322
|
+
doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
247441
247323
|
break;
|
247442
247324
|
}
|
247443
247325
|
}
|
247444
247326
|
if (prettyErrors && lineCounter2) {
|
247445
|
-
doc2.errors.forEach(
|
247446
|
-
doc2.warnings.forEach(
|
247327
|
+
doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
247328
|
+
doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
247447
247329
|
}
|
247448
247330
|
return doc2;
|
247449
247331
|
}
|
@@ -267229,7 +267111,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
267229
267111
|
var package_default = {
|
267230
267112
|
name: "@settlemint/sdk-cli",
|
267231
267113
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
267232
|
-
version: "2.6.2-
|
267114
|
+
version: "2.6.2-pr1a352baa",
|
267233
267115
|
type: "module",
|
267234
267116
|
private: false,
|
267235
267117
|
license: "FSL-1.1-MIT",
|
@@ -267280,13 +267162,13 @@ var package_default = {
|
|
267280
267162
|
"@commander-js/extra-typings": "14.0.0",
|
267281
267163
|
commander: "14.0.1",
|
267282
267164
|
"@inquirer/confirm": "5.1.18",
|
267283
|
-
"@inquirer/input": "4.2.
|
267284
|
-
"@inquirer/password": "4.0.
|
267165
|
+
"@inquirer/input": "4.2.4",
|
267166
|
+
"@inquirer/password": "4.0.20",
|
267285
267167
|
"@inquirer/select": "4.3.4",
|
267286
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
267287
|
-
"@settlemint/sdk-js": "2.6.2-
|
267288
|
-
"@settlemint/sdk-utils": "2.6.2-
|
267289
|
-
"@settlemint/sdk-viem": "2.6.2-
|
267168
|
+
"@settlemint/sdk-hasura": "2.6.2-pr1a352baa",
|
267169
|
+
"@settlemint/sdk-js": "2.6.2-pr1a352baa",
|
267170
|
+
"@settlemint/sdk-utils": "2.6.2-pr1a352baa",
|
267171
|
+
"@settlemint/sdk-viem": "2.6.2-pr1a352baa",
|
267290
267172
|
"@types/node": "24.4.0",
|
267291
267173
|
"@types/semver": "7.7.1",
|
267292
267174
|
"@types/which": "3.0.4",
|
@@ -267303,7 +267185,7 @@ var package_default = {
|
|
267303
267185
|
},
|
267304
267186
|
peerDependencies: {
|
267305
267187
|
hardhat: "<= 4",
|
267306
|
-
"@settlemint/sdk-js": "2.6.2-
|
267188
|
+
"@settlemint/sdk-js": "2.6.2-pr1a352baa"
|
267307
267189
|
},
|
267308
267190
|
peerDependenciesMeta: {
|
267309
267191
|
hardhat: {
|
@@ -273121,481 +273003,23 @@ function sanitizeName(value5, length = 35) {
|
|
273121
273003
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
273122
273004
|
}
|
273123
273005
|
|
273124
|
-
// ../../node_modules/.bun/@inquirer+
|
273125
|
-
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
273126
|
-
var isTabKey2 = (key2) => key2.name === "tab";
|
273127
|
-
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
273128
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
273129
|
-
class AbortPromptError2 extends Error {
|
273130
|
-
name = "AbortPromptError";
|
273131
|
-
message = "Prompt was aborted";
|
273132
|
-
constructor(options) {
|
273133
|
-
super();
|
273134
|
-
this.cause = options?.cause;
|
273135
|
-
}
|
273136
|
-
}
|
273137
|
-
|
273138
|
-
class CancelPromptError2 extends Error {
|
273139
|
-
name = "CancelPromptError";
|
273140
|
-
message = "Prompt was canceled";
|
273141
|
-
}
|
273142
|
-
|
273143
|
-
class ExitPromptError2 extends Error {
|
273144
|
-
name = "ExitPromptError";
|
273145
|
-
}
|
273146
|
-
|
273147
|
-
class HookError2 extends Error {
|
273148
|
-
name = "HookError";
|
273149
|
-
}
|
273150
|
-
|
273151
|
-
class ValidationError2 extends Error {
|
273152
|
-
name = "ValidationError";
|
273153
|
-
}
|
273154
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
273155
|
-
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
273156
|
-
|
273157
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
273158
|
-
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
273159
|
-
var hookStorage2 = new AsyncLocalStorage2;
|
273160
|
-
function createStore2(rl) {
|
273161
|
-
const store = {
|
273162
|
-
rl,
|
273163
|
-
hooks: [],
|
273164
|
-
hooksCleanup: [],
|
273165
|
-
hooksEffect: [],
|
273166
|
-
index: 0,
|
273167
|
-
handleChange() {}
|
273168
|
-
};
|
273169
|
-
return store;
|
273170
|
-
}
|
273171
|
-
function withHooks2(rl, cb) {
|
273172
|
-
const store = createStore2(rl);
|
273173
|
-
return hookStorage2.run(store, () => {
|
273174
|
-
function cycle(render) {
|
273175
|
-
store.handleChange = () => {
|
273176
|
-
store.index = 0;
|
273177
|
-
render();
|
273178
|
-
};
|
273179
|
-
store.handleChange();
|
273180
|
-
}
|
273181
|
-
return cb(cycle);
|
273182
|
-
});
|
273183
|
-
}
|
273184
|
-
function getStore2() {
|
273185
|
-
const store = hookStorage2.getStore();
|
273186
|
-
if (!store) {
|
273187
|
-
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
273188
|
-
}
|
273189
|
-
return store;
|
273190
|
-
}
|
273191
|
-
function readline3() {
|
273192
|
-
return getStore2().rl;
|
273193
|
-
}
|
273194
|
-
function withUpdates2(fn) {
|
273195
|
-
const wrapped = (...args) => {
|
273196
|
-
const store = getStore2();
|
273197
|
-
let shouldUpdate = false;
|
273198
|
-
const oldHandleChange = store.handleChange;
|
273199
|
-
store.handleChange = () => {
|
273200
|
-
shouldUpdate = true;
|
273201
|
-
};
|
273202
|
-
const returnValue = fn(...args);
|
273203
|
-
if (shouldUpdate) {
|
273204
|
-
oldHandleChange();
|
273205
|
-
}
|
273206
|
-
store.handleChange = oldHandleChange;
|
273207
|
-
return returnValue;
|
273208
|
-
};
|
273209
|
-
return AsyncResource4.bind(wrapped);
|
273210
|
-
}
|
273211
|
-
function withPointer2(cb) {
|
273212
|
-
const store = getStore2();
|
273213
|
-
const { index } = store;
|
273214
|
-
const pointer = {
|
273215
|
-
get() {
|
273216
|
-
return store.hooks[index];
|
273217
|
-
},
|
273218
|
-
set(value5) {
|
273219
|
-
store.hooks[index] = value5;
|
273220
|
-
},
|
273221
|
-
initialized: index in store.hooks
|
273222
|
-
};
|
273223
|
-
const returnValue = cb(pointer);
|
273224
|
-
store.index++;
|
273225
|
-
return returnValue;
|
273226
|
-
}
|
273227
|
-
function handleChange2() {
|
273228
|
-
getStore2().handleChange();
|
273229
|
-
}
|
273230
|
-
var effectScheduler2 = {
|
273231
|
-
queue(cb) {
|
273232
|
-
const store = getStore2();
|
273233
|
-
const { index } = store;
|
273234
|
-
store.hooksEffect.push(() => {
|
273235
|
-
store.hooksCleanup[index]?.();
|
273236
|
-
const cleanFn = cb(readline3());
|
273237
|
-
if (cleanFn != null && typeof cleanFn !== "function") {
|
273238
|
-
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
273239
|
-
}
|
273240
|
-
store.hooksCleanup[index] = cleanFn;
|
273241
|
-
});
|
273242
|
-
},
|
273243
|
-
run() {
|
273244
|
-
const store = getStore2();
|
273245
|
-
withUpdates2(() => {
|
273246
|
-
store.hooksEffect.forEach((effect) => {
|
273247
|
-
effect();
|
273248
|
-
});
|
273249
|
-
store.hooksEffect.length = 0;
|
273250
|
-
})();
|
273251
|
-
},
|
273252
|
-
clearAll() {
|
273253
|
-
const store = getStore2();
|
273254
|
-
store.hooksCleanup.forEach((cleanFn) => {
|
273255
|
-
cleanFn?.();
|
273256
|
-
});
|
273257
|
-
store.hooksEffect.length = 0;
|
273258
|
-
store.hooksCleanup.length = 0;
|
273259
|
-
}
|
273260
|
-
};
|
273261
|
-
|
273262
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
273263
|
-
function useState2(defaultValue) {
|
273264
|
-
return withPointer2((pointer) => {
|
273265
|
-
const setState = AsyncResource5.bind(function setState(newValue) {
|
273266
|
-
if (pointer.get() !== newValue) {
|
273267
|
-
pointer.set(newValue);
|
273268
|
-
handleChange2();
|
273269
|
-
}
|
273270
|
-
});
|
273271
|
-
if (pointer.initialized) {
|
273272
|
-
return [pointer.get(), setState];
|
273273
|
-
}
|
273274
|
-
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
273275
|
-
pointer.set(value5);
|
273276
|
-
return [value5, setState];
|
273277
|
-
});
|
273278
|
-
}
|
273279
|
-
|
273280
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
273281
|
-
function useEffect2(cb, depArray) {
|
273282
|
-
withPointer2((pointer) => {
|
273283
|
-
const oldDeps = pointer.get();
|
273284
|
-
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
273285
|
-
if (hasChanged) {
|
273286
|
-
effectScheduler2.queue(cb);
|
273287
|
-
}
|
273288
|
-
pointer.set(depArray);
|
273289
|
-
});
|
273290
|
-
}
|
273291
|
-
|
273292
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
273293
|
-
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
273294
|
-
var defaultTheme2 = {
|
273295
|
-
prefix: {
|
273296
|
-
idle: import_yoctocolors_cjs3.default.blue("?"),
|
273297
|
-
done: import_yoctocolors_cjs3.default.green(esm_default.tick)
|
273298
|
-
},
|
273299
|
-
spinner: {
|
273300
|
-
interval: 80,
|
273301
|
-
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
273302
|
-
},
|
273303
|
-
style: {
|
273304
|
-
answer: import_yoctocolors_cjs3.default.cyan,
|
273305
|
-
message: import_yoctocolors_cjs3.default.bold,
|
273306
|
-
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
273307
|
-
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
273308
|
-
help: import_yoctocolors_cjs3.default.dim,
|
273309
|
-
highlight: import_yoctocolors_cjs3.default.cyan,
|
273310
|
-
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
273311
|
-
}
|
273312
|
-
};
|
273313
|
-
|
273314
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
273315
|
-
function isPlainObject4(value5) {
|
273316
|
-
if (typeof value5 !== "object" || value5 === null)
|
273317
|
-
return false;
|
273318
|
-
let proto = value5;
|
273319
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
273320
|
-
proto = Object.getPrototypeOf(proto);
|
273321
|
-
}
|
273322
|
-
return Object.getPrototypeOf(value5) === proto;
|
273323
|
-
}
|
273324
|
-
function deepMerge3(...objects) {
|
273325
|
-
const output = {};
|
273326
|
-
for (const obj of objects) {
|
273327
|
-
for (const [key2, value5] of Object.entries(obj)) {
|
273328
|
-
const prevValue = output[key2];
|
273329
|
-
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
273330
|
-
}
|
273331
|
-
}
|
273332
|
-
return output;
|
273333
|
-
}
|
273334
|
-
function makeTheme2(...themes) {
|
273335
|
-
const themesToMerge = [
|
273336
|
-
defaultTheme2,
|
273337
|
-
...themes.filter((theme) => theme != null)
|
273338
|
-
];
|
273339
|
-
return deepMerge3(...themesToMerge);
|
273340
|
-
}
|
273341
|
-
|
273342
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
273343
|
-
function usePrefix2({ status = "idle", theme }) {
|
273344
|
-
const [showLoader, setShowLoader] = useState2(false);
|
273345
|
-
const [tick, setTick] = useState2(0);
|
273346
|
-
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
273347
|
-
useEffect2(() => {
|
273348
|
-
if (status === "loading") {
|
273349
|
-
let tickInterval;
|
273350
|
-
let inc = -1;
|
273351
|
-
const delayTimeout = setTimeout(() => {
|
273352
|
-
setShowLoader(true);
|
273353
|
-
tickInterval = setInterval(() => {
|
273354
|
-
inc = inc + 1;
|
273355
|
-
setTick(inc % spinner2.frames.length);
|
273356
|
-
}, spinner2.interval);
|
273357
|
-
}, 300);
|
273358
|
-
return () => {
|
273359
|
-
clearTimeout(delayTimeout);
|
273360
|
-
clearInterval(tickInterval);
|
273361
|
-
};
|
273362
|
-
} else {
|
273363
|
-
setShowLoader(false);
|
273364
|
-
}
|
273365
|
-
}, [status]);
|
273366
|
-
if (showLoader) {
|
273367
|
-
return spinner2.frames[tick];
|
273368
|
-
}
|
273369
|
-
const iconName = status === "loading" ? "idle" : status;
|
273370
|
-
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
273371
|
-
}
|
273372
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
273373
|
-
function useRef2(val) {
|
273374
|
-
return useState2({ current: val })[0];
|
273375
|
-
}
|
273376
|
-
|
273377
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
273378
|
-
function useKeypress2(userHandler) {
|
273379
|
-
const signal = useRef2(userHandler);
|
273380
|
-
signal.current = userHandler;
|
273381
|
-
useEffect2((rl) => {
|
273382
|
-
let ignore = false;
|
273383
|
-
const handler = withUpdates2((_input, event) => {
|
273384
|
-
if (ignore)
|
273385
|
-
return;
|
273386
|
-
signal.current(event, rl);
|
273387
|
-
});
|
273388
|
-
rl.input.on("keypress", handler);
|
273389
|
-
return () => {
|
273390
|
-
ignore = true;
|
273391
|
-
rl.input.removeListener("keypress", handler);
|
273392
|
-
};
|
273393
|
-
}, []);
|
273394
|
-
}
|
273395
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
273396
|
-
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
273397
|
-
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
273398
|
-
function breakLines2(content, width) {
|
273399
|
-
return content.split(`
|
273400
|
-
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
273401
|
-
`).map((str) => str.trimEnd())).join(`
|
273402
|
-
`);
|
273403
|
-
}
|
273404
|
-
function readlineWidth2() {
|
273405
|
-
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
273406
|
-
}
|
273407
|
-
|
273408
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
273409
|
-
var import_mute_stream2 = __toESM(require_lib(), 1);
|
273410
|
-
import * as readline4 from "node:readline";
|
273411
|
-
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
273412
|
-
|
273413
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
273414
|
-
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
273415
|
-
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
273416
|
-
var height2 = (content) => content.split(`
|
273417
|
-
`).length;
|
273418
|
-
var lastLine2 = (content) => content.split(`
|
273419
|
-
`).pop() ?? "";
|
273420
|
-
function cursorDown2(n7) {
|
273421
|
-
return n7 > 0 ? import_ansi_escapes.default.cursorDown(n7) : "";
|
273422
|
-
}
|
273423
|
-
|
273424
|
-
class ScreenManager2 {
|
273425
|
-
height = 0;
|
273426
|
-
extraLinesUnderPrompt = 0;
|
273427
|
-
cursorPos;
|
273428
|
-
rl;
|
273429
|
-
constructor(rl) {
|
273430
|
-
this.rl = rl;
|
273431
|
-
this.cursorPos = rl.getCursorPos();
|
273432
|
-
}
|
273433
|
-
write(content) {
|
273434
|
-
this.rl.output.unmute();
|
273435
|
-
this.rl.output.write(content);
|
273436
|
-
this.rl.output.mute();
|
273437
|
-
}
|
273438
|
-
render(content, bottomContent = "") {
|
273439
|
-
const promptLine = lastLine2(content);
|
273440
|
-
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
273441
|
-
let prompt = rawPromptLine;
|
273442
|
-
if (this.rl.line.length > 0) {
|
273443
|
-
prompt = prompt.slice(0, -this.rl.line.length);
|
273444
|
-
}
|
273445
|
-
this.rl.setPrompt(prompt);
|
273446
|
-
this.cursorPos = this.rl.getCursorPos();
|
273447
|
-
const width = readlineWidth2();
|
273448
|
-
content = breakLines2(content, width);
|
273449
|
-
bottomContent = breakLines2(bottomContent, width);
|
273450
|
-
if (rawPromptLine.length % width === 0) {
|
273451
|
-
content += `
|
273452
|
-
`;
|
273453
|
-
}
|
273454
|
-
let output = content + (bottomContent ? `
|
273455
|
-
` + bottomContent : "");
|
273456
|
-
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
273457
|
-
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
273458
|
-
if (bottomContentHeight > 0)
|
273459
|
-
output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
|
273460
|
-
output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
|
273461
|
-
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
|
273462
|
-
this.extraLinesUnderPrompt = bottomContentHeight;
|
273463
|
-
this.height = height2(output);
|
273464
|
-
}
|
273465
|
-
checkCursorPos() {
|
273466
|
-
const cursorPos = this.rl.getCursorPos();
|
273467
|
-
if (cursorPos.cols !== this.cursorPos.cols) {
|
273468
|
-
this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
|
273469
|
-
this.cursorPos = cursorPos;
|
273470
|
-
}
|
273471
|
-
}
|
273472
|
-
done({ clearContent }) {
|
273473
|
-
this.rl.setPrompt("");
|
273474
|
-
let output = cursorDown2(this.extraLinesUnderPrompt);
|
273475
|
-
output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
|
273476
|
-
`;
|
273477
|
-
output += import_ansi_escapes.default.cursorShow;
|
273478
|
-
this.write(output);
|
273479
|
-
this.rl.close();
|
273480
|
-
}
|
273481
|
-
}
|
273482
|
-
|
273483
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
273484
|
-
class PromisePolyfill2 extends Promise {
|
273485
|
-
static withResolver() {
|
273486
|
-
let resolve6;
|
273487
|
-
let reject;
|
273488
|
-
const promise2 = new Promise((res, rej) => {
|
273489
|
-
resolve6 = res;
|
273490
|
-
reject = rej;
|
273491
|
-
});
|
273492
|
-
return { promise: promise2, resolve: resolve6, reject };
|
273493
|
-
}
|
273494
|
-
}
|
273495
|
-
|
273496
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
273497
|
-
function getCallSites2() {
|
273498
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
273499
|
-
let result = [];
|
273500
|
-
try {
|
273501
|
-
Error.prepareStackTrace = (_5, callSites) => {
|
273502
|
-
const callSitesWithoutCurrent = callSites.slice(1);
|
273503
|
-
result = callSitesWithoutCurrent;
|
273504
|
-
return callSitesWithoutCurrent;
|
273505
|
-
};
|
273506
|
-
new Error().stack;
|
273507
|
-
} catch {
|
273508
|
-
return result;
|
273509
|
-
}
|
273510
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
273511
|
-
return result;
|
273512
|
-
}
|
273513
|
-
function createPrompt2(view) {
|
273514
|
-
const callSites = getCallSites2();
|
273515
|
-
const prompt = (config3, context = {}) => {
|
273516
|
-
const { input = process.stdin, signal } = context;
|
273517
|
-
const cleanups = new Set;
|
273518
|
-
const output = new import_mute_stream2.default;
|
273519
|
-
output.pipe(context.output ?? process.stdout);
|
273520
|
-
const rl = readline4.createInterface({
|
273521
|
-
terminal: true,
|
273522
|
-
input,
|
273523
|
-
output
|
273524
|
-
});
|
273525
|
-
const screen = new ScreenManager2(rl);
|
273526
|
-
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
273527
|
-
const cancel3 = () => reject(new CancelPromptError2);
|
273528
|
-
if (signal) {
|
273529
|
-
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
273530
|
-
if (signal.aborted) {
|
273531
|
-
abort();
|
273532
|
-
return Object.assign(promise2, { cancel: cancel3 });
|
273533
|
-
}
|
273534
|
-
signal.addEventListener("abort", abort);
|
273535
|
-
cleanups.add(() => signal.removeEventListener("abort", abort));
|
273536
|
-
}
|
273537
|
-
cleanups.add(onExit((code2, signal2) => {
|
273538
|
-
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
273539
|
-
}));
|
273540
|
-
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
273541
|
-
rl.on("SIGINT", sigint);
|
273542
|
-
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
273543
|
-
const checkCursorPos = () => screen.checkCursorPos();
|
273544
|
-
rl.input.on("keypress", checkCursorPos);
|
273545
|
-
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
273546
|
-
return withHooks2(rl, (cycle) => {
|
273547
|
-
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
273548
|
-
rl.on("close", hooksCleanup);
|
273549
|
-
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
273550
|
-
cycle(() => {
|
273551
|
-
try {
|
273552
|
-
const nextView = view(config3, (value5) => {
|
273553
|
-
setImmediate(() => resolve6(value5));
|
273554
|
-
});
|
273555
|
-
if (nextView === undefined) {
|
273556
|
-
const callerFilename = callSites[1]?.getFileName();
|
273557
|
-
throw new Error(`Prompt functions must return a string.
|
273558
|
-
at ${callerFilename}`);
|
273559
|
-
}
|
273560
|
-
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
273561
|
-
screen.render(content, bottomContent);
|
273562
|
-
effectScheduler2.run();
|
273563
|
-
} catch (error48) {
|
273564
|
-
reject(error48);
|
273565
|
-
}
|
273566
|
-
});
|
273567
|
-
return Object.assign(promise2.then((answer) => {
|
273568
|
-
effectScheduler2.clearAll();
|
273569
|
-
return answer;
|
273570
|
-
}, (error48) => {
|
273571
|
-
effectScheduler2.clearAll();
|
273572
|
-
throw error48;
|
273573
|
-
}).finally(() => {
|
273574
|
-
cleanups.forEach((cleanup) => cleanup());
|
273575
|
-
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
273576
|
-
output.end();
|
273577
|
-
}).then(() => promise2), { cancel: cancel3 });
|
273578
|
-
});
|
273579
|
-
};
|
273580
|
-
return prompt;
|
273581
|
-
}
|
273582
|
-
// ../../node_modules/.bun/@inquirer+input@4.2.2+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
|
273006
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.4+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
|
273583
273007
|
var inputTheme = {
|
273584
273008
|
validationFailureMode: "keep"
|
273585
273009
|
};
|
273586
|
-
var esm_default2 =
|
273010
|
+
var esm_default2 = createPrompt((config3, done) => {
|
273587
273011
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
273588
|
-
const theme =
|
273589
|
-
const [status, setStatus] =
|
273590
|
-
const [defaultValue = "", setDefaultValue] =
|
273591
|
-
const [errorMsg, setError] =
|
273592
|
-
const [value5, setValue] =
|
273593
|
-
const prefix =
|
273594
|
-
|
273012
|
+
const theme = makeTheme(inputTheme, config3.theme);
|
273013
|
+
const [status, setStatus] = useState("idle");
|
273014
|
+
const [defaultValue = "", setDefaultValue] = useState(config3.default);
|
273015
|
+
const [errorMsg, setError] = useState();
|
273016
|
+
const [value5, setValue] = useState("");
|
273017
|
+
const prefix = usePrefix({ status, theme });
|
273018
|
+
useKeypress(async (key2, rl) => {
|
273595
273019
|
if (status !== "idle") {
|
273596
273020
|
return;
|
273597
273021
|
}
|
273598
|
-
if (
|
273022
|
+
if (isEnterKey(key2)) {
|
273599
273023
|
const answer = value5 || defaultValue;
|
273600
273024
|
setStatus("loading");
|
273601
273025
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -273612,9 +273036,9 @@ var esm_default2 = createPrompt2((config3, done) => {
|
|
273612
273036
|
setError(isValid || "You must provide a valid value");
|
273613
273037
|
setStatus("idle");
|
273614
273038
|
}
|
273615
|
-
} else if (
|
273039
|
+
} else if (isBackspaceKey(key2) && !value5) {
|
273616
273040
|
setDefaultValue(undefined);
|
273617
|
-
} else if (
|
273041
|
+
} else if (isTabKey(key2) && !value5) {
|
273618
273042
|
setDefaultValue(undefined);
|
273619
273043
|
rl.clearLine(0);
|
273620
273044
|
rl.write(defaultValue);
|
@@ -273624,7 +273048,7 @@ var esm_default2 = createPrompt2((config3, done) => {
|
|
273624
273048
|
setError(undefined);
|
273625
273049
|
}
|
273626
273050
|
});
|
273627
|
-
|
273051
|
+
useEffect((rl) => {
|
273628
273052
|
if (prefill === "editable" && defaultValue) {
|
273629
273053
|
rl.write(defaultValue);
|
273630
273054
|
setValue(defaultValue);
|
@@ -273670,12 +273094,12 @@ async function subgraphNamePrompt({
|
|
273670
273094
|
}
|
273671
273095
|
|
273672
273096
|
// ../../node_modules/.bun/@inquirer+select@4.3.4+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
|
273673
|
-
var
|
273097
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
273674
273098
|
var selectTheme = {
|
273675
273099
|
icon: { cursor: esm_default.pointer },
|
273676
273100
|
style: {
|
273677
|
-
disabled: (text2) =>
|
273678
|
-
description: (text2) =>
|
273101
|
+
disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
|
273102
|
+
description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
|
273679
273103
|
},
|
273680
273104
|
helpMode: "auto",
|
273681
273105
|
indexMode: "hidden"
|
@@ -273731,22 +273155,22 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273731
273155
|
}, [config3.default, items]);
|
273732
273156
|
const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
273733
273157
|
const selectedChoice = items[active];
|
273734
|
-
useKeypress((
|
273158
|
+
useKeypress((key2, rl) => {
|
273735
273159
|
clearTimeout(searchTimeoutRef.current);
|
273736
|
-
if (isEnterKey(
|
273160
|
+
if (isEnterKey(key2)) {
|
273737
273161
|
setStatus("done");
|
273738
273162
|
done(selectedChoice.value);
|
273739
|
-
} else if (isUpKey(
|
273163
|
+
} else if (isUpKey(key2) || isDownKey(key2)) {
|
273740
273164
|
rl.clearLine(0);
|
273741
|
-
if (loop || isUpKey(
|
273742
|
-
const offset = isUpKey(
|
273165
|
+
if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
|
273166
|
+
const offset = isUpKey(key2) ? -1 : 1;
|
273743
273167
|
let next = active;
|
273744
273168
|
do {
|
273745
273169
|
next = (next + offset + items.length) % items.length;
|
273746
273170
|
} while (!isSelectable(items[next]));
|
273747
273171
|
setActive(next);
|
273748
273172
|
}
|
273749
|
-
} else if (isNumberKey(
|
273173
|
+
} else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
|
273750
273174
|
const selectedIndex = Number(rl.line) - 1;
|
273751
273175
|
let selectableIndex = -1;
|
273752
273176
|
const position = items.findIndex((item2) => {
|
@@ -273762,7 +273186,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273762
273186
|
searchTimeoutRef.current = setTimeout(() => {
|
273763
273187
|
rl.clearLine(0);
|
273764
273188
|
}, 700);
|
273765
|
-
} else if (isBackspaceKey(
|
273189
|
+
} else if (isBackspaceKey(key2)) {
|
273766
273190
|
rl.clearLine(0);
|
273767
273191
|
} else {
|
273768
273192
|
const searchTerm = rl.line.toLowerCase();
|
@@ -275466,14 +274890,14 @@ function includesArgs(parameters) {
|
|
275466
274890
|
});
|
275467
274891
|
}
|
275468
274892
|
if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
|
275469
|
-
return Object.entries(matchArgs).every(([
|
274893
|
+
return Object.entries(matchArgs).every(([key2, value5]) => {
|
275470
274894
|
if (value5 === null || value5 === undefined)
|
275471
274895
|
return true;
|
275472
|
-
const input = inputs.find((input2) => input2.name ===
|
274896
|
+
const input = inputs.find((input2) => input2.name === key2);
|
275473
274897
|
if (!input)
|
275474
274898
|
return false;
|
275475
274899
|
const value_ = Array.isArray(value5) ? value5 : [value5];
|
275476
|
-
return value_.some((value6) => isEqual(input, value6, args[
|
274900
|
+
return value_.some((value6) => isEqual(input, value6, args[key2]));
|
275477
274901
|
});
|
275478
274902
|
return false;
|
275479
274903
|
}
|
@@ -275672,13 +275096,13 @@ function observe(observerId, callbacks, fn) {
|
|
275672
275096
|
if (listeners && listeners.length > 0)
|
275673
275097
|
return unwatch;
|
275674
275098
|
const emit = {};
|
275675
|
-
for (const
|
275676
|
-
emit[
|
275099
|
+
for (const key2 in callbacks) {
|
275100
|
+
emit[key2] = (...args) => {
|
275677
275101
|
const listeners2 = getListeners();
|
275678
275102
|
if (listeners2.length === 0)
|
275679
275103
|
return;
|
275680
275104
|
for (const listener of listeners2)
|
275681
|
-
listener.fns[
|
275105
|
+
listener.fns[key2]?.(...args);
|
275682
275106
|
};
|
275683
275107
|
}
|
275684
275108
|
const cleanup = fn(emit);
|
@@ -276058,7 +275482,7 @@ function uid(length = 11) {
|
|
276058
275482
|
|
276059
275483
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createClient.js
|
276060
275484
|
function createClient(parameters) {
|
276061
|
-
const { batch, chain, ccipRead, key:
|
275485
|
+
const { batch, chain, ccipRead, key: key2 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
|
276062
275486
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
|
276063
275487
|
const blockTime = chain?.blockTime ?? 12000;
|
276064
275488
|
const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
|
@@ -276076,7 +275500,7 @@ function createClient(parameters) {
|
|
276076
275500
|
cacheTime,
|
276077
275501
|
ccipRead,
|
276078
275502
|
chain,
|
276079
|
-
key:
|
275503
|
+
key: key2,
|
276080
275504
|
name: name4,
|
276081
275505
|
pollingInterval,
|
276082
275506
|
request: request2,
|
@@ -276088,8 +275512,8 @@ function createClient(parameters) {
|
|
276088
275512
|
function extend2(base2) {
|
276089
275513
|
return (extendFn) => {
|
276090
275514
|
const extended = extendFn(base2);
|
276091
|
-
for (const
|
276092
|
-
delete extended[
|
275515
|
+
for (const key3 in client)
|
275516
|
+
delete extended[key3];
|
276093
275517
|
const combined = { ...base2, ...extended };
|
276094
275518
|
return Object.assign(combined, { extend: extend2(combined) });
|
276095
275519
|
};
|
@@ -276508,7 +275932,7 @@ init_getChainContractAddress();
|
|
276508
275932
|
init_toHex();
|
276509
275933
|
init_localBatchGatewayRequest();
|
276510
275934
|
async function getEnsText(client, parameters) {
|
276511
|
-
const { blockNumber, blockTag, key:
|
275935
|
+
const { blockNumber, blockTag, key: key2, name: name4, gatewayUrls, strict } = parameters;
|
276512
275936
|
const { chain } = client;
|
276513
275937
|
const universalResolverAddress = (() => {
|
276514
275938
|
if (parameters.universalResolverAddress)
|
@@ -276533,7 +275957,7 @@ async function getEnsText(client, parameters) {
|
|
276533
275957
|
encodeFunctionData({
|
276534
275958
|
abi: textResolverAbi,
|
276535
275959
|
functionName: "text",
|
276536
|
-
args: [namehash(name4),
|
275960
|
+
args: [namehash(name4), key2]
|
276537
275961
|
}),
|
276538
275962
|
gatewayUrls ?? [localBatchGatewayUrl]
|
276539
275963
|
],
|
@@ -278602,16 +278026,16 @@ class LruMap2 extends Map {
|
|
278602
278026
|
});
|
278603
278027
|
this.maxSize = size5;
|
278604
278028
|
}
|
278605
|
-
get(
|
278606
|
-
const value5 = super.get(
|
278607
|
-
if (super.has(
|
278608
|
-
this.delete(
|
278609
|
-
super.set(
|
278029
|
+
get(key2) {
|
278030
|
+
const value5 = super.get(key2);
|
278031
|
+
if (super.has(key2) && value5 !== undefined) {
|
278032
|
+
this.delete(key2);
|
278033
|
+
super.set(key2, value5);
|
278610
278034
|
}
|
278611
278035
|
return value5;
|
278612
278036
|
}
|
278613
|
-
set(
|
278614
|
-
super.set(
|
278037
|
+
set(key2, value5) {
|
278038
|
+
super.set(key2, value5);
|
278615
278039
|
if (this.maxSize && this.size > this.maxSize) {
|
278616
278040
|
const firstKey = this.keys().next().value;
|
278617
278041
|
if (firstKey)
|
@@ -282060,21 +281484,21 @@ function publicActions(client) {
|
|
282060
281484
|
|
282061
281485
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createPublicClient.js
|
282062
281486
|
function createPublicClient(parameters) {
|
282063
|
-
const { key:
|
281487
|
+
const { key: key2 = "public", name: name4 = "Public Client" } = parameters;
|
282064
281488
|
const client = createClient({
|
282065
281489
|
...parameters,
|
282066
|
-
key:
|
281490
|
+
key: key2,
|
282067
281491
|
name: name4,
|
282068
281492
|
type: "publicClient"
|
282069
281493
|
});
|
282070
281494
|
return client.extend(publicActions);
|
282071
281495
|
}
|
282072
281496
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/createTransport.js
|
282073
|
-
function createTransport({ key:
|
281497
|
+
function createTransport({ key: key2, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
|
282074
281498
|
const uid2 = uid();
|
282075
281499
|
return {
|
282076
281500
|
config: {
|
282077
|
-
key:
|
281501
|
+
key: key2,
|
282078
281502
|
methods,
|
282079
281503
|
name: name4,
|
282080
281504
|
request: request2,
|
@@ -282106,7 +281530,7 @@ class UrlRequiredError extends BaseError2 {
|
|
282106
281530
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/http.js
|
282107
281531
|
init_createBatchScheduler();
|
282108
281532
|
function http(url2, config3 = {}) {
|
282109
|
-
const { batch, fetchFn, fetchOptions, key:
|
281533
|
+
const { batch, fetchFn, fetchOptions, key: key2 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
|
282110
281534
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
282111
281535
|
const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
282112
281536
|
const retryCount = config3.retryCount ?? retryCount_;
|
@@ -282122,7 +281546,7 @@ function http(url2, config3 = {}) {
|
|
282122
281546
|
timeout
|
282123
281547
|
});
|
282124
281548
|
return createTransport({
|
282125
|
-
key:
|
281549
|
+
key: key2,
|
282126
281550
|
methods,
|
282127
281551
|
name: name4,
|
282128
281552
|
async request({ method, params }) {
|
@@ -299070,23 +298494,23 @@ var LRUCache3 = class {
|
|
299070
298494
|
constructor(maxSize) {
|
299071
298495
|
this.maxSize = maxSize;
|
299072
298496
|
}
|
299073
|
-
get(
|
299074
|
-
const value5 = this.cache.get(
|
298497
|
+
get(key2) {
|
298498
|
+
const value5 = this.cache.get(key2);
|
299075
298499
|
if (value5 !== undefined) {
|
299076
|
-
this.cache.delete(
|
299077
|
-
this.cache.set(
|
298500
|
+
this.cache.delete(key2);
|
298501
|
+
this.cache.set(key2, value5);
|
299078
298502
|
}
|
299079
298503
|
return value5;
|
299080
298504
|
}
|
299081
|
-
set(
|
299082
|
-
this.cache.delete(
|
298505
|
+
set(key2, value5) {
|
298506
|
+
this.cache.delete(key2);
|
299083
298507
|
if (this.cache.size >= this.maxSize) {
|
299084
298508
|
const firstKey = this.cache.keys().next().value;
|
299085
298509
|
if (firstKey !== undefined) {
|
299086
298510
|
this.cache.delete(firstKey);
|
299087
298511
|
}
|
299088
298512
|
}
|
299089
|
-
this.cache.set(
|
298513
|
+
this.cache.set(key2, value5);
|
299090
298514
|
}
|
299091
298515
|
clear() {
|
299092
298516
|
this.cache.clear();
|
@@ -299097,9 +298521,9 @@ var publicClientCache = new LRUCache3(50);
|
|
299097
298521
|
var walletClientFactoryCache = new LRUCache3(50);
|
299098
298522
|
function buildHeaders(baseHeaders, authHeaders) {
|
299099
298523
|
const filteredHeaders = {};
|
299100
|
-
for (const [
|
298524
|
+
for (const [key2, value5] of Object.entries(authHeaders)) {
|
299101
298525
|
if (value5 !== undefined) {
|
299102
|
-
filteredHeaders[
|
298526
|
+
filteredHeaders[key2] = value5;
|
299103
298527
|
}
|
299104
298528
|
}
|
299105
298529
|
return appendHeaders(baseHeaders, filteredHeaders);
|
@@ -299425,15 +298849,15 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
299425
298849
|
const [value5, setValue] = useState("");
|
299426
298850
|
const theme = makeTheme(config3.theme);
|
299427
298851
|
const prefix = usePrefix({ status, theme });
|
299428
|
-
useKeypress((
|
298852
|
+
useKeypress((key2, rl) => {
|
299429
298853
|
if (status !== "idle")
|
299430
298854
|
return;
|
299431
|
-
if (isEnterKey(
|
298855
|
+
if (isEnterKey(key2)) {
|
299432
298856
|
const answer = getBooleanValue(value5, config3.default);
|
299433
298857
|
setValue(transformer(answer));
|
299434
298858
|
setStatus("done");
|
299435
298859
|
done(answer);
|
299436
|
-
} else if (isTabKey(
|
298860
|
+
} else if (isTabKey(key2)) {
|
299437
298861
|
const answer = boolToString(!getBooleanValue(value5, config3.default));
|
299438
298862
|
rl.clearLine(0);
|
299439
298863
|
rl.write(answer);
|
@@ -299453,20 +298877,19 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
299453
298877
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
299454
298878
|
});
|
299455
298879
|
|
299456
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.
|
299457
|
-
var
|
299458
|
-
var esm_default5 = createPrompt2((config3, done) => {
|
298880
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.20+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
|
298881
|
+
var esm_default5 = createPrompt((config3, done) => {
|
299459
298882
|
const { validate: validate8 = () => true } = config3;
|
299460
|
-
const theme =
|
299461
|
-
const [status, setStatus] =
|
299462
|
-
const [errorMsg, setError] =
|
299463
|
-
const [value5, setValue] =
|
299464
|
-
const prefix =
|
299465
|
-
|
298883
|
+
const theme = makeTheme(config3.theme);
|
298884
|
+
const [status, setStatus] = useState("idle");
|
298885
|
+
const [errorMsg, setError] = useState();
|
298886
|
+
const [value5, setValue] = useState("");
|
298887
|
+
const prefix = usePrefix({ status, theme });
|
298888
|
+
useKeypress(async (key2, rl) => {
|
299466
298889
|
if (status !== "idle") {
|
299467
298890
|
return;
|
299468
298891
|
}
|
299469
|
-
if (
|
298892
|
+
if (isEnterKey(key2)) {
|
299470
298893
|
const answer = value5;
|
299471
298894
|
setStatus("loading");
|
299472
298895
|
const isValid = await validate8(answer);
|
@@ -299491,7 +298914,7 @@ var esm_default5 = createPrompt2((config3, done) => {
|
|
299491
298914
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
299492
298915
|
formattedValue = maskChar.repeat(value5.length);
|
299493
298916
|
} else if (status !== "done") {
|
299494
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
298917
|
+
helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
|
299495
298918
|
}
|
299496
298919
|
if (status === "done") {
|
299497
298920
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -301169,7 +300592,7 @@ var basename2 = function(p5, extension) {
|
|
301169
300592
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
301170
300593
|
};
|
301171
300594
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
301172
|
-
function
|
300595
|
+
function isPlainObject4(value5) {
|
301173
300596
|
if (value5 === null || typeof value5 !== "object") {
|
301174
300597
|
return false;
|
301175
300598
|
}
|
@@ -301186,27 +300609,27 @@ function isPlainObject5(value5) {
|
|
301186
300609
|
return true;
|
301187
300610
|
}
|
301188
300611
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
301189
|
-
if (!
|
300612
|
+
if (!isPlainObject4(defaults2)) {
|
301190
300613
|
return _defu(baseObject, {}, namespace, merger);
|
301191
300614
|
}
|
301192
300615
|
const object2 = Object.assign({}, defaults2);
|
301193
|
-
for (const
|
301194
|
-
if (
|
300616
|
+
for (const key2 in baseObject) {
|
300617
|
+
if (key2 === "__proto__" || key2 === "constructor") {
|
301195
300618
|
continue;
|
301196
300619
|
}
|
301197
|
-
const value5 = baseObject[
|
300620
|
+
const value5 = baseObject[key2];
|
301198
300621
|
if (value5 === null || value5 === undefined) {
|
301199
300622
|
continue;
|
301200
300623
|
}
|
301201
|
-
if (merger && merger(object2,
|
300624
|
+
if (merger && merger(object2, key2, value5, namespace)) {
|
301202
300625
|
continue;
|
301203
300626
|
}
|
301204
|
-
if (Array.isArray(value5) && Array.isArray(object2[
|
301205
|
-
object2[
|
301206
|
-
} else if (
|
301207
|
-
object2[
|
300627
|
+
if (Array.isArray(value5) && Array.isArray(object2[key2])) {
|
300628
|
+
object2[key2] = [...value5, ...object2[key2]];
|
300629
|
+
} else if (isPlainObject4(value5) && isPlainObject4(object2[key2])) {
|
300630
|
+
object2[key2] = _defu(value5, object2[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
|
301208
300631
|
} else {
|
301209
|
-
object2[
|
300632
|
+
object2[key2] = value5;
|
301210
300633
|
}
|
301211
300634
|
}
|
301212
300635
|
return object2;
|
@@ -301215,15 +300638,15 @@ function createDefu(merger) {
|
|
301215
300638
|
return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
301216
300639
|
}
|
301217
300640
|
var defu = createDefu();
|
301218
|
-
var defuFn = createDefu((object2,
|
301219
|
-
if (object2[
|
301220
|
-
object2[
|
300641
|
+
var defuFn = createDefu((object2, key2, currentValue) => {
|
300642
|
+
if (object2[key2] !== undefined && typeof currentValue === "function") {
|
300643
|
+
object2[key2] = currentValue(object2[key2]);
|
301221
300644
|
return true;
|
301222
300645
|
}
|
301223
300646
|
});
|
301224
|
-
var defuArrayFn = createDefu((object2,
|
301225
|
-
if (Array.isArray(object2[
|
301226
|
-
object2[
|
300647
|
+
var defuArrayFn = createDefu((object2, key2, currentValue) => {
|
300648
|
+
if (Array.isArray(object2[key2]) && typeof currentValue === "function") {
|
300649
|
+
object2[key2] = currentValue(object2[key2]);
|
301227
300650
|
return true;
|
301228
300651
|
}
|
301229
300652
|
});
|
@@ -303929,11 +303352,11 @@ function cacheDirectory() {
|
|
303929
303352
|
}
|
303930
303353
|
function normalizeHeaders(headers = {}) {
|
303931
303354
|
const normalized = {};
|
303932
|
-
for (const [
|
303355
|
+
for (const [key2, value5] of Object.entries(headers)) {
|
303933
303356
|
if (!value5) {
|
303934
303357
|
continue;
|
303935
303358
|
}
|
303936
|
-
normalized[
|
303359
|
+
normalized[key2.toLowerCase()] = value5;
|
303937
303360
|
}
|
303938
303361
|
return normalized;
|
303939
303362
|
}
|
@@ -307182,7 +306605,7 @@ function jsonOutput(data) {
|
|
307182
306605
|
var composer = require_composer();
|
307183
306606
|
var Document = require_Document();
|
307184
306607
|
var Schema = require_Schema();
|
307185
|
-
var
|
306608
|
+
var errors4 = require_errors3();
|
307186
306609
|
var Alias = require_Alias();
|
307187
306610
|
var identity2 = require_identity();
|
307188
306611
|
var Pair = require_Pair();
|
@@ -307198,9 +306621,9 @@ var visit2 = require_visit();
|
|
307198
306621
|
var $Composer = composer.Composer;
|
307199
306622
|
var $Document = Document.Document;
|
307200
306623
|
var $Schema = Schema.Schema;
|
307201
|
-
var $YAMLError =
|
307202
|
-
var $YAMLParseError =
|
307203
|
-
var $YAMLWarning =
|
306624
|
+
var $YAMLError = errors4.YAMLError;
|
306625
|
+
var $YAMLParseError = errors4.YAMLParseError;
|
306626
|
+
var $YAMLWarning = errors4.YAMLWarning;
|
307204
306627
|
var $Alias = Alias.Alias;
|
307205
306628
|
var $isAlias = identity2.isAlias;
|
307206
306629
|
var $isCollection = identity2.isCollection;
|
@@ -307807,11 +307230,11 @@ function createCommand4() {
|
|
307807
307230
|
|
307808
307231
|
// src/utils/commands/passthrough-options.ts
|
307809
307232
|
function mapPassthroughOptions(options, command) {
|
307810
|
-
const optionArgs = Object.entries(options).map(([
|
307233
|
+
const optionArgs = Object.entries(options).map(([key2, value5]) => {
|
307811
307234
|
if (value5 === true) {
|
307812
|
-
return `--${
|
307235
|
+
return `--${key2}`;
|
307813
307236
|
}
|
307814
|
-
return `--${
|
307237
|
+
return `--${key2}=${value5}`;
|
307815
307238
|
});
|
307816
307239
|
return [...optionArgs, ...command.args];
|
307817
307240
|
}
|
@@ -309064,4 +308487,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
309064
308487
|
// src/cli.ts
|
309065
308488
|
sdkCliCommand();
|
309066
308489
|
|
309067
|
-
//# debugId=
|
308490
|
+
//# debugId=C79C49B77DB6CE9C64756E2164756E21
|