@settlemint/sdk-cli 1.1.8-pr7d8b1c8b → 1.1.8-pr9915eccf
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 +241 -695
- package/dist/cli.js.map +3 -17
- package/package.json +6 -6
package/dist/cli.js
CHANGED
@@ -241161,8 +241161,8 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
241161
241161
|
return "CwdError";
|
241162
241162
|
}
|
241163
241163
|
}
|
241164
|
-
var cGet = (cache,
|
241165
|
-
var cSet = (cache,
|
241164
|
+
var cGet = (cache, key2) => cache.get(normPath(key2));
|
241165
|
+
var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
|
241166
241166
|
var checkCwd = (dir, cb) => {
|
241167
241167
|
fs4.stat(dir, (er2, st2) => {
|
241168
241168
|
if (er2 || !st2.isDirectory()) {
|
@@ -241533,8 +241533,8 @@ var require_unpack = __commonJS((exports, module) => {
|
|
241533
241533
|
}
|
241534
241534
|
};
|
241535
241535
|
var dropCache = (cache) => {
|
241536
|
-
for (const
|
241537
|
-
cache.delete(
|
241536
|
+
for (const key2 of cache.keys()) {
|
241537
|
+
cache.delete(key2);
|
241538
241538
|
}
|
241539
241539
|
};
|
241540
241540
|
|
@@ -246331,8 +246331,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
246331
246331
|
function fetch2(input, options) {
|
246332
246332
|
return nodeFetch.fetch(input, options);
|
246333
246333
|
}
|
246334
|
-
for (const
|
246335
|
-
fetch2[
|
246334
|
+
for (const key2 in nodeFetch) {
|
246335
|
+
fetch2[key2] = nodeFetch[key2];
|
246336
246336
|
}
|
246337
246337
|
module.exports = fetch2;
|
246338
246338
|
});
|
@@ -246425,11 +246425,11 @@ var require_proxy = __commonJS((exports) => {
|
|
246425
246425
|
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;
|
246426
246426
|
}
|
246427
246427
|
e10(requireSymbols$4, "requireSymbols$4");
|
246428
|
-
var
|
246428
|
+
var errors2;
|
246429
246429
|
var hasRequiredErrors;
|
246430
246430
|
function requireErrors() {
|
246431
246431
|
if (hasRequiredErrors)
|
246432
|
-
return
|
246432
|
+
return errors2;
|
246433
246433
|
hasRequiredErrors = 1;
|
246434
246434
|
|
246435
246435
|
class A5 extends Error {
|
@@ -246638,7 +246638,7 @@ var require_proxy = __commonJS((exports) => {
|
|
246638
246638
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
246639
246639
|
}
|
246640
246640
|
}
|
246641
|
-
return
|
246641
|
+
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;
|
246642
246642
|
}
|
246643
246643
|
e10(requireErrors, "requireErrors");
|
246644
246644
|
var constants$4;
|
@@ -256611,11 +256611,11 @@ var require_visit = __commonJS((exports) => {
|
|
256611
256611
|
visit2.BREAK = BREAK;
|
256612
256612
|
visit2.SKIP = SKIP;
|
256613
256613
|
visit2.REMOVE = REMOVE;
|
256614
|
-
function visit_(
|
256615
|
-
const ctrl = callVisitor(
|
256614
|
+
function visit_(key2, node, visitor, path6) {
|
256615
|
+
const ctrl = callVisitor(key2, node, visitor, path6);
|
256616
256616
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
256617
|
-
replaceNode(
|
256618
|
-
return visit_(
|
256617
|
+
replaceNode(key2, path6, ctrl);
|
256618
|
+
return visit_(key2, ctrl, visitor, path6);
|
256619
256619
|
}
|
256620
256620
|
if (typeof ctrl !== "symbol") {
|
256621
256621
|
if (identity2.isCollection(node)) {
|
@@ -256659,11 +256659,11 @@ var require_visit = __commonJS((exports) => {
|
|
256659
256659
|
visitAsync.BREAK = BREAK;
|
256660
256660
|
visitAsync.SKIP = SKIP;
|
256661
256661
|
visitAsync.REMOVE = REMOVE;
|
256662
|
-
async function visitAsync_(
|
256663
|
-
const ctrl = await callVisitor(
|
256662
|
+
async function visitAsync_(key2, node, visitor, path6) {
|
256663
|
+
const ctrl = await callVisitor(key2, node, visitor, path6);
|
256664
256664
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
256665
|
-
replaceNode(
|
256666
|
-
return visitAsync_(
|
256665
|
+
replaceNode(key2, path6, ctrl);
|
256666
|
+
return visitAsync_(key2, ctrl, visitor, path6);
|
256667
256667
|
}
|
256668
256668
|
if (typeof ctrl !== "symbol") {
|
256669
256669
|
if (identity2.isCollection(node)) {
|
@@ -256713,27 +256713,27 @@ var require_visit = __commonJS((exports) => {
|
|
256713
256713
|
}
|
256714
256714
|
return visitor;
|
256715
256715
|
}
|
256716
|
-
function callVisitor(
|
256716
|
+
function callVisitor(key2, node, visitor, path6) {
|
256717
256717
|
if (typeof visitor === "function")
|
256718
|
-
return visitor(
|
256718
|
+
return visitor(key2, node, path6);
|
256719
256719
|
if (identity2.isMap(node))
|
256720
|
-
return visitor.Map?.(
|
256720
|
+
return visitor.Map?.(key2, node, path6);
|
256721
256721
|
if (identity2.isSeq(node))
|
256722
|
-
return visitor.Seq?.(
|
256722
|
+
return visitor.Seq?.(key2, node, path6);
|
256723
256723
|
if (identity2.isPair(node))
|
256724
|
-
return visitor.Pair?.(
|
256724
|
+
return visitor.Pair?.(key2, node, path6);
|
256725
256725
|
if (identity2.isScalar(node))
|
256726
|
-
return visitor.Scalar?.(
|
256726
|
+
return visitor.Scalar?.(key2, node, path6);
|
256727
256727
|
if (identity2.isAlias(node))
|
256728
|
-
return visitor.Alias?.(
|
256728
|
+
return visitor.Alias?.(key2, node, path6);
|
256729
256729
|
return;
|
256730
256730
|
}
|
256731
|
-
function replaceNode(
|
256731
|
+
function replaceNode(key2, path6, node) {
|
256732
256732
|
const parent = path6[path6.length - 1];
|
256733
256733
|
if (identity2.isCollection(parent)) {
|
256734
|
-
parent.items[
|
256734
|
+
parent.items[key2] = node;
|
256735
256735
|
} else if (identity2.isPair(parent)) {
|
256736
|
-
if (
|
256736
|
+
if (key2 === "key")
|
256737
256737
|
parent.key = node;
|
256738
256738
|
else
|
256739
256739
|
parent.value = node;
|
@@ -256965,7 +256965,7 @@ var require_anchors = __commonJS((exports) => {
|
|
256965
256965
|
|
256966
256966
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
256967
256967
|
var require_applyReviver = __commonJS((exports) => {
|
256968
|
-
function applyReviver(reviver, obj,
|
256968
|
+
function applyReviver(reviver, obj, key2, val) {
|
256969
256969
|
if (val && typeof val === "object") {
|
256970
256970
|
if (Array.isArray(val)) {
|
256971
256971
|
for (let i6 = 0, len = val.length;i6 < len; ++i6) {
|
@@ -257005,7 +257005,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
257005
257005
|
}
|
257006
257006
|
}
|
257007
257007
|
}
|
257008
|
-
return reviver.call(obj,
|
257008
|
+
return reviver.call(obj, key2, val);
|
257009
257009
|
}
|
257010
257010
|
exports.applyReviver = applyReviver;
|
257011
257011
|
});
|
@@ -257323,29 +257323,29 @@ var require_Collection = __commonJS((exports) => {
|
|
257323
257323
|
if (isEmptyPath(path6))
|
257324
257324
|
this.add(value4);
|
257325
257325
|
else {
|
257326
|
-
const [
|
257327
|
-
const node = this.get(
|
257326
|
+
const [key2, ...rest] = path6;
|
257327
|
+
const node = this.get(key2, true);
|
257328
257328
|
if (identity2.isCollection(node))
|
257329
257329
|
node.addIn(rest, value4);
|
257330
257330
|
else if (node === undefined && this.schema)
|
257331
|
-
this.set(
|
257331
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
257332
257332
|
else
|
257333
|
-
throw new Error(`Expected YAML collection at ${
|
257333
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
257334
257334
|
}
|
257335
257335
|
}
|
257336
257336
|
deleteIn(path6) {
|
257337
|
-
const [
|
257337
|
+
const [key2, ...rest] = path6;
|
257338
257338
|
if (rest.length === 0)
|
257339
|
-
return this.delete(
|
257340
|
-
const node = this.get(
|
257339
|
+
return this.delete(key2);
|
257340
|
+
const node = this.get(key2, true);
|
257341
257341
|
if (identity2.isCollection(node))
|
257342
257342
|
return node.deleteIn(rest);
|
257343
257343
|
else
|
257344
|
-
throw new Error(`Expected YAML collection at ${
|
257344
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
257345
257345
|
}
|
257346
257346
|
getIn(path6, keepScalar) {
|
257347
|
-
const [
|
257348
|
-
const node = this.get(
|
257347
|
+
const [key2, ...rest] = path6;
|
257348
|
+
const node = this.get(key2, true);
|
257349
257349
|
if (rest.length === 0)
|
257350
257350
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
257351
257351
|
else
|
@@ -257360,24 +257360,24 @@ var require_Collection = __commonJS((exports) => {
|
|
257360
257360
|
});
|
257361
257361
|
}
|
257362
257362
|
hasIn(path6) {
|
257363
|
-
const [
|
257363
|
+
const [key2, ...rest] = path6;
|
257364
257364
|
if (rest.length === 0)
|
257365
|
-
return this.has(
|
257366
|
-
const node = this.get(
|
257365
|
+
return this.has(key2);
|
257366
|
+
const node = this.get(key2, true);
|
257367
257367
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
257368
257368
|
}
|
257369
257369
|
setIn(path6, value4) {
|
257370
|
-
const [
|
257370
|
+
const [key2, ...rest] = path6;
|
257371
257371
|
if (rest.length === 0) {
|
257372
|
-
this.set(
|
257372
|
+
this.set(key2, value4);
|
257373
257373
|
} else {
|
257374
|
-
const node = this.get(
|
257374
|
+
const node = this.get(key2, true);
|
257375
257375
|
if (identity2.isCollection(node))
|
257376
257376
|
node.setIn(rest, value4);
|
257377
257377
|
else if (node === undefined && this.schema)
|
257378
|
-
this.set(
|
257378
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
257379
257379
|
else
|
257380
|
-
throw new Error(`Expected YAML collection at ${
|
257380
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
257381
257381
|
}
|
257382
257382
|
}
|
257383
257383
|
}
|
@@ -257965,19 +257965,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
257965
257965
|
var Scalar = require_Scalar();
|
257966
257966
|
var stringify3 = require_stringify();
|
257967
257967
|
var stringifyComment = require_stringifyComment();
|
257968
|
-
function stringifyPair2({ key:
|
257968
|
+
function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
|
257969
257969
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
257970
|
-
let keyComment = identity2.isNode(
|
257970
|
+
let keyComment = identity2.isNode(key2) && key2.comment || null;
|
257971
257971
|
if (simpleKeys) {
|
257972
257972
|
if (keyComment) {
|
257973
257973
|
throw new Error("With simple keys, key nodes cannot have comments");
|
257974
257974
|
}
|
257975
|
-
if (identity2.isCollection(
|
257975
|
+
if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
|
257976
257976
|
const msg = "With simple keys, collection cannot be used as a key value";
|
257977
257977
|
throw new Error(msg);
|
257978
257978
|
}
|
257979
257979
|
}
|
257980
|
-
let explicitKey = !simpleKeys && (!
|
257980
|
+
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"));
|
257981
257981
|
ctx = Object.assign({}, ctx, {
|
257982
257982
|
allNullValues: false,
|
257983
257983
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -257985,7 +257985,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
257985
257985
|
});
|
257986
257986
|
let keyCommentDone = false;
|
257987
257987
|
let chompKeep = false;
|
257988
|
-
let str = stringify3.stringify(
|
257988
|
+
let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
257989
257989
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
257990
257990
|
if (simpleKeys)
|
257991
257991
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -258129,7 +258129,7 @@ var require_merge = __commonJS((exports) => {
|
|
258129
258129
|
}),
|
258130
258130
|
stringify: () => MERGE_KEY
|
258131
258131
|
};
|
258132
|
-
var isMergeKey = (ctx,
|
258132
|
+
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);
|
258133
258133
|
function addMergeToJSMap(ctx, map3, value4) {
|
258134
258134
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
258135
258135
|
if (identity2.isSeq(value4))
|
@@ -258146,14 +258146,14 @@ var require_merge = __commonJS((exports) => {
|
|
258146
258146
|
if (!identity2.isMap(source))
|
258147
258147
|
throw new Error("Merge sources must be maps or map aliases");
|
258148
258148
|
const srcMap = source.toJSON(null, ctx, Map);
|
258149
|
-
for (const [
|
258149
|
+
for (const [key2, value5] of srcMap) {
|
258150
258150
|
if (map3 instanceof Map) {
|
258151
|
-
if (!map3.has(
|
258152
|
-
map3.set(
|
258151
|
+
if (!map3.has(key2))
|
258152
|
+
map3.set(key2, value5);
|
258153
258153
|
} else if (map3 instanceof Set) {
|
258154
|
-
map3.add(
|
258155
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
258156
|
-
Object.defineProperty(map3,
|
258154
|
+
map3.add(key2);
|
258155
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
|
258156
|
+
Object.defineProperty(map3, key2, {
|
258157
258157
|
value: value5,
|
258158
258158
|
writable: true,
|
258159
258159
|
enumerable: true,
|
@@ -258175,19 +258175,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
258175
258175
|
var stringify3 = require_stringify();
|
258176
258176
|
var identity2 = require_identity();
|
258177
258177
|
var toJS = require_toJS();
|
258178
|
-
function addPairToJSMap(ctx, map3, { key:
|
258179
|
-
if (identity2.isNode(
|
258180
|
-
|
258181
|
-
else if (merge3.isMergeKey(ctx,
|
258178
|
+
function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
|
258179
|
+
if (identity2.isNode(key2) && key2.addToJSMap)
|
258180
|
+
key2.addToJSMap(ctx, map3, value4);
|
258181
|
+
else if (merge3.isMergeKey(ctx, key2))
|
258182
258182
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
258183
258183
|
else {
|
258184
|
-
const jsKey = toJS.toJS(
|
258184
|
+
const jsKey = toJS.toJS(key2, "", ctx);
|
258185
258185
|
if (map3 instanceof Map) {
|
258186
258186
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
258187
258187
|
} else if (map3 instanceof Set) {
|
258188
258188
|
map3.add(jsKey);
|
258189
258189
|
} else {
|
258190
|
-
const stringKey = stringifyKey(
|
258190
|
+
const stringKey = stringifyKey(key2, jsKey, ctx);
|
258191
258191
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
258192
258192
|
if (stringKey in map3)
|
258193
258193
|
Object.defineProperty(map3, stringKey, {
|
@@ -258202,19 +258202,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
258202
258202
|
}
|
258203
258203
|
return map3;
|
258204
258204
|
}
|
258205
|
-
function stringifyKey(
|
258205
|
+
function stringifyKey(key2, jsKey, ctx) {
|
258206
258206
|
if (jsKey === null)
|
258207
258207
|
return "";
|
258208
258208
|
if (typeof jsKey !== "object")
|
258209
258209
|
return String(jsKey);
|
258210
|
-
if (identity2.isNode(
|
258210
|
+
if (identity2.isNode(key2) && ctx?.doc) {
|
258211
258211
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
258212
258212
|
strCtx.anchors = new Set;
|
258213
258213
|
for (const node of ctx.anchors.keys())
|
258214
258214
|
strCtx.anchors.add(node.anchor);
|
258215
258215
|
strCtx.inFlow = true;
|
258216
258216
|
strCtx.inStringifyKey = true;
|
258217
|
-
const strKey =
|
258217
|
+
const strKey = key2.toString(strCtx);
|
258218
258218
|
if (!ctx.mapKeyWarned) {
|
258219
258219
|
let jsonStr = JSON.stringify(strKey);
|
258220
258220
|
if (jsonStr.length > 40)
|
@@ -258235,25 +258235,25 @@ var require_Pair = __commonJS((exports) => {
|
|
258235
258235
|
var stringifyPair2 = require_stringifyPair();
|
258236
258236
|
var addPairToJSMap = require_addPairToJSMap();
|
258237
258237
|
var identity2 = require_identity();
|
258238
|
-
function createPair(
|
258239
|
-
const k5 = createNode.createNode(
|
258238
|
+
function createPair(key2, value4, ctx) {
|
258239
|
+
const k5 = createNode.createNode(key2, undefined, ctx);
|
258240
258240
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
258241
258241
|
return new Pair(k5, v7);
|
258242
258242
|
}
|
258243
258243
|
|
258244
258244
|
class Pair {
|
258245
|
-
constructor(
|
258245
|
+
constructor(key2, value4 = null) {
|
258246
258246
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
258247
|
-
this.key =
|
258247
|
+
this.key = key2;
|
258248
258248
|
this.value = value4;
|
258249
258249
|
}
|
258250
258250
|
clone(schema) {
|
258251
|
-
let { key:
|
258252
|
-
if (identity2.isNode(
|
258253
|
-
|
258251
|
+
let { key: key2, value: value4 } = this;
|
258252
|
+
if (identity2.isNode(key2))
|
258253
|
+
key2 = key2.clone(schema);
|
258254
258254
|
if (identity2.isNode(value4))
|
258255
258255
|
value4 = value4.clone(schema);
|
258256
|
-
return new Pair(
|
258256
|
+
return new Pair(key2, value4);
|
258257
258257
|
}
|
258258
258258
|
toJSON(_5, ctx) {
|
258259
258259
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -258420,11 +258420,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258420
258420
|
var identity2 = require_identity();
|
258421
258421
|
var Pair = require_Pair();
|
258422
258422
|
var Scalar = require_Scalar();
|
258423
|
-
function findPair(items,
|
258424
|
-
const k5 = identity2.isScalar(
|
258423
|
+
function findPair(items, key2) {
|
258424
|
+
const k5 = identity2.isScalar(key2) ? key2.value : key2;
|
258425
258425
|
for (const it2 of items) {
|
258426
258426
|
if (identity2.isPair(it2)) {
|
258427
|
-
if (it2.key ===
|
258427
|
+
if (it2.key === key2 || it2.key === k5)
|
258428
258428
|
return it2;
|
258429
258429
|
if (identity2.isScalar(it2.key) && it2.key.value === k5)
|
258430
258430
|
return it2;
|
@@ -258444,20 +258444,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258444
258444
|
static from(schema, obj, ctx) {
|
258445
258445
|
const { keepUndefined, replacer } = ctx;
|
258446
258446
|
const map3 = new this(schema);
|
258447
|
-
const add = (
|
258447
|
+
const add = (key2, value4) => {
|
258448
258448
|
if (typeof replacer === "function")
|
258449
|
-
value4 = replacer.call(obj,
|
258450
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
258449
|
+
value4 = replacer.call(obj, key2, value4);
|
258450
|
+
else if (Array.isArray(replacer) && !replacer.includes(key2))
|
258451
258451
|
return;
|
258452
258452
|
if (value4 !== undefined || keepUndefined)
|
258453
|
-
map3.items.push(Pair.createPair(
|
258453
|
+
map3.items.push(Pair.createPair(key2, value4, ctx));
|
258454
258454
|
};
|
258455
258455
|
if (obj instanceof Map) {
|
258456
|
-
for (const [
|
258457
|
-
add(
|
258456
|
+
for (const [key2, value4] of obj)
|
258457
|
+
add(key2, value4);
|
258458
258458
|
} else if (obj && typeof obj === "object") {
|
258459
|
-
for (const
|
258460
|
-
add(
|
258459
|
+
for (const key2 of Object.keys(obj))
|
258460
|
+
add(key2, obj[key2]);
|
258461
258461
|
}
|
258462
258462
|
if (typeof schema.sortMapEntries === "function") {
|
258463
258463
|
map3.items.sort(schema.sortMapEntries);
|
@@ -258491,23 +258491,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258491
258491
|
this.items.push(_pair);
|
258492
258492
|
}
|
258493
258493
|
}
|
258494
|
-
delete(
|
258495
|
-
const it2 = findPair(this.items,
|
258494
|
+
delete(key2) {
|
258495
|
+
const it2 = findPair(this.items, key2);
|
258496
258496
|
if (!it2)
|
258497
258497
|
return false;
|
258498
258498
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
258499
258499
|
return del.length > 0;
|
258500
258500
|
}
|
258501
|
-
get(
|
258502
|
-
const it2 = findPair(this.items,
|
258501
|
+
get(key2, keepScalar) {
|
258502
|
+
const it2 = findPair(this.items, key2);
|
258503
258503
|
const node = it2?.value;
|
258504
258504
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
258505
258505
|
}
|
258506
|
-
has(
|
258507
|
-
return !!findPair(this.items,
|
258506
|
+
has(key2) {
|
258507
|
+
return !!findPair(this.items, key2);
|
258508
258508
|
}
|
258509
|
-
set(
|
258510
|
-
this.add(new Pair.Pair(
|
258509
|
+
set(key2, value4) {
|
258510
|
+
this.add(new Pair.Pair(key2, value4), true);
|
258511
258511
|
}
|
258512
258512
|
toJSON(_5, ctx, Type) {
|
258513
258513
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -258578,28 +258578,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258578
258578
|
add(value4) {
|
258579
258579
|
this.items.push(value4);
|
258580
258580
|
}
|
258581
|
-
delete(
|
258582
|
-
const idx = asItemIndex(
|
258581
|
+
delete(key2) {
|
258582
|
+
const idx = asItemIndex(key2);
|
258583
258583
|
if (typeof idx !== "number")
|
258584
258584
|
return false;
|
258585
258585
|
const del = this.items.splice(idx, 1);
|
258586
258586
|
return del.length > 0;
|
258587
258587
|
}
|
258588
|
-
get(
|
258589
|
-
const idx = asItemIndex(
|
258588
|
+
get(key2, keepScalar) {
|
258589
|
+
const idx = asItemIndex(key2);
|
258590
258590
|
if (typeof idx !== "number")
|
258591
258591
|
return;
|
258592
258592
|
const it2 = this.items[idx];
|
258593
258593
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
258594
258594
|
}
|
258595
|
-
has(
|
258596
|
-
const idx = asItemIndex(
|
258595
|
+
has(key2) {
|
258596
|
+
const idx = asItemIndex(key2);
|
258597
258597
|
return typeof idx === "number" && idx < this.items.length;
|
258598
258598
|
}
|
258599
|
-
set(
|
258600
|
-
const idx = asItemIndex(
|
258599
|
+
set(key2, value4) {
|
258600
|
+
const idx = asItemIndex(key2);
|
258601
258601
|
if (typeof idx !== "number")
|
258602
|
-
throw new Error(`Expected a valid index, not ${
|
258602
|
+
throw new Error(`Expected a valid index, not ${key2}.`);
|
258603
258603
|
const prev = this.items[idx];
|
258604
258604
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
258605
258605
|
prev.value = value4;
|
@@ -258633,8 +258633,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258633
258633
|
let i6 = 0;
|
258634
258634
|
for (let it2 of obj) {
|
258635
258635
|
if (typeof replacer === "function") {
|
258636
|
-
const
|
258637
|
-
it2 = replacer.call(obj,
|
258636
|
+
const key2 = obj instanceof Set ? it2 : String(i6++);
|
258637
|
+
it2 = replacer.call(obj, key2, it2);
|
258638
258638
|
}
|
258639
258639
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
258640
258640
|
}
|
@@ -258642,8 +258642,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258642
258642
|
return seq;
|
258643
258643
|
}
|
258644
258644
|
}
|
258645
|
-
function asItemIndex(
|
258646
|
-
let idx = identity2.isScalar(
|
258645
|
+
function asItemIndex(key2) {
|
258646
|
+
let idx = identity2.isScalar(key2) ? key2.value : key2;
|
258647
258647
|
if (idx && typeof idx === "string")
|
258648
258648
|
idx = Number(idx);
|
258649
258649
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -259015,25 +259015,25 @@ ${cn.comment}` : item.comment;
|
|
259015
259015
|
for (let it2 of iterable) {
|
259016
259016
|
if (typeof replacer === "function")
|
259017
259017
|
it2 = replacer.call(iterable, String(i6++), it2);
|
259018
|
-
let
|
259018
|
+
let key2, value4;
|
259019
259019
|
if (Array.isArray(it2)) {
|
259020
259020
|
if (it2.length === 2) {
|
259021
|
-
|
259021
|
+
key2 = it2[0];
|
259022
259022
|
value4 = it2[1];
|
259023
259023
|
} else
|
259024
259024
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
259025
259025
|
} else if (it2 && it2 instanceof Object) {
|
259026
259026
|
const keys = Object.keys(it2);
|
259027
259027
|
if (keys.length === 1) {
|
259028
|
-
|
259029
|
-
value4 = it2[
|
259028
|
+
key2 = keys[0];
|
259029
|
+
value4 = it2[key2];
|
259030
259030
|
} else {
|
259031
259031
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
259032
259032
|
}
|
259033
259033
|
} else {
|
259034
|
-
|
259034
|
+
key2 = it2;
|
259035
259035
|
}
|
259036
|
-
pairs2.items.push(Pair.createPair(
|
259036
|
+
pairs2.items.push(Pair.createPair(key2, value4, ctx));
|
259037
259037
|
}
|
259038
259038
|
return pairs2;
|
259039
259039
|
}
|
@@ -259074,16 +259074,16 @@ var require_omap = __commonJS((exports) => {
|
|
259074
259074
|
if (ctx?.onCreate)
|
259075
259075
|
ctx.onCreate(map3);
|
259076
259076
|
for (const pair of this.items) {
|
259077
|
-
let
|
259077
|
+
let key2, value4;
|
259078
259078
|
if (identity2.isPair(pair)) {
|
259079
|
-
|
259080
|
-
value4 = toJS.toJS(pair.value,
|
259079
|
+
key2 = toJS.toJS(pair.key, "", ctx);
|
259080
|
+
value4 = toJS.toJS(pair.value, key2, ctx);
|
259081
259081
|
} else {
|
259082
|
-
|
259082
|
+
key2 = toJS.toJS(pair, "", ctx);
|
259083
259083
|
}
|
259084
|
-
if (map3.has(
|
259084
|
+
if (map3.has(key2))
|
259085
259085
|
throw new Error("Ordered maps must not include duplicate keys");
|
259086
|
-
map3.set(
|
259086
|
+
map3.set(key2, value4);
|
259087
259087
|
}
|
259088
259088
|
return map3;
|
259089
259089
|
}
|
@@ -259104,12 +259104,12 @@ var require_omap = __commonJS((exports) => {
|
|
259104
259104
|
resolve(seq, onError) {
|
259105
259105
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
259106
259106
|
const seenKeys = [];
|
259107
|
-
for (const { key:
|
259108
|
-
if (identity2.isScalar(
|
259109
|
-
if (seenKeys.includes(
|
259110
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
259107
|
+
for (const { key: key2 } of pairs$1.items) {
|
259108
|
+
if (identity2.isScalar(key2)) {
|
259109
|
+
if (seenKeys.includes(key2.value)) {
|
259110
|
+
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
259111
259111
|
} else {
|
259112
|
-
seenKeys.push(
|
259112
|
+
seenKeys.push(key2.value);
|
259113
259113
|
}
|
259114
259114
|
}
|
259115
259115
|
}
|
@@ -259283,30 +259283,30 @@ var require_set = __commonJS((exports) => {
|
|
259283
259283
|
super(schema);
|
259284
259284
|
this.tag = YAMLSet.tag;
|
259285
259285
|
}
|
259286
|
-
add(
|
259286
|
+
add(key2) {
|
259287
259287
|
let pair;
|
259288
|
-
if (identity2.isPair(
|
259289
|
-
pair =
|
259290
|
-
else if (
|
259291
|
-
pair = new Pair.Pair(
|
259288
|
+
if (identity2.isPair(key2))
|
259289
|
+
pair = key2;
|
259290
|
+
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
259291
|
+
pair = new Pair.Pair(key2.key, null);
|
259292
259292
|
else
|
259293
|
-
pair = new Pair.Pair(
|
259293
|
+
pair = new Pair.Pair(key2, null);
|
259294
259294
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
259295
259295
|
if (!prev)
|
259296
259296
|
this.items.push(pair);
|
259297
259297
|
}
|
259298
|
-
get(
|
259299
|
-
const pair = YAMLMap.findPair(this.items,
|
259298
|
+
get(key2, keepPair) {
|
259299
|
+
const pair = YAMLMap.findPair(this.items, key2);
|
259300
259300
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
259301
259301
|
}
|
259302
|
-
set(
|
259302
|
+
set(key2, value4) {
|
259303
259303
|
if (typeof value4 !== "boolean")
|
259304
259304
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
259305
|
-
const prev = YAMLMap.findPair(this.items,
|
259305
|
+
const prev = YAMLMap.findPair(this.items, key2);
|
259306
259306
|
if (prev && !value4) {
|
259307
259307
|
this.items.splice(this.items.indexOf(prev), 1);
|
259308
259308
|
} else if (!prev && value4) {
|
259309
|
-
this.items.push(new Pair.Pair(
|
259309
|
+
this.items.push(new Pair.Pair(key2));
|
259310
259310
|
}
|
259311
259311
|
}
|
259312
259312
|
toJSON(_5, ctx) {
|
@@ -259541,7 +259541,7 @@ var require_tags = __commonJS((exports) => {
|
|
259541
259541
|
if (Array.isArray(customTags))
|
259542
259542
|
tags = [];
|
259543
259543
|
else {
|
259544
|
-
const keys = Array.from(schemas.keys()).filter((
|
259544
|
+
const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
|
259545
259545
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
259546
259546
|
}
|
259547
259547
|
}
|
@@ -259557,7 +259557,7 @@ var require_tags = __commonJS((exports) => {
|
|
259557
259557
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
259558
259558
|
if (!tagObj) {
|
259559
259559
|
const tagName = JSON.stringify(tag);
|
259560
|
-
const keys = Object.keys(tagsByName).map((
|
259560
|
+
const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
|
259561
259561
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
259562
259562
|
}
|
259563
259563
|
if (!tags2.includes(tagObj))
|
@@ -259792,13 +259792,13 @@ var require_Document = __commonJS((exports) => {
|
|
259792
259792
|
setAnchors();
|
259793
259793
|
return node;
|
259794
259794
|
}
|
259795
|
-
createPair(
|
259796
|
-
const k5 = this.createNode(
|
259795
|
+
createPair(key2, value4, options = {}) {
|
259796
|
+
const k5 = this.createNode(key2, null, options);
|
259797
259797
|
const v7 = this.createNode(value4, null, options);
|
259798
259798
|
return new Pair.Pair(k5, v7);
|
259799
259799
|
}
|
259800
|
-
delete(
|
259801
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
259800
|
+
delete(key2) {
|
259801
|
+
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
259802
259802
|
}
|
259803
259803
|
deleteIn(path6) {
|
259804
259804
|
if (Collection.isEmptyPath(path6)) {
|
@@ -259809,27 +259809,27 @@ var require_Document = __commonJS((exports) => {
|
|
259809
259809
|
}
|
259810
259810
|
return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
|
259811
259811
|
}
|
259812
|
-
get(
|
259813
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
259812
|
+
get(key2, keepScalar) {
|
259813
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
259814
259814
|
}
|
259815
259815
|
getIn(path6, keepScalar) {
|
259816
259816
|
if (Collection.isEmptyPath(path6))
|
259817
259817
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
259818
259818
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
|
259819
259819
|
}
|
259820
|
-
has(
|
259821
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
259820
|
+
has(key2) {
|
259821
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
|
259822
259822
|
}
|
259823
259823
|
hasIn(path6) {
|
259824
259824
|
if (Collection.isEmptyPath(path6))
|
259825
259825
|
return this.contents !== undefined;
|
259826
259826
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
|
259827
259827
|
}
|
259828
|
-
set(
|
259828
|
+
set(key2, value4) {
|
259829
259829
|
if (this.contents == null) {
|
259830
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
259830
|
+
this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
|
259831
259831
|
} else if (assertCollection(this.contents)) {
|
259832
|
-
this.contents.set(
|
259832
|
+
this.contents.set(key2, value4);
|
259833
259833
|
}
|
259834
259834
|
}
|
259835
259835
|
setIn(path6, value4) {
|
@@ -260113,25 +260113,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
260113
260113
|
|
260114
260114
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
260115
260115
|
var require_util_contains_newline = __commonJS((exports) => {
|
260116
|
-
function containsNewline(
|
260117
|
-
if (!
|
260116
|
+
function containsNewline(key2) {
|
260117
|
+
if (!key2)
|
260118
260118
|
return null;
|
260119
|
-
switch (
|
260119
|
+
switch (key2.type) {
|
260120
260120
|
case "alias":
|
260121
260121
|
case "scalar":
|
260122
260122
|
case "double-quoted-scalar":
|
260123
260123
|
case "single-quoted-scalar":
|
260124
|
-
if (
|
260124
|
+
if (key2.source.includes(`
|
260125
260125
|
`))
|
260126
260126
|
return true;
|
260127
|
-
if (
|
260128
|
-
for (const st2 of
|
260127
|
+
if (key2.end) {
|
260128
|
+
for (const st2 of key2.end)
|
260129
260129
|
if (st2.type === "newline")
|
260130
260130
|
return true;
|
260131
260131
|
}
|
260132
260132
|
return false;
|
260133
260133
|
case "flow-collection":
|
260134
|
-
for (const it2 of
|
260134
|
+
for (const it2 of key2.items) {
|
260135
260135
|
for (const st2 of it2.start)
|
260136
260136
|
if (st2.type === "newline")
|
260137
260137
|
return true;
|
@@ -260196,10 +260196,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260196
260196
|
let offset = bm.offset;
|
260197
260197
|
let commentEnd = null;
|
260198
260198
|
for (const collItem of bm.items) {
|
260199
|
-
const { start: start3, key:
|
260199
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
260200
260200
|
const keyProps = resolveProps.resolveProps(start3, {
|
260201
260201
|
indicator: "explicit-key-ind",
|
260202
|
-
next:
|
260202
|
+
next: key2 ?? sep3?.[0],
|
260203
260203
|
offset,
|
260204
260204
|
onError,
|
260205
260205
|
parentIndent: bm.indent,
|
@@ -260207,10 +260207,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260207
260207
|
});
|
260208
260208
|
const implicitKey = !keyProps.found;
|
260209
260209
|
if (implicitKey) {
|
260210
|
-
if (
|
260211
|
-
if (
|
260210
|
+
if (key2) {
|
260211
|
+
if (key2.type === "block-seq")
|
260212
260212
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
260213
|
-
else if ("indent" in
|
260213
|
+
else if ("indent" in key2 && key2.indent !== bm.indent)
|
260214
260214
|
onError(offset, "BAD_INDENT", startColMsg);
|
260215
260215
|
}
|
260216
260216
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -260224,17 +260224,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260224
260224
|
}
|
260225
260225
|
continue;
|
260226
260226
|
}
|
260227
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
260228
|
-
onError(
|
260227
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
|
260228
|
+
onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
260229
260229
|
}
|
260230
260230
|
} else if (keyProps.found?.indent !== bm.indent) {
|
260231
260231
|
onError(offset, "BAD_INDENT", startColMsg);
|
260232
260232
|
}
|
260233
260233
|
ctx.atKey = true;
|
260234
260234
|
const keyStart = keyProps.end;
|
260235
|
-
const keyNode =
|
260235
|
+
const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
260236
260236
|
if (ctx.schema.compat)
|
260237
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
260237
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
|
260238
260238
|
ctx.atKey = false;
|
260239
260239
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
260240
260240
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -260244,7 +260244,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260244
260244
|
offset: keyNode.range[2],
|
260245
260245
|
onError,
|
260246
260246
|
parentIndent: bm.indent,
|
260247
|
-
startOnNewline: !
|
260247
|
+
startOnNewline: !key2 || key2.type === "block-scalar"
|
260248
260248
|
});
|
260249
260249
|
offset = valueProps.end;
|
260250
260250
|
if (valueProps.found) {
|
@@ -260400,11 +260400,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260400
260400
|
let offset = fc.offset + fc.start.source.length;
|
260401
260401
|
for (let i6 = 0;i6 < fc.items.length; ++i6) {
|
260402
260402
|
const collItem = fc.items[i6];
|
260403
|
-
const { start: start3, key:
|
260403
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
260404
260404
|
const props = resolveProps.resolveProps(start3, {
|
260405
260405
|
flow: fcName,
|
260406
260406
|
indicator: "explicit-key-ind",
|
260407
|
-
next:
|
260407
|
+
next: key2 ?? sep3?.[0],
|
260408
260408
|
offset,
|
260409
260409
|
onError,
|
260410
260410
|
parentIndent: fc.indent,
|
@@ -260426,8 +260426,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260426
260426
|
offset = props.end;
|
260427
260427
|
continue;
|
260428
260428
|
}
|
260429
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
260430
|
-
onError(
|
260429
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
|
260430
|
+
onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
260431
260431
|
}
|
260432
260432
|
if (i6 === 0) {
|
260433
260433
|
if (props.comma)
|
@@ -260472,8 +260472,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260472
260472
|
} else {
|
260473
260473
|
ctx.atKey = true;
|
260474
260474
|
const keyStart = props.end;
|
260475
|
-
const keyNode =
|
260476
|
-
if (isBlock(
|
260475
|
+
const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
260476
|
+
if (isBlock(key2))
|
260477
260477
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
260478
260478
|
ctx.atKey = false;
|
260479
260479
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -261285,7 +261285,7 @@ var require_composer = __commonJS((exports) => {
|
|
261285
261285
|
var node_process = __require("node:process");
|
261286
261286
|
var directives4 = require_directives2();
|
261287
261287
|
var Document = require_Document();
|
261288
|
-
var
|
261288
|
+
var errors2 = require_errors3();
|
261289
261289
|
var identity2 = require_identity();
|
261290
261290
|
var composeDoc = require_compose_doc();
|
261291
261291
|
var resolveEnd = require_resolve_end();
|
@@ -261336,9 +261336,9 @@ var require_composer = __commonJS((exports) => {
|
|
261336
261336
|
this.onError = (source, code2, message, warning) => {
|
261337
261337
|
const pos = getErrorPos(source);
|
261338
261338
|
if (warning)
|
261339
|
-
this.warnings.push(new
|
261339
|
+
this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
|
261340
261340
|
else
|
261341
|
-
this.errors.push(new
|
261341
|
+
this.errors.push(new errors2.YAMLParseError(pos, code2, message));
|
261342
261342
|
};
|
261343
261343
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
261344
261344
|
this.options = options;
|
@@ -261422,7 +261422,7 @@ ${cb}` : comment;
|
|
261422
261422
|
break;
|
261423
261423
|
case "error": {
|
261424
261424
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
261425
|
-
const error5 = new
|
261425
|
+
const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
261426
261426
|
if (this.atDirectives || !this.doc)
|
261427
261427
|
this.errors.push(error5);
|
261428
261428
|
else
|
@@ -261432,7 +261432,7 @@ ${cb}` : comment;
|
|
261432
261432
|
case "doc-end": {
|
261433
261433
|
if (!this.doc) {
|
261434
261434
|
const msg = "Unexpected doc-end without preceding document";
|
261435
|
-
this.errors.push(new
|
261435
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
261436
261436
|
break;
|
261437
261437
|
}
|
261438
261438
|
this.doc.directives.docEnd = true;
|
@@ -261447,7 +261447,7 @@ ${end.comment}` : end.comment;
|
|
261447
261447
|
break;
|
261448
261448
|
}
|
261449
261449
|
default:
|
261450
|
-
this.errors.push(new
|
261450
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
261451
261451
|
}
|
261452
261452
|
}
|
261453
261453
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -261473,7 +261473,7 @@ ${end.comment}` : end.comment;
|
|
261473
261473
|
var require_cst_scalar = __commonJS((exports) => {
|
261474
261474
|
var resolveBlockScalar = require_resolve_block_scalar();
|
261475
261475
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
261476
|
-
var
|
261476
|
+
var errors2 = require_errors3();
|
261477
261477
|
var stringifyString = require_stringifyString();
|
261478
261478
|
function resolveAsScalar(token, strict = true, onError) {
|
261479
261479
|
if (token) {
|
@@ -261482,7 +261482,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261482
261482
|
if (onError)
|
261483
261483
|
onError(offset, code2, message);
|
261484
261484
|
else
|
261485
|
-
throw new
|
261485
|
+
throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
|
261486
261486
|
};
|
261487
261487
|
switch (token.type) {
|
261488
261488
|
case "scalar":
|
@@ -261596,9 +261596,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261596
261596
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
261597
261597
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
261598
261598
|
` });
|
261599
|
-
for (const
|
261600
|
-
if (
|
261601
|
-
delete token[
|
261599
|
+
for (const key2 of Object.keys(token))
|
261600
|
+
if (key2 !== "type" && key2 !== "offset")
|
261601
|
+
delete token[key2];
|
261602
261602
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
261603
261603
|
}
|
261604
261604
|
}
|
@@ -261647,9 +261647,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261647
261647
|
default: {
|
261648
261648
|
const indent2 = "indent" in token ? token.indent : -1;
|
261649
261649
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
261650
|
-
for (const
|
261651
|
-
if (
|
261652
|
-
delete token[
|
261650
|
+
for (const key2 of Object.keys(token))
|
261651
|
+
if (key2 !== "type" && key2 !== "offset")
|
261652
|
+
delete token[key2];
|
261653
261653
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
261654
261654
|
}
|
261655
261655
|
}
|
@@ -261701,12 +261701,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
261701
261701
|
}
|
261702
261702
|
}
|
261703
261703
|
}
|
261704
|
-
function stringifyItem({ start: start3, key:
|
261704
|
+
function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
|
261705
261705
|
let res = "";
|
261706
261706
|
for (const st2 of start3)
|
261707
261707
|
res += st2.source;
|
261708
|
-
if (
|
261709
|
-
res += stringifyToken(
|
261708
|
+
if (key2)
|
261709
|
+
res += stringifyToken(key2);
|
261710
261710
|
if (sep3)
|
261711
261711
|
for (const st2 of sep3)
|
261712
261712
|
res += st2.source;
|
@@ -263003,7 +263003,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263003
263003
|
});
|
263004
263004
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
263005
263005
|
const start4 = getFirstKeyStartProps(it2.start);
|
263006
|
-
const
|
263006
|
+
const key2 = it2.key;
|
263007
263007
|
const sep3 = it2.sep;
|
263008
263008
|
sep3.push(this.sourceToken);
|
263009
263009
|
delete it2.key;
|
@@ -263012,7 +263012,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263012
263012
|
type: "block-map",
|
263013
263013
|
offset: this.offset,
|
263014
263014
|
indent: this.indent,
|
263015
|
-
items: [{ start: start4, key:
|
263015
|
+
items: [{ start: start4, key: key2, sep: sep3 }]
|
263016
263016
|
});
|
263017
263017
|
} else if (start3.length > 0) {
|
263018
263018
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -263335,7 +263335,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263335
263335
|
var require_public_api = __commonJS((exports) => {
|
263336
263336
|
var composer = require_composer();
|
263337
263337
|
var Document = require_Document();
|
263338
|
-
var
|
263338
|
+
var errors2 = require_errors3();
|
263339
263339
|
var log = require_log();
|
263340
263340
|
var identity2 = require_identity();
|
263341
263341
|
var lineCounter = require_line_counter();
|
@@ -263352,8 +263352,8 @@ var require_public_api = __commonJS((exports) => {
|
|
263352
263352
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
263353
263353
|
if (prettyErrors && lineCounter2)
|
263354
263354
|
for (const doc of docs) {
|
263355
|
-
doc.errors.forEach(
|
263356
|
-
doc.warnings.forEach(
|
263355
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
263356
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
263357
263357
|
}
|
263358
263358
|
if (docs.length > 0)
|
263359
263359
|
return docs;
|
@@ -263368,13 +263368,13 @@ var require_public_api = __commonJS((exports) => {
|
|
263368
263368
|
if (!doc)
|
263369
263369
|
doc = _doc;
|
263370
263370
|
else if (doc.options.logLevel !== "silent") {
|
263371
|
-
doc.errors.push(new
|
263371
|
+
doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
263372
263372
|
break;
|
263373
263373
|
}
|
263374
263374
|
}
|
263375
263375
|
if (prettyErrors && lineCounter2) {
|
263376
|
-
doc.errors.forEach(
|
263377
|
-
doc.warnings.forEach(
|
263376
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
263377
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
263378
263378
|
}
|
263379
263379
|
return doc;
|
263380
263380
|
}
|
@@ -274462,7 +274462,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
274462
274462
|
var package_default = {
|
274463
274463
|
name: "@settlemint/sdk-cli",
|
274464
274464
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
274465
|
-
version: "1.1.8-
|
274465
|
+
version: "1.1.8-pr9915eccf",
|
274466
274466
|
type: "module",
|
274467
274467
|
private: false,
|
274468
274468
|
license: "FSL-1.1-MIT",
|
@@ -274506,12 +274506,12 @@ var package_default = {
|
|
274506
274506
|
},
|
274507
274507
|
devDependencies: {
|
274508
274508
|
"@commander-js/extra-typings": "13.1.0",
|
274509
|
-
"@inquirer/confirm": "5.1.
|
274510
|
-
"@inquirer/input": "4.1.
|
274509
|
+
"@inquirer/confirm": "5.1.6",
|
274510
|
+
"@inquirer/input": "4.1.6",
|
274511
274511
|
"@inquirer/password": "4.0.9",
|
274512
|
-
"@inquirer/select": "4.0.
|
274513
|
-
"@settlemint/sdk-js": "1.1.8-
|
274514
|
-
"@settlemint/sdk-utils": "1.1.8-
|
274512
|
+
"@inquirer/select": "4.0.9",
|
274513
|
+
"@settlemint/sdk-js": "1.1.8-pr9915eccf",
|
274514
|
+
"@settlemint/sdk-utils": "1.1.8-pr9915eccf",
|
274515
274515
|
"@types/node": "22.13.4",
|
274516
274516
|
"@types/semver": "7.5.8",
|
274517
274517
|
"@types/which": "3.0.4",
|
@@ -280403,474 +280403,20 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
280403
280403
|
];
|
280404
280404
|
});
|
280405
280405
|
|
280406
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
280407
|
-
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
280408
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
280409
|
-
class AbortPromptError2 extends Error {
|
280410
|
-
name = "AbortPromptError";
|
280411
|
-
message = "Prompt was aborted";
|
280412
|
-
constructor(options) {
|
280413
|
-
super();
|
280414
|
-
this.cause = options?.cause;
|
280415
|
-
}
|
280416
|
-
}
|
280417
|
-
|
280418
|
-
class CancelPromptError2 extends Error {
|
280419
|
-
name = "CancelPromptError";
|
280420
|
-
message = "Prompt was canceled";
|
280421
|
-
}
|
280422
|
-
|
280423
|
-
class ExitPromptError2 extends Error {
|
280424
|
-
name = "ExitPromptError";
|
280425
|
-
}
|
280426
|
-
|
280427
|
-
class HookError2 extends Error {
|
280428
|
-
name = "HookError";
|
280429
|
-
}
|
280430
|
-
|
280431
|
-
class ValidationError2 extends Error {
|
280432
|
-
name = "ValidationError";
|
280433
|
-
}
|
280434
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
280435
|
-
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
280436
|
-
|
280437
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
280438
|
-
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
280439
|
-
var hookStorage2 = new AsyncLocalStorage2;
|
280440
|
-
function createStore2(rl) {
|
280441
|
-
const store = {
|
280442
|
-
rl,
|
280443
|
-
hooks: [],
|
280444
|
-
hooksCleanup: [],
|
280445
|
-
hooksEffect: [],
|
280446
|
-
index: 0,
|
280447
|
-
handleChange() {
|
280448
|
-
}
|
280449
|
-
};
|
280450
|
-
return store;
|
280451
|
-
}
|
280452
|
-
function withHooks2(rl, cb) {
|
280453
|
-
const store = createStore2(rl);
|
280454
|
-
return hookStorage2.run(store, () => {
|
280455
|
-
function cycle(render) {
|
280456
|
-
store.handleChange = () => {
|
280457
|
-
store.index = 0;
|
280458
|
-
render();
|
280459
|
-
};
|
280460
|
-
store.handleChange();
|
280461
|
-
}
|
280462
|
-
return cb(cycle);
|
280463
|
-
});
|
280464
|
-
}
|
280465
|
-
function getStore2() {
|
280466
|
-
const store = hookStorage2.getStore();
|
280467
|
-
if (!store) {
|
280468
|
-
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
280469
|
-
}
|
280470
|
-
return store;
|
280471
|
-
}
|
280472
|
-
function readline3() {
|
280473
|
-
return getStore2().rl;
|
280474
|
-
}
|
280475
|
-
function withUpdates2(fn) {
|
280476
|
-
const wrapped = (...args) => {
|
280477
|
-
const store = getStore2();
|
280478
|
-
let shouldUpdate = false;
|
280479
|
-
const oldHandleChange = store.handleChange;
|
280480
|
-
store.handleChange = () => {
|
280481
|
-
shouldUpdate = true;
|
280482
|
-
};
|
280483
|
-
const returnValue = fn(...args);
|
280484
|
-
if (shouldUpdate) {
|
280485
|
-
oldHandleChange();
|
280486
|
-
}
|
280487
|
-
store.handleChange = oldHandleChange;
|
280488
|
-
return returnValue;
|
280489
|
-
};
|
280490
|
-
return AsyncResource4.bind(wrapped);
|
280491
|
-
}
|
280492
|
-
function withPointer2(cb) {
|
280493
|
-
const store = getStore2();
|
280494
|
-
const { index } = store;
|
280495
|
-
const pointer = {
|
280496
|
-
get() {
|
280497
|
-
return store.hooks[index];
|
280498
|
-
},
|
280499
|
-
set(value4) {
|
280500
|
-
store.hooks[index] = value4;
|
280501
|
-
},
|
280502
|
-
initialized: index in store.hooks
|
280503
|
-
};
|
280504
|
-
const returnValue = cb(pointer);
|
280505
|
-
store.index++;
|
280506
|
-
return returnValue;
|
280507
|
-
}
|
280508
|
-
function handleChange2() {
|
280509
|
-
getStore2().handleChange();
|
280510
|
-
}
|
280511
|
-
var effectScheduler2 = {
|
280512
|
-
queue(cb) {
|
280513
|
-
const store = getStore2();
|
280514
|
-
const { index } = store;
|
280515
|
-
store.hooksEffect.push(() => {
|
280516
|
-
store.hooksCleanup[index]?.();
|
280517
|
-
const cleanFn = cb(readline3());
|
280518
|
-
if (cleanFn != null && typeof cleanFn !== "function") {
|
280519
|
-
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
280520
|
-
}
|
280521
|
-
store.hooksCleanup[index] = cleanFn;
|
280522
|
-
});
|
280523
|
-
},
|
280524
|
-
run() {
|
280525
|
-
const store = getStore2();
|
280526
|
-
withUpdates2(() => {
|
280527
|
-
store.hooksEffect.forEach((effect) => {
|
280528
|
-
effect();
|
280529
|
-
});
|
280530
|
-
store.hooksEffect.length = 0;
|
280531
|
-
})();
|
280532
|
-
},
|
280533
|
-
clearAll() {
|
280534
|
-
const store = getStore2();
|
280535
|
-
store.hooksCleanup.forEach((cleanFn) => {
|
280536
|
-
cleanFn?.();
|
280537
|
-
});
|
280538
|
-
store.hooksEffect.length = 0;
|
280539
|
-
store.hooksCleanup.length = 0;
|
280540
|
-
}
|
280541
|
-
};
|
280542
|
-
|
280543
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
280544
|
-
function useState2(defaultValue) {
|
280545
|
-
return withPointer2((pointer) => {
|
280546
|
-
const setFn = (newValue) => {
|
280547
|
-
if (pointer.get() !== newValue) {
|
280548
|
-
pointer.set(newValue);
|
280549
|
-
handleChange2();
|
280550
|
-
}
|
280551
|
-
};
|
280552
|
-
if (pointer.initialized) {
|
280553
|
-
return [pointer.get(), setFn];
|
280554
|
-
}
|
280555
|
-
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
280556
|
-
pointer.set(value4);
|
280557
|
-
return [value4, setFn];
|
280558
|
-
});
|
280559
|
-
}
|
280560
|
-
|
280561
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
280562
|
-
function useEffect2(cb, depArray) {
|
280563
|
-
withPointer2((pointer) => {
|
280564
|
-
const oldDeps = pointer.get();
|
280565
|
-
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
280566
|
-
if (hasChanged) {
|
280567
|
-
effectScheduler2.queue(cb);
|
280568
|
-
}
|
280569
|
-
pointer.set(depArray);
|
280570
|
-
});
|
280571
|
-
}
|
280572
|
-
|
280573
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
280574
|
-
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
280575
|
-
var defaultTheme2 = {
|
280576
|
-
prefix: {
|
280577
|
-
idle: import_yoctocolors_cjs4.default.blue("?"),
|
280578
|
-
done: import_yoctocolors_cjs4.default.green(esm_default.tick)
|
280579
|
-
},
|
280580
|
-
spinner: {
|
280581
|
-
interval: 80,
|
280582
|
-
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
280583
|
-
},
|
280584
|
-
style: {
|
280585
|
-
answer: import_yoctocolors_cjs4.default.cyan,
|
280586
|
-
message: import_yoctocolors_cjs4.default.bold,
|
280587
|
-
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
280588
|
-
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
280589
|
-
help: import_yoctocolors_cjs4.default.dim,
|
280590
|
-
highlight: import_yoctocolors_cjs4.default.cyan,
|
280591
|
-
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
280592
|
-
}
|
280593
|
-
};
|
280594
|
-
|
280595
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
280596
|
-
function isPlainObject3(value4) {
|
280597
|
-
if (typeof value4 !== "object" || value4 === null)
|
280598
|
-
return false;
|
280599
|
-
let proto = value4;
|
280600
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
280601
|
-
proto = Object.getPrototypeOf(proto);
|
280602
|
-
}
|
280603
|
-
return Object.getPrototypeOf(value4) === proto;
|
280604
|
-
}
|
280605
|
-
function deepMerge3(...objects) {
|
280606
|
-
const output = {};
|
280607
|
-
for (const obj of objects) {
|
280608
|
-
for (const [key2, value4] of Object.entries(obj)) {
|
280609
|
-
const prevValue = output[key2];
|
280610
|
-
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
280611
|
-
}
|
280612
|
-
}
|
280613
|
-
return output;
|
280614
|
-
}
|
280615
|
-
function makeTheme2(...themes) {
|
280616
|
-
const themesToMerge = [
|
280617
|
-
defaultTheme2,
|
280618
|
-
...themes.filter((theme) => theme != null)
|
280619
|
-
];
|
280620
|
-
return deepMerge3(...themesToMerge);
|
280621
|
-
}
|
280622
|
-
|
280623
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
280624
|
-
function usePrefix2({ status = "idle", theme }) {
|
280625
|
-
const [showLoader, setShowLoader] = useState2(false);
|
280626
|
-
const [tick, setTick] = useState2(0);
|
280627
|
-
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
280628
|
-
useEffect2(() => {
|
280629
|
-
if (status === "loading") {
|
280630
|
-
let tickInterval;
|
280631
|
-
let inc = -1;
|
280632
|
-
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
280633
|
-
setShowLoader(true);
|
280634
|
-
tickInterval = setInterval(AsyncResource5.bind(() => {
|
280635
|
-
inc = inc + 1;
|
280636
|
-
setTick(inc % spinner2.frames.length);
|
280637
|
-
}), spinner2.interval);
|
280638
|
-
}), 300);
|
280639
|
-
return () => {
|
280640
|
-
clearTimeout(delayTimeout);
|
280641
|
-
clearInterval(tickInterval);
|
280642
|
-
};
|
280643
|
-
} else {
|
280644
|
-
setShowLoader(false);
|
280645
|
-
}
|
280646
|
-
}, [status]);
|
280647
|
-
if (showLoader) {
|
280648
|
-
return spinner2.frames[tick];
|
280649
|
-
}
|
280650
|
-
const iconName = status === "loading" ? "idle" : status;
|
280651
|
-
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
280652
|
-
}
|
280653
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
280654
|
-
function useRef2(val) {
|
280655
|
-
return useState2({ current: val })[0];
|
280656
|
-
}
|
280657
|
-
|
280658
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
280659
|
-
function useKeypress2(userHandler) {
|
280660
|
-
const signal = useRef2(userHandler);
|
280661
|
-
signal.current = userHandler;
|
280662
|
-
useEffect2((rl) => {
|
280663
|
-
let ignore = false;
|
280664
|
-
const handler = withUpdates2((_input, event) => {
|
280665
|
-
if (ignore)
|
280666
|
-
return;
|
280667
|
-
signal.current(event, rl);
|
280668
|
-
});
|
280669
|
-
rl.input.on("keypress", handler);
|
280670
|
-
return () => {
|
280671
|
-
ignore = true;
|
280672
|
-
rl.input.removeListener("keypress", handler);
|
280673
|
-
};
|
280674
|
-
}, []);
|
280675
|
-
}
|
280676
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
280677
|
-
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
280678
|
-
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
280679
|
-
function breakLines2(content, width) {
|
280680
|
-
return content.split(`
|
280681
|
-
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
280682
|
-
`).map((str) => str.trimEnd())).join(`
|
280683
|
-
`);
|
280684
|
-
}
|
280685
|
-
function readlineWidth2() {
|
280686
|
-
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
280687
|
-
}
|
280688
|
-
|
280689
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
280690
|
-
var import_mute_stream2 = __toESM(require_lib(), 1);
|
280691
|
-
import * as readline4 from "node:readline";
|
280692
|
-
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
280693
|
-
|
280694
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
280695
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
280696
|
-
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
280697
|
-
var height2 = (content) => content.split(`
|
280698
|
-
`).length;
|
280699
|
-
var lastLine2 = (content) => content.split(`
|
280700
|
-
`).pop() ?? "";
|
280701
|
-
function cursorDown2(n6) {
|
280702
|
-
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
280703
|
-
}
|
280704
|
-
|
280705
|
-
class ScreenManager2 {
|
280706
|
-
rl;
|
280707
|
-
height = 0;
|
280708
|
-
extraLinesUnderPrompt = 0;
|
280709
|
-
cursorPos;
|
280710
|
-
constructor(rl) {
|
280711
|
-
this.rl = rl;
|
280712
|
-
this.rl = rl;
|
280713
|
-
this.cursorPos = rl.getCursorPos();
|
280714
|
-
}
|
280715
|
-
write(content) {
|
280716
|
-
this.rl.output.unmute();
|
280717
|
-
this.rl.output.write(content);
|
280718
|
-
this.rl.output.mute();
|
280719
|
-
}
|
280720
|
-
render(content, bottomContent = "") {
|
280721
|
-
const promptLine = lastLine2(content);
|
280722
|
-
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
280723
|
-
let prompt = rawPromptLine;
|
280724
|
-
if (this.rl.line.length > 0) {
|
280725
|
-
prompt = prompt.slice(0, -this.rl.line.length);
|
280726
|
-
}
|
280727
|
-
this.rl.setPrompt(prompt);
|
280728
|
-
this.cursorPos = this.rl.getCursorPos();
|
280729
|
-
const width = readlineWidth2();
|
280730
|
-
content = breakLines2(content, width);
|
280731
|
-
bottomContent = breakLines2(bottomContent, width);
|
280732
|
-
if (rawPromptLine.length % width === 0) {
|
280733
|
-
content += `
|
280734
|
-
`;
|
280735
|
-
}
|
280736
|
-
let output = content + (bottomContent ? `
|
280737
|
-
` + bottomContent : "");
|
280738
|
-
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
280739
|
-
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
280740
|
-
if (bottomContentHeight > 0)
|
280741
|
-
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
280742
|
-
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
280743
|
-
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
280744
|
-
this.extraLinesUnderPrompt = bottomContentHeight;
|
280745
|
-
this.height = height2(output);
|
280746
|
-
}
|
280747
|
-
checkCursorPos() {
|
280748
|
-
const cursorPos = this.rl.getCursorPos();
|
280749
|
-
if (cursorPos.cols !== this.cursorPos.cols) {
|
280750
|
-
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
280751
|
-
this.cursorPos = cursorPos;
|
280752
|
-
}
|
280753
|
-
}
|
280754
|
-
done({ clearContent }) {
|
280755
|
-
this.rl.setPrompt("");
|
280756
|
-
let output = cursorDown2(this.extraLinesUnderPrompt);
|
280757
|
-
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
280758
|
-
`;
|
280759
|
-
output += import_ansi_escapes3.default.cursorShow;
|
280760
|
-
this.write(output);
|
280761
|
-
this.rl.close();
|
280762
|
-
}
|
280763
|
-
}
|
280764
|
-
|
280765
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
280766
|
-
class PromisePolyfill2 extends Promise {
|
280767
|
-
static withResolver() {
|
280768
|
-
let resolve6;
|
280769
|
-
let reject;
|
280770
|
-
const promise = new Promise((res, rej) => {
|
280771
|
-
resolve6 = res;
|
280772
|
-
reject = rej;
|
280773
|
-
});
|
280774
|
-
return { promise, resolve: resolve6, reject };
|
280775
|
-
}
|
280776
|
-
}
|
280777
|
-
|
280778
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
280779
|
-
function getCallSites2() {
|
280780
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
280781
|
-
try {
|
280782
|
-
let result = [];
|
280783
|
-
Error.prepareStackTrace = (_5, callSites) => {
|
280784
|
-
const callSitesWithoutCurrent = callSites.slice(1);
|
280785
|
-
result = callSitesWithoutCurrent;
|
280786
|
-
return callSitesWithoutCurrent;
|
280787
|
-
};
|
280788
|
-
new Error().stack;
|
280789
|
-
return result;
|
280790
|
-
} finally {
|
280791
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
280792
|
-
}
|
280793
|
-
}
|
280794
|
-
function createPrompt2(view) {
|
280795
|
-
const callSites = getCallSites2();
|
280796
|
-
const callerFilename = callSites[1]?.getFileName?.();
|
280797
|
-
const prompt = (config3, context = {}) => {
|
280798
|
-
const { input = process.stdin, signal } = context;
|
280799
|
-
const cleanups = new Set;
|
280800
|
-
const output = new import_mute_stream2.default;
|
280801
|
-
output.pipe(context.output ?? process.stdout);
|
280802
|
-
const rl = readline4.createInterface({
|
280803
|
-
terminal: true,
|
280804
|
-
input,
|
280805
|
-
output
|
280806
|
-
});
|
280807
|
-
const screen = new ScreenManager2(rl);
|
280808
|
-
const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
280809
|
-
const cancel3 = () => reject(new CancelPromptError2);
|
280810
|
-
if (signal) {
|
280811
|
-
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
280812
|
-
if (signal.aborted) {
|
280813
|
-
abort();
|
280814
|
-
return Object.assign(promise, { cancel: cancel3 });
|
280815
|
-
}
|
280816
|
-
signal.addEventListener("abort", abort);
|
280817
|
-
cleanups.add(() => signal.removeEventListener("abort", abort));
|
280818
|
-
}
|
280819
|
-
cleanups.add(onExit((code2, signal2) => {
|
280820
|
-
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
280821
|
-
}));
|
280822
|
-
const checkCursorPos = () => screen.checkCursorPos();
|
280823
|
-
rl.input.on("keypress", checkCursorPos);
|
280824
|
-
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
280825
|
-
return withHooks2(rl, (cycle) => {
|
280826
|
-
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
280827
|
-
rl.on("close", hooksCleanup);
|
280828
|
-
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
280829
|
-
cycle(() => {
|
280830
|
-
try {
|
280831
|
-
const nextView = view(config3, (value4) => {
|
280832
|
-
setImmediate(() => resolve6(value4));
|
280833
|
-
});
|
280834
|
-
if (nextView === undefined) {
|
280835
|
-
throw new Error(`Prompt functions must return a string.
|
280836
|
-
at ${callerFilename}`);
|
280837
|
-
}
|
280838
|
-
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
280839
|
-
screen.render(content, bottomContent);
|
280840
|
-
effectScheduler2.run();
|
280841
|
-
} catch (error5) {
|
280842
|
-
reject(error5);
|
280843
|
-
}
|
280844
|
-
});
|
280845
|
-
return Object.assign(promise.then((answer) => {
|
280846
|
-
effectScheduler2.clearAll();
|
280847
|
-
return answer;
|
280848
|
-
}, (error5) => {
|
280849
|
-
effectScheduler2.clearAll();
|
280850
|
-
throw error5;
|
280851
|
-
}).finally(() => {
|
280852
|
-
cleanups.forEach((cleanup) => cleanup());
|
280853
|
-
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
280854
|
-
output.end();
|
280855
|
-
}).then(() => promise), { cancel: cancel3 });
|
280856
|
-
});
|
280857
|
-
};
|
280858
|
-
return prompt;
|
280859
|
-
}
|
280860
280406
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
280861
|
-
var
|
280862
|
-
var esm_default5 =
|
280407
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
280408
|
+
var esm_default5 = createPrompt((config3, done) => {
|
280863
280409
|
const { validate: validate3 = () => true } = config3;
|
280864
|
-
const theme =
|
280865
|
-
const [status, setStatus] =
|
280866
|
-
const [errorMsg, setError] =
|
280867
|
-
const [value4, setValue] =
|
280868
|
-
const prefix =
|
280869
|
-
|
280410
|
+
const theme = makeTheme(config3.theme);
|
280411
|
+
const [status, setStatus] = useState("idle");
|
280412
|
+
const [errorMsg, setError] = useState();
|
280413
|
+
const [value4, setValue] = useState("");
|
280414
|
+
const prefix = usePrefix({ status, theme });
|
280415
|
+
useKeypress(async (key2, rl) => {
|
280870
280416
|
if (status !== "idle") {
|
280871
280417
|
return;
|
280872
280418
|
}
|
280873
|
-
if (
|
280419
|
+
if (isEnterKey(key2)) {
|
280874
280420
|
const answer = value4;
|
280875
280421
|
setStatus("loading");
|
280876
280422
|
const isValid2 = await validate3(answer);
|
@@ -280895,7 +280441,7 @@ var esm_default5 = createPrompt2((config3, done) => {
|
|
280895
280441
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
280896
280442
|
formattedValue = maskChar.repeat(value4.length);
|
280897
280443
|
} else if (status !== "done") {
|
280898
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
280444
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
|
280899
280445
|
}
|
280900
280446
|
if (status === "done") {
|
280901
280447
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -281967,7 +281513,7 @@ var basename2 = function(p6, extension) {
|
|
281967
281513
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
281968
281514
|
};
|
281969
281515
|
// ../../node_modules/defu/dist/defu.mjs
|
281970
|
-
function
|
281516
|
+
function isPlainObject3(value4) {
|
281971
281517
|
if (value4 === null || typeof value4 !== "object") {
|
281972
281518
|
return false;
|
281973
281519
|
}
|
@@ -281984,27 +281530,27 @@ function isPlainObject4(value4) {
|
|
281984
281530
|
return true;
|
281985
281531
|
}
|
281986
281532
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
281987
|
-
if (!
|
281533
|
+
if (!isPlainObject3(defaults2)) {
|
281988
281534
|
return _defu(baseObject, {}, namespace, merger);
|
281989
281535
|
}
|
281990
281536
|
const object = Object.assign({}, defaults2);
|
281991
|
-
for (const
|
281992
|
-
if (
|
281537
|
+
for (const key2 in baseObject) {
|
281538
|
+
if (key2 === "__proto__" || key2 === "constructor") {
|
281993
281539
|
continue;
|
281994
281540
|
}
|
281995
|
-
const value4 = baseObject[
|
281541
|
+
const value4 = baseObject[key2];
|
281996
281542
|
if (value4 === null || value4 === undefined) {
|
281997
281543
|
continue;
|
281998
281544
|
}
|
281999
|
-
if (merger && merger(object,
|
281545
|
+
if (merger && merger(object, key2, value4, namespace)) {
|
282000
281546
|
continue;
|
282001
281547
|
}
|
282002
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
282003
|
-
object[
|
282004
|
-
} else if (
|
282005
|
-
object[
|
281548
|
+
if (Array.isArray(value4) && Array.isArray(object[key2])) {
|
281549
|
+
object[key2] = [...value4, ...object[key2]];
|
281550
|
+
} else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
|
281551
|
+
object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
|
282006
281552
|
} else {
|
282007
|
-
object[
|
281553
|
+
object[key2] = value4;
|
282008
281554
|
}
|
282009
281555
|
}
|
282010
281556
|
return object;
|
@@ -282013,15 +281559,15 @@ function createDefu(merger) {
|
|
282013
281559
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
282014
281560
|
}
|
282015
281561
|
var defu = createDefu();
|
282016
|
-
var defuFn = createDefu((object,
|
282017
|
-
if (object[
|
282018
|
-
object[
|
281562
|
+
var defuFn = createDefu((object, key2, currentValue) => {
|
281563
|
+
if (object[key2] !== undefined && typeof currentValue === "function") {
|
281564
|
+
object[key2] = currentValue(object[key2]);
|
282019
281565
|
return true;
|
282020
281566
|
}
|
282021
281567
|
});
|
282022
|
-
var defuArrayFn = createDefu((object,
|
282023
|
-
if (Array.isArray(object[
|
282024
|
-
object[
|
281568
|
+
var defuArrayFn = createDefu((object, key2, currentValue) => {
|
281569
|
+
if (Array.isArray(object[key2]) && typeof currentValue === "function") {
|
281570
|
+
object[key2] = currentValue(object[key2]);
|
282025
281571
|
return true;
|
282026
281572
|
}
|
282027
281573
|
});
|
@@ -282283,11 +281829,11 @@ function cacheDirectory() {
|
|
282283
281829
|
}
|
282284
281830
|
function normalizeHeaders(headers = {}) {
|
282285
281831
|
const normalized = {};
|
282286
|
-
for (const [
|
281832
|
+
for (const [key2, value4] of Object.entries(headers)) {
|
282287
281833
|
if (!value4) {
|
282288
281834
|
continue;
|
282289
281835
|
}
|
282290
|
-
normalized[
|
281836
|
+
normalized[key2.toLowerCase()] = value4;
|
282291
281837
|
}
|
282292
281838
|
return normalized;
|
282293
281839
|
}
|
@@ -284520,7 +284066,7 @@ function jsonOutput(data) {
|
|
284520
284066
|
var composer = require_composer();
|
284521
284067
|
var Document = require_Document();
|
284522
284068
|
var Schema = require_Schema();
|
284523
|
-
var
|
284069
|
+
var errors2 = require_errors3();
|
284524
284070
|
var Alias = require_Alias();
|
284525
284071
|
var identity2 = require_identity();
|
284526
284072
|
var Pair = require_Pair();
|
@@ -284536,9 +284082,9 @@ var visit2 = require_visit();
|
|
284536
284082
|
var $Composer = composer.Composer;
|
284537
284083
|
var $Document = Document.Document;
|
284538
284084
|
var $Schema = Schema.Schema;
|
284539
|
-
var $YAMLError =
|
284540
|
-
var $YAMLParseError =
|
284541
|
-
var $YAMLWarning =
|
284085
|
+
var $YAMLError = errors2.YAMLError;
|
284086
|
+
var $YAMLParseError = errors2.YAMLParseError;
|
284087
|
+
var $YAMLWarning = errors2.YAMLWarning;
|
284542
284088
|
var $Alias = Alias.Alias;
|
284543
284089
|
var $isAlias = identity2.isAlias;
|
284544
284090
|
var $isCollection = identity2.isCollection;
|
@@ -284884,7 +284430,7 @@ async function getServicesAndMapResults({
|
|
284884
284430
|
const application = await settlemint.application.read(applicationUniqueName);
|
284885
284431
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
284886
284432
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
284887
|
-
const [_5, labels] = Object.entries(LABELS_MAP).find(([
|
284433
|
+
const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
|
284888
284434
|
null,
|
284889
284435
|
{ plural: serviceType }
|
284890
284436
|
];
|
@@ -285112,11 +284658,11 @@ function createCommand4() {
|
|
285112
284658
|
|
285113
284659
|
// src/utils/commands/passthrough-options.ts
|
285114
284660
|
function mapPassthroughOptions(options, command) {
|
285115
|
-
const optionArgs = Object.entries(options).map(([
|
284661
|
+
const optionArgs = Object.entries(options).map(([key2, value4]) => {
|
285116
284662
|
if (value4 === true) {
|
285117
|
-
return `--${
|
284663
|
+
return `--${key2}`;
|
285118
284664
|
}
|
285119
|
-
return `--${
|
284665
|
+
return `--${key2}=${value4}`;
|
285120
284666
|
});
|
285121
284667
|
return [...optionArgs, ...command.args];
|
285122
284668
|
}
|
@@ -286127,4 +285673,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
286127
285673
|
// src/cli.ts
|
286128
285674
|
sdkCliCommand();
|
286129
285675
|
|
286130
|
-
//# debugId=
|
285676
|
+
//# debugId=1CEECCCF6A1D49ED64756E2164756E21
|