@settlemint/sdk-cli 2.3.3-pr2c60f853 → 2.3.3-prda4a1f6a
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 +263 -244
- package/dist/cli.js.map +1 -1
- package/package.json +5 -5
package/dist/cli.js
CHANGED
@@ -311,9 +311,9 @@ var YoctoSpinner = class {
|
|
311
311
|
}
|
312
312
|
#lineCount(text) {
|
313
313
|
const width = this.#stream.columns ?? 80;
|
314
|
-
const lines = stripVTControlCharacters(text).split("\n");
|
314
|
+
const lines$1 = stripVTControlCharacters(text).split("\n");
|
315
315
|
let lineCount = 0;
|
316
|
-
for (const line of lines) {
|
316
|
+
for (const line of lines$1) {
|
317
317
|
lineCount += Math.max(1, Math.ceil(line.length / width));
|
318
318
|
}
|
319
319
|
return lineCount;
|
@@ -1154,8 +1154,8 @@ var require_string_utils = __commonJS({ "../../node_modules/console-table-printe
|
|
1154
1154
|
const console_utils_1$1 = require_console_utils();
|
1155
1155
|
const splitTextIntoTextsOfMinLen = (inpStr, width, charLength) => {
|
1156
1156
|
const ret = [];
|
1157
|
-
const lines = inpStr.split(/[\n\r]/);
|
1158
|
-
lines.forEach((line) => {
|
1157
|
+
const lines$1 = inpStr.split(/[\n\r]/);
|
1158
|
+
lines$1.forEach((line) => {
|
1159
1159
|
const spaceSeparatedStrings = line.split(" ");
|
1160
1160
|
let now = [];
|
1161
1161
|
let cnt = 0;
|
@@ -4568,10 +4568,10 @@ var require_main$1 = __commonJS({ "../../node_modules/dotenv/lib/main.js"(export
|
|
4568
4568
|
const LINE$2 = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
4569
4569
|
function parse$22(src$1) {
|
4570
4570
|
const obj = {};
|
4571
|
-
let lines = src$1.toString();
|
4572
|
-
lines = lines.replace(/\r\n?/gm, "\n");
|
4571
|
+
let lines$1 = src$1.toString();
|
4572
|
+
lines$1 = lines$1.replace(/\r\n?/gm, "\n");
|
4573
4573
|
let match$4;
|
4574
|
-
while ((match$4 = LINE$2.exec(lines)) != null) {
|
4574
|
+
while ((match$4 = LINE$2.exec(lines$1)) != null) {
|
4575
4575
|
const key = match$4[1];
|
4576
4576
|
let value = match$4[2] || "";
|
4577
4577
|
value = value.trim();
|
@@ -5906,7 +5906,7 @@ var require__u64 = __commonJS({ "../../node_modules/@noble/hashes/_u64.js"(expor
|
|
5906
5906
|
exports.toBig = exports.shrSL = exports.shrSH = exports.rotrSL = exports.rotrSH = exports.rotrBL = exports.rotrBH = exports.rotr32L = exports.rotr32H = exports.rotlSL = exports.rotlSH = exports.rotlBL = exports.rotlBH = exports.add5L = exports.add5H = exports.add4L = exports.add4H = exports.add3L = exports.add3H = void 0;
|
5907
5907
|
exports.add = add;
|
5908
5908
|
exports.fromBig = fromBig;
|
5909
|
-
exports.split = split;
|
5909
|
+
exports.split = split$1;
|
5910
5910
|
/**
|
5911
5911
|
* Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
|
5912
5912
|
* @todo re-check https://issues.chromium.org/issues/42212588
|
@@ -5924,7 +5924,7 @@ var require__u64 = __commonJS({ "../../node_modules/@noble/hashes/_u64.js"(expor
|
|
5924
5924
|
l: Number(n$4 & U32_MASK64) | 0
|
5925
5925
|
};
|
5926
5926
|
}
|
5927
|
-
function split(lst, le$2 = false) {
|
5927
|
+
function split$1(lst, le$2 = false) {
|
5928
5928
|
const len = lst.length;
|
5929
5929
|
let Ah = new Uint32Array(len);
|
5930
5930
|
let Al = new Uint32Array(len);
|
@@ -5981,7 +5981,7 @@ var require__u64 = __commonJS({ "../../node_modules/@noble/hashes/_u64.js"(expor
|
|
5981
5981
|
exports.add5H = add5H;
|
5982
5982
|
const u64$1 = {
|
5983
5983
|
fromBig,
|
5984
|
-
split,
|
5984
|
+
split: split$1,
|
5985
5985
|
toBig,
|
5986
5986
|
shrSH,
|
5987
5987
|
shrSL,
|
@@ -11130,9 +11130,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/@dotenvx/dotenvx/src/lib/
|
|
11130
11130
|
this.literals = {};
|
11131
11131
|
}
|
11132
11132
|
run() {
|
11133
|
-
const lines = this.getLines();
|
11133
|
+
const lines$1 = this.getLines();
|
11134
11134
|
let match$4;
|
11135
|
-
while ((match$4 = Parse$2.LINE.exec(lines)) !== null) {
|
11135
|
+
while ((match$4 = Parse$2.LINE.exec(lines$1)) !== null) {
|
11136
11136
|
const key = match$4[1];
|
11137
11137
|
const value = match$4[2];
|
11138
11138
|
const quote$1 = this.quote(value);
|
@@ -11277,12 +11277,12 @@ var require_dotenvParse = __commonJS({ "../../node_modules/@dotenvx/dotenvx/src/
|
|
11277
11277
|
const LINE$1 = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
11278
11278
|
function dotenvParse$6(src$1, skipExpandForDoubleQuotes = false, skipConvertingWindowsNewlines = false, collectAllValues = false) {
|
11279
11279
|
const obj = {};
|
11280
|
-
let lines = src$1.toString();
|
11280
|
+
let lines$1 = src$1.toString();
|
11281
11281
|
if (!skipConvertingWindowsNewlines) {
|
11282
|
-
lines = lines.replace(/\r\n?/gm, "\n");
|
11282
|
+
lines$1 = lines$1.replace(/\r\n?/gm, "\n");
|
11283
11283
|
}
|
11284
11284
|
let match$4;
|
11285
|
-
while ((match$4 = LINE$1.exec(lines)) != null) {
|
11285
|
+
while ((match$4 = LINE$1.exec(lines$1)) != null) {
|
11286
11286
|
const key = match$4[1];
|
11287
11287
|
let value = match$4[2] || "";
|
11288
11288
|
value = value.trim();
|
@@ -11871,10 +11871,10 @@ var require_quotes = __commonJS({ "../../node_modules/@dotenvx/dotenvx/src/lib/h
|
|
11871
11871
|
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
11872
11872
|
function quotes$1(src$1) {
|
11873
11873
|
const obj = {};
|
11874
|
-
let lines = src$1.toString();
|
11875
|
-
lines = lines.replace(/\r\n?/gm, "\n");
|
11874
|
+
let lines$1 = src$1.toString();
|
11875
|
+
lines$1 = lines$1.replace(/\r\n?/gm, "\n");
|
11876
11876
|
let match$4;
|
11877
|
-
while ((match$4 = LINE.exec(lines)) != null) {
|
11877
|
+
while ((match$4 = LINE.exec(lines$1)) != null) {
|
11878
11878
|
const key = match$4[1];
|
11879
11879
|
let value = match$4[2] || "";
|
11880
11880
|
value = value.trim();
|
@@ -14994,13 +14994,13 @@ function toDotPath$3(path$1$1) {
|
|
14994
14994
|
return segs.join("");
|
14995
14995
|
}
|
14996
14996
|
function prettifyError$4(error$34$1) {
|
14997
|
-
const lines = [];
|
14997
|
+
const lines$1 = [];
|
14998
14998
|
const issues = [...error$34$1.issues].sort((a$11, b$2) => a$11.path.length - b$2.path.length);
|
14999
14999
|
for (const issue$1$1 of issues) {
|
15000
|
-
lines.push(`✖ ${issue$1$1.message}`);
|
15001
|
-
if (issue$1$1.path?.length) lines.push(` → at ${toDotPath$3(issue$1$1.path)}`);
|
15000
|
+
lines$1.push(`✖ ${issue$1$1.message}`);
|
15001
|
+
if (issue$1$1.path?.length) lines$1.push(` → at ${toDotPath$3(issue$1$1.path)}`);
|
15002
15002
|
}
|
15003
|
-
return lines.join("\n");
|
15003
|
+
return lines$1.join("\n");
|
15004
15004
|
}
|
15005
15005
|
const _parse$3 = (_Err) => (schema$6, value, _ctx, _params) => {
|
15006
15006
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
@@ -15711,9 +15711,9 @@ var Doc$3 = class {
|
|
15711
15711
|
return;
|
15712
15712
|
}
|
15713
15713
|
const content = arg;
|
15714
|
-
const lines = content.split("\n").filter((x$7) => x$7);
|
15715
|
-
const minIndent = Math.min(...lines.map((x$7) => x$7.length - x$7.trimStart().length));
|
15716
|
-
const dedented = lines.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
15714
|
+
const lines$1 = content.split("\n").filter((x$7) => x$7);
|
15715
|
+
const minIndent = Math.min(...lines$1.map((x$7) => x$7.length - x$7.trimStart().length));
|
15716
|
+
const dedented = lines$1.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
15717
15717
|
for (const line of dedented) {
|
15718
15718
|
this.content.push(line);
|
15719
15719
|
}
|
@@ -15722,8 +15722,8 @@ var Doc$3 = class {
|
|
15722
15722
|
const F$5 = Function;
|
15723
15723
|
const args = this?.args;
|
15724
15724
|
const content = this?.content ?? [``];
|
15725
|
-
const lines = [...content.map((x$7) => ` ${x$7}`)];
|
15726
|
-
return new F$5(...args, lines.join("\n"));
|
15725
|
+
const lines$1 = [...content.map((x$7) => ` ${x$7}`)];
|
15726
|
+
return new F$5(...args, lines$1.join("\n"));
|
15727
15727
|
}
|
15728
15728
|
};
|
15729
15729
|
const version$4 = {
|
@@ -29455,9 +29455,9 @@ var PathScurryBase$3 = class {
|
|
29455
29455
|
this.#resolveCache = new ResolveCache$3();
|
29456
29456
|
this.#resolvePosixCache = new ResolveCache$3();
|
29457
29457
|
this.#children = new ChildrenCache$3(childrenCacheSize);
|
29458
|
-
const split$
|
29459
|
-
if (split$
|
29460
|
-
split$
|
29458
|
+
const split$2 = cwdPath.substring(this.rootPath.length).split(sep$1$1);
|
29459
|
+
if (split$2.length === 1 && !split$2[0]) {
|
29460
|
+
split$2.pop();
|
29461
29461
|
}
|
29462
29462
|
/* c8 ignore start */
|
29463
29463
|
if (nocase === undefined) {
|
@@ -29468,11 +29468,11 @@ var PathScurryBase$3 = class {
|
|
29468
29468
|
this.root = this.newRoot(this.#fs);
|
29469
29469
|
this.roots[this.rootPath] = this.root;
|
29470
29470
|
let prev = this.root;
|
29471
|
-
let len = split$
|
29471
|
+
let len = split$2.length - 1;
|
29472
29472
|
const joinSep = pathImpl.sep;
|
29473
29473
|
let abs = this.rootPath;
|
29474
29474
|
let sawFirst = false;
|
29475
|
-
for (const part of split$
|
29475
|
+
for (const part of split$2) {
|
29476
29476
|
const l$3 = len--;
|
29477
29477
|
prev = prev.child(part, {
|
29478
29478
|
relative: new Array(l$3).fill("..").join(joinSep),
|
@@ -31297,7 +31297,7 @@ function pruneCurrentEnv(currentEnv$1, env$1) {
|
|
31297
31297
|
//#region package.json
|
31298
31298
|
var name = "@settlemint/sdk-cli";
|
31299
31299
|
var description = "Command-line interface for SettleMint SDK, providing development tools and project management capabilities";
|
31300
|
-
var version$3 = "2.3.3-
|
31300
|
+
var version$3 = "2.3.3-prda4a1f6a";
|
31301
31301
|
var type = "module";
|
31302
31302
|
var private$1 = false;
|
31303
31303
|
var license = "FSL-1.1-MIT";
|
@@ -31336,12 +31336,12 @@ var dependencies = { "node-fetch-native": "1.6.6" };
|
|
31336
31336
|
var devDependencies = {
|
31337
31337
|
"@commander-js/extra-typings": "14.0.0",
|
31338
31338
|
"commander": "14.0.0",
|
31339
|
-
"@inquirer/confirm": "5.1.
|
31339
|
+
"@inquirer/confirm": "5.1.11",
|
31340
31340
|
"@inquirer/input": "4.1.11",
|
31341
|
-
"@inquirer/password": "4.0.
|
31341
|
+
"@inquirer/password": "4.0.15",
|
31342
31342
|
"@inquirer/select": "4.2.2",
|
31343
|
-
"@settlemint/sdk-js": "2.3.3-
|
31344
|
-
"@settlemint/sdk-utils": "2.3.3-
|
31343
|
+
"@settlemint/sdk-js": "2.3.3-prda4a1f6a",
|
31344
|
+
"@settlemint/sdk-utils": "2.3.3-prda4a1f6a",
|
31345
31345
|
"@types/node": "22.15.21",
|
31346
31346
|
"@types/semver": "7.7.0",
|
31347
31347
|
"@types/which": "3.0.4",
|
@@ -32039,13 +32039,13 @@ function usePrefix({ status = "idle", theme }) {
|
|
32039
32039
|
if (status === "loading") {
|
32040
32040
|
let tickInterval;
|
32041
32041
|
let inc$2 = -1;
|
32042
|
-
const delayTimeout = setTimeout(() => {
|
32042
|
+
const delayTimeout = setTimeout(AsyncResource.bind(() => {
|
32043
32043
|
setShowLoader(true);
|
32044
|
-
tickInterval = setInterval(() => {
|
32044
|
+
tickInterval = setInterval(AsyncResource.bind(() => {
|
32045
32045
|
inc$2 = inc$2 + 1;
|
32046
32046
|
setTick(inc$2 % spinner$3.frames.length);
|
32047
|
-
}, spinner$3.interval);
|
32048
|
-
}, 300);
|
32047
|
+
}), spinner$3.interval);
|
32048
|
+
}), 300);
|
32049
32049
|
return () => {
|
32050
32050
|
clearTimeout(delayTimeout);
|
32051
32051
|
clearInterval(tickInterval);
|
@@ -34287,92 +34287,111 @@ function readlineWidth() {
|
|
34287
34287
|
}
|
34288
34288
|
|
34289
34289
|
//#endregion
|
34290
|
-
//#region ../../node_modules/@inquirer/core/dist/esm/lib/pagination/
|
34291
|
-
function
|
34292
|
-
|
34293
|
-
|
34294
|
-
|
34295
|
-
|
34296
|
-
|
34297
|
-
|
34298
|
-
|
34299
|
-
|
34300
|
-
|
34301
|
-
|
34302
|
-
|
34303
|
-
|
34304
|
-
|
34305
|
-
|
34306
|
-
|
34307
|
-
|
34308
|
-
|
34309
|
-
|
34310
|
-
|
34311
|
-
|
34312
|
-
|
34313
|
-
|
34314
|
-
|
34315
|
-
|
34316
|
-
|
34317
|
-
|
34318
|
-
|
34319
|
-
|
34320
|
-
|
34321
|
-
|
34322
|
-
|
34323
|
-
|
34324
|
-
|
34290
|
+
//#region ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
34291
|
+
function split(content, width) {
|
34292
|
+
return breakLines(content, width).split("\n");
|
34293
|
+
}
|
34294
|
+
/**
|
34295
|
+
* Rotates an array of items by an integer number of positions.
|
34296
|
+
* @param {number} count The number of positions to rotate by
|
34297
|
+
* @param {T[]} items The items to rotate
|
34298
|
+
*/
|
34299
|
+
function rotate(count, items) {
|
34300
|
+
const max$1 = items.length;
|
34301
|
+
const offset = (count % max$1 + max$1) % max$1;
|
34302
|
+
return [...items.slice(offset), ...items.slice(0, offset)];
|
34303
|
+
}
|
34304
|
+
/**
|
34305
|
+
* Renders a page of items as lines that fit within the given width ensuring
|
34306
|
+
* that the number of lines is not greater than the page size, and the active
|
34307
|
+
* item renders at the provided position, while prioritizing that as many lines
|
34308
|
+
* of the active item get rendered as possible.
|
34309
|
+
*/
|
34310
|
+
function lines({ items, width, renderItem, active, position: requested, pageSize }) {
|
34311
|
+
const layouts = items.map((item, index$1) => ({
|
34312
|
+
item,
|
34313
|
+
index: index$1,
|
34314
|
+
isActive: index$1 === active
|
34315
|
+
}));
|
34316
|
+
const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
|
34317
|
+
const renderItemAt = (index$1) => layoutsInPage[index$1] == null ? [] : split(renderItem(layoutsInPage[index$1]), width);
|
34318
|
+
const pageBuffer = Array.from({ length: pageSize });
|
34319
|
+
const activeItem = renderItemAt(requested).slice(0, pageSize);
|
34320
|
+
const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
|
34321
|
+
pageBuffer.splice(position, activeItem.length, ...activeItem);
|
34322
|
+
let bufferPointer = position + activeItem.length;
|
34323
|
+
let layoutPointer = requested + 1;
|
34324
|
+
while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
|
34325
|
+
for (const line of renderItemAt(layoutPointer)) {
|
34326
|
+
pageBuffer[bufferPointer++] = line;
|
34327
|
+
if (bufferPointer >= pageSize) break;
|
34325
34328
|
}
|
34329
|
+
layoutPointer++;
|
34330
|
+
}
|
34331
|
+
bufferPointer = position - 1;
|
34332
|
+
layoutPointer = requested - 1;
|
34333
|
+
while (bufferPointer >= 0 && layoutPointer >= 0) {
|
34334
|
+
for (const line of renderItemAt(layoutPointer).reverse()) {
|
34335
|
+
pageBuffer[bufferPointer--] = line;
|
34336
|
+
if (bufferPointer < 0) break;
|
34337
|
+
}
|
34338
|
+
layoutPointer--;
|
34339
|
+
}
|
34340
|
+
return pageBuffer.filter((line) => typeof line === "string");
|
34341
|
+
}
|
34342
|
+
|
34343
|
+
//#endregion
|
34344
|
+
//#region ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
34345
|
+
/**
|
34346
|
+
* Creates the next position for the active item considering a finite list of
|
34347
|
+
* items to be rendered on a page.
|
34348
|
+
*/
|
34349
|
+
function finite({ active, pageSize, total }) {
|
34350
|
+
const middle = Math.floor(pageSize / 2);
|
34351
|
+
if (total <= pageSize || active < middle) return active;
|
34352
|
+
if (active >= total - middle) return active + pageSize - total;
|
34353
|
+
return middle;
|
34354
|
+
}
|
34355
|
+
/**
|
34356
|
+
* Creates the next position for the active item considering an infinitely
|
34357
|
+
* looping list of items to be rendered on the page.
|
34358
|
+
*/
|
34359
|
+
function infinite({ active, lastActive, total, pageSize, pointer }) {
|
34360
|
+
if (total <= pageSize) return active;
|
34361
|
+
if (lastActive < active && active - lastActive < pageSize) {
|
34362
|
+
return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
|
34326
34363
|
}
|
34327
|
-
state.current.lastPointer = pointer;
|
34328
|
-
state.current.lastActive = active;
|
34329
34364
|
return pointer;
|
34330
34365
|
}
|
34366
|
+
|
34367
|
+
//#endregion
|
34368
|
+
//#region ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
34331
34369
|
function usePagination({ items, active, renderItem, pageSize, loop: loop$1 = true }) {
|
34332
|
-
const
|
34333
|
-
|
34334
|
-
|
34335
|
-
|
34336
|
-
|
34337
|
-
item,
|
34338
|
-
index: index$1,
|
34339
|
-
isActive: index$1 === active
|
34340
|
-
}), width).split("\n");
|
34341
|
-
});
|
34342
|
-
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
34343
|
-
const renderItemAtIndex = (index$1) => renderedItems[index$1] ?? [];
|
34344
|
-
const pointer = usePointerPosition({
|
34370
|
+
const state = useRef({
|
34371
|
+
position: 0,
|
34372
|
+
lastActive: 0
|
34373
|
+
});
|
34374
|
+
const position = loop$1 ? infinite({
|
34345
34375
|
active,
|
34346
|
-
|
34376
|
+
lastActive: state.current.lastActive,
|
34377
|
+
total: items.length,
|
34347
34378
|
pageSize,
|
34348
|
-
|
34379
|
+
pointer: state.current.position
|
34380
|
+
}) : finite({
|
34381
|
+
active,
|
34382
|
+
total: items.length,
|
34383
|
+
pageSize
|
34349
34384
|
});
|
34350
|
-
|
34351
|
-
|
34352
|
-
|
34353
|
-
|
34354
|
-
|
34355
|
-
|
34356
|
-
|
34357
|
-
|
34358
|
-
|
34359
|
-
|
34360
|
-
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
34361
|
-
itemVisited.add(itemPointer);
|
34362
|
-
bufferPointer += linesToAdd.length;
|
34363
|
-
itemPointer = bound(itemPointer + 1);
|
34364
|
-
}
|
34365
|
-
bufferPointer = activeItemPosition - 1;
|
34366
|
-
itemPointer = bound(active - 1);
|
34367
|
-
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop$1 && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
34368
|
-
const lines = renderItemAtIndex(itemPointer);
|
34369
|
-
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
34370
|
-
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
34371
|
-
itemVisited.add(itemPointer);
|
34372
|
-
bufferPointer -= linesToAdd.length;
|
34373
|
-
itemPointer = bound(itemPointer - 1);
|
34374
|
-
}
|
34375
|
-
return pageBuffer.filter((line) => typeof line === "string").join("\n");
|
34385
|
+
state.current.position = position;
|
34386
|
+
state.current.lastActive = active;
|
34387
|
+
return lines({
|
34388
|
+
items,
|
34389
|
+
width: readlineWidth(),
|
34390
|
+
renderItem,
|
34391
|
+
active,
|
34392
|
+
position,
|
34393
|
+
pageSize
|
34394
|
+
}).join("\n");
|
34376
34395
|
}
|
34377
34396
|
|
34378
34397
|
//#endregion
|
@@ -43867,9 +43886,9 @@ var require_commonjs$2 = __commonJS({ "../../node_modules/path-scurry/dist/commo
|
|
43867
43886
|
this.#resolveCache = new ResolveCache$2();
|
43868
43887
|
this.#resolvePosixCache = new ResolveCache$2();
|
43869
43888
|
this.#children = new ChildrenCache$2(childrenCacheSize);
|
43870
|
-
const split$
|
43871
|
-
if (split$
|
43872
|
-
split$
|
43889
|
+
const split$2 = cwdPath.substring(this.rootPath.length).split(sep$5);
|
43890
|
+
if (split$2.length === 1 && !split$2[0]) {
|
43891
|
+
split$2.pop();
|
43873
43892
|
}
|
43874
43893
|
/* c8 ignore start */
|
43875
43894
|
if (nocase === undefined) {
|
@@ -43880,11 +43899,11 @@ var require_commonjs$2 = __commonJS({ "../../node_modules/path-scurry/dist/commo
|
|
43880
43899
|
this.root = this.newRoot(this.#fs);
|
43881
43900
|
this.roots[this.rootPath] = this.root;
|
43882
43901
|
let prev = this.root;
|
43883
|
-
let len = split$
|
43902
|
+
let len = split$2.length - 1;
|
43884
43903
|
const joinSep = pathImpl.sep;
|
43885
43904
|
let abs = this.rootPath;
|
43886
43905
|
let sawFirst = false;
|
43887
|
-
for (const part of split$
|
43906
|
+
for (const part of split$2) {
|
43888
43907
|
const l$3 = len--;
|
43889
43908
|
prev = prev.child(part, {
|
43890
43909
|
relative: new Array(l$3).fill("..").join(joinSep),
|
@@ -46625,9 +46644,9 @@ var require_ini = __commonJS({ "../../node_modules/ini/lib/ini.js"(exports, modu
|
|
46625
46644
|
let p$3 = out;
|
46626
46645
|
let section = null;
|
46627
46646
|
const re$7 = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
46628
|
-
const lines = str.split(/[\r\n]+/g);
|
46647
|
+
const lines$1 = str.split(/[\r\n]+/g);
|
46629
46648
|
const duplicates = {};
|
46630
|
-
for (const line of lines) {
|
46649
|
+
for (const line of lines$1) {
|
46631
46650
|
if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
|
46632
46651
|
continue;
|
46633
46652
|
}
|
@@ -49564,7 +49583,7 @@ var require_semver = __commonJS({ "../../node_modules/semver/index.js"(exports,
|
|
49564
49583
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
49565
49584
|
var require_lines_to_revs = __commonJS({ "../../node_modules/@npmcli/git/lib/lines-to-revs.js"(exports, module) {
|
49566
49585
|
const semver$4 = require_semver();
|
49567
|
-
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
49586
|
+
module.exports = (lines$1) => finish(lines$1.reduce(linesToRevsReducer, {
|
49568
49587
|
versions: {},
|
49569
49588
|
"dist-tags": {},
|
49570
49589
|
refs: {},
|
@@ -49626,12 +49645,12 @@ var require_lines_to_revs = __commonJS({ "../../node_modules/@npmcli/git/lib/lin
|
|
49626
49645
|
return "other";
|
49627
49646
|
};
|
49628
49647
|
const lineToRevDoc = (line) => {
|
49629
|
-
const split$
|
49630
|
-
if (split$
|
49648
|
+
const split$2 = line.trim().split(/\s+/, 2);
|
49649
|
+
if (split$2.length < 2) {
|
49631
49650
|
return null;
|
49632
49651
|
}
|
49633
|
-
const sha = split$
|
49634
|
-
const rawRef = split$
|
49652
|
+
const sha = split$2[0].trim();
|
49653
|
+
const rawRef = split$2[1].trim();
|
49635
49654
|
const type$1 = refType(rawRef);
|
49636
49655
|
if (type$1 === "tag") {
|
49637
49656
|
const ref = rawRef.slice("refs/tags/".length);
|
@@ -52293,16 +52312,16 @@ var require_normalize_data = __commonJS({ "../../node_modules/@npmcli/package-js
|
|
52293
52312
|
};
|
52294
52313
|
const isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
|
52295
52314
|
function extractDescription(description$2) {
|
52296
|
-
const lines = description$2.trim().split("\n");
|
52315
|
+
const lines$1 = description$2.trim().split("\n");
|
52297
52316
|
let start = 0;
|
52298
|
-
while (lines[start]?.trim().match(/^(#|$)/)) {
|
52317
|
+
while (lines$1[start]?.trim().match(/^(#|$)/)) {
|
52299
52318
|
start++;
|
52300
52319
|
}
|
52301
52320
|
let end = start + 1;
|
52302
|
-
while (end < lines.length && lines[end].trim()) {
|
52321
|
+
while (end < lines$1.length && lines$1[end].trim()) {
|
52303
52322
|
end++;
|
52304
52323
|
}
|
52305
|
-
return lines.slice(start, end).join(" ").trim();
|
52324
|
+
return lines$1.slice(start, end).join(" ").trim();
|
52306
52325
|
}
|
52307
52326
|
function stringifyPerson(person) {
|
52308
52327
|
if (typeof person !== "string") {
|
@@ -58233,9 +58252,9 @@ var PathScurryBase$1 = class {
|
|
58233
58252
|
this.#resolveCache = new ResolveCache$1();
|
58234
58253
|
this.#resolvePosixCache = new ResolveCache$1();
|
58235
58254
|
this.#children = new ChildrenCache$1(childrenCacheSize);
|
58236
|
-
const split$
|
58237
|
-
if (split$
|
58238
|
-
split$
|
58255
|
+
const split$2 = cwdPath.substring(this.rootPath.length).split(sep$1$1);
|
58256
|
+
if (split$2.length === 1 && !split$2[0]) {
|
58257
|
+
split$2.pop();
|
58239
58258
|
}
|
58240
58259
|
/* c8 ignore start */
|
58241
58260
|
if (nocase === undefined) {
|
@@ -58246,11 +58265,11 @@ var PathScurryBase$1 = class {
|
|
58246
58265
|
this.root = this.newRoot(this.#fs);
|
58247
58266
|
this.roots[this.rootPath] = this.root;
|
58248
58267
|
let prev = this.root;
|
58249
|
-
let len = split$
|
58268
|
+
let len = split$2.length - 1;
|
58250
58269
|
const joinSep = pathImpl.sep;
|
58251
58270
|
let abs = this.rootPath;
|
58252
58271
|
let sawFirst = false;
|
58253
|
-
for (const part of split$
|
58272
|
+
for (const part of split$2) {
|
58254
58273
|
const l$3 = len--;
|
58255
58274
|
prev = prev.child(part, {
|
58256
58275
|
relative: new Array(l$3).fill("..").join(joinSep),
|
@@ -61242,13 +61261,13 @@ function toDotPath$2(path$21) {
|
|
61242
61261
|
return segs.join("");
|
61243
61262
|
}
|
61244
61263
|
function prettifyError$3(error$34$1) {
|
61245
|
-
const lines = [];
|
61264
|
+
const lines$1 = [];
|
61246
61265
|
const issues = [...error$34$1.issues].sort((a$11, b$2) => a$11.path.length - b$2.path.length);
|
61247
61266
|
for (const issue$1$1 of issues) {
|
61248
|
-
lines.push(`✖ ${issue$1$1.message}`);
|
61249
|
-
if (issue$1$1.path?.length) lines.push(` → at ${toDotPath$2(issue$1$1.path)}`);
|
61267
|
+
lines$1.push(`✖ ${issue$1$1.message}`);
|
61268
|
+
if (issue$1$1.path?.length) lines$1.push(` → at ${toDotPath$2(issue$1$1.path)}`);
|
61250
61269
|
}
|
61251
|
-
return lines.join("\n");
|
61270
|
+
return lines$1.join("\n");
|
61252
61271
|
}
|
61253
61272
|
const _parse$2 = (_Err) => (schema$6, value, _ctx, _params) => {
|
61254
61273
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
@@ -61959,9 +61978,9 @@ var Doc$2 = class {
|
|
61959
61978
|
return;
|
61960
61979
|
}
|
61961
61980
|
const content = arg;
|
61962
|
-
const lines = content.split("\n").filter((x$7) => x$7);
|
61963
|
-
const minIndent = Math.min(...lines.map((x$7) => x$7.length - x$7.trimStart().length));
|
61964
|
-
const dedented = lines.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
61981
|
+
const lines$1 = content.split("\n").filter((x$7) => x$7);
|
61982
|
+
const minIndent = Math.min(...lines$1.map((x$7) => x$7.length - x$7.trimStart().length));
|
61983
|
+
const dedented = lines$1.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
61965
61984
|
for (const line of dedented) {
|
61966
61985
|
this.content.push(line);
|
61967
61986
|
}
|
@@ -61970,8 +61989,8 @@ var Doc$2 = class {
|
|
61970
61989
|
const F$5 = Function;
|
61971
61990
|
const args = this?.args;
|
61972
61991
|
const content = this?.content ?? [``];
|
61973
|
-
const lines = [...content.map((x$7) => ` ${x$7}`)];
|
61974
|
-
return new F$5(...args, lines.join("\n"));
|
61992
|
+
const lines$1 = [...content.map((x$7) => ` ${x$7}`)];
|
61993
|
+
return new F$5(...args, lines$1.join("\n"));
|
61975
61994
|
}
|
61976
61995
|
};
|
61977
61996
|
const version$2 = {
|
@@ -75757,9 +75776,9 @@ var PathScurryBase = class {
|
|
75757
75776
|
this.#resolveCache = new ResolveCache();
|
75758
75777
|
this.#resolvePosixCache = new ResolveCache();
|
75759
75778
|
this.#children = new ChildrenCache(childrenCacheSize);
|
75760
|
-
const split$
|
75761
|
-
if (split$
|
75762
|
-
split$
|
75779
|
+
const split$2 = cwdPath.substring(this.rootPath.length).split(sep$1$1);
|
75780
|
+
if (split$2.length === 1 && !split$2[0]) {
|
75781
|
+
split$2.pop();
|
75763
75782
|
}
|
75764
75783
|
/* c8 ignore start */
|
75765
75784
|
if (nocase === undefined) {
|
@@ -75770,11 +75789,11 @@ var PathScurryBase = class {
|
|
75770
75789
|
this.root = this.newRoot(this.#fs);
|
75771
75790
|
this.roots[this.rootPath] = this.root;
|
75772
75791
|
let prev = this.root;
|
75773
|
-
let len = split$
|
75792
|
+
let len = split$2.length - 1;
|
75774
75793
|
const joinSep = pathImpl.sep;
|
75775
75794
|
let abs = this.rootPath;
|
75776
75795
|
let sawFirst = false;
|
75777
|
-
for (const part of split$
|
75796
|
+
for (const part of split$2) {
|
75778
75797
|
const l$3 = len--;
|
75779
75798
|
prev = prev.child(part, {
|
75780
75799
|
relative: new Array(l$3).fill("..").join(joinSep),
|
@@ -108757,13 +108776,13 @@ function toDotPath$1(path$21) {
|
|
108757
108776
|
return segs.join("");
|
108758
108777
|
}
|
108759
108778
|
function prettifyError$2(error$34$1) {
|
108760
|
-
const lines = [];
|
108779
|
+
const lines$1 = [];
|
108761
108780
|
const issues = [...error$34$1.issues].sort((a$11, b$2) => a$11.path.length - b$2.path.length);
|
108762
108781
|
for (const issue$1$1 of issues) {
|
108763
|
-
lines.push(`✖ ${issue$1$1.message}`);
|
108764
|
-
if (issue$1$1.path?.length) lines.push(` → at ${toDotPath$1(issue$1$1.path)}`);
|
108782
|
+
lines$1.push(`✖ ${issue$1$1.message}`);
|
108783
|
+
if (issue$1$1.path?.length) lines$1.push(` → at ${toDotPath$1(issue$1$1.path)}`);
|
108765
108784
|
}
|
108766
|
-
return lines.join("\n");
|
108785
|
+
return lines$1.join("\n");
|
108767
108786
|
}
|
108768
108787
|
const _parse$1 = (_Err) => (schema$6, value, _ctx, _params) => {
|
108769
108788
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
@@ -109474,9 +109493,9 @@ var Doc$1 = class {
|
|
109474
109493
|
return;
|
109475
109494
|
}
|
109476
109495
|
const content = arg;
|
109477
|
-
const lines = content.split("\n").filter((x$7) => x$7);
|
109478
|
-
const minIndent = Math.min(...lines.map((x$7) => x$7.length - x$7.trimStart().length));
|
109479
|
-
const dedented = lines.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
109496
|
+
const lines$1 = content.split("\n").filter((x$7) => x$7);
|
109497
|
+
const minIndent = Math.min(...lines$1.map((x$7) => x$7.length - x$7.trimStart().length));
|
109498
|
+
const dedented = lines$1.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
109480
109499
|
for (const line of dedented) {
|
109481
109500
|
this.content.push(line);
|
109482
109501
|
}
|
@@ -109485,8 +109504,8 @@ var Doc$1 = class {
|
|
109485
109504
|
const F$5 = Function;
|
109486
109505
|
const args = this?.args;
|
109487
109506
|
const content = this?.content ?? [``];
|
109488
|
-
const lines = [...content.map((x$7) => ` ${x$7}`)];
|
109489
|
-
return new F$5(...args, lines.join("\n"));
|
109507
|
+
const lines$1 = [...content.map((x$7) => ` ${x$7}`)];
|
109508
|
+
return new F$5(...args, lines$1.join("\n"));
|
109490
109509
|
}
|
109491
109510
|
};
|
109492
109511
|
const version$1 = {
|
@@ -119202,13 +119221,13 @@ function toDotPath(path$21) {
|
|
119202
119221
|
return segs.join("");
|
119203
119222
|
}
|
119204
119223
|
function prettifyError$1(error$38) {
|
119205
|
-
const lines = [];
|
119224
|
+
const lines$1 = [];
|
119206
119225
|
const issues = [...error$38.issues].sort((a$11, b$2) => a$11.path.length - b$2.path.length);
|
119207
119226
|
for (const issue$4 of issues) {
|
119208
|
-
lines.push(`✖ ${issue$4.message}`);
|
119209
|
-
if (issue$4.path?.length) lines.push(` → at ${toDotPath(issue$4.path)}`);
|
119227
|
+
lines$1.push(`✖ ${issue$4.message}`);
|
119228
|
+
if (issue$4.path?.length) lines$1.push(` → at ${toDotPath(issue$4.path)}`);
|
119210
119229
|
}
|
119211
|
-
return lines.join("\n");
|
119230
|
+
return lines$1.join("\n");
|
119212
119231
|
}
|
119213
119232
|
|
119214
119233
|
//#endregion
|
@@ -119931,9 +119950,9 @@ var Doc = class {
|
|
119931
119950
|
return;
|
119932
119951
|
}
|
119933
119952
|
const content = arg;
|
119934
|
-
const lines = content.split("\n").filter((x$7) => x$7);
|
119935
|
-
const minIndent = Math.min(...lines.map((x$7) => x$7.length - x$7.trimStart().length));
|
119936
|
-
const dedented = lines.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
119953
|
+
const lines$1 = content.split("\n").filter((x$7) => x$7);
|
119954
|
+
const minIndent = Math.min(...lines$1.map((x$7) => x$7.length - x$7.trimStart().length));
|
119955
|
+
const dedented = lines$1.map((x$7) => x$7.slice(minIndent)).map((x$7) => " ".repeat(this.indent * 2) + x$7);
|
119937
119956
|
for (const line of dedented) {
|
119938
119957
|
this.content.push(line);
|
119939
119958
|
}
|
@@ -119942,8 +119961,8 @@ var Doc = class {
|
|
119942
119961
|
const F$5 = Function;
|
119943
119962
|
const args = this?.args;
|
119944
119963
|
const content = this?.content ?? [``];
|
119945
|
-
const lines = [...content.map((x$7) => ` ${x$7}`)];
|
119946
|
-
return new F$5(...args, lines.join("\n"));
|
119964
|
+
const lines$1 = [...content.map((x$7) => ` ${x$7}`)];
|
119965
|
+
return new F$5(...args, lines$1.join("\n"));
|
119947
119966
|
}
|
119948
119967
|
};
|
119949
119968
|
|
@@ -142462,7 +142481,7 @@ var require_directives = __commonJS({ "../../node_modules/yaml/dist/doc/directiv
|
|
142462
142481
|
return tag[0] === "!" ? tag : `!<${tag}>`;
|
142463
142482
|
}
|
142464
142483
|
toString(doc) {
|
142465
|
-
const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
|
142484
|
+
const lines$1 = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
|
142466
142485
|
const tagEntries = Object.entries(this.tags);
|
142467
142486
|
let tagNames;
|
142468
142487
|
if (doc && tagEntries.length > 0 && identity$31.isNode(doc.contents)) {
|
@@ -142474,9 +142493,9 @@ var require_directives = __commonJS({ "../../node_modules/yaml/dist/doc/directiv
|
|
142474
142493
|
} else tagNames = [];
|
142475
142494
|
for (const [handle, prefix] of tagEntries) {
|
142476
142495
|
if (handle === "!!" && prefix === "tag:yaml.org,2002:") continue;
|
142477
|
-
if (!doc || tagNames.some((tn$1) => tn$1.startsWith(prefix))) lines.push(`%TAG ${handle} ${prefix}`);
|
142496
|
+
if (!doc || tagNames.some((tn$1) => tn$1.startsWith(prefix))) lines$1.push(`%TAG ${handle} ${prefix}`);
|
142478
142497
|
}
|
142479
|
-
return lines.join("\n");
|
142498
|
+
return lines$1.join("\n");
|
142480
142499
|
}
|
142481
142500
|
};
|
142482
142501
|
Directives.defaultYaml = {
|
@@ -143039,7 +143058,7 @@ var require_foldFlowLines = __commonJS({ "../../node_modules/yaml/dist/stringify
|
|
143039
143058
|
if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
|
143040
143059
|
else end = lineWidth - indentAtStart;
|
143041
143060
|
}
|
143042
|
-
let split$
|
143061
|
+
let split$2 = undefined;
|
143043
143062
|
let prev = undefined;
|
143044
143063
|
let overflow = false;
|
143045
143064
|
let i$7 = -1;
|
@@ -143069,17 +143088,17 @@ var require_foldFlowLines = __commonJS({ "../../node_modules/yaml/dist/stringify
|
|
143069
143088
|
if (ch === "\n") {
|
143070
143089
|
if (mode$2 === FOLD_BLOCK) i$7 = consumeMoreIndentedLines(text, i$7, indent.length);
|
143071
143090
|
end = i$7 + indent.length + endStep;
|
143072
|
-
split$
|
143091
|
+
split$2 = undefined;
|
143073
143092
|
} else {
|
143074
143093
|
if (ch === " " && prev && prev !== " " && prev !== "\n" && prev !== " ") {
|
143075
143094
|
const next = text[i$7 + 1];
|
143076
|
-
if (next && next !== " " && next !== "\n" && next !== " ") split$
|
143095
|
+
if (next && next !== " " && next !== "\n" && next !== " ") split$2 = i$7;
|
143077
143096
|
}
|
143078
143097
|
if (i$7 >= end) {
|
143079
|
-
if (split$
|
143080
|
-
folds.push(split$
|
143081
|
-
end = split$
|
143082
|
-
split$
|
143098
|
+
if (split$2) {
|
143099
|
+
folds.push(split$2);
|
143100
|
+
end = split$2 + endStep;
|
143101
|
+
split$2 = undefined;
|
143083
143102
|
} else if (mode$2 === FOLD_QUOTED) {
|
143084
143103
|
while (prev === " " || prev === " ") {
|
143085
143104
|
prev = ch;
|
@@ -143091,7 +143110,7 @@ var require_foldFlowLines = __commonJS({ "../../node_modules/yaml/dist/stringify
|
|
143091
143110
|
folds.push(j$5);
|
143092
143111
|
escapedFolds[j$5] = true;
|
143093
143112
|
end = j$5 + endStep;
|
143094
|
-
split$
|
143113
|
+
split$2 = undefined;
|
143095
143114
|
} else {
|
143096
143115
|
overflow = true;
|
143097
143116
|
}
|
@@ -143781,34 +143800,34 @@ var require_stringifyCollection = __commonJS({ "../../node_modules/yaml/dist/str
|
|
143781
143800
|
type: null
|
143782
143801
|
});
|
143783
143802
|
let chompKeep = false;
|
143784
|
-
const lines = [];
|
143803
|
+
const lines$1 = [];
|
143785
143804
|
for (let i$7 = 0; i$7 < items.length; ++i$7) {
|
143786
143805
|
const item = items[i$7];
|
143787
143806
|
let comment$1 = null;
|
143788
143807
|
if (identity$18.isNode(item)) {
|
143789
|
-
if (!chompKeep && item.spaceBefore) lines.push("");
|
143790
|
-
addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
|
143808
|
+
if (!chompKeep && item.spaceBefore) lines$1.push("");
|
143809
|
+
addCommentBefore(ctx, lines$1, item.commentBefore, chompKeep);
|
143791
143810
|
if (item.comment) comment$1 = item.comment;
|
143792
143811
|
} else if (identity$18.isPair(item)) {
|
143793
143812
|
const ik = identity$18.isNode(item.key) ? item.key : null;
|
143794
143813
|
if (ik) {
|
143795
|
-
if (!chompKeep && ik.spaceBefore) lines.push("");
|
143796
|
-
addCommentBefore(ctx, lines, ik.commentBefore, chompKeep);
|
143814
|
+
if (!chompKeep && ik.spaceBefore) lines$1.push("");
|
143815
|
+
addCommentBefore(ctx, lines$1, ik.commentBefore, chompKeep);
|
143797
143816
|
}
|
143798
143817
|
}
|
143799
143818
|
chompKeep = false;
|
143800
143819
|
let str$1 = stringify$7.stringify(item, itemCtx, () => comment$1 = null, () => chompKeep = true);
|
143801
143820
|
if (comment$1) str$1 += stringifyComment$1.lineComment(str$1, itemIndent, commentString(comment$1));
|
143802
143821
|
if (chompKeep && comment$1) chompKeep = false;
|
143803
|
-
lines.push(blockItemPrefix + str$1);
|
143822
|
+
lines$1.push(blockItemPrefix + str$1);
|
143804
143823
|
}
|
143805
143824
|
let str;
|
143806
|
-
if (lines.length === 0) {
|
143825
|
+
if (lines$1.length === 0) {
|
143807
143826
|
str = flowChars.start + flowChars.end;
|
143808
143827
|
} else {
|
143809
|
-
str = lines[0];
|
143810
|
-
for (let i$7 = 1; i$7 < lines.length; ++i$7) {
|
143811
|
-
const line = lines[i$7];
|
143828
|
+
str = lines$1[0];
|
143829
|
+
for (let i$7 = 1; i$7 < lines$1.length; ++i$7) {
|
143830
|
+
const line = lines$1[i$7];
|
143812
143831
|
str += line ? `\n${indent}${line}` : "\n";
|
143813
143832
|
}
|
143814
143833
|
}
|
@@ -143828,19 +143847,19 @@ var require_stringifyCollection = __commonJS({ "../../node_modules/yaml/dist/str
|
|
143828
143847
|
});
|
143829
143848
|
let reqNewline = false;
|
143830
143849
|
let linesAtValue = 0;
|
143831
|
-
const lines = [];
|
143850
|
+
const lines$1 = [];
|
143832
143851
|
for (let i$7 = 0; i$7 < items.length; ++i$7) {
|
143833
143852
|
const item = items[i$7];
|
143834
143853
|
let comment = null;
|
143835
143854
|
if (identity$18.isNode(item)) {
|
143836
|
-
if (item.spaceBefore) lines.push("");
|
143837
|
-
addCommentBefore(ctx, lines, item.commentBefore, false);
|
143855
|
+
if (item.spaceBefore) lines$1.push("");
|
143856
|
+
addCommentBefore(ctx, lines$1, item.commentBefore, false);
|
143838
143857
|
if (item.comment) comment = item.comment;
|
143839
143858
|
} else if (identity$18.isPair(item)) {
|
143840
143859
|
const ik = identity$18.isNode(item.key) ? item.key : null;
|
143841
143860
|
if (ik) {
|
143842
|
-
if (ik.spaceBefore) lines.push("");
|
143843
|
-
addCommentBefore(ctx, lines, ik.commentBefore, false);
|
143861
|
+
if (ik.spaceBefore) lines$1.push("");
|
143862
|
+
addCommentBefore(ctx, lines$1, ik.commentBefore, false);
|
143844
143863
|
if (ik.comment) reqNewline = true;
|
143845
143864
|
}
|
143846
143865
|
const iv = identity$18.isNode(item.value) ? item.value : null;
|
@@ -143855,32 +143874,32 @@ var require_stringifyCollection = __commonJS({ "../../node_modules/yaml/dist/str
|
|
143855
143874
|
let str = stringify$7.stringify(item, itemCtx, () => comment = null);
|
143856
143875
|
if (i$7 < items.length - 1) str += ",";
|
143857
143876
|
if (comment) str += stringifyComment$1.lineComment(str, itemIndent, commentString(comment));
|
143858
|
-
if (!reqNewline && (lines.length > linesAtValue || str.includes("\n"))) reqNewline = true;
|
143859
|
-
lines.push(str);
|
143860
|
-
linesAtValue = lines.length;
|
143877
|
+
if (!reqNewline && (lines$1.length > linesAtValue || str.includes("\n"))) reqNewline = true;
|
143878
|
+
lines$1.push(str);
|
143879
|
+
linesAtValue = lines$1.length;
|
143861
143880
|
}
|
143862
143881
|
const { start, end } = flowChars;
|
143863
|
-
if (lines.length === 0) {
|
143882
|
+
if (lines$1.length === 0) {
|
143864
143883
|
return start + end;
|
143865
143884
|
} else {
|
143866
143885
|
if (!reqNewline) {
|
143867
|
-
const len = lines.reduce((sum, line) => sum + line.length + 2, 2);
|
143886
|
+
const len = lines$1.reduce((sum, line) => sum + line.length + 2, 2);
|
143868
143887
|
reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
|
143869
143888
|
}
|
143870
143889
|
if (reqNewline) {
|
143871
143890
|
let str = start;
|
143872
|
-
for (const line of lines) str += line ? `\n${indentStep}${indent}${line}` : "\n";
|
143891
|
+
for (const line of lines$1) str += line ? `\n${indentStep}${indent}${line}` : "\n";
|
143873
143892
|
return `${str}\n${indent}${end}`;
|
143874
143893
|
} else {
|
143875
|
-
return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
143894
|
+
return `${start}${fcPadding}${lines$1.join(" ")}${fcPadding}${end}`;
|
143876
143895
|
}
|
143877
143896
|
}
|
143878
143897
|
}
|
143879
|
-
function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) {
|
143898
|
+
function addCommentBefore({ indent, options: { commentString } }, lines$1, comment, chompKeep) {
|
143880
143899
|
if (comment && chompKeep) comment = comment.replace(/^\n+/, "");
|
143881
143900
|
if (comment) {
|
143882
143901
|
const ic = stringifyComment$1.indentComment(commentString(comment), indent);
|
143883
|
-
lines.push(ic.trimStart());
|
143902
|
+
lines$1.push(ic.trimStart());
|
143884
143903
|
}
|
143885
143904
|
}
|
143886
143905
|
exports.stringifyCollection = stringifyCollection$2;
|
@@ -144449,11 +144468,11 @@ var require_binary = __commonJS({ "../../node_modules/yaml/dist/schema/yaml-1.1/
|
|
144449
144468
|
if (type$1 !== Scalar$8.Scalar.QUOTE_DOUBLE) {
|
144450
144469
|
const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
|
144451
144470
|
const n$4 = Math.ceil(str.length / lineWidth);
|
144452
|
-
const lines = new Array(n$4);
|
144471
|
+
const lines$1 = new Array(n$4);
|
144453
144472
|
for (let i$7 = 0, o$6 = 0; i$7 < n$4; ++i$7, o$6 += lineWidth) {
|
144454
|
-
lines[i$7] = str.substr(o$6, lineWidth);
|
144473
|
+
lines$1[i$7] = str.substr(o$6, lineWidth);
|
144455
144474
|
}
|
144456
|
-
str = lines.join(type$1 === Scalar$8.Scalar.BLOCK_LITERAL ? "\n" : " ");
|
144475
|
+
str = lines$1.join(type$1 === Scalar$8.Scalar.BLOCK_LITERAL ? "\n" : " ");
|
144457
144476
|
}
|
144458
144477
|
return stringifyString$1.stringifyString({
|
144459
144478
|
comment,
|
@@ -145086,31 +145105,31 @@ var require_stringifyDocument = __commonJS({ "../../node_modules/yaml/dist/strin
|
|
145086
145105
|
var stringify$6 = require_stringify();
|
145087
145106
|
var stringifyComment = require_stringifyComment();
|
145088
145107
|
function stringifyDocument$1(doc, options) {
|
145089
|
-
const lines = [];
|
145108
|
+
const lines$1 = [];
|
145090
145109
|
let hasDirectives = options.directives === true;
|
145091
145110
|
if (options.directives !== false && doc.directives) {
|
145092
145111
|
const dir = doc.directives.toString(doc);
|
145093
145112
|
if (dir) {
|
145094
|
-
lines.push(dir);
|
145113
|
+
lines$1.push(dir);
|
145095
145114
|
hasDirectives = true;
|
145096
145115
|
} else if (doc.directives.docStart) hasDirectives = true;
|
145097
145116
|
}
|
145098
|
-
if (hasDirectives) lines.push("---");
|
145117
|
+
if (hasDirectives) lines$1.push("---");
|
145099
145118
|
const ctx = stringify$6.createStringifyContext(doc, options);
|
145100
145119
|
const { commentString } = ctx.options;
|
145101
145120
|
if (doc.commentBefore) {
|
145102
|
-
if (lines.length !== 1) lines.unshift("");
|
145121
|
+
if (lines$1.length !== 1) lines$1.unshift("");
|
145103
145122
|
const cs = commentString(doc.commentBefore);
|
145104
|
-
lines.unshift(stringifyComment.indentComment(cs, ""));
|
145123
|
+
lines$1.unshift(stringifyComment.indentComment(cs, ""));
|
145105
145124
|
}
|
145106
145125
|
let chompKeep = false;
|
145107
145126
|
let contentComment = null;
|
145108
145127
|
if (doc.contents) {
|
145109
145128
|
if (identity$9.isNode(doc.contents)) {
|
145110
|
-
if (doc.contents.spaceBefore && hasDirectives) lines.push("");
|
145129
|
+
if (doc.contents.spaceBefore && hasDirectives) lines$1.push("");
|
145111
145130
|
if (doc.contents.commentBefore) {
|
145112
145131
|
const cs = commentString(doc.contents.commentBefore);
|
145113
|
-
lines.push(stringifyComment.indentComment(cs, ""));
|
145132
|
+
lines$1.push(stringifyComment.indentComment(cs, ""));
|
145114
145133
|
}
|
145115
145134
|
ctx.forceBlockIndent = !!doc.comment;
|
145116
145135
|
contentComment = doc.contents.comment;
|
@@ -145118,33 +145137,33 @@ var require_stringifyDocument = __commonJS({ "../../node_modules/yaml/dist/strin
|
|
145118
145137
|
const onChompKeep = contentComment ? undefined : () => chompKeep = true;
|
145119
145138
|
let body = stringify$6.stringify(doc.contents, ctx, () => contentComment = null, onChompKeep);
|
145120
145139
|
if (contentComment) body += stringifyComment.lineComment(body, "", commentString(contentComment));
|
145121
|
-
if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") {
|
145122
|
-
lines[lines.length - 1] = `--- ${body}`;
|
145123
|
-
} else lines.push(body);
|
145140
|
+
if ((body[0] === "|" || body[0] === ">") && lines$1[lines$1.length - 1] === "---") {
|
145141
|
+
lines$1[lines$1.length - 1] = `--- ${body}`;
|
145142
|
+
} else lines$1.push(body);
|
145124
145143
|
} else {
|
145125
|
-
lines.push(stringify$6.stringify(doc.contents, ctx));
|
145144
|
+
lines$1.push(stringify$6.stringify(doc.contents, ctx));
|
145126
145145
|
}
|
145127
145146
|
if (doc.directives?.docEnd) {
|
145128
145147
|
if (doc.comment) {
|
145129
145148
|
const cs = commentString(doc.comment);
|
145130
145149
|
if (cs.includes("\n")) {
|
145131
|
-
lines.push("...");
|
145132
|
-
lines.push(stringifyComment.indentComment(cs, ""));
|
145150
|
+
lines$1.push("...");
|
145151
|
+
lines$1.push(stringifyComment.indentComment(cs, ""));
|
145133
145152
|
} else {
|
145134
|
-
lines.push(`... ${cs}`);
|
145153
|
+
lines$1.push(`... ${cs}`);
|
145135
145154
|
}
|
145136
145155
|
} else {
|
145137
|
-
lines.push("...");
|
145156
|
+
lines$1.push("...");
|
145138
145157
|
}
|
145139
145158
|
} else {
|
145140
145159
|
let dc = doc.comment;
|
145141
145160
|
if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
|
145142
145161
|
if (dc) {
|
145143
|
-
if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "") lines.push("");
|
145144
|
-
lines.push(stringifyComment.indentComment(commentString(dc), ""));
|
145162
|
+
if ((!chompKeep || contentComment) && lines$1[lines$1.length - 1] !== "") lines$1.push("");
|
145163
|
+
lines$1.push(stringifyComment.indentComment(commentString(dc), ""));
|
145145
145164
|
}
|
145146
145165
|
}
|
145147
|
-
return lines.join("\n") + "\n";
|
145166
|
+
return lines$1.join("\n") + "\n";
|
145148
145167
|
}
|
145149
145168
|
exports.stringifyDocument = stringifyDocument$1;
|
145150
145169
|
} });
|
@@ -146097,15 +146116,15 @@ var require_resolve_block_scalar = __commonJS({ "../../node_modules/yaml/dist/co
|
|
146097
146116
|
]
|
146098
146117
|
};
|
146099
146118
|
const type$1 = header.mode === ">" ? Scalar$3.Scalar.BLOCK_FOLDED : Scalar$3.Scalar.BLOCK_LITERAL;
|
146100
|
-
const lines = scalar.source ? splitLines(scalar.source) : [];
|
146101
|
-
let chompStart = lines.length;
|
146102
|
-
for (let i$7 = lines.length - 1; i$7 >= 0; --i$7) {
|
146103
|
-
const content = lines[i$7][1];
|
146119
|
+
const lines$1 = scalar.source ? splitLines(scalar.source) : [];
|
146120
|
+
let chompStart = lines$1.length;
|
146121
|
+
for (let i$7 = lines$1.length - 1; i$7 >= 0; --i$7) {
|
146122
|
+
const content = lines$1[i$7][1];
|
146104
146123
|
if (content === "" || content === "\r") chompStart = i$7;
|
146105
146124
|
else break;
|
146106
146125
|
}
|
146107
146126
|
if (chompStart === 0) {
|
146108
|
-
const value$1 = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : "";
|
146127
|
+
const value$1 = header.chomp === "+" && lines$1.length > 0 ? "\n".repeat(Math.max(1, lines$1.length - 1)) : "";
|
146109
146128
|
let end$1 = start + header.length;
|
146110
146129
|
if (scalar.source) end$1 += scalar.source.length;
|
146111
146130
|
return {
|
@@ -146123,7 +146142,7 @@ var require_resolve_block_scalar = __commonJS({ "../../node_modules/yaml/dist/co
|
|
146123
146142
|
let offset = scalar.offset + header.length;
|
146124
146143
|
let contentStart = 0;
|
146125
146144
|
for (let i$7 = 0; i$7 < chompStart; ++i$7) {
|
146126
|
-
const [indent, content] = lines[i$7];
|
146145
|
+
const [indent, content] = lines$1[i$7];
|
146127
146146
|
if (content === "" || content === "\r") {
|
146128
146147
|
if (header.indent === 0 && indent.length > trimIndent) trimIndent = indent.length;
|
146129
146148
|
} else {
|
@@ -146141,15 +146160,15 @@ var require_resolve_block_scalar = __commonJS({ "../../node_modules/yaml/dist/co
|
|
146141
146160
|
}
|
146142
146161
|
offset += indent.length + content.length + 1;
|
146143
146162
|
}
|
146144
|
-
for (let i$7 = lines.length - 1; i$7 >= chompStart; --i$7) {
|
146145
|
-
if (lines[i$7][0].length > trimIndent) chompStart = i$7 + 1;
|
146163
|
+
for (let i$7 = lines$1.length - 1; i$7 >= chompStart; --i$7) {
|
146164
|
+
if (lines$1[i$7][0].length > trimIndent) chompStart = i$7 + 1;
|
146146
146165
|
}
|
146147
146166
|
let value = "";
|
146148
146167
|
let sep$5 = "";
|
146149
146168
|
let prevMoreIndented = false;
|
146150
|
-
for (let i$7 = 0; i$7 < contentStart; ++i$7) value += lines[i$7][0].slice(trimIndent) + "\n";
|
146169
|
+
for (let i$7 = 0; i$7 < contentStart; ++i$7) value += lines$1[i$7][0].slice(trimIndent) + "\n";
|
146151
146170
|
for (let i$7 = contentStart; i$7 < chompStart; ++i$7) {
|
146152
|
-
let [indent, content] = lines[i$7];
|
146171
|
+
let [indent, content] = lines$1[i$7];
|
146153
146172
|
offset += indent.length + content.length + 1;
|
146154
146173
|
const crlf = content[content.length - 1] === "\r";
|
146155
146174
|
if (crlf) content = content.slice(0, -1);
|
@@ -146181,7 +146200,7 @@ var require_resolve_block_scalar = __commonJS({ "../../node_modules/yaml/dist/co
|
|
146181
146200
|
switch (header.chomp) {
|
146182
146201
|
case "-": break;
|
146183
146202
|
case "+":
|
146184
|
-
for (let i$7 = chompStart; i$7 < lines.length; ++i$7) value += "\n" + lines[i$7][0].slice(trimIndent);
|
146203
|
+
for (let i$7 = chompStart; i$7 < lines$1.length; ++i$7) value += "\n" + lines$1[i$7][0].slice(trimIndent);
|
146185
146204
|
if (value[value.length - 1] !== "\n") value += "\n";
|
146186
146205
|
break;
|
146187
146206
|
default: value += "\n";
|
@@ -146259,13 +146278,13 @@ var require_resolve_block_scalar = __commonJS({ "../../node_modules/yaml/dist/co
|
|
146259
146278
|
}
|
146260
146279
|
/** @returns Array of lines split up as `[indent, content]` */
|
146261
146280
|
function splitLines(source) {
|
146262
|
-
const split$
|
146263
|
-
const first = split$
|
146281
|
+
const split$2 = source.split(/\n( *)/);
|
146282
|
+
const first = split$2[0];
|
146264
146283
|
const m$5 = first.match(/^( *)/);
|
146265
146284
|
const line0 = m$5?.[1] ? [m$5[1], first.slice(m$5[1].length)] : ["", first];
|
146266
|
-
const lines = [line0];
|
146267
|
-
for (let i$7 = 1; i$7 < split$
|
146268
|
-
return lines;
|
146285
|
+
const lines$1 = [line0];
|
146286
|
+
for (let i$7 = 1; i$7 < split$2.length; i$7 += 2) lines$1.push([split$2[i$7], split$2[i$7 + 1]]);
|
146287
|
+
return lines$1;
|
146269
146288
|
}
|
146270
146289
|
exports.resolveBlockScalar = resolveBlockScalar$2;
|
146271
146290
|
} });
|