@settlemint/sdk-cli 1.1.1-prc153aef7 → 1.1.1-prc7f21dc7
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 +248 -990
- package/dist/cli.js.map +4 -19
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -233728,8 +233728,8 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
233728
233728
|
return "CwdError";
|
|
233729
233729
|
}
|
|
233730
233730
|
}
|
|
233731
|
-
var cGet = (cache,
|
|
233732
|
-
var cSet = (cache,
|
|
233731
|
+
var cGet = (cache, key2) => cache.get(normPath(key2));
|
|
233732
|
+
var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
|
|
233733
233733
|
var checkCwd = (dir, cb) => {
|
|
233734
233734
|
fs3.stat(dir, (er2, st2) => {
|
|
233735
233735
|
if (er2 || !st2.isDirectory()) {
|
|
@@ -234100,8 +234100,8 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234100
234100
|
}
|
|
234101
234101
|
};
|
|
234102
234102
|
var dropCache = (cache) => {
|
|
234103
|
-
for (const
|
|
234104
|
-
cache.delete(
|
|
234103
|
+
for (const key2 of cache.keys()) {
|
|
234104
|
+
cache.delete(key2);
|
|
234105
234105
|
}
|
|
234106
234106
|
};
|
|
234107
234107
|
|
|
@@ -238898,8 +238898,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
|
238898
238898
|
function fetch2(input, options) {
|
|
238899
238899
|
return nodeFetch.fetch(input, options);
|
|
238900
238900
|
}
|
|
238901
|
-
for (const
|
|
238902
|
-
fetch2[
|
|
238901
|
+
for (const key2 in nodeFetch) {
|
|
238902
|
+
fetch2[key2] = nodeFetch[key2];
|
|
238903
238903
|
}
|
|
238904
238904
|
module.exports = fetch2;
|
|
238905
238905
|
});
|
|
@@ -238992,11 +238992,11 @@ var require_proxy = __commonJS((exports) => {
|
|
|
238992
238992
|
return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
|
|
238993
238993
|
}
|
|
238994
238994
|
e10(requireSymbols$4, "requireSymbols$4");
|
|
238995
|
-
var
|
|
238995
|
+
var errors2;
|
|
238996
238996
|
var hasRequiredErrors;
|
|
238997
238997
|
function requireErrors() {
|
|
238998
238998
|
if (hasRequiredErrors)
|
|
238999
|
-
return
|
|
238999
|
+
return errors2;
|
|
239000
239000
|
hasRequiredErrors = 1;
|
|
239001
239001
|
|
|
239002
239002
|
class A5 extends Error {
|
|
@@ -239205,7 +239205,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
239205
239205
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
|
239206
239206
|
}
|
|
239207
239207
|
}
|
|
239208
|
-
return
|
|
239208
|
+
return errors2 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors2;
|
|
239209
239209
|
}
|
|
239210
239210
|
e10(requireErrors, "requireErrors");
|
|
239211
239211
|
var constants$4;
|
|
@@ -248494,11 +248494,11 @@ ${g6}`;
|
|
|
248494
248494
|
return e10(u6, "plural"), ms;
|
|
248495
248495
|
}
|
|
248496
248496
|
e10(requireMs, "requireMs");
|
|
248497
|
-
var
|
|
248497
|
+
var common2;
|
|
248498
248498
|
var hasRequiredCommon;
|
|
248499
248499
|
function requireCommon() {
|
|
248500
248500
|
if (hasRequiredCommon)
|
|
248501
|
-
return
|
|
248501
|
+
return common2;
|
|
248502
248502
|
hasRequiredCommon = 1;
|
|
248503
248503
|
function A5(p6) {
|
|
248504
248504
|
E6.debug = E6, E6.default = E6, E6.coerce = u6, E6.disable = l3, E6.enable = B4, E6.enabled = Q4, E6.humanize = requireMs(), E6.destroy = n6, Object.keys(p6).forEach((r6) => {
|
|
@@ -248586,7 +248586,7 @@ ${g6}`;
|
|
|
248586
248586
|
}
|
|
248587
248587
|
return e10(n6, "destroy"), E6.enable(E6.load()), E6;
|
|
248588
248588
|
}
|
|
248589
|
-
return e10(A5, "setup"),
|
|
248589
|
+
return e10(A5, "setup"), common2 = A5, common2;
|
|
248590
248590
|
}
|
|
248591
248591
|
e10(requireCommon, "requireCommon");
|
|
248592
248592
|
var hasRequiredBrowser;
|
|
@@ -249178,11 +249178,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249178
249178
|
visit2.BREAK = BREAK;
|
|
249179
249179
|
visit2.SKIP = SKIP;
|
|
249180
249180
|
visit2.REMOVE = REMOVE;
|
|
249181
|
-
function visit_(
|
|
249182
|
-
const ctrl = callVisitor(
|
|
249181
|
+
function visit_(key2, node, visitor, path5) {
|
|
249182
|
+
const ctrl = callVisitor(key2, node, visitor, path5);
|
|
249183
249183
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249184
|
-
replaceNode(
|
|
249185
|
-
return visit_(
|
|
249184
|
+
replaceNode(key2, path5, ctrl);
|
|
249185
|
+
return visit_(key2, ctrl, visitor, path5);
|
|
249186
249186
|
}
|
|
249187
249187
|
if (typeof ctrl !== "symbol") {
|
|
249188
249188
|
if (identity2.isCollection(node)) {
|
|
@@ -249226,11 +249226,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249226
249226
|
visitAsync.BREAK = BREAK;
|
|
249227
249227
|
visitAsync.SKIP = SKIP;
|
|
249228
249228
|
visitAsync.REMOVE = REMOVE;
|
|
249229
|
-
async function visitAsync_(
|
|
249230
|
-
const ctrl = await callVisitor(
|
|
249229
|
+
async function visitAsync_(key2, node, visitor, path5) {
|
|
249230
|
+
const ctrl = await callVisitor(key2, node, visitor, path5);
|
|
249231
249231
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249232
|
-
replaceNode(
|
|
249233
|
-
return visitAsync_(
|
|
249232
|
+
replaceNode(key2, path5, ctrl);
|
|
249233
|
+
return visitAsync_(key2, ctrl, visitor, path5);
|
|
249234
249234
|
}
|
|
249235
249235
|
if (typeof ctrl !== "symbol") {
|
|
249236
249236
|
if (identity2.isCollection(node)) {
|
|
@@ -249280,27 +249280,27 @@ var require_visit = __commonJS((exports) => {
|
|
|
249280
249280
|
}
|
|
249281
249281
|
return visitor;
|
|
249282
249282
|
}
|
|
249283
|
-
function callVisitor(
|
|
249283
|
+
function callVisitor(key2, node, visitor, path5) {
|
|
249284
249284
|
if (typeof visitor === "function")
|
|
249285
|
-
return visitor(
|
|
249285
|
+
return visitor(key2, node, path5);
|
|
249286
249286
|
if (identity2.isMap(node))
|
|
249287
|
-
return visitor.Map?.(
|
|
249287
|
+
return visitor.Map?.(key2, node, path5);
|
|
249288
249288
|
if (identity2.isSeq(node))
|
|
249289
|
-
return visitor.Seq?.(
|
|
249289
|
+
return visitor.Seq?.(key2, node, path5);
|
|
249290
249290
|
if (identity2.isPair(node))
|
|
249291
|
-
return visitor.Pair?.(
|
|
249291
|
+
return visitor.Pair?.(key2, node, path5);
|
|
249292
249292
|
if (identity2.isScalar(node))
|
|
249293
|
-
return visitor.Scalar?.(
|
|
249293
|
+
return visitor.Scalar?.(key2, node, path5);
|
|
249294
249294
|
if (identity2.isAlias(node))
|
|
249295
|
-
return visitor.Alias?.(
|
|
249295
|
+
return visitor.Alias?.(key2, node, path5);
|
|
249296
249296
|
return;
|
|
249297
249297
|
}
|
|
249298
|
-
function replaceNode(
|
|
249298
|
+
function replaceNode(key2, path5, node) {
|
|
249299
249299
|
const parent = path5[path5.length - 1];
|
|
249300
249300
|
if (identity2.isCollection(parent)) {
|
|
249301
|
-
parent.items[
|
|
249301
|
+
parent.items[key2] = node;
|
|
249302
249302
|
} else if (identity2.isPair(parent)) {
|
|
249303
|
-
if (
|
|
249303
|
+
if (key2 === "key")
|
|
249304
249304
|
parent.key = node;
|
|
249305
249305
|
else
|
|
249306
249306
|
parent.value = node;
|
|
@@ -249532,7 +249532,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
249532
249532
|
|
|
249533
249533
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
249534
249534
|
var require_applyReviver = __commonJS((exports) => {
|
|
249535
|
-
function applyReviver(reviver, obj,
|
|
249535
|
+
function applyReviver(reviver, obj, key2, val) {
|
|
249536
249536
|
if (val && typeof val === "object") {
|
|
249537
249537
|
if (Array.isArray(val)) {
|
|
249538
249538
|
for (let i6 = 0, len = val.length;i6 < len; ++i6) {
|
|
@@ -249572,7 +249572,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
249572
249572
|
}
|
|
249573
249573
|
}
|
|
249574
249574
|
}
|
|
249575
|
-
return reviver.call(obj,
|
|
249575
|
+
return reviver.call(obj, key2, val);
|
|
249576
249576
|
}
|
|
249577
249577
|
exports.applyReviver = applyReviver;
|
|
249578
249578
|
});
|
|
@@ -249890,29 +249890,29 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249890
249890
|
if (isEmptyPath(path5))
|
|
249891
249891
|
this.add(value4);
|
|
249892
249892
|
else {
|
|
249893
|
-
const [
|
|
249894
|
-
const node = this.get(
|
|
249893
|
+
const [key2, ...rest] = path5;
|
|
249894
|
+
const node = this.get(key2, true);
|
|
249895
249895
|
if (identity2.isCollection(node))
|
|
249896
249896
|
node.addIn(rest, value4);
|
|
249897
249897
|
else if (node === undefined && this.schema)
|
|
249898
|
-
this.set(
|
|
249898
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
249899
249899
|
else
|
|
249900
|
-
throw new Error(`Expected YAML collection at ${
|
|
249900
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
249901
249901
|
}
|
|
249902
249902
|
}
|
|
249903
249903
|
deleteIn(path5) {
|
|
249904
|
-
const [
|
|
249904
|
+
const [key2, ...rest] = path5;
|
|
249905
249905
|
if (rest.length === 0)
|
|
249906
|
-
return this.delete(
|
|
249907
|
-
const node = this.get(
|
|
249906
|
+
return this.delete(key2);
|
|
249907
|
+
const node = this.get(key2, true);
|
|
249908
249908
|
if (identity2.isCollection(node))
|
|
249909
249909
|
return node.deleteIn(rest);
|
|
249910
249910
|
else
|
|
249911
|
-
throw new Error(`Expected YAML collection at ${
|
|
249911
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
249912
249912
|
}
|
|
249913
249913
|
getIn(path5, keepScalar) {
|
|
249914
|
-
const [
|
|
249915
|
-
const node = this.get(
|
|
249914
|
+
const [key2, ...rest] = path5;
|
|
249915
|
+
const node = this.get(key2, true);
|
|
249916
249916
|
if (rest.length === 0)
|
|
249917
249917
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
|
249918
249918
|
else
|
|
@@ -249927,24 +249927,24 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249927
249927
|
});
|
|
249928
249928
|
}
|
|
249929
249929
|
hasIn(path5) {
|
|
249930
|
-
const [
|
|
249930
|
+
const [key2, ...rest] = path5;
|
|
249931
249931
|
if (rest.length === 0)
|
|
249932
|
-
return this.has(
|
|
249933
|
-
const node = this.get(
|
|
249932
|
+
return this.has(key2);
|
|
249933
|
+
const node = this.get(key2, true);
|
|
249934
249934
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
|
249935
249935
|
}
|
|
249936
249936
|
setIn(path5, value4) {
|
|
249937
|
-
const [
|
|
249937
|
+
const [key2, ...rest] = path5;
|
|
249938
249938
|
if (rest.length === 0) {
|
|
249939
|
-
this.set(
|
|
249939
|
+
this.set(key2, value4);
|
|
249940
249940
|
} else {
|
|
249941
|
-
const node = this.get(
|
|
249941
|
+
const node = this.get(key2, true);
|
|
249942
249942
|
if (identity2.isCollection(node))
|
|
249943
249943
|
node.setIn(rest, value4);
|
|
249944
249944
|
else if (node === undefined && this.schema)
|
|
249945
|
-
this.set(
|
|
249945
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
249946
249946
|
else
|
|
249947
|
-
throw new Error(`Expected YAML collection at ${
|
|
249947
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
249948
249948
|
}
|
|
249949
249949
|
}
|
|
249950
249950
|
}
|
|
@@ -250532,19 +250532,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
250532
250532
|
var Scalar = require_Scalar();
|
|
250533
250533
|
var stringify3 = require_stringify();
|
|
250534
250534
|
var stringifyComment = require_stringifyComment();
|
|
250535
|
-
function stringifyPair2({ key:
|
|
250535
|
+
function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
|
|
250536
250536
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
250537
|
-
let keyComment = identity2.isNode(
|
|
250537
|
+
let keyComment = identity2.isNode(key2) && key2.comment || null;
|
|
250538
250538
|
if (simpleKeys) {
|
|
250539
250539
|
if (keyComment) {
|
|
250540
250540
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
250541
250541
|
}
|
|
250542
|
-
if (identity2.isCollection(
|
|
250542
|
+
if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
|
|
250543
250543
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
250544
250544
|
throw new Error(msg);
|
|
250545
250545
|
}
|
|
250546
250546
|
}
|
|
250547
|
-
let explicitKey = !simpleKeys && (!
|
|
250547
|
+
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
|
|
250548
250548
|
ctx = Object.assign({}, ctx, {
|
|
250549
250549
|
allNullValues: false,
|
|
250550
250550
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
@@ -250552,7 +250552,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
250552
250552
|
});
|
|
250553
250553
|
let keyCommentDone = false;
|
|
250554
250554
|
let chompKeep = false;
|
|
250555
|
-
let str = stringify3.stringify(
|
|
250555
|
+
let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
250556
250556
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
250557
250557
|
if (simpleKeys)
|
|
250558
250558
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -250696,7 +250696,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
250696
250696
|
}),
|
|
250697
250697
|
stringify: () => MERGE_KEY
|
|
250698
250698
|
};
|
|
250699
|
-
var isMergeKey = (ctx,
|
|
250699
|
+
var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
|
250700
250700
|
function addMergeToJSMap(ctx, map3, value4) {
|
|
250701
250701
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
250702
250702
|
if (identity2.isSeq(value4))
|
|
@@ -250713,14 +250713,14 @@ var require_merge = __commonJS((exports) => {
|
|
|
250713
250713
|
if (!identity2.isMap(source))
|
|
250714
250714
|
throw new Error("Merge sources must be maps or map aliases");
|
|
250715
250715
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
250716
|
-
for (const [
|
|
250716
|
+
for (const [key2, value5] of srcMap) {
|
|
250717
250717
|
if (map3 instanceof Map) {
|
|
250718
|
-
if (!map3.has(
|
|
250719
|
-
map3.set(
|
|
250718
|
+
if (!map3.has(key2))
|
|
250719
|
+
map3.set(key2, value5);
|
|
250720
250720
|
} else if (map3 instanceof Set) {
|
|
250721
|
-
map3.add(
|
|
250722
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
|
250723
|
-
Object.defineProperty(map3,
|
|
250721
|
+
map3.add(key2);
|
|
250722
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
|
|
250723
|
+
Object.defineProperty(map3, key2, {
|
|
250724
250724
|
value: value5,
|
|
250725
250725
|
writable: true,
|
|
250726
250726
|
enumerable: true,
|
|
@@ -250742,19 +250742,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250742
250742
|
var stringify3 = require_stringify();
|
|
250743
250743
|
var identity2 = require_identity();
|
|
250744
250744
|
var toJS = require_toJS();
|
|
250745
|
-
function addPairToJSMap(ctx, map3, { key:
|
|
250746
|
-
if (identity2.isNode(
|
|
250747
|
-
|
|
250748
|
-
else if (merge3.isMergeKey(ctx,
|
|
250745
|
+
function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
|
|
250746
|
+
if (identity2.isNode(key2) && key2.addToJSMap)
|
|
250747
|
+
key2.addToJSMap(ctx, map3, value4);
|
|
250748
|
+
else if (merge3.isMergeKey(ctx, key2))
|
|
250749
250749
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
|
250750
250750
|
else {
|
|
250751
|
-
const jsKey = toJS.toJS(
|
|
250751
|
+
const jsKey = toJS.toJS(key2, "", ctx);
|
|
250752
250752
|
if (map3 instanceof Map) {
|
|
250753
250753
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
|
250754
250754
|
} else if (map3 instanceof Set) {
|
|
250755
250755
|
map3.add(jsKey);
|
|
250756
250756
|
} else {
|
|
250757
|
-
const stringKey = stringifyKey(
|
|
250757
|
+
const stringKey = stringifyKey(key2, jsKey, ctx);
|
|
250758
250758
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
|
250759
250759
|
if (stringKey in map3)
|
|
250760
250760
|
Object.defineProperty(map3, stringKey, {
|
|
@@ -250769,19 +250769,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250769
250769
|
}
|
|
250770
250770
|
return map3;
|
|
250771
250771
|
}
|
|
250772
|
-
function stringifyKey(
|
|
250772
|
+
function stringifyKey(key2, jsKey, ctx) {
|
|
250773
250773
|
if (jsKey === null)
|
|
250774
250774
|
return "";
|
|
250775
250775
|
if (typeof jsKey !== "object")
|
|
250776
250776
|
return String(jsKey);
|
|
250777
|
-
if (identity2.isNode(
|
|
250777
|
+
if (identity2.isNode(key2) && ctx?.doc) {
|
|
250778
250778
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
|
250779
250779
|
strCtx.anchors = new Set;
|
|
250780
250780
|
for (const node of ctx.anchors.keys())
|
|
250781
250781
|
strCtx.anchors.add(node.anchor);
|
|
250782
250782
|
strCtx.inFlow = true;
|
|
250783
250783
|
strCtx.inStringifyKey = true;
|
|
250784
|
-
const strKey =
|
|
250784
|
+
const strKey = key2.toString(strCtx);
|
|
250785
250785
|
if (!ctx.mapKeyWarned) {
|
|
250786
250786
|
let jsonStr = JSON.stringify(strKey);
|
|
250787
250787
|
if (jsonStr.length > 40)
|
|
@@ -250802,25 +250802,25 @@ var require_Pair = __commonJS((exports) => {
|
|
|
250802
250802
|
var stringifyPair2 = require_stringifyPair();
|
|
250803
250803
|
var addPairToJSMap = require_addPairToJSMap();
|
|
250804
250804
|
var identity2 = require_identity();
|
|
250805
|
-
function createPair(
|
|
250806
|
-
const k5 = createNode.createNode(
|
|
250805
|
+
function createPair(key2, value4, ctx) {
|
|
250806
|
+
const k5 = createNode.createNode(key2, undefined, ctx);
|
|
250807
250807
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
|
250808
250808
|
return new Pair(k5, v7);
|
|
250809
250809
|
}
|
|
250810
250810
|
|
|
250811
250811
|
class Pair {
|
|
250812
|
-
constructor(
|
|
250812
|
+
constructor(key2, value4 = null) {
|
|
250813
250813
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
|
250814
|
-
this.key =
|
|
250814
|
+
this.key = key2;
|
|
250815
250815
|
this.value = value4;
|
|
250816
250816
|
}
|
|
250817
250817
|
clone(schema) {
|
|
250818
|
-
let { key:
|
|
250819
|
-
if (identity2.isNode(
|
|
250820
|
-
|
|
250818
|
+
let { key: key2, value: value4 } = this;
|
|
250819
|
+
if (identity2.isNode(key2))
|
|
250820
|
+
key2 = key2.clone(schema);
|
|
250821
250821
|
if (identity2.isNode(value4))
|
|
250822
250822
|
value4 = value4.clone(schema);
|
|
250823
|
-
return new Pair(
|
|
250823
|
+
return new Pair(key2, value4);
|
|
250824
250824
|
}
|
|
250825
250825
|
toJSON(_5, ctx) {
|
|
250826
250826
|
const pair = ctx?.mapAsMap ? new Map : {};
|
|
@@ -250987,11 +250987,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
250987
250987
|
var identity2 = require_identity();
|
|
250988
250988
|
var Pair = require_Pair();
|
|
250989
250989
|
var Scalar = require_Scalar();
|
|
250990
|
-
function findPair(items,
|
|
250991
|
-
const k5 = identity2.isScalar(
|
|
250990
|
+
function findPair(items, key2) {
|
|
250991
|
+
const k5 = identity2.isScalar(key2) ? key2.value : key2;
|
|
250992
250992
|
for (const it2 of items) {
|
|
250993
250993
|
if (identity2.isPair(it2)) {
|
|
250994
|
-
if (it2.key ===
|
|
250994
|
+
if (it2.key === key2 || it2.key === k5)
|
|
250995
250995
|
return it2;
|
|
250996
250996
|
if (identity2.isScalar(it2.key) && it2.key.value === k5)
|
|
250997
250997
|
return it2;
|
|
@@ -251011,20 +251011,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251011
251011
|
static from(schema, obj, ctx) {
|
|
251012
251012
|
const { keepUndefined, replacer } = ctx;
|
|
251013
251013
|
const map3 = new this(schema);
|
|
251014
|
-
const add = (
|
|
251014
|
+
const add = (key2, value4) => {
|
|
251015
251015
|
if (typeof replacer === "function")
|
|
251016
|
-
value4 = replacer.call(obj,
|
|
251017
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
|
251016
|
+
value4 = replacer.call(obj, key2, value4);
|
|
251017
|
+
else if (Array.isArray(replacer) && !replacer.includes(key2))
|
|
251018
251018
|
return;
|
|
251019
251019
|
if (value4 !== undefined || keepUndefined)
|
|
251020
|
-
map3.items.push(Pair.createPair(
|
|
251020
|
+
map3.items.push(Pair.createPair(key2, value4, ctx));
|
|
251021
251021
|
};
|
|
251022
251022
|
if (obj instanceof Map) {
|
|
251023
|
-
for (const [
|
|
251024
|
-
add(
|
|
251023
|
+
for (const [key2, value4] of obj)
|
|
251024
|
+
add(key2, value4);
|
|
251025
251025
|
} else if (obj && typeof obj === "object") {
|
|
251026
|
-
for (const
|
|
251027
|
-
add(
|
|
251026
|
+
for (const key2 of Object.keys(obj))
|
|
251027
|
+
add(key2, obj[key2]);
|
|
251028
251028
|
}
|
|
251029
251029
|
if (typeof schema.sortMapEntries === "function") {
|
|
251030
251030
|
map3.items.sort(schema.sortMapEntries);
|
|
@@ -251058,23 +251058,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251058
251058
|
this.items.push(_pair);
|
|
251059
251059
|
}
|
|
251060
251060
|
}
|
|
251061
|
-
delete(
|
|
251062
|
-
const it2 = findPair(this.items,
|
|
251061
|
+
delete(key2) {
|
|
251062
|
+
const it2 = findPair(this.items, key2);
|
|
251063
251063
|
if (!it2)
|
|
251064
251064
|
return false;
|
|
251065
251065
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
|
251066
251066
|
return del.length > 0;
|
|
251067
251067
|
}
|
|
251068
|
-
get(
|
|
251069
|
-
const it2 = findPair(this.items,
|
|
251068
|
+
get(key2, keepScalar) {
|
|
251069
|
+
const it2 = findPair(this.items, key2);
|
|
251070
251070
|
const node = it2?.value;
|
|
251071
251071
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
|
251072
251072
|
}
|
|
251073
|
-
has(
|
|
251074
|
-
return !!findPair(this.items,
|
|
251073
|
+
has(key2) {
|
|
251074
|
+
return !!findPair(this.items, key2);
|
|
251075
251075
|
}
|
|
251076
|
-
set(
|
|
251077
|
-
this.add(new Pair.Pair(
|
|
251076
|
+
set(key2, value4) {
|
|
251077
|
+
this.add(new Pair.Pair(key2, value4), true);
|
|
251078
251078
|
}
|
|
251079
251079
|
toJSON(_5, ctx, Type) {
|
|
251080
251080
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
|
@@ -251145,28 +251145,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251145
251145
|
add(value4) {
|
|
251146
251146
|
this.items.push(value4);
|
|
251147
251147
|
}
|
|
251148
|
-
delete(
|
|
251149
|
-
const idx = asItemIndex(
|
|
251148
|
+
delete(key2) {
|
|
251149
|
+
const idx = asItemIndex(key2);
|
|
251150
251150
|
if (typeof idx !== "number")
|
|
251151
251151
|
return false;
|
|
251152
251152
|
const del = this.items.splice(idx, 1);
|
|
251153
251153
|
return del.length > 0;
|
|
251154
251154
|
}
|
|
251155
|
-
get(
|
|
251156
|
-
const idx = asItemIndex(
|
|
251155
|
+
get(key2, keepScalar) {
|
|
251156
|
+
const idx = asItemIndex(key2);
|
|
251157
251157
|
if (typeof idx !== "number")
|
|
251158
251158
|
return;
|
|
251159
251159
|
const it2 = this.items[idx];
|
|
251160
251160
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
|
251161
251161
|
}
|
|
251162
|
-
has(
|
|
251163
|
-
const idx = asItemIndex(
|
|
251162
|
+
has(key2) {
|
|
251163
|
+
const idx = asItemIndex(key2);
|
|
251164
251164
|
return typeof idx === "number" && idx < this.items.length;
|
|
251165
251165
|
}
|
|
251166
|
-
set(
|
|
251167
|
-
const idx = asItemIndex(
|
|
251166
|
+
set(key2, value4) {
|
|
251167
|
+
const idx = asItemIndex(key2);
|
|
251168
251168
|
if (typeof idx !== "number")
|
|
251169
|
-
throw new Error(`Expected a valid index, not ${
|
|
251169
|
+
throw new Error(`Expected a valid index, not ${key2}.`);
|
|
251170
251170
|
const prev = this.items[idx];
|
|
251171
251171
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
|
251172
251172
|
prev.value = value4;
|
|
@@ -251200,8 +251200,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251200
251200
|
let i6 = 0;
|
|
251201
251201
|
for (let it2 of obj) {
|
|
251202
251202
|
if (typeof replacer === "function") {
|
|
251203
|
-
const
|
|
251204
|
-
it2 = replacer.call(obj,
|
|
251203
|
+
const key2 = obj instanceof Set ? it2 : String(i6++);
|
|
251204
|
+
it2 = replacer.call(obj, key2, it2);
|
|
251205
251205
|
}
|
|
251206
251206
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
|
251207
251207
|
}
|
|
@@ -251209,8 +251209,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251209
251209
|
return seq;
|
|
251210
251210
|
}
|
|
251211
251211
|
}
|
|
251212
|
-
function asItemIndex(
|
|
251213
|
-
let idx = identity2.isScalar(
|
|
251212
|
+
function asItemIndex(key2) {
|
|
251213
|
+
let idx = identity2.isScalar(key2) ? key2.value : key2;
|
|
251214
251214
|
if (idx && typeof idx === "string")
|
|
251215
251215
|
idx = Number(idx);
|
|
251216
251216
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
@@ -251582,25 +251582,25 @@ ${cn.comment}` : item.comment;
|
|
|
251582
251582
|
for (let it2 of iterable) {
|
|
251583
251583
|
if (typeof replacer === "function")
|
|
251584
251584
|
it2 = replacer.call(iterable, String(i6++), it2);
|
|
251585
|
-
let
|
|
251585
|
+
let key2, value4;
|
|
251586
251586
|
if (Array.isArray(it2)) {
|
|
251587
251587
|
if (it2.length === 2) {
|
|
251588
|
-
|
|
251588
|
+
key2 = it2[0];
|
|
251589
251589
|
value4 = it2[1];
|
|
251590
251590
|
} else
|
|
251591
251591
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
|
251592
251592
|
} else if (it2 && it2 instanceof Object) {
|
|
251593
251593
|
const keys = Object.keys(it2);
|
|
251594
251594
|
if (keys.length === 1) {
|
|
251595
|
-
|
|
251596
|
-
value4 = it2[
|
|
251595
|
+
key2 = keys[0];
|
|
251596
|
+
value4 = it2[key2];
|
|
251597
251597
|
} else {
|
|
251598
251598
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
251599
251599
|
}
|
|
251600
251600
|
} else {
|
|
251601
|
-
|
|
251601
|
+
key2 = it2;
|
|
251602
251602
|
}
|
|
251603
|
-
pairs2.items.push(Pair.createPair(
|
|
251603
|
+
pairs2.items.push(Pair.createPair(key2, value4, ctx));
|
|
251604
251604
|
}
|
|
251605
251605
|
return pairs2;
|
|
251606
251606
|
}
|
|
@@ -251641,16 +251641,16 @@ var require_omap = __commonJS((exports) => {
|
|
|
251641
251641
|
if (ctx?.onCreate)
|
|
251642
251642
|
ctx.onCreate(map3);
|
|
251643
251643
|
for (const pair of this.items) {
|
|
251644
|
-
let
|
|
251644
|
+
let key2, value4;
|
|
251645
251645
|
if (identity2.isPair(pair)) {
|
|
251646
|
-
|
|
251647
|
-
value4 = toJS.toJS(pair.value,
|
|
251646
|
+
key2 = toJS.toJS(pair.key, "", ctx);
|
|
251647
|
+
value4 = toJS.toJS(pair.value, key2, ctx);
|
|
251648
251648
|
} else {
|
|
251649
|
-
|
|
251649
|
+
key2 = toJS.toJS(pair, "", ctx);
|
|
251650
251650
|
}
|
|
251651
|
-
if (map3.has(
|
|
251651
|
+
if (map3.has(key2))
|
|
251652
251652
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
251653
|
-
map3.set(
|
|
251653
|
+
map3.set(key2, value4);
|
|
251654
251654
|
}
|
|
251655
251655
|
return map3;
|
|
251656
251656
|
}
|
|
@@ -251671,12 +251671,12 @@ var require_omap = __commonJS((exports) => {
|
|
|
251671
251671
|
resolve(seq, onError) {
|
|
251672
251672
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
251673
251673
|
const seenKeys = [];
|
|
251674
|
-
for (const { key:
|
|
251675
|
-
if (identity2.isScalar(
|
|
251676
|
-
if (seenKeys.includes(
|
|
251677
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
|
251674
|
+
for (const { key: key2 } of pairs$1.items) {
|
|
251675
|
+
if (identity2.isScalar(key2)) {
|
|
251676
|
+
if (seenKeys.includes(key2.value)) {
|
|
251677
|
+
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
|
251678
251678
|
} else {
|
|
251679
|
-
seenKeys.push(
|
|
251679
|
+
seenKeys.push(key2.value);
|
|
251680
251680
|
}
|
|
251681
251681
|
}
|
|
251682
251682
|
}
|
|
@@ -251850,30 +251850,30 @@ var require_set = __commonJS((exports) => {
|
|
|
251850
251850
|
super(schema);
|
|
251851
251851
|
this.tag = YAMLSet.tag;
|
|
251852
251852
|
}
|
|
251853
|
-
add(
|
|
251853
|
+
add(key2) {
|
|
251854
251854
|
let pair;
|
|
251855
|
-
if (identity2.isPair(
|
|
251856
|
-
pair =
|
|
251857
|
-
else if (
|
|
251858
|
-
pair = new Pair.Pair(
|
|
251855
|
+
if (identity2.isPair(key2))
|
|
251856
|
+
pair = key2;
|
|
251857
|
+
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
|
251858
|
+
pair = new Pair.Pair(key2.key, null);
|
|
251859
251859
|
else
|
|
251860
|
-
pair = new Pair.Pair(
|
|
251860
|
+
pair = new Pair.Pair(key2, null);
|
|
251861
251861
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
|
251862
251862
|
if (!prev)
|
|
251863
251863
|
this.items.push(pair);
|
|
251864
251864
|
}
|
|
251865
|
-
get(
|
|
251866
|
-
const pair = YAMLMap.findPair(this.items,
|
|
251865
|
+
get(key2, keepPair) {
|
|
251866
|
+
const pair = YAMLMap.findPair(this.items, key2);
|
|
251867
251867
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
|
251868
251868
|
}
|
|
251869
|
-
set(
|
|
251869
|
+
set(key2, value4) {
|
|
251870
251870
|
if (typeof value4 !== "boolean")
|
|
251871
251871
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
|
251872
|
-
const prev = YAMLMap.findPair(this.items,
|
|
251872
|
+
const prev = YAMLMap.findPair(this.items, key2);
|
|
251873
251873
|
if (prev && !value4) {
|
|
251874
251874
|
this.items.splice(this.items.indexOf(prev), 1);
|
|
251875
251875
|
} else if (!prev && value4) {
|
|
251876
|
-
this.items.push(new Pair.Pair(
|
|
251876
|
+
this.items.push(new Pair.Pair(key2));
|
|
251877
251877
|
}
|
|
251878
251878
|
}
|
|
251879
251879
|
toJSON(_5, ctx) {
|
|
@@ -252108,7 +252108,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252108
252108
|
if (Array.isArray(customTags))
|
|
252109
252109
|
tags = [];
|
|
252110
252110
|
else {
|
|
252111
|
-
const keys = Array.from(schemas.keys()).filter((
|
|
252111
|
+
const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
|
|
252112
252112
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
|
252113
252113
|
}
|
|
252114
252114
|
}
|
|
@@ -252124,7 +252124,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252124
252124
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
252125
252125
|
if (!tagObj) {
|
|
252126
252126
|
const tagName = JSON.stringify(tag);
|
|
252127
|
-
const keys = Object.keys(tagsByName).map((
|
|
252127
|
+
const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
|
|
252128
252128
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
|
252129
252129
|
}
|
|
252130
252130
|
if (!tags2.includes(tagObj))
|
|
@@ -252359,13 +252359,13 @@ var require_Document = __commonJS((exports) => {
|
|
|
252359
252359
|
setAnchors();
|
|
252360
252360
|
return node;
|
|
252361
252361
|
}
|
|
252362
|
-
createPair(
|
|
252363
|
-
const k5 = this.createNode(
|
|
252362
|
+
createPair(key2, value4, options = {}) {
|
|
252363
|
+
const k5 = this.createNode(key2, null, options);
|
|
252364
252364
|
const v7 = this.createNode(value4, null, options);
|
|
252365
252365
|
return new Pair.Pair(k5, v7);
|
|
252366
252366
|
}
|
|
252367
|
-
delete(
|
|
252368
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
|
252367
|
+
delete(key2) {
|
|
252368
|
+
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
|
252369
252369
|
}
|
|
252370
252370
|
deleteIn(path5) {
|
|
252371
252371
|
if (Collection.isEmptyPath(path5)) {
|
|
@@ -252376,27 +252376,27 @@ var require_Document = __commonJS((exports) => {
|
|
|
252376
252376
|
}
|
|
252377
252377
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
|
252378
252378
|
}
|
|
252379
|
-
get(
|
|
252380
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
|
252379
|
+
get(key2, keepScalar) {
|
|
252380
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
|
252381
252381
|
}
|
|
252382
252382
|
getIn(path5, keepScalar) {
|
|
252383
252383
|
if (Collection.isEmptyPath(path5))
|
|
252384
252384
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
252385
252385
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
|
252386
252386
|
}
|
|
252387
|
-
has(
|
|
252388
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
|
252387
|
+
has(key2) {
|
|
252388
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
|
|
252389
252389
|
}
|
|
252390
252390
|
hasIn(path5) {
|
|
252391
252391
|
if (Collection.isEmptyPath(path5))
|
|
252392
252392
|
return this.contents !== undefined;
|
|
252393
252393
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
|
252394
252394
|
}
|
|
252395
|
-
set(
|
|
252395
|
+
set(key2, value4) {
|
|
252396
252396
|
if (this.contents == null) {
|
|
252397
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
|
252397
|
+
this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
|
|
252398
252398
|
} else if (assertCollection(this.contents)) {
|
|
252399
|
-
this.contents.set(
|
|
252399
|
+
this.contents.set(key2, value4);
|
|
252400
252400
|
}
|
|
252401
252401
|
}
|
|
252402
252402
|
setIn(path5, value4) {
|
|
@@ -252680,25 +252680,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
252680
252680
|
|
|
252681
252681
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
252682
252682
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
252683
|
-
function containsNewline(
|
|
252684
|
-
if (!
|
|
252683
|
+
function containsNewline(key2) {
|
|
252684
|
+
if (!key2)
|
|
252685
252685
|
return null;
|
|
252686
|
-
switch (
|
|
252686
|
+
switch (key2.type) {
|
|
252687
252687
|
case "alias":
|
|
252688
252688
|
case "scalar":
|
|
252689
252689
|
case "double-quoted-scalar":
|
|
252690
252690
|
case "single-quoted-scalar":
|
|
252691
|
-
if (
|
|
252691
|
+
if (key2.source.includes(`
|
|
252692
252692
|
`))
|
|
252693
252693
|
return true;
|
|
252694
|
-
if (
|
|
252695
|
-
for (const st2 of
|
|
252694
|
+
if (key2.end) {
|
|
252695
|
+
for (const st2 of key2.end)
|
|
252696
252696
|
if (st2.type === "newline")
|
|
252697
252697
|
return true;
|
|
252698
252698
|
}
|
|
252699
252699
|
return false;
|
|
252700
252700
|
case "flow-collection":
|
|
252701
|
-
for (const it2 of
|
|
252701
|
+
for (const it2 of key2.items) {
|
|
252702
252702
|
for (const st2 of it2.start)
|
|
252703
252703
|
if (st2.type === "newline")
|
|
252704
252704
|
return true;
|
|
@@ -252763,10 +252763,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252763
252763
|
let offset = bm.offset;
|
|
252764
252764
|
let commentEnd = null;
|
|
252765
252765
|
for (const collItem of bm.items) {
|
|
252766
|
-
const { start: start3, key:
|
|
252766
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
|
252767
252767
|
const keyProps = resolveProps.resolveProps(start3, {
|
|
252768
252768
|
indicator: "explicit-key-ind",
|
|
252769
|
-
next:
|
|
252769
|
+
next: key2 ?? sep3?.[0],
|
|
252770
252770
|
offset,
|
|
252771
252771
|
onError,
|
|
252772
252772
|
parentIndent: bm.indent,
|
|
@@ -252774,10 +252774,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252774
252774
|
});
|
|
252775
252775
|
const implicitKey = !keyProps.found;
|
|
252776
252776
|
if (implicitKey) {
|
|
252777
|
-
if (
|
|
252778
|
-
if (
|
|
252777
|
+
if (key2) {
|
|
252778
|
+
if (key2.type === "block-seq")
|
|
252779
252779
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
|
252780
|
-
else if ("indent" in
|
|
252780
|
+
else if ("indent" in key2 && key2.indent !== bm.indent)
|
|
252781
252781
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
252782
252782
|
}
|
|
252783
252783
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
|
@@ -252791,17 +252791,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252791
252791
|
}
|
|
252792
252792
|
continue;
|
|
252793
252793
|
}
|
|
252794
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
|
252795
|
-
onError(
|
|
252794
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
|
|
252795
|
+
onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
252796
252796
|
}
|
|
252797
252797
|
} else if (keyProps.found?.indent !== bm.indent) {
|
|
252798
252798
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
252799
252799
|
}
|
|
252800
252800
|
ctx.atKey = true;
|
|
252801
252801
|
const keyStart = keyProps.end;
|
|
252802
|
-
const keyNode =
|
|
252802
|
+
const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
|
252803
252803
|
if (ctx.schema.compat)
|
|
252804
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
|
252804
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
|
|
252805
252805
|
ctx.atKey = false;
|
|
252806
252806
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
|
252807
252807
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
@@ -252811,7 +252811,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252811
252811
|
offset: keyNode.range[2],
|
|
252812
252812
|
onError,
|
|
252813
252813
|
parentIndent: bm.indent,
|
|
252814
|
-
startOnNewline: !
|
|
252814
|
+
startOnNewline: !key2 || key2.type === "block-scalar"
|
|
252815
252815
|
});
|
|
252816
252816
|
offset = valueProps.end;
|
|
252817
252817
|
if (valueProps.found) {
|
|
@@ -252967,11 +252967,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
252967
252967
|
let offset = fc.offset + fc.start.source.length;
|
|
252968
252968
|
for (let i6 = 0;i6 < fc.items.length; ++i6) {
|
|
252969
252969
|
const collItem = fc.items[i6];
|
|
252970
|
-
const { start: start3, key:
|
|
252970
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
|
252971
252971
|
const props = resolveProps.resolveProps(start3, {
|
|
252972
252972
|
flow: fcName,
|
|
252973
252973
|
indicator: "explicit-key-ind",
|
|
252974
|
-
next:
|
|
252974
|
+
next: key2 ?? sep3?.[0],
|
|
252975
252975
|
offset,
|
|
252976
252976
|
onError,
|
|
252977
252977
|
parentIndent: fc.indent,
|
|
@@ -252993,8 +252993,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
252993
252993
|
offset = props.end;
|
|
252994
252994
|
continue;
|
|
252995
252995
|
}
|
|
252996
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
|
252997
|
-
onError(
|
|
252996
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
|
|
252997
|
+
onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
252998
252998
|
}
|
|
252999
252999
|
if (i6 === 0) {
|
|
253000
253000
|
if (props.comma)
|
|
@@ -253039,8 +253039,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253039
253039
|
} else {
|
|
253040
253040
|
ctx.atKey = true;
|
|
253041
253041
|
const keyStart = props.end;
|
|
253042
|
-
const keyNode =
|
|
253043
|
-
if (isBlock(
|
|
253042
|
+
const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
|
253043
|
+
if (isBlock(key2))
|
|
253044
253044
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
253045
253045
|
ctx.atKey = false;
|
|
253046
253046
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
|
@@ -253852,7 +253852,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
253852
253852
|
var node_process = __require("node:process");
|
|
253853
253853
|
var directives4 = require_directives2();
|
|
253854
253854
|
var Document = require_Document();
|
|
253855
|
-
var
|
|
253855
|
+
var errors2 = require_errors3();
|
|
253856
253856
|
var identity2 = require_identity();
|
|
253857
253857
|
var composeDoc = require_compose_doc();
|
|
253858
253858
|
var resolveEnd = require_resolve_end();
|
|
@@ -253903,9 +253903,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
253903
253903
|
this.onError = (source, code2, message, warning) => {
|
|
253904
253904
|
const pos = getErrorPos(source);
|
|
253905
253905
|
if (warning)
|
|
253906
|
-
this.warnings.push(new
|
|
253906
|
+
this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
|
|
253907
253907
|
else
|
|
253908
|
-
this.errors.push(new
|
|
253908
|
+
this.errors.push(new errors2.YAMLParseError(pos, code2, message));
|
|
253909
253909
|
};
|
|
253910
253910
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
|
253911
253911
|
this.options = options;
|
|
@@ -253989,7 +253989,7 @@ ${cb}` : comment;
|
|
|
253989
253989
|
break;
|
|
253990
253990
|
case "error": {
|
|
253991
253991
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
253992
|
-
const error5 = new
|
|
253992
|
+
const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
253993
253993
|
if (this.atDirectives || !this.doc)
|
|
253994
253994
|
this.errors.push(error5);
|
|
253995
253995
|
else
|
|
@@ -253999,7 +253999,7 @@ ${cb}` : comment;
|
|
|
253999
253999
|
case "doc-end": {
|
|
254000
254000
|
if (!this.doc) {
|
|
254001
254001
|
const msg = "Unexpected doc-end without preceding document";
|
|
254002
|
-
this.errors.push(new
|
|
254002
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
254003
254003
|
break;
|
|
254004
254004
|
}
|
|
254005
254005
|
this.doc.directives.docEnd = true;
|
|
@@ -254014,7 +254014,7 @@ ${end.comment}` : end.comment;
|
|
|
254014
254014
|
break;
|
|
254015
254015
|
}
|
|
254016
254016
|
default:
|
|
254017
|
-
this.errors.push(new
|
|
254017
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
254018
254018
|
}
|
|
254019
254019
|
}
|
|
254020
254020
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -254040,7 +254040,7 @@ ${end.comment}` : end.comment;
|
|
|
254040
254040
|
var require_cst_scalar = __commonJS((exports) => {
|
|
254041
254041
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
254042
254042
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
254043
|
-
var
|
|
254043
|
+
var errors2 = require_errors3();
|
|
254044
254044
|
var stringifyString = require_stringifyString();
|
|
254045
254045
|
function resolveAsScalar(token, strict = true, onError) {
|
|
254046
254046
|
if (token) {
|
|
@@ -254049,7 +254049,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254049
254049
|
if (onError)
|
|
254050
254050
|
onError(offset, code2, message);
|
|
254051
254051
|
else
|
|
254052
|
-
throw new
|
|
254052
|
+
throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
|
|
254053
254053
|
};
|
|
254054
254054
|
switch (token.type) {
|
|
254055
254055
|
case "scalar":
|
|
@@ -254163,9 +254163,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254163
254163
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
|
254164
254164
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
|
254165
254165
|
` });
|
|
254166
|
-
for (const
|
|
254167
|
-
if (
|
|
254168
|
-
delete token[
|
|
254166
|
+
for (const key2 of Object.keys(token))
|
|
254167
|
+
if (key2 !== "type" && key2 !== "offset")
|
|
254168
|
+
delete token[key2];
|
|
254169
254169
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
|
254170
254170
|
}
|
|
254171
254171
|
}
|
|
@@ -254214,9 +254214,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254214
254214
|
default: {
|
|
254215
254215
|
const indent2 = "indent" in token ? token.indent : -1;
|
|
254216
254216
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
|
254217
|
-
for (const
|
|
254218
|
-
if (
|
|
254219
|
-
delete token[
|
|
254217
|
+
for (const key2 of Object.keys(token))
|
|
254218
|
+
if (key2 !== "type" && key2 !== "offset")
|
|
254219
|
+
delete token[key2];
|
|
254220
254220
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
|
254221
254221
|
}
|
|
254222
254222
|
}
|
|
@@ -254268,12 +254268,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
254268
254268
|
}
|
|
254269
254269
|
}
|
|
254270
254270
|
}
|
|
254271
|
-
function stringifyItem({ start: start3, key:
|
|
254271
|
+
function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
|
|
254272
254272
|
let res = "";
|
|
254273
254273
|
for (const st2 of start3)
|
|
254274
254274
|
res += st2.source;
|
|
254275
|
-
if (
|
|
254276
|
-
res += stringifyToken(
|
|
254275
|
+
if (key2)
|
|
254276
|
+
res += stringifyToken(key2);
|
|
254277
254277
|
if (sep3)
|
|
254278
254278
|
for (const st2 of sep3)
|
|
254279
254279
|
res += st2.source;
|
|
@@ -255570,7 +255570,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255570
255570
|
});
|
|
255571
255571
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
|
255572
255572
|
const start4 = getFirstKeyStartProps(it2.start);
|
|
255573
|
-
const
|
|
255573
|
+
const key2 = it2.key;
|
|
255574
255574
|
const sep3 = it2.sep;
|
|
255575
255575
|
sep3.push(this.sourceToken);
|
|
255576
255576
|
delete it2.key;
|
|
@@ -255579,7 +255579,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255579
255579
|
type: "block-map",
|
|
255580
255580
|
offset: this.offset,
|
|
255581
255581
|
indent: this.indent,
|
|
255582
|
-
items: [{ start: start4, key:
|
|
255582
|
+
items: [{ start: start4, key: key2, sep: sep3 }]
|
|
255583
255583
|
});
|
|
255584
255584
|
} else if (start3.length > 0) {
|
|
255585
255585
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
|
@@ -255902,7 +255902,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255902
255902
|
var require_public_api = __commonJS((exports) => {
|
|
255903
255903
|
var composer = require_composer();
|
|
255904
255904
|
var Document = require_Document();
|
|
255905
|
-
var
|
|
255905
|
+
var errors2 = require_errors3();
|
|
255906
255906
|
var log = require_log();
|
|
255907
255907
|
var identity2 = require_identity();
|
|
255908
255908
|
var lineCounter = require_line_counter();
|
|
@@ -255919,8 +255919,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255919
255919
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
255920
255920
|
if (prettyErrors && lineCounter2)
|
|
255921
255921
|
for (const doc of docs) {
|
|
255922
|
-
doc.errors.forEach(
|
|
255923
|
-
doc.warnings.forEach(
|
|
255922
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
|
255923
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
|
255924
255924
|
}
|
|
255925
255925
|
if (docs.length > 0)
|
|
255926
255926
|
return docs;
|
|
@@ -255935,13 +255935,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255935
255935
|
if (!doc)
|
|
255936
255936
|
doc = _doc;
|
|
255937
255937
|
else if (doc.options.logLevel !== "silent") {
|
|
255938
|
-
doc.errors.push(new
|
|
255938
|
+
doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
255939
255939
|
break;
|
|
255940
255940
|
}
|
|
255941
255941
|
}
|
|
255942
255942
|
if (prettyErrors && lineCounter2) {
|
|
255943
|
-
doc.errors.forEach(
|
|
255944
|
-
doc.warnings.forEach(
|
|
255943
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
|
255944
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
|
255945
255945
|
}
|
|
255946
255946
|
return doc;
|
|
255947
255947
|
}
|
|
@@ -267029,7 +267029,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267029
267029
|
var package_default = {
|
|
267030
267030
|
name: "@settlemint/sdk-cli",
|
|
267031
267031
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267032
|
-
version: "1.1.1-
|
|
267032
|
+
version: "1.1.1-prc7f21dc7",
|
|
267033
267033
|
type: "module",
|
|
267034
267034
|
private: false,
|
|
267035
267035
|
license: "FSL-1.1-MIT",
|
|
@@ -267073,12 +267073,12 @@ var package_default = {
|
|
|
267073
267073
|
},
|
|
267074
267074
|
devDependencies: {
|
|
267075
267075
|
"@commander-js/extra-typings": "13.1.0",
|
|
267076
|
-
"@inquirer/confirm": "5.1.
|
|
267077
|
-
"@inquirer/input": "4.1.
|
|
267076
|
+
"@inquirer/confirm": "5.1.4",
|
|
267077
|
+
"@inquirer/input": "4.1.4",
|
|
267078
267078
|
"@inquirer/password": "4.0.7",
|
|
267079
|
-
"@inquirer/select": "4.0.
|
|
267080
|
-
"@settlemint/sdk-js": "1.1.1-
|
|
267081
|
-
"@settlemint/sdk-utils": "1.1.1-
|
|
267079
|
+
"@inquirer/select": "4.0.7",
|
|
267080
|
+
"@settlemint/sdk-js": "1.1.1-prc7f21dc7",
|
|
267081
|
+
"@settlemint/sdk-utils": "1.1.1-prc7f21dc7",
|
|
267082
267082
|
"@types/node": "22.12.0",
|
|
267083
267083
|
"@types/semver": "7.5.8",
|
|
267084
267084
|
"@types/which": "3.0.4",
|
|
@@ -272067,8 +272067,8 @@ var {
|
|
|
272067
272067
|
} = signalExitWrap(processOk2(process7) ? new SignalExit2(process7) : new SignalExitFallback2);
|
|
272068
272068
|
|
|
272069
272069
|
// ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
272070
|
-
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
272071
272070
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
272071
|
+
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
|
272072
272072
|
var height = (content) => content.split(`
|
|
272073
272073
|
`).length;
|
|
272074
272074
|
var lastLine = (content) => content.split(`
|
|
@@ -272094,7 +272094,7 @@ class ScreenManager {
|
|
|
272094
272094
|
}
|
|
272095
272095
|
render(content, bottomContent = "") {
|
|
272096
272096
|
const promptLine = lastLine(content);
|
|
272097
|
-
const rawPromptLine =
|
|
272097
|
+
const rawPromptLine = stripVTControlCharacters2(promptLine);
|
|
272098
272098
|
let prompt = rawPromptLine;
|
|
272099
272099
|
if (this.rl.line.length > 0) {
|
|
272100
272100
|
prompt = prompt.slice(0, -this.rl.line.length);
|
|
@@ -272815,762 +272815,20 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
272815
272815
|
];
|
|
272816
272816
|
});
|
|
272817
272817
|
|
|
272818
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
272819
|
-
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
|
272820
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
272821
|
-
class AbortPromptError2 extends Error {
|
|
272822
|
-
name = "AbortPromptError";
|
|
272823
|
-
message = "Prompt was aborted";
|
|
272824
|
-
constructor(options) {
|
|
272825
|
-
super();
|
|
272826
|
-
this.cause = options?.cause;
|
|
272827
|
-
}
|
|
272828
|
-
}
|
|
272829
|
-
|
|
272830
|
-
class CancelPromptError2 extends Error {
|
|
272831
|
-
name = "CancelPromptError";
|
|
272832
|
-
message = "Prompt was canceled";
|
|
272833
|
-
}
|
|
272834
|
-
|
|
272835
|
-
class ExitPromptError2 extends Error {
|
|
272836
|
-
name = "ExitPromptError";
|
|
272837
|
-
}
|
|
272838
|
-
|
|
272839
|
-
class HookError2 extends Error {
|
|
272840
|
-
name = "HookError";
|
|
272841
|
-
}
|
|
272842
|
-
|
|
272843
|
-
class ValidationError2 extends Error {
|
|
272844
|
-
name = "ValidationError";
|
|
272845
|
-
}
|
|
272846
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
272847
|
-
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
272848
|
-
|
|
272849
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
272850
|
-
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
272851
|
-
var hookStorage2 = new AsyncLocalStorage2;
|
|
272852
|
-
function createStore2(rl) {
|
|
272853
|
-
const store = {
|
|
272854
|
-
rl,
|
|
272855
|
-
hooks: [],
|
|
272856
|
-
hooksCleanup: [],
|
|
272857
|
-
hooksEffect: [],
|
|
272858
|
-
index: 0,
|
|
272859
|
-
handleChange() {
|
|
272860
|
-
}
|
|
272861
|
-
};
|
|
272862
|
-
return store;
|
|
272863
|
-
}
|
|
272864
|
-
function withHooks2(rl, cb) {
|
|
272865
|
-
const store = createStore2(rl);
|
|
272866
|
-
return hookStorage2.run(store, () => {
|
|
272867
|
-
function cycle(render) {
|
|
272868
|
-
store.handleChange = () => {
|
|
272869
|
-
store.index = 0;
|
|
272870
|
-
render();
|
|
272871
|
-
};
|
|
272872
|
-
store.handleChange();
|
|
272873
|
-
}
|
|
272874
|
-
return cb(cycle);
|
|
272875
|
-
});
|
|
272876
|
-
}
|
|
272877
|
-
function getStore2() {
|
|
272878
|
-
const store = hookStorage2.getStore();
|
|
272879
|
-
if (!store) {
|
|
272880
|
-
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
|
272881
|
-
}
|
|
272882
|
-
return store;
|
|
272883
|
-
}
|
|
272884
|
-
function readline3() {
|
|
272885
|
-
return getStore2().rl;
|
|
272886
|
-
}
|
|
272887
|
-
function withUpdates2(fn) {
|
|
272888
|
-
const wrapped = (...args) => {
|
|
272889
|
-
const store = getStore2();
|
|
272890
|
-
let shouldUpdate = false;
|
|
272891
|
-
const oldHandleChange = store.handleChange;
|
|
272892
|
-
store.handleChange = () => {
|
|
272893
|
-
shouldUpdate = true;
|
|
272894
|
-
};
|
|
272895
|
-
const returnValue = fn(...args);
|
|
272896
|
-
if (shouldUpdate) {
|
|
272897
|
-
oldHandleChange();
|
|
272898
|
-
}
|
|
272899
|
-
store.handleChange = oldHandleChange;
|
|
272900
|
-
return returnValue;
|
|
272901
|
-
};
|
|
272902
|
-
return AsyncResource4.bind(wrapped);
|
|
272903
|
-
}
|
|
272904
|
-
function withPointer2(cb) {
|
|
272905
|
-
const store = getStore2();
|
|
272906
|
-
const { index } = store;
|
|
272907
|
-
const pointer = {
|
|
272908
|
-
get() {
|
|
272909
|
-
return store.hooks[index];
|
|
272910
|
-
},
|
|
272911
|
-
set(value4) {
|
|
272912
|
-
store.hooks[index] = value4;
|
|
272913
|
-
},
|
|
272914
|
-
initialized: index in store.hooks
|
|
272915
|
-
};
|
|
272916
|
-
const returnValue = cb(pointer);
|
|
272917
|
-
store.index++;
|
|
272918
|
-
return returnValue;
|
|
272919
|
-
}
|
|
272920
|
-
function handleChange2() {
|
|
272921
|
-
getStore2().handleChange();
|
|
272922
|
-
}
|
|
272923
|
-
var effectScheduler2 = {
|
|
272924
|
-
queue(cb) {
|
|
272925
|
-
const store = getStore2();
|
|
272926
|
-
const { index } = store;
|
|
272927
|
-
store.hooksEffect.push(() => {
|
|
272928
|
-
store.hooksCleanup[index]?.();
|
|
272929
|
-
const cleanFn = cb(readline3());
|
|
272930
|
-
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
272931
|
-
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
|
272932
|
-
}
|
|
272933
|
-
store.hooksCleanup[index] = cleanFn;
|
|
272934
|
-
});
|
|
272935
|
-
},
|
|
272936
|
-
run() {
|
|
272937
|
-
const store = getStore2();
|
|
272938
|
-
withUpdates2(() => {
|
|
272939
|
-
store.hooksEffect.forEach((effect) => {
|
|
272940
|
-
effect();
|
|
272941
|
-
});
|
|
272942
|
-
store.hooksEffect.length = 0;
|
|
272943
|
-
})();
|
|
272944
|
-
},
|
|
272945
|
-
clearAll() {
|
|
272946
|
-
const store = getStore2();
|
|
272947
|
-
store.hooksCleanup.forEach((cleanFn) => {
|
|
272948
|
-
cleanFn?.();
|
|
272949
|
-
});
|
|
272950
|
-
store.hooksEffect.length = 0;
|
|
272951
|
-
store.hooksCleanup.length = 0;
|
|
272952
|
-
}
|
|
272953
|
-
};
|
|
272954
|
-
|
|
272955
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
272956
|
-
function useState2(defaultValue) {
|
|
272957
|
-
return withPointer2((pointer) => {
|
|
272958
|
-
const setFn = (newValue) => {
|
|
272959
|
-
if (pointer.get() !== newValue) {
|
|
272960
|
-
pointer.set(newValue);
|
|
272961
|
-
handleChange2();
|
|
272962
|
-
}
|
|
272963
|
-
};
|
|
272964
|
-
if (pointer.initialized) {
|
|
272965
|
-
return [pointer.get(), setFn];
|
|
272966
|
-
}
|
|
272967
|
-
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
272968
|
-
pointer.set(value4);
|
|
272969
|
-
return [value4, setFn];
|
|
272970
|
-
});
|
|
272971
|
-
}
|
|
272972
|
-
|
|
272973
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
272974
|
-
function useEffect2(cb, depArray) {
|
|
272975
|
-
withPointer2((pointer) => {
|
|
272976
|
-
const oldDeps = pointer.get();
|
|
272977
|
-
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
|
272978
|
-
if (hasChanged) {
|
|
272979
|
-
effectScheduler2.queue(cb);
|
|
272980
|
-
}
|
|
272981
|
-
pointer.set(depArray);
|
|
272982
|
-
});
|
|
272983
|
-
}
|
|
272984
|
-
|
|
272985
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
272986
|
-
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
272987
|
-
|
|
272988
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
|
|
272989
|
-
import process8 from "node:process";
|
|
272990
|
-
function isUnicodeSupported3() {
|
|
272991
|
-
if (process8.platform !== "win32") {
|
|
272992
|
-
return process8.env["TERM"] !== "linux";
|
|
272993
|
-
}
|
|
272994
|
-
return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
272995
|
-
}
|
|
272996
|
-
var common2 = {
|
|
272997
|
-
circleQuestionMark: "(?)",
|
|
272998
|
-
questionMarkPrefix: "(?)",
|
|
272999
|
-
square: "█",
|
|
273000
|
-
squareDarkShade: "▓",
|
|
273001
|
-
squareMediumShade: "▒",
|
|
273002
|
-
squareLightShade: "░",
|
|
273003
|
-
squareTop: "▀",
|
|
273004
|
-
squareBottom: "▄",
|
|
273005
|
-
squareLeft: "▌",
|
|
273006
|
-
squareRight: "▐",
|
|
273007
|
-
squareCenter: "■",
|
|
273008
|
-
bullet: "●",
|
|
273009
|
-
dot: "․",
|
|
273010
|
-
ellipsis: "…",
|
|
273011
|
-
pointerSmall: "›",
|
|
273012
|
-
triangleUp: "▲",
|
|
273013
|
-
triangleUpSmall: "▴",
|
|
273014
|
-
triangleDown: "▼",
|
|
273015
|
-
triangleDownSmall: "▾",
|
|
273016
|
-
triangleLeftSmall: "◂",
|
|
273017
|
-
triangleRightSmall: "▸",
|
|
273018
|
-
home: "⌂",
|
|
273019
|
-
heart: "♥",
|
|
273020
|
-
musicNote: "♪",
|
|
273021
|
-
musicNoteBeamed: "♫",
|
|
273022
|
-
arrowUp: "↑",
|
|
273023
|
-
arrowDown: "↓",
|
|
273024
|
-
arrowLeft: "←",
|
|
273025
|
-
arrowRight: "→",
|
|
273026
|
-
arrowLeftRight: "↔",
|
|
273027
|
-
arrowUpDown: "↕",
|
|
273028
|
-
almostEqual: "≈",
|
|
273029
|
-
notEqual: "≠",
|
|
273030
|
-
lessOrEqual: "≤",
|
|
273031
|
-
greaterOrEqual: "≥",
|
|
273032
|
-
identical: "≡",
|
|
273033
|
-
infinity: "∞",
|
|
273034
|
-
subscriptZero: "₀",
|
|
273035
|
-
subscriptOne: "₁",
|
|
273036
|
-
subscriptTwo: "₂",
|
|
273037
|
-
subscriptThree: "₃",
|
|
273038
|
-
subscriptFour: "₄",
|
|
273039
|
-
subscriptFive: "₅",
|
|
273040
|
-
subscriptSix: "₆",
|
|
273041
|
-
subscriptSeven: "₇",
|
|
273042
|
-
subscriptEight: "₈",
|
|
273043
|
-
subscriptNine: "₉",
|
|
273044
|
-
oneHalf: "½",
|
|
273045
|
-
oneThird: "⅓",
|
|
273046
|
-
oneQuarter: "¼",
|
|
273047
|
-
oneFifth: "⅕",
|
|
273048
|
-
oneSixth: "⅙",
|
|
273049
|
-
oneEighth: "⅛",
|
|
273050
|
-
twoThirds: "⅔",
|
|
273051
|
-
twoFifths: "⅖",
|
|
273052
|
-
threeQuarters: "¾",
|
|
273053
|
-
threeFifths: "⅗",
|
|
273054
|
-
threeEighths: "⅜",
|
|
273055
|
-
fourFifths: "⅘",
|
|
273056
|
-
fiveSixths: "⅚",
|
|
273057
|
-
fiveEighths: "⅝",
|
|
273058
|
-
sevenEighths: "⅞",
|
|
273059
|
-
line: "─",
|
|
273060
|
-
lineBold: "━",
|
|
273061
|
-
lineDouble: "═",
|
|
273062
|
-
lineDashed0: "┄",
|
|
273063
|
-
lineDashed1: "┅",
|
|
273064
|
-
lineDashed2: "┈",
|
|
273065
|
-
lineDashed3: "┉",
|
|
273066
|
-
lineDashed4: "╌",
|
|
273067
|
-
lineDashed5: "╍",
|
|
273068
|
-
lineDashed6: "╴",
|
|
273069
|
-
lineDashed7: "╶",
|
|
273070
|
-
lineDashed8: "╸",
|
|
273071
|
-
lineDashed9: "╺",
|
|
273072
|
-
lineDashed10: "╼",
|
|
273073
|
-
lineDashed11: "╾",
|
|
273074
|
-
lineDashed12: "−",
|
|
273075
|
-
lineDashed13: "–",
|
|
273076
|
-
lineDashed14: "‐",
|
|
273077
|
-
lineDashed15: "⁃",
|
|
273078
|
-
lineVertical: "│",
|
|
273079
|
-
lineVerticalBold: "┃",
|
|
273080
|
-
lineVerticalDouble: "║",
|
|
273081
|
-
lineVerticalDashed0: "┆",
|
|
273082
|
-
lineVerticalDashed1: "┇",
|
|
273083
|
-
lineVerticalDashed2: "┊",
|
|
273084
|
-
lineVerticalDashed3: "┋",
|
|
273085
|
-
lineVerticalDashed4: "╎",
|
|
273086
|
-
lineVerticalDashed5: "╏",
|
|
273087
|
-
lineVerticalDashed6: "╵",
|
|
273088
|
-
lineVerticalDashed7: "╷",
|
|
273089
|
-
lineVerticalDashed8: "╹",
|
|
273090
|
-
lineVerticalDashed9: "╻",
|
|
273091
|
-
lineVerticalDashed10: "╽",
|
|
273092
|
-
lineVerticalDashed11: "╿",
|
|
273093
|
-
lineDownLeft: "┐",
|
|
273094
|
-
lineDownLeftArc: "╮",
|
|
273095
|
-
lineDownBoldLeftBold: "┓",
|
|
273096
|
-
lineDownBoldLeft: "┒",
|
|
273097
|
-
lineDownLeftBold: "┑",
|
|
273098
|
-
lineDownDoubleLeftDouble: "╗",
|
|
273099
|
-
lineDownDoubleLeft: "╖",
|
|
273100
|
-
lineDownLeftDouble: "╕",
|
|
273101
|
-
lineDownRight: "┌",
|
|
273102
|
-
lineDownRightArc: "╭",
|
|
273103
|
-
lineDownBoldRightBold: "┏",
|
|
273104
|
-
lineDownBoldRight: "┎",
|
|
273105
|
-
lineDownRightBold: "┍",
|
|
273106
|
-
lineDownDoubleRightDouble: "╔",
|
|
273107
|
-
lineDownDoubleRight: "╓",
|
|
273108
|
-
lineDownRightDouble: "╒",
|
|
273109
|
-
lineUpLeft: "┘",
|
|
273110
|
-
lineUpLeftArc: "╯",
|
|
273111
|
-
lineUpBoldLeftBold: "┛",
|
|
273112
|
-
lineUpBoldLeft: "┚",
|
|
273113
|
-
lineUpLeftBold: "┙",
|
|
273114
|
-
lineUpDoubleLeftDouble: "╝",
|
|
273115
|
-
lineUpDoubleLeft: "╜",
|
|
273116
|
-
lineUpLeftDouble: "╛",
|
|
273117
|
-
lineUpRight: "└",
|
|
273118
|
-
lineUpRightArc: "╰",
|
|
273119
|
-
lineUpBoldRightBold: "┗",
|
|
273120
|
-
lineUpBoldRight: "┖",
|
|
273121
|
-
lineUpRightBold: "┕",
|
|
273122
|
-
lineUpDoubleRightDouble: "╚",
|
|
273123
|
-
lineUpDoubleRight: "╙",
|
|
273124
|
-
lineUpRightDouble: "╘",
|
|
273125
|
-
lineUpDownLeft: "┤",
|
|
273126
|
-
lineUpBoldDownBoldLeftBold: "┫",
|
|
273127
|
-
lineUpBoldDownBoldLeft: "┨",
|
|
273128
|
-
lineUpDownLeftBold: "┥",
|
|
273129
|
-
lineUpBoldDownLeftBold: "┩",
|
|
273130
|
-
lineUpDownBoldLeftBold: "┪",
|
|
273131
|
-
lineUpDownBoldLeft: "┧",
|
|
273132
|
-
lineUpBoldDownLeft: "┦",
|
|
273133
|
-
lineUpDoubleDownDoubleLeftDouble: "╣",
|
|
273134
|
-
lineUpDoubleDownDoubleLeft: "╢",
|
|
273135
|
-
lineUpDownLeftDouble: "╡",
|
|
273136
|
-
lineUpDownRight: "├",
|
|
273137
|
-
lineUpBoldDownBoldRightBold: "┣",
|
|
273138
|
-
lineUpBoldDownBoldRight: "┠",
|
|
273139
|
-
lineUpDownRightBold: "┝",
|
|
273140
|
-
lineUpBoldDownRightBold: "┡",
|
|
273141
|
-
lineUpDownBoldRightBold: "┢",
|
|
273142
|
-
lineUpDownBoldRight: "┟",
|
|
273143
|
-
lineUpBoldDownRight: "┞",
|
|
273144
|
-
lineUpDoubleDownDoubleRightDouble: "╠",
|
|
273145
|
-
lineUpDoubleDownDoubleRight: "╟",
|
|
273146
|
-
lineUpDownRightDouble: "╞",
|
|
273147
|
-
lineDownLeftRight: "┬",
|
|
273148
|
-
lineDownBoldLeftBoldRightBold: "┳",
|
|
273149
|
-
lineDownLeftBoldRightBold: "┯",
|
|
273150
|
-
lineDownBoldLeftRight: "┰",
|
|
273151
|
-
lineDownBoldLeftBoldRight: "┱",
|
|
273152
|
-
lineDownBoldLeftRightBold: "┲",
|
|
273153
|
-
lineDownLeftRightBold: "┮",
|
|
273154
|
-
lineDownLeftBoldRight: "┭",
|
|
273155
|
-
lineDownDoubleLeftDoubleRightDouble: "╦",
|
|
273156
|
-
lineDownDoubleLeftRight: "╥",
|
|
273157
|
-
lineDownLeftDoubleRightDouble: "╤",
|
|
273158
|
-
lineUpLeftRight: "┴",
|
|
273159
|
-
lineUpBoldLeftBoldRightBold: "┻",
|
|
273160
|
-
lineUpLeftBoldRightBold: "┷",
|
|
273161
|
-
lineUpBoldLeftRight: "┸",
|
|
273162
|
-
lineUpBoldLeftBoldRight: "┹",
|
|
273163
|
-
lineUpBoldLeftRightBold: "┺",
|
|
273164
|
-
lineUpLeftRightBold: "┶",
|
|
273165
|
-
lineUpLeftBoldRight: "┵",
|
|
273166
|
-
lineUpDoubleLeftDoubleRightDouble: "╩",
|
|
273167
|
-
lineUpDoubleLeftRight: "╨",
|
|
273168
|
-
lineUpLeftDoubleRightDouble: "╧",
|
|
273169
|
-
lineUpDownLeftRight: "┼",
|
|
273170
|
-
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
|
273171
|
-
lineUpDownBoldLeftBoldRightBold: "╈",
|
|
273172
|
-
lineUpBoldDownLeftBoldRightBold: "╇",
|
|
273173
|
-
lineUpBoldDownBoldLeftRightBold: "╊",
|
|
273174
|
-
lineUpBoldDownBoldLeftBoldRight: "╉",
|
|
273175
|
-
lineUpBoldDownLeftRight: "╀",
|
|
273176
|
-
lineUpDownBoldLeftRight: "╁",
|
|
273177
|
-
lineUpDownLeftBoldRight: "┽",
|
|
273178
|
-
lineUpDownLeftRightBold: "┾",
|
|
273179
|
-
lineUpBoldDownBoldLeftRight: "╂",
|
|
273180
|
-
lineUpDownLeftBoldRightBold: "┿",
|
|
273181
|
-
lineUpBoldDownLeftBoldRight: "╃",
|
|
273182
|
-
lineUpBoldDownLeftRightBold: "╄",
|
|
273183
|
-
lineUpDownBoldLeftBoldRight: "╅",
|
|
273184
|
-
lineUpDownBoldLeftRightBold: "╆",
|
|
273185
|
-
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
|
273186
|
-
lineUpDoubleDownDoubleLeftRight: "╫",
|
|
273187
|
-
lineUpDownLeftDoubleRightDouble: "╪",
|
|
273188
|
-
lineCross: "╳",
|
|
273189
|
-
lineBackslash: "╲",
|
|
273190
|
-
lineSlash: "╱"
|
|
273191
|
-
};
|
|
273192
|
-
var specialMainSymbols2 = {
|
|
273193
|
-
tick: "✔",
|
|
273194
|
-
info: "ℹ",
|
|
273195
|
-
warning: "⚠",
|
|
273196
|
-
cross: "✘",
|
|
273197
|
-
squareSmall: "◻",
|
|
273198
|
-
squareSmallFilled: "◼",
|
|
273199
|
-
circle: "◯",
|
|
273200
|
-
circleFilled: "◉",
|
|
273201
|
-
circleDotted: "◌",
|
|
273202
|
-
circleDouble: "◎",
|
|
273203
|
-
circleCircle: "ⓞ",
|
|
273204
|
-
circleCross: "ⓧ",
|
|
273205
|
-
circlePipe: "Ⓘ",
|
|
273206
|
-
radioOn: "◉",
|
|
273207
|
-
radioOff: "◯",
|
|
273208
|
-
checkboxOn: "☒",
|
|
273209
|
-
checkboxOff: "☐",
|
|
273210
|
-
checkboxCircleOn: "ⓧ",
|
|
273211
|
-
checkboxCircleOff: "Ⓘ",
|
|
273212
|
-
pointer: "❯",
|
|
273213
|
-
triangleUpOutline: "△",
|
|
273214
|
-
triangleLeft: "◀",
|
|
273215
|
-
triangleRight: "▶",
|
|
273216
|
-
lozenge: "◆",
|
|
273217
|
-
lozengeOutline: "◇",
|
|
273218
|
-
hamburger: "☰",
|
|
273219
|
-
smiley: "㋡",
|
|
273220
|
-
mustache: "෴",
|
|
273221
|
-
star: "★",
|
|
273222
|
-
play: "▶",
|
|
273223
|
-
nodejs: "⬢",
|
|
273224
|
-
oneSeventh: "⅐",
|
|
273225
|
-
oneNinth: "⅑",
|
|
273226
|
-
oneTenth: "⅒"
|
|
273227
|
-
};
|
|
273228
|
-
var specialFallbackSymbols2 = {
|
|
273229
|
-
tick: "√",
|
|
273230
|
-
info: "i",
|
|
273231
|
-
warning: "‼",
|
|
273232
|
-
cross: "×",
|
|
273233
|
-
squareSmall: "□",
|
|
273234
|
-
squareSmallFilled: "■",
|
|
273235
|
-
circle: "( )",
|
|
273236
|
-
circleFilled: "(*)",
|
|
273237
|
-
circleDotted: "( )",
|
|
273238
|
-
circleDouble: "( )",
|
|
273239
|
-
circleCircle: "(○)",
|
|
273240
|
-
circleCross: "(×)",
|
|
273241
|
-
circlePipe: "(│)",
|
|
273242
|
-
radioOn: "(*)",
|
|
273243
|
-
radioOff: "( )",
|
|
273244
|
-
checkboxOn: "[×]",
|
|
273245
|
-
checkboxOff: "[ ]",
|
|
273246
|
-
checkboxCircleOn: "(×)",
|
|
273247
|
-
checkboxCircleOff: "( )",
|
|
273248
|
-
pointer: ">",
|
|
273249
|
-
triangleUpOutline: "∆",
|
|
273250
|
-
triangleLeft: "◄",
|
|
273251
|
-
triangleRight: "►",
|
|
273252
|
-
lozenge: "♦",
|
|
273253
|
-
lozengeOutline: "◊",
|
|
273254
|
-
hamburger: "≡",
|
|
273255
|
-
smiley: "☺",
|
|
273256
|
-
mustache: "┌─┐",
|
|
273257
|
-
star: "✶",
|
|
273258
|
-
play: "►",
|
|
273259
|
-
nodejs: "♦",
|
|
273260
|
-
oneSeventh: "1/7",
|
|
273261
|
-
oneNinth: "1/9",
|
|
273262
|
-
oneTenth: "1/10"
|
|
273263
|
-
};
|
|
273264
|
-
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
|
273265
|
-
var fallbackSymbols2 = {
|
|
273266
|
-
...common2,
|
|
273267
|
-
...specialFallbackSymbols2
|
|
273268
|
-
};
|
|
273269
|
-
var shouldUseMain2 = isUnicodeSupported3();
|
|
273270
|
-
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
273271
|
-
var esm_default5 = figures2;
|
|
273272
|
-
var replacements2 = Object.entries(specialMainSymbols2);
|
|
273273
|
-
|
|
273274
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
273275
|
-
var defaultTheme2 = {
|
|
273276
|
-
prefix: {
|
|
273277
|
-
idle: import_yoctocolors_cjs4.default.blue("?"),
|
|
273278
|
-
done: import_yoctocolors_cjs4.default.green(esm_default5.tick)
|
|
273279
|
-
},
|
|
273280
|
-
spinner: {
|
|
273281
|
-
interval: 80,
|
|
273282
|
-
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
|
273283
|
-
},
|
|
273284
|
-
style: {
|
|
273285
|
-
answer: import_yoctocolors_cjs4.default.cyan,
|
|
273286
|
-
message: import_yoctocolors_cjs4.default.bold,
|
|
273287
|
-
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
|
273288
|
-
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
|
273289
|
-
help: import_yoctocolors_cjs4.default.dim,
|
|
273290
|
-
highlight: import_yoctocolors_cjs4.default.cyan,
|
|
273291
|
-
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
|
273292
|
-
}
|
|
273293
|
-
};
|
|
273294
|
-
|
|
273295
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
273296
|
-
function isPlainObject3(value4) {
|
|
273297
|
-
if (typeof value4 !== "object" || value4 === null)
|
|
273298
|
-
return false;
|
|
273299
|
-
let proto = value4;
|
|
273300
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
|
273301
|
-
proto = Object.getPrototypeOf(proto);
|
|
273302
|
-
}
|
|
273303
|
-
return Object.getPrototypeOf(value4) === proto;
|
|
273304
|
-
}
|
|
273305
|
-
function deepMerge3(...objects) {
|
|
273306
|
-
const output = {};
|
|
273307
|
-
for (const obj of objects) {
|
|
273308
|
-
for (const [key2, value4] of Object.entries(obj)) {
|
|
273309
|
-
const prevValue = output[key2];
|
|
273310
|
-
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
|
273311
|
-
}
|
|
273312
|
-
}
|
|
273313
|
-
return output;
|
|
273314
|
-
}
|
|
273315
|
-
function makeTheme2(...themes) {
|
|
273316
|
-
const themesToMerge = [
|
|
273317
|
-
defaultTheme2,
|
|
273318
|
-
...themes.filter((theme) => theme != null)
|
|
273319
|
-
];
|
|
273320
|
-
return deepMerge3(...themesToMerge);
|
|
273321
|
-
}
|
|
273322
|
-
|
|
273323
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
273324
|
-
function usePrefix2({ status = "idle", theme }) {
|
|
273325
|
-
const [showLoader, setShowLoader] = useState2(false);
|
|
273326
|
-
const [tick, setTick] = useState2(0);
|
|
273327
|
-
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
|
273328
|
-
useEffect2(() => {
|
|
273329
|
-
if (status === "loading") {
|
|
273330
|
-
let tickInterval;
|
|
273331
|
-
let inc = -1;
|
|
273332
|
-
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
|
273333
|
-
setShowLoader(true);
|
|
273334
|
-
tickInterval = setInterval(AsyncResource5.bind(() => {
|
|
273335
|
-
inc = inc + 1;
|
|
273336
|
-
setTick(inc % spinner2.frames.length);
|
|
273337
|
-
}), spinner2.interval);
|
|
273338
|
-
}), 300);
|
|
273339
|
-
return () => {
|
|
273340
|
-
clearTimeout(delayTimeout);
|
|
273341
|
-
clearInterval(tickInterval);
|
|
273342
|
-
};
|
|
273343
|
-
} else {
|
|
273344
|
-
setShowLoader(false);
|
|
273345
|
-
}
|
|
273346
|
-
}, [status]);
|
|
273347
|
-
if (showLoader) {
|
|
273348
|
-
return spinner2.frames[tick];
|
|
273349
|
-
}
|
|
273350
|
-
const iconName = status === "loading" ? "idle" : status;
|
|
273351
|
-
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
273352
|
-
}
|
|
273353
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
273354
|
-
function useRef2(val) {
|
|
273355
|
-
return useState2({ current: val })[0];
|
|
273356
|
-
}
|
|
273357
|
-
|
|
273358
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
273359
|
-
function useKeypress2(userHandler) {
|
|
273360
|
-
const signal = useRef2(userHandler);
|
|
273361
|
-
signal.current = userHandler;
|
|
273362
|
-
useEffect2((rl) => {
|
|
273363
|
-
let ignore = false;
|
|
273364
|
-
const handler = withUpdates2((_input, event) => {
|
|
273365
|
-
if (ignore)
|
|
273366
|
-
return;
|
|
273367
|
-
signal.current(event, rl);
|
|
273368
|
-
});
|
|
273369
|
-
rl.input.on("keypress", handler);
|
|
273370
|
-
return () => {
|
|
273371
|
-
ignore = true;
|
|
273372
|
-
rl.input.removeListener("keypress", handler);
|
|
273373
|
-
};
|
|
273374
|
-
}, []);
|
|
273375
|
-
}
|
|
273376
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
273377
|
-
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
273378
|
-
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
273379
|
-
function breakLines2(content, width) {
|
|
273380
|
-
return content.split(`
|
|
273381
|
-
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
|
273382
|
-
`).map((str) => str.trimEnd())).join(`
|
|
273383
|
-
`);
|
|
273384
|
-
}
|
|
273385
|
-
function readlineWidth2() {
|
|
273386
|
-
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
273387
|
-
}
|
|
273388
|
-
|
|
273389
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273390
|
-
var import_mute_stream2 = __toESM(require_lib12(), 1);
|
|
273391
|
-
import * as readline4 from "node:readline";
|
|
273392
|
-
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
273393
|
-
|
|
273394
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
273395
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
273396
|
-
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
|
273397
|
-
var height2 = (content) => content.split(`
|
|
273398
|
-
`).length;
|
|
273399
|
-
var lastLine2 = (content) => content.split(`
|
|
273400
|
-
`).pop() ?? "";
|
|
273401
|
-
function cursorDown2(n6) {
|
|
273402
|
-
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
|
273403
|
-
}
|
|
273404
|
-
|
|
273405
|
-
class ScreenManager2 {
|
|
273406
|
-
rl;
|
|
273407
|
-
height = 0;
|
|
273408
|
-
extraLinesUnderPrompt = 0;
|
|
273409
|
-
cursorPos;
|
|
273410
|
-
constructor(rl) {
|
|
273411
|
-
this.rl = rl;
|
|
273412
|
-
this.rl = rl;
|
|
273413
|
-
this.cursorPos = rl.getCursorPos();
|
|
273414
|
-
}
|
|
273415
|
-
write(content) {
|
|
273416
|
-
this.rl.output.unmute();
|
|
273417
|
-
this.rl.output.write(content);
|
|
273418
|
-
this.rl.output.mute();
|
|
273419
|
-
}
|
|
273420
|
-
render(content, bottomContent = "") {
|
|
273421
|
-
const promptLine = lastLine2(content);
|
|
273422
|
-
const rawPromptLine = stripVTControlCharacters2(promptLine);
|
|
273423
|
-
let prompt = rawPromptLine;
|
|
273424
|
-
if (this.rl.line.length > 0) {
|
|
273425
|
-
prompt = prompt.slice(0, -this.rl.line.length);
|
|
273426
|
-
}
|
|
273427
|
-
this.rl.setPrompt(prompt);
|
|
273428
|
-
this.cursorPos = this.rl.getCursorPos();
|
|
273429
|
-
const width = readlineWidth2();
|
|
273430
|
-
content = breakLines2(content, width);
|
|
273431
|
-
bottomContent = breakLines2(bottomContent, width);
|
|
273432
|
-
if (rawPromptLine.length % width === 0) {
|
|
273433
|
-
content += `
|
|
273434
|
-
`;
|
|
273435
|
-
}
|
|
273436
|
-
let output = content + (bottomContent ? `
|
|
273437
|
-
` + bottomContent : "");
|
|
273438
|
-
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
273439
|
-
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
273440
|
-
if (bottomContentHeight > 0)
|
|
273441
|
-
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
|
273442
|
-
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
|
273443
|
-
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
|
273444
|
-
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
273445
|
-
this.height = height2(output);
|
|
273446
|
-
}
|
|
273447
|
-
checkCursorPos() {
|
|
273448
|
-
const cursorPos = this.rl.getCursorPos();
|
|
273449
|
-
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
273450
|
-
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
|
273451
|
-
this.cursorPos = cursorPos;
|
|
273452
|
-
}
|
|
273453
|
-
}
|
|
273454
|
-
done({ clearContent }) {
|
|
273455
|
-
this.rl.setPrompt("");
|
|
273456
|
-
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
273457
|
-
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
|
273458
|
-
`;
|
|
273459
|
-
output += import_ansi_escapes3.default.cursorShow;
|
|
273460
|
-
this.write(output);
|
|
273461
|
-
this.rl.close();
|
|
273462
|
-
}
|
|
273463
|
-
}
|
|
273464
|
-
|
|
273465
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
273466
|
-
class PromisePolyfill2 extends Promise {
|
|
273467
|
-
static withResolver() {
|
|
273468
|
-
let resolve6;
|
|
273469
|
-
let reject;
|
|
273470
|
-
const promise = new Promise((res, rej) => {
|
|
273471
|
-
resolve6 = res;
|
|
273472
|
-
reject = rej;
|
|
273473
|
-
});
|
|
273474
|
-
return { promise, resolve: resolve6, reject };
|
|
273475
|
-
}
|
|
273476
|
-
}
|
|
273477
|
-
|
|
273478
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273479
|
-
function getCallSites2() {
|
|
273480
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
273481
|
-
try {
|
|
273482
|
-
let result = [];
|
|
273483
|
-
Error.prepareStackTrace = (_5, callSites) => {
|
|
273484
|
-
const callSitesWithoutCurrent = callSites.slice(1);
|
|
273485
|
-
result = callSitesWithoutCurrent;
|
|
273486
|
-
return callSitesWithoutCurrent;
|
|
273487
|
-
};
|
|
273488
|
-
new Error().stack;
|
|
273489
|
-
return result;
|
|
273490
|
-
} finally {
|
|
273491
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
273492
|
-
}
|
|
273493
|
-
}
|
|
273494
|
-
function createPrompt2(view) {
|
|
273495
|
-
const callSites = getCallSites2();
|
|
273496
|
-
const callerFilename = callSites[1]?.getFileName?.();
|
|
273497
|
-
const prompt = (config3, context = {}) => {
|
|
273498
|
-
const { input = process.stdin, signal } = context;
|
|
273499
|
-
const cleanups = new Set;
|
|
273500
|
-
const output = new import_mute_stream2.default;
|
|
273501
|
-
output.pipe(context.output ?? process.stdout);
|
|
273502
|
-
const rl = readline4.createInterface({
|
|
273503
|
-
terminal: true,
|
|
273504
|
-
input,
|
|
273505
|
-
output
|
|
273506
|
-
});
|
|
273507
|
-
const screen = new ScreenManager2(rl);
|
|
273508
|
-
const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
|
273509
|
-
const cancel3 = () => reject(new CancelPromptError2);
|
|
273510
|
-
if (signal) {
|
|
273511
|
-
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
|
273512
|
-
if (signal.aborted) {
|
|
273513
|
-
abort();
|
|
273514
|
-
return Object.assign(promise, { cancel: cancel3 });
|
|
273515
|
-
}
|
|
273516
|
-
signal.addEventListener("abort", abort);
|
|
273517
|
-
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
273518
|
-
}
|
|
273519
|
-
cleanups.add(onExit((code2, signal2) => {
|
|
273520
|
-
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
|
273521
|
-
}));
|
|
273522
|
-
const checkCursorPos = () => screen.checkCursorPos();
|
|
273523
|
-
rl.input.on("keypress", checkCursorPos);
|
|
273524
|
-
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
273525
|
-
return withHooks2(rl, (cycle) => {
|
|
273526
|
-
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
|
273527
|
-
rl.on("close", hooksCleanup);
|
|
273528
|
-
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
273529
|
-
cycle(() => {
|
|
273530
|
-
try {
|
|
273531
|
-
const nextView = view(config3, (value4) => {
|
|
273532
|
-
setImmediate(() => resolve6(value4));
|
|
273533
|
-
});
|
|
273534
|
-
if (nextView === undefined) {
|
|
273535
|
-
throw new Error(`Prompt functions must return a string.
|
|
273536
|
-
at ${callerFilename}`);
|
|
273537
|
-
}
|
|
273538
|
-
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
273539
|
-
screen.render(content, bottomContent);
|
|
273540
|
-
effectScheduler2.run();
|
|
273541
|
-
} catch (error5) {
|
|
273542
|
-
reject(error5);
|
|
273543
|
-
}
|
|
273544
|
-
});
|
|
273545
|
-
return Object.assign(promise.then((answer) => {
|
|
273546
|
-
effectScheduler2.clearAll();
|
|
273547
|
-
return answer;
|
|
273548
|
-
}, (error5) => {
|
|
273549
|
-
effectScheduler2.clearAll();
|
|
273550
|
-
throw error5;
|
|
273551
|
-
}).finally(() => {
|
|
273552
|
-
cleanups.forEach((cleanup) => cleanup());
|
|
273553
|
-
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
273554
|
-
output.end();
|
|
273555
|
-
}).then(() => promise), { cancel: cancel3 });
|
|
273556
|
-
});
|
|
273557
|
-
};
|
|
273558
|
-
return prompt;
|
|
273559
|
-
}
|
|
273560
272818
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
|
273561
|
-
var
|
|
273562
|
-
var
|
|
272819
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
272820
|
+
var esm_default5 = createPrompt((config3, done) => {
|
|
273563
272821
|
const { validate: validate3 = () => true } = config3;
|
|
273564
|
-
const theme =
|
|
273565
|
-
const [status, setStatus] =
|
|
273566
|
-
const [errorMsg, setError] =
|
|
273567
|
-
const [value4, setValue] =
|
|
273568
|
-
const prefix =
|
|
273569
|
-
|
|
272822
|
+
const theme = makeTheme(config3.theme);
|
|
272823
|
+
const [status, setStatus] = useState("idle");
|
|
272824
|
+
const [errorMsg, setError] = useState();
|
|
272825
|
+
const [value4, setValue] = useState("");
|
|
272826
|
+
const prefix = usePrefix({ status, theme });
|
|
272827
|
+
useKeypress(async (key2, rl) => {
|
|
273570
272828
|
if (status !== "idle") {
|
|
273571
272829
|
return;
|
|
273572
272830
|
}
|
|
273573
|
-
if (
|
|
272831
|
+
if (isEnterKey(key2)) {
|
|
273574
272832
|
const answer = value4;
|
|
273575
272833
|
setStatus("loading");
|
|
273576
272834
|
const isValid2 = await validate3(answer);
|
|
@@ -273595,7 +272853,7 @@ var esm_default6 = createPrompt2((config3, done) => {
|
|
|
273595
272853
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
|
273596
272854
|
formattedValue = maskChar.repeat(value4.length);
|
|
273597
272855
|
} else if (status !== "done") {
|
|
273598
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
|
272856
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
|
|
273599
272857
|
}
|
|
273600
272858
|
if (status === "done") {
|
|
273601
272859
|
formattedValue = theme.style.answer(formattedValue);
|
|
@@ -273694,7 +272952,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273694
272952
|
} catch (error5) {
|
|
273695
272953
|
}
|
|
273696
272954
|
}
|
|
273697
|
-
return
|
|
272955
|
+
return esm_default5({
|
|
273698
272956
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
273699
272957
|
validate(value4) {
|
|
273700
272958
|
try {
|
|
@@ -274667,7 +273925,7 @@ var basename2 = function(p6, extension) {
|
|
|
274667
273925
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
274668
273926
|
};
|
|
274669
273927
|
// ../../node_modules/defu/dist/defu.mjs
|
|
274670
|
-
function
|
|
273928
|
+
function isPlainObject3(value4) {
|
|
274671
273929
|
if (value4 === null || typeof value4 !== "object") {
|
|
274672
273930
|
return false;
|
|
274673
273931
|
}
|
|
@@ -274684,27 +273942,27 @@ function isPlainObject4(value4) {
|
|
|
274684
273942
|
return true;
|
|
274685
273943
|
}
|
|
274686
273944
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
274687
|
-
if (!
|
|
273945
|
+
if (!isPlainObject3(defaults2)) {
|
|
274688
273946
|
return _defu(baseObject, {}, namespace, merger);
|
|
274689
273947
|
}
|
|
274690
273948
|
const object = Object.assign({}, defaults2);
|
|
274691
|
-
for (const
|
|
274692
|
-
if (
|
|
273949
|
+
for (const key2 in baseObject) {
|
|
273950
|
+
if (key2 === "__proto__" || key2 === "constructor") {
|
|
274693
273951
|
continue;
|
|
274694
273952
|
}
|
|
274695
|
-
const value4 = baseObject[
|
|
273953
|
+
const value4 = baseObject[key2];
|
|
274696
273954
|
if (value4 === null || value4 === undefined) {
|
|
274697
273955
|
continue;
|
|
274698
273956
|
}
|
|
274699
|
-
if (merger && merger(object,
|
|
273957
|
+
if (merger && merger(object, key2, value4, namespace)) {
|
|
274700
273958
|
continue;
|
|
274701
273959
|
}
|
|
274702
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
|
274703
|
-
object[
|
|
274704
|
-
} else if (
|
|
274705
|
-
object[
|
|
273960
|
+
if (Array.isArray(value4) && Array.isArray(object[key2])) {
|
|
273961
|
+
object[key2] = [...value4, ...object[key2]];
|
|
273962
|
+
} else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
|
|
273963
|
+
object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
|
|
274706
273964
|
} else {
|
|
274707
|
-
object[
|
|
273965
|
+
object[key2] = value4;
|
|
274708
273966
|
}
|
|
274709
273967
|
}
|
|
274710
273968
|
return object;
|
|
@@ -274713,15 +273971,15 @@ function createDefu(merger) {
|
|
|
274713
273971
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
|
274714
273972
|
}
|
|
274715
273973
|
var defu = createDefu();
|
|
274716
|
-
var defuFn = createDefu((object,
|
|
274717
|
-
if (object[
|
|
274718
|
-
object[
|
|
273974
|
+
var defuFn = createDefu((object, key2, currentValue) => {
|
|
273975
|
+
if (object[key2] !== undefined && typeof currentValue === "function") {
|
|
273976
|
+
object[key2] = currentValue(object[key2]);
|
|
274719
273977
|
return true;
|
|
274720
273978
|
}
|
|
274721
273979
|
});
|
|
274722
|
-
var defuArrayFn = createDefu((object,
|
|
274723
|
-
if (Array.isArray(object[
|
|
274724
|
-
object[
|
|
273980
|
+
var defuArrayFn = createDefu((object, key2, currentValue) => {
|
|
273981
|
+
if (Array.isArray(object[key2]) && typeof currentValue === "function") {
|
|
273982
|
+
object[key2] = currentValue(object[key2]);
|
|
274725
273983
|
return true;
|
|
274726
273984
|
}
|
|
274727
273985
|
});
|
|
@@ -274983,11 +274241,11 @@ function cacheDirectory() {
|
|
|
274983
274241
|
}
|
|
274984
274242
|
function normalizeHeaders(headers = {}) {
|
|
274985
274243
|
const normalized = {};
|
|
274986
|
-
for (const [
|
|
274244
|
+
for (const [key2, value4] of Object.entries(headers)) {
|
|
274987
274245
|
if (!value4) {
|
|
274988
274246
|
continue;
|
|
274989
274247
|
}
|
|
274990
|
-
normalized[
|
|
274248
|
+
normalized[key2.toLowerCase()] = value4;
|
|
274991
274249
|
}
|
|
274992
274250
|
return normalized;
|
|
274993
274251
|
}
|
|
@@ -275301,7 +274559,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
275301
274559
|
return defaultPersonalAccessToken;
|
|
275302
274560
|
}
|
|
275303
274561
|
}
|
|
275304
|
-
return
|
|
274562
|
+
return esm_default5({
|
|
275305
274563
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
275306
274564
|
validate(value4) {
|
|
275307
274565
|
try {
|
|
@@ -277169,7 +276427,7 @@ function jsonOutput(data) {
|
|
|
277169
276427
|
var composer = require_composer();
|
|
277170
276428
|
var Document = require_Document();
|
|
277171
276429
|
var Schema = require_Schema();
|
|
277172
|
-
var
|
|
276430
|
+
var errors2 = require_errors3();
|
|
277173
276431
|
var Alias = require_Alias();
|
|
277174
276432
|
var identity2 = require_identity();
|
|
277175
276433
|
var Pair = require_Pair();
|
|
@@ -277185,9 +276443,9 @@ var visit2 = require_visit();
|
|
|
277185
276443
|
var $Composer = composer.Composer;
|
|
277186
276444
|
var $Document = Document.Document;
|
|
277187
276445
|
var $Schema = Schema.Schema;
|
|
277188
|
-
var $YAMLError =
|
|
277189
|
-
var $YAMLParseError =
|
|
277190
|
-
var $YAMLWarning =
|
|
276446
|
+
var $YAMLError = errors2.YAMLError;
|
|
276447
|
+
var $YAMLParseError = errors2.YAMLParseError;
|
|
276448
|
+
var $YAMLWarning = errors2.YAMLWarning;
|
|
277191
276449
|
var $Alias = Alias.Alias;
|
|
277192
276450
|
var $isAlias = identity2.isAlias;
|
|
277193
276451
|
var $isCollection = identity2.isCollection;
|
|
@@ -277533,7 +276791,7 @@ async function getServicesAndMapResults({
|
|
|
277533
276791
|
const application = await settlemint.application.read(applicationUniqueName);
|
|
277534
276792
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
|
277535
276793
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
|
277536
|
-
const [_5, labels] = Object.entries(LABELS_MAP).find(([
|
|
276794
|
+
const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
|
|
277537
276795
|
null,
|
|
277538
276796
|
{ plural: serviceType }
|
|
277539
276797
|
];
|
|
@@ -277761,11 +277019,11 @@ function createCommand4() {
|
|
|
277761
277019
|
|
|
277762
277020
|
// src/utils/commands/passthrough-options.ts
|
|
277763
277021
|
function mapPassthroughOptions(options, command) {
|
|
277764
|
-
const optionArgs = Object.entries(options).map(([
|
|
277022
|
+
const optionArgs = Object.entries(options).map(([key2, value4]) => {
|
|
277765
277023
|
if (value4 === true) {
|
|
277766
|
-
return `--${
|
|
277024
|
+
return `--${key2}`;
|
|
277767
277025
|
}
|
|
277768
|
-
return `--${
|
|
277026
|
+
return `--${key2}=${value4}`;
|
|
277769
277027
|
});
|
|
277770
277028
|
return [...optionArgs, ...command.args];
|
|
277771
277029
|
}
|
|
@@ -278682,4 +277940,4 @@ ${error5.stack}`));
|
|
|
278682
277940
|
// src/cli.ts
|
|
278683
277941
|
sdkCliCommand();
|
|
278684
277942
|
|
|
278685
|
-
//# debugId=
|
|
277943
|
+
//# debugId=DF1BDC962B3ED18364756E2164756E21
|