@scalar/cli 1.8.5 → 1.8.7
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/README.md +17 -1
- package/docs.html +100 -66
- package/index.js +612 -464
- package/package.json +17 -16
package/index.js
CHANGED
|
@@ -37,9 +37,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
mod
|
|
38
38
|
));
|
|
39
39
|
|
|
40
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
40
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
41
41
|
var require_identity = __commonJS({
|
|
42
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
42
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
43
43
|
"use strict";
|
|
44
44
|
var ALIAS = Symbol.for("yaml.alias");
|
|
45
45
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -94,9 +94,9 @@ var require_identity = __commonJS({
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
97
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
98
98
|
var require_visit = __commonJS({
|
|
99
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
99
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js"(exports2) {
|
|
100
100
|
"use strict";
|
|
101
101
|
var identity = require_identity();
|
|
102
102
|
var BREAK = Symbol("break visit");
|
|
@@ -252,9 +252,9 @@ var require_visit = __commonJS({
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
|
|
255
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
255
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
256
256
|
var require_directives = __commonJS({
|
|
257
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
257
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
258
258
|
"use strict";
|
|
259
259
|
var identity = require_identity();
|
|
260
260
|
var visit = require_visit();
|
|
@@ -423,9 +423,9 @@ var require_directives = __commonJS({
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
426
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
427
427
|
var require_anchors = __commonJS({
|
|
428
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
428
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
429
429
|
"use strict";
|
|
430
430
|
var identity = require_identity();
|
|
431
431
|
var visit = require_visit();
|
|
@@ -461,8 +461,7 @@ var require_anchors = __commonJS({
|
|
|
461
461
|
return {
|
|
462
462
|
onAnchor: (source) => {
|
|
463
463
|
aliasObjects.push(source);
|
|
464
|
-
|
|
465
|
-
prevAnchors = anchorNames(doc);
|
|
464
|
+
prevAnchors ?? (prevAnchors = anchorNames(doc));
|
|
466
465
|
const anchor = findNewAnchor(prefix, prevAnchors);
|
|
467
466
|
prevAnchors.add(anchor);
|
|
468
467
|
return anchor;
|
|
@@ -494,9 +493,9 @@ var require_anchors = __commonJS({
|
|
|
494
493
|
}
|
|
495
494
|
});
|
|
496
495
|
|
|
497
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
496
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
498
497
|
var require_applyReviver = __commonJS({
|
|
499
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
498
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
500
499
|
"use strict";
|
|
501
500
|
function applyReviver(reviver, obj, key, val) {
|
|
502
501
|
if (val && typeof val === "object") {
|
|
@@ -544,9 +543,9 @@ var require_applyReviver = __commonJS({
|
|
|
544
543
|
}
|
|
545
544
|
});
|
|
546
545
|
|
|
547
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
546
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
548
547
|
var require_toJS = __commonJS({
|
|
549
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
548
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
550
549
|
"use strict";
|
|
551
550
|
var identity = require_identity();
|
|
552
551
|
function toJS(value, arg, ctx) {
|
|
@@ -574,9 +573,9 @@ var require_toJS = __commonJS({
|
|
|
574
573
|
}
|
|
575
574
|
});
|
|
576
575
|
|
|
577
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
576
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
578
577
|
var require_Node = __commonJS({
|
|
579
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
578
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
580
579
|
"use strict";
|
|
581
580
|
var applyReviver = require_applyReviver();
|
|
582
581
|
var identity = require_identity();
|
|
@@ -615,9 +614,9 @@ var require_Node = __commonJS({
|
|
|
615
614
|
}
|
|
616
615
|
});
|
|
617
616
|
|
|
618
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
617
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
619
618
|
var require_Alias = __commonJS({
|
|
620
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
619
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
621
620
|
"use strict";
|
|
622
621
|
var anchors = require_anchors();
|
|
623
622
|
var visit = require_visit();
|
|
@@ -638,23 +637,35 @@ var require_Alias = __commonJS({
|
|
|
638
637
|
* Resolve the value of this alias within `doc`, finding the last
|
|
639
638
|
* instance of the `source` anchor before this node.
|
|
640
639
|
*/
|
|
641
|
-
resolve(doc) {
|
|
640
|
+
resolve(doc, ctx) {
|
|
641
|
+
let nodes;
|
|
642
|
+
if (ctx?.aliasResolveCache) {
|
|
643
|
+
nodes = ctx.aliasResolveCache;
|
|
644
|
+
} else {
|
|
645
|
+
nodes = [];
|
|
646
|
+
visit.visit(doc, {
|
|
647
|
+
Node: (_key, node) => {
|
|
648
|
+
if (identity.isAlias(node) || identity.hasAnchor(node))
|
|
649
|
+
nodes.push(node);
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
if (ctx)
|
|
653
|
+
ctx.aliasResolveCache = nodes;
|
|
654
|
+
}
|
|
642
655
|
let found = void 0;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
});
|
|
656
|
+
for (const node of nodes) {
|
|
657
|
+
if (node === this)
|
|
658
|
+
break;
|
|
659
|
+
if (node.anchor === this.source)
|
|
660
|
+
found = node;
|
|
661
|
+
}
|
|
651
662
|
return found;
|
|
652
663
|
}
|
|
653
664
|
toJSON(_arg, ctx) {
|
|
654
665
|
if (!ctx)
|
|
655
666
|
return { source: this.source };
|
|
656
667
|
const { anchors: anchors2, doc, maxAliasCount } = ctx;
|
|
657
|
-
const source = this.resolve(doc);
|
|
668
|
+
const source = this.resolve(doc, ctx);
|
|
658
669
|
if (!source) {
|
|
659
670
|
const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
660
671
|
throw new ReferenceError(msg);
|
|
@@ -664,7 +675,7 @@ var require_Alias = __commonJS({
|
|
|
664
675
|
toJS.toJS(source, null, ctx);
|
|
665
676
|
data = anchors2.get(source);
|
|
666
677
|
}
|
|
667
|
-
if (
|
|
678
|
+
if (data?.res === void 0) {
|
|
668
679
|
const msg = "This should not happen: Alias anchor was not resolved?";
|
|
669
680
|
throw new ReferenceError(msg);
|
|
670
681
|
}
|
|
@@ -717,9 +728,9 @@ var require_Alias = __commonJS({
|
|
|
717
728
|
}
|
|
718
729
|
});
|
|
719
730
|
|
|
720
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
731
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
721
732
|
var require_Scalar = __commonJS({
|
|
722
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
733
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
723
734
|
"use strict";
|
|
724
735
|
var identity = require_identity();
|
|
725
736
|
var Node = require_Node();
|
|
@@ -747,9 +758,9 @@ var require_Scalar = __commonJS({
|
|
|
747
758
|
}
|
|
748
759
|
});
|
|
749
760
|
|
|
750
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
761
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
751
762
|
var require_createNode = __commonJS({
|
|
752
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
763
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
753
764
|
"use strict";
|
|
754
765
|
var Alias = require_Alias();
|
|
755
766
|
var identity = require_identity();
|
|
@@ -783,8 +794,7 @@ var require_createNode = __commonJS({
|
|
|
783
794
|
if (aliasDuplicateObjects && value && typeof value === "object") {
|
|
784
795
|
ref = sourceObjects.get(value);
|
|
785
796
|
if (ref) {
|
|
786
|
-
|
|
787
|
-
ref.anchor = onAnchor(value);
|
|
797
|
+
ref.anchor ?? (ref.anchor = onAnchor(value));
|
|
788
798
|
return new Alias.Alias(ref.anchor);
|
|
789
799
|
} else {
|
|
790
800
|
ref = { anchor: null, node: null };
|
|
@@ -823,9 +833,9 @@ var require_createNode = __commonJS({
|
|
|
823
833
|
}
|
|
824
834
|
});
|
|
825
835
|
|
|
826
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
836
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
827
837
|
var require_Collection = __commonJS({
|
|
828
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
838
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
829
839
|
"use strict";
|
|
830
840
|
var createNode = require_createNode();
|
|
831
841
|
var identity = require_identity();
|
|
@@ -966,9 +976,9 @@ var require_Collection = __commonJS({
|
|
|
966
976
|
}
|
|
967
977
|
});
|
|
968
978
|
|
|
969
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
979
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
970
980
|
var require_stringifyComment = __commonJS({
|
|
971
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
981
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
972
982
|
"use strict";
|
|
973
983
|
var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
974
984
|
function indentComment(comment, indent) {
|
|
@@ -983,9 +993,9 @@ var require_stringifyComment = __commonJS({
|
|
|
983
993
|
}
|
|
984
994
|
});
|
|
985
995
|
|
|
986
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
996
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
987
997
|
var require_foldFlowLines = __commonJS({
|
|
988
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
998
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
989
999
|
"use strict";
|
|
990
1000
|
var FOLD_FLOW = "flow";
|
|
991
1001
|
var FOLD_BLOCK = "block";
|
|
@@ -1119,9 +1129,9 @@ ${indent}${text11.slice(fold + 1, end2)}`;
|
|
|
1119
1129
|
}
|
|
1120
1130
|
});
|
|
1121
1131
|
|
|
1122
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1132
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1123
1133
|
var require_stringifyString = __commonJS({
|
|
1124
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1134
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1125
1135
|
"use strict";
|
|
1126
1136
|
var Scalar = require_Scalar();
|
|
1127
1137
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1262,7 +1272,7 @@ ${indent}`) + "'";
|
|
|
1262
1272
|
}
|
|
1263
1273
|
function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
|
1264
1274
|
const { blockQuote, commentString, lineWidth } = ctx.options;
|
|
1265
|
-
if (!blockQuote || /\n[\t ]+$/.test(value)
|
|
1275
|
+
if (!blockQuote || /\n[\t ]+$/.test(value)) {
|
|
1266
1276
|
return quotedString(value, ctx);
|
|
1267
1277
|
}
|
|
1268
1278
|
const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
|
|
@@ -1341,7 +1351,7 @@ ${indent}${start}${value}${end}`;
|
|
|
1341
1351
|
if (implicitKey && value.includes("\n") || inFlow && /[[\]{},]/.test(value)) {
|
|
1342
1352
|
return quotedString(value, ctx);
|
|
1343
1353
|
}
|
|
1344
|
-
if (
|
|
1354
|
+
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
|
|
1345
1355
|
return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
|
|
1346
1356
|
}
|
|
1347
1357
|
if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
|
|
@@ -1402,9 +1412,9 @@ ${indent}`);
|
|
|
1402
1412
|
}
|
|
1403
1413
|
});
|
|
1404
1414
|
|
|
1405
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1415
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
1406
1416
|
var require_stringify = __commonJS({
|
|
1407
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1417
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1408
1418
|
"use strict";
|
|
1409
1419
|
var anchors = require_anchors();
|
|
1410
1420
|
var identity = require_identity();
|
|
@@ -1427,6 +1437,7 @@ var require_stringify = __commonJS({
|
|
|
1427
1437
|
nullStr: "null",
|
|
1428
1438
|
simpleKeys: false,
|
|
1429
1439
|
singleQuote: null,
|
|
1440
|
+
trailingComma: false,
|
|
1430
1441
|
trueStr: "true",
|
|
1431
1442
|
verifyAliasOrder: true
|
|
1432
1443
|
}, doc.schema.toStringOptions, options2);
|
|
@@ -1473,7 +1484,7 @@ var require_stringify = __commonJS({
|
|
|
1473
1484
|
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
1474
1485
|
}
|
|
1475
1486
|
if (!tagObj) {
|
|
1476
|
-
const name2 = obj?.constructor?.name ?? typeof obj;
|
|
1487
|
+
const name2 = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
|
|
1477
1488
|
throw new Error(`Tag not resolved for ${name2} value`);
|
|
1478
1489
|
}
|
|
1479
1490
|
return tagObj;
|
|
@@ -1487,7 +1498,7 @@ var require_stringify = __commonJS({
|
|
|
1487
1498
|
anchors$1.add(anchor);
|
|
1488
1499
|
props.push(`&${anchor}`);
|
|
1489
1500
|
}
|
|
1490
|
-
const tag = node.tag
|
|
1501
|
+
const tag = node.tag ?? (tagObj.default ? null : tagObj.tag);
|
|
1491
1502
|
if (tag)
|
|
1492
1503
|
props.push(doc.directives.tagString(tag));
|
|
1493
1504
|
return props.join(" ");
|
|
@@ -1510,8 +1521,7 @@ var require_stringify = __commonJS({
|
|
|
1510
1521
|
}
|
|
1511
1522
|
let tagObj = void 0;
|
|
1512
1523
|
const node = identity.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
|
|
1513
|
-
|
|
1514
|
-
tagObj = getTagObject(ctx.doc.schema.tags, node);
|
|
1524
|
+
tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
|
|
1515
1525
|
const props = stringifyProps(node, tagObj, ctx);
|
|
1516
1526
|
if (props.length > 0)
|
|
1517
1527
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
@@ -1526,9 +1536,9 @@ ${ctx.indent}${str2}`;
|
|
|
1526
1536
|
}
|
|
1527
1537
|
});
|
|
1528
1538
|
|
|
1529
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1539
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1530
1540
|
var require_stringifyPair = __commonJS({
|
|
1531
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1541
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1532
1542
|
"use strict";
|
|
1533
1543
|
var identity = require_identity();
|
|
1534
1544
|
var Scalar = require_Scalar();
|
|
@@ -1616,7 +1626,7 @@ ${indent}:`;
|
|
|
1616
1626
|
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
1617
1627
|
}
|
|
1618
1628
|
if (valueStr === "" && !ctx.inFlow) {
|
|
1619
|
-
if (ws === "\n")
|
|
1629
|
+
if (ws === "\n" && valueComment)
|
|
1620
1630
|
ws = "\n\n";
|
|
1621
1631
|
} else {
|
|
1622
1632
|
ws += `
|
|
@@ -1659,18 +1669,19 @@ ${ctx.indent}`;
|
|
|
1659
1669
|
}
|
|
1660
1670
|
});
|
|
1661
1671
|
|
|
1662
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1672
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
1663
1673
|
var require_log = __commonJS({
|
|
1664
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1674
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js"(exports2) {
|
|
1665
1675
|
"use strict";
|
|
1676
|
+
var node_process = __require("process");
|
|
1666
1677
|
function debug(logLevel, ...messages) {
|
|
1667
1678
|
if (logLevel === "debug")
|
|
1668
1679
|
console.log(...messages);
|
|
1669
1680
|
}
|
|
1670
1681
|
function warn2(logLevel, warning) {
|
|
1671
1682
|
if (logLevel === "debug" || logLevel === "warn") {
|
|
1672
|
-
if (typeof
|
|
1673
|
-
|
|
1683
|
+
if (typeof node_process.emitWarning === "function")
|
|
1684
|
+
node_process.emitWarning(warning);
|
|
1674
1685
|
else
|
|
1675
1686
|
console.warn(warning);
|
|
1676
1687
|
}
|
|
@@ -1680,9 +1691,9 @@ var require_log = __commonJS({
|
|
|
1680
1691
|
}
|
|
1681
1692
|
});
|
|
1682
1693
|
|
|
1683
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1694
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1684
1695
|
var require_merge = __commonJS({
|
|
1685
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1696
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
1686
1697
|
"use strict";
|
|
1687
1698
|
var identity = require_identity();
|
|
1688
1699
|
var Scalar = require_Scalar();
|
|
@@ -1737,9 +1748,9 @@ var require_merge = __commonJS({
|
|
|
1737
1748
|
}
|
|
1738
1749
|
});
|
|
1739
1750
|
|
|
1740
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1751
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1741
1752
|
var require_addPairToJSMap = __commonJS({
|
|
1742
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1753
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1743
1754
|
"use strict";
|
|
1744
1755
|
var log = require_log();
|
|
1745
1756
|
var merge3 = require_merge();
|
|
@@ -1801,9 +1812,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1801
1812
|
}
|
|
1802
1813
|
});
|
|
1803
1814
|
|
|
1804
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1815
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
1805
1816
|
var require_Pair = __commonJS({
|
|
1806
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1817
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
1807
1818
|
"use strict";
|
|
1808
1819
|
var createNode = require_createNode();
|
|
1809
1820
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1841,9 +1852,9 @@ var require_Pair = __commonJS({
|
|
|
1841
1852
|
}
|
|
1842
1853
|
});
|
|
1843
1854
|
|
|
1844
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1855
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1845
1856
|
var require_stringifyCollection = __commonJS({
|
|
1846
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1857
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
1847
1858
|
"use strict";
|
|
1848
1859
|
var identity = require_identity();
|
|
1849
1860
|
var stringify = require_stringify();
|
|
@@ -1944,12 +1955,19 @@ ${indent}${line}` : "\n";
|
|
|
1944
1955
|
if (comment)
|
|
1945
1956
|
reqNewline = true;
|
|
1946
1957
|
let str2 = stringify.stringify(item, itemCtx, () => comment = null);
|
|
1947
|
-
|
|
1958
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str2.includes("\n"));
|
|
1959
|
+
if (i < items.length - 1) {
|
|
1948
1960
|
str2 += ",";
|
|
1961
|
+
} else if (ctx.options.trailingComma) {
|
|
1962
|
+
if (ctx.options.lineWidth > 0) {
|
|
1963
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str2.length + 2) > ctx.options.lineWidth);
|
|
1964
|
+
}
|
|
1965
|
+
if (reqNewline) {
|
|
1966
|
+
str2 += ",";
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1949
1969
|
if (comment)
|
|
1950
1970
|
str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment));
|
|
1951
|
-
if (!reqNewline && (lines.length > linesAtValue || str2.includes("\n")))
|
|
1952
|
-
reqNewline = true;
|
|
1953
1971
|
lines.push(str2);
|
|
1954
1972
|
linesAtValue = lines.length;
|
|
1955
1973
|
}
|
|
@@ -1985,9 +2003,9 @@ ${indent}${end}`;
|
|
|
1985
2003
|
}
|
|
1986
2004
|
});
|
|
1987
2005
|
|
|
1988
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2006
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1989
2007
|
var require_YAMLMap = __commonJS({
|
|
1990
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2008
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
1991
2009
|
"use strict";
|
|
1992
2010
|
var stringifyCollection = require_stringifyCollection();
|
|
1993
2011
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2129,9 +2147,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2129
2147
|
}
|
|
2130
2148
|
});
|
|
2131
2149
|
|
|
2132
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2150
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
2133
2151
|
var require_map = __commonJS({
|
|
2134
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2152
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2135
2153
|
"use strict";
|
|
2136
2154
|
var identity = require_identity();
|
|
2137
2155
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2151,9 +2169,9 @@ var require_map = __commonJS({
|
|
|
2151
2169
|
}
|
|
2152
2170
|
});
|
|
2153
2171
|
|
|
2154
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2172
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2155
2173
|
var require_YAMLSeq = __commonJS({
|
|
2156
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2174
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2157
2175
|
"use strict";
|
|
2158
2176
|
var createNode = require_createNode();
|
|
2159
2177
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2267,9 +2285,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2267
2285
|
}
|
|
2268
2286
|
});
|
|
2269
2287
|
|
|
2270
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2288
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
2271
2289
|
var require_seq = __commonJS({
|
|
2272
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2290
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2273
2291
|
"use strict";
|
|
2274
2292
|
var identity = require_identity();
|
|
2275
2293
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2289,9 +2307,9 @@ var require_seq = __commonJS({
|
|
|
2289
2307
|
}
|
|
2290
2308
|
});
|
|
2291
2309
|
|
|
2292
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2310
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
2293
2311
|
var require_string = __commonJS({
|
|
2294
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2312
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2295
2313
|
"use strict";
|
|
2296
2314
|
var stringifyString = require_stringifyString();
|
|
2297
2315
|
var string4 = {
|
|
@@ -2308,9 +2326,9 @@ var require_string = __commonJS({
|
|
|
2308
2326
|
}
|
|
2309
2327
|
});
|
|
2310
2328
|
|
|
2311
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2329
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
2312
2330
|
var require_null = __commonJS({
|
|
2313
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2331
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2314
2332
|
"use strict";
|
|
2315
2333
|
var Scalar = require_Scalar();
|
|
2316
2334
|
var nullTag = {
|
|
@@ -2326,9 +2344,9 @@ var require_null = __commonJS({
|
|
|
2326
2344
|
}
|
|
2327
2345
|
});
|
|
2328
2346
|
|
|
2329
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2347
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
2330
2348
|
var require_bool = __commonJS({
|
|
2331
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2349
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2332
2350
|
"use strict";
|
|
2333
2351
|
var Scalar = require_Scalar();
|
|
2334
2352
|
var boolTag = {
|
|
@@ -2350,9 +2368,9 @@ var require_bool = __commonJS({
|
|
|
2350
2368
|
}
|
|
2351
2369
|
});
|
|
2352
2370
|
|
|
2353
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2371
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2354
2372
|
var require_stringifyNumber = __commonJS({
|
|
2355
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2373
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2356
2374
|
"use strict";
|
|
2357
2375
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2358
2376
|
if (typeof value === "bigint")
|
|
@@ -2360,7 +2378,7 @@ var require_stringifyNumber = __commonJS({
|
|
|
2360
2378
|
const num = typeof value === "number" ? value : Number(value);
|
|
2361
2379
|
if (!isFinite(num))
|
|
2362
2380
|
return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
2363
|
-
let n3 = JSON.stringify(value);
|
|
2381
|
+
let n3 = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
2364
2382
|
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n3)) {
|
|
2365
2383
|
let i = n3.indexOf(".");
|
|
2366
2384
|
if (i < 0) {
|
|
@@ -2377,9 +2395,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2377
2395
|
}
|
|
2378
2396
|
});
|
|
2379
2397
|
|
|
2380
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2398
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
2381
2399
|
var require_float = __commonJS({
|
|
2382
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2400
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2383
2401
|
"use strict";
|
|
2384
2402
|
var Scalar = require_Scalar();
|
|
2385
2403
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2423,9 +2441,9 @@ var require_float = __commonJS({
|
|
|
2423
2441
|
}
|
|
2424
2442
|
});
|
|
2425
2443
|
|
|
2426
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2444
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
2427
2445
|
var require_int = __commonJS({
|
|
2428
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2446
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2429
2447
|
"use strict";
|
|
2430
2448
|
var stringifyNumber = require_stringifyNumber();
|
|
2431
2449
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2468,9 +2486,9 @@ var require_int = __commonJS({
|
|
|
2468
2486
|
}
|
|
2469
2487
|
});
|
|
2470
2488
|
|
|
2471
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2489
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
2472
2490
|
var require_schema = __commonJS({
|
|
2473
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2491
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2474
2492
|
"use strict";
|
|
2475
2493
|
var map2 = require_map();
|
|
2476
2494
|
var _null4 = require_null();
|
|
@@ -2496,9 +2514,9 @@ var require_schema = __commonJS({
|
|
|
2496
2514
|
}
|
|
2497
2515
|
});
|
|
2498
2516
|
|
|
2499
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2517
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
2500
2518
|
var require_schema2 = __commonJS({
|
|
2501
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2519
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2502
2520
|
"use strict";
|
|
2503
2521
|
var Scalar = require_Scalar();
|
|
2504
2522
|
var map2 = require_map();
|
|
@@ -2563,10 +2581,11 @@ var require_schema2 = __commonJS({
|
|
|
2563
2581
|
}
|
|
2564
2582
|
});
|
|
2565
2583
|
|
|
2566
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2584
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2567
2585
|
var require_binary = __commonJS({
|
|
2568
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2586
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2569
2587
|
"use strict";
|
|
2588
|
+
var node_buffer = __require("buffer");
|
|
2570
2589
|
var Scalar = require_Scalar();
|
|
2571
2590
|
var stringifyString = require_stringifyString();
|
|
2572
2591
|
var binary = {
|
|
@@ -2583,8 +2602,8 @@ var require_binary = __commonJS({
|
|
|
2583
2602
|
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
2584
2603
|
*/
|
|
2585
2604
|
resolve(src, onError) {
|
|
2586
|
-
if (typeof Buffer === "function") {
|
|
2587
|
-
return Buffer.from(src, "base64");
|
|
2605
|
+
if (typeof node_buffer.Buffer === "function") {
|
|
2606
|
+
return node_buffer.Buffer.from(src, "base64");
|
|
2588
2607
|
} else if (typeof atob === "function") {
|
|
2589
2608
|
const str2 = atob(src.replace(/[\n\r]/g, ""));
|
|
2590
2609
|
const buffer = new Uint8Array(str2.length);
|
|
@@ -2597,10 +2616,12 @@ var require_binary = __commonJS({
|
|
|
2597
2616
|
}
|
|
2598
2617
|
},
|
|
2599
2618
|
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
|
|
2619
|
+
if (!value)
|
|
2620
|
+
return "";
|
|
2600
2621
|
const buf = value;
|
|
2601
2622
|
let str2;
|
|
2602
|
-
if (typeof Buffer === "function") {
|
|
2603
|
-
str2 = buf instanceof Buffer ? buf.toString("base64") : Buffer.from(buf.buffer).toString("base64");
|
|
2623
|
+
if (typeof node_buffer.Buffer === "function") {
|
|
2624
|
+
str2 = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
|
|
2604
2625
|
} else if (typeof btoa === "function") {
|
|
2605
2626
|
let s = "";
|
|
2606
2627
|
for (let i = 0; i < buf.length; ++i)
|
|
@@ -2609,8 +2630,7 @@ var require_binary = __commonJS({
|
|
|
2609
2630
|
} else {
|
|
2610
2631
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
2611
2632
|
}
|
|
2612
|
-
|
|
2613
|
-
type = Scalar.Scalar.BLOCK_LITERAL;
|
|
2633
|
+
type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
|
|
2614
2634
|
if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
|
|
2615
2635
|
const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
|
|
2616
2636
|
const n3 = Math.ceil(str2.length / lineWidth);
|
|
@@ -2627,9 +2647,9 @@ var require_binary = __commonJS({
|
|
|
2627
2647
|
}
|
|
2628
2648
|
});
|
|
2629
2649
|
|
|
2630
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2650
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2631
2651
|
var require_pairs = __commonJS({
|
|
2632
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2652
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2633
2653
|
"use strict";
|
|
2634
2654
|
var identity = require_identity();
|
|
2635
2655
|
var Pair = require_Pair();
|
|
@@ -2705,9 +2725,9 @@ ${cn.comment}` : item.comment;
|
|
|
2705
2725
|
}
|
|
2706
2726
|
});
|
|
2707
2727
|
|
|
2708
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2728
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2709
2729
|
var require_omap = __commonJS({
|
|
2710
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2730
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2711
2731
|
"use strict";
|
|
2712
2732
|
var identity = require_identity();
|
|
2713
2733
|
var toJS = require_toJS();
|
|
@@ -2783,9 +2803,9 @@ var require_omap = __commonJS({
|
|
|
2783
2803
|
}
|
|
2784
2804
|
});
|
|
2785
2805
|
|
|
2786
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2806
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2787
2807
|
var require_bool2 = __commonJS({
|
|
2788
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2808
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
2789
2809
|
"use strict";
|
|
2790
2810
|
var Scalar = require_Scalar();
|
|
2791
2811
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2815,9 +2835,9 @@ var require_bool2 = __commonJS({
|
|
|
2815
2835
|
}
|
|
2816
2836
|
});
|
|
2817
2837
|
|
|
2818
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2838
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2819
2839
|
var require_float2 = __commonJS({
|
|
2820
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2840
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
2821
2841
|
"use strict";
|
|
2822
2842
|
var Scalar = require_Scalar();
|
|
2823
2843
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2864,9 +2884,9 @@ var require_float2 = __commonJS({
|
|
|
2864
2884
|
}
|
|
2865
2885
|
});
|
|
2866
2886
|
|
|
2867
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2887
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2868
2888
|
var require_int2 = __commonJS({
|
|
2869
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2889
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
2870
2890
|
"use strict";
|
|
2871
2891
|
var stringifyNumber = require_stringifyNumber();
|
|
2872
2892
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2943,9 +2963,9 @@ var require_int2 = __commonJS({
|
|
|
2943
2963
|
}
|
|
2944
2964
|
});
|
|
2945
2965
|
|
|
2946
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2966
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2947
2967
|
var require_set = __commonJS({
|
|
2948
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2968
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
2949
2969
|
"use strict";
|
|
2950
2970
|
var identity = require_identity();
|
|
2951
2971
|
var Pair = require_Pair();
|
|
@@ -3032,9 +3052,9 @@ var require_set = __commonJS({
|
|
|
3032
3052
|
}
|
|
3033
3053
|
});
|
|
3034
3054
|
|
|
3035
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3055
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3036
3056
|
var require_timestamp = __commonJS({
|
|
3037
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3057
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3038
3058
|
"use strict";
|
|
3039
3059
|
var stringifyNumber = require_stringifyNumber();
|
|
3040
3060
|
function parseSexagesimal(str2, asBigInt) {
|
|
@@ -3112,7 +3132,7 @@ var require_timestamp = __commonJS({
|
|
|
3112
3132
|
}
|
|
3113
3133
|
return new Date(date5);
|
|
3114
3134
|
},
|
|
3115
|
-
stringify: ({ value }) => value
|
|
3135
|
+
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
3116
3136
|
};
|
|
3117
3137
|
exports2.floatTime = floatTime;
|
|
3118
3138
|
exports2.intTime = intTime;
|
|
@@ -3120,9 +3140,9 @@ var require_timestamp = __commonJS({
|
|
|
3120
3140
|
}
|
|
3121
3141
|
});
|
|
3122
3142
|
|
|
3123
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3143
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3124
3144
|
var require_schema3 = __commonJS({
|
|
3125
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3145
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3126
3146
|
"use strict";
|
|
3127
3147
|
var map2 = require_map();
|
|
3128
3148
|
var _null4 = require_null();
|
|
@@ -3164,9 +3184,9 @@ var require_schema3 = __commonJS({
|
|
|
3164
3184
|
}
|
|
3165
3185
|
});
|
|
3166
3186
|
|
|
3167
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3187
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
3168
3188
|
var require_tags = __commonJS({
|
|
3169
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3189
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3170
3190
|
"use strict";
|
|
3171
3191
|
var map2 = require_map();
|
|
3172
3192
|
var _null4 = require_null();
|
|
@@ -3258,9 +3278,9 @@ var require_tags = __commonJS({
|
|
|
3258
3278
|
}
|
|
3259
3279
|
});
|
|
3260
3280
|
|
|
3261
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3281
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
3262
3282
|
var require_Schema = __commonJS({
|
|
3263
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3283
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3264
3284
|
"use strict";
|
|
3265
3285
|
var identity = require_identity();
|
|
3266
3286
|
var map2 = require_map();
|
|
@@ -3290,9 +3310,9 @@ var require_Schema = __commonJS({
|
|
|
3290
3310
|
}
|
|
3291
3311
|
});
|
|
3292
3312
|
|
|
3293
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3313
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3294
3314
|
var require_stringifyDocument = __commonJS({
|
|
3295
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3315
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3296
3316
|
"use strict";
|
|
3297
3317
|
var identity = require_identity();
|
|
3298
3318
|
var stringify = require_stringify();
|
|
@@ -3370,9 +3390,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3370
3390
|
}
|
|
3371
3391
|
});
|
|
3372
3392
|
|
|
3373
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3393
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
3374
3394
|
var require_Document = __commonJS({
|
|
3375
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3395
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3376
3396
|
"use strict";
|
|
3377
3397
|
var Alias = require_Alias();
|
|
3378
3398
|
var Collection = require_Collection();
|
|
@@ -3679,9 +3699,9 @@ var require_Document = __commonJS({
|
|
|
3679
3699
|
}
|
|
3680
3700
|
});
|
|
3681
3701
|
|
|
3682
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3702
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
3683
3703
|
var require_errors = __commonJS({
|
|
3684
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3704
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3685
3705
|
"use strict";
|
|
3686
3706
|
var YAMLError = class extends Error {
|
|
3687
3707
|
constructor(name2, pos, code, message) {
|
|
@@ -3726,7 +3746,7 @@ var require_errors = __commonJS({
|
|
|
3726
3746
|
if (/[^ ]/.test(lineStr)) {
|
|
3727
3747
|
let count = 1;
|
|
3728
3748
|
const end = error48.linePos[1];
|
|
3729
|
-
if (end
|
|
3749
|
+
if (end?.line === line && end.col > col) {
|
|
3730
3750
|
count = Math.max(1, Math.min(end.col - col, 80 - ci));
|
|
3731
3751
|
}
|
|
3732
3752
|
const pointer = " ".repeat(ci) + "^".repeat(count);
|
|
@@ -3744,9 +3764,9 @@ ${pointer}
|
|
|
3744
3764
|
}
|
|
3745
3765
|
});
|
|
3746
3766
|
|
|
3747
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3767
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
3748
3768
|
var require_resolve_props = __commonJS({
|
|
3749
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3769
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3750
3770
|
"use strict";
|
|
3751
3771
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3752
3772
|
let spaceBefore = false;
|
|
@@ -3798,7 +3818,7 @@ var require_resolve_props = __commonJS({
|
|
|
3798
3818
|
if (atNewline) {
|
|
3799
3819
|
if (comment)
|
|
3800
3820
|
comment += token.source;
|
|
3801
|
-
else
|
|
3821
|
+
else if (!found || indicator !== "seq-item-ind")
|
|
3802
3822
|
spaceBefore = true;
|
|
3803
3823
|
} else
|
|
3804
3824
|
commentSep += token.source;
|
|
@@ -3814,8 +3834,7 @@ var require_resolve_props = __commonJS({
|
|
|
3814
3834
|
if (token.source.endsWith(":"))
|
|
3815
3835
|
onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
|
|
3816
3836
|
anchor = token;
|
|
3817
|
-
|
|
3818
|
-
start = token.offset;
|
|
3837
|
+
start ?? (start = token.offset);
|
|
3819
3838
|
atNewline = false;
|
|
3820
3839
|
hasSpace = false;
|
|
3821
3840
|
reqSpace = true;
|
|
@@ -3824,8 +3843,7 @@ var require_resolve_props = __commonJS({
|
|
|
3824
3843
|
if (tag)
|
|
3825
3844
|
onError(token, "MULTIPLE_TAGS", "A node can have at most one tag");
|
|
3826
3845
|
tag = token;
|
|
3827
|
-
|
|
3828
|
-
start = token.offset;
|
|
3846
|
+
start ?? (start = token.offset);
|
|
3829
3847
|
atNewline = false;
|
|
3830
3848
|
hasSpace = false;
|
|
3831
3849
|
reqSpace = true;
|
|
@@ -3880,9 +3898,9 @@ var require_resolve_props = __commonJS({
|
|
|
3880
3898
|
}
|
|
3881
3899
|
});
|
|
3882
3900
|
|
|
3883
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3901
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3884
3902
|
var require_util_contains_newline = __commonJS({
|
|
3885
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3903
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
3886
3904
|
"use strict";
|
|
3887
3905
|
function containsNewline(key) {
|
|
3888
3906
|
if (!key)
|
|
@@ -3922,9 +3940,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3922
3940
|
}
|
|
3923
3941
|
});
|
|
3924
3942
|
|
|
3925
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3943
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3926
3944
|
var require_util_flow_indent_check = __commonJS({
|
|
3927
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3945
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
3928
3946
|
"use strict";
|
|
3929
3947
|
var utilContainsNewline = require_util_contains_newline();
|
|
3930
3948
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3940,9 +3958,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3940
3958
|
}
|
|
3941
3959
|
});
|
|
3942
3960
|
|
|
3943
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3961
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3944
3962
|
var require_util_map_includes = __commonJS({
|
|
3945
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3963
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
3946
3964
|
"use strict";
|
|
3947
3965
|
var identity = require_identity();
|
|
3948
3966
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3956,9 +3974,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3956
3974
|
}
|
|
3957
3975
|
});
|
|
3958
3976
|
|
|
3959
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3977
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3960
3978
|
var require_resolve_block_map = __commonJS({
|
|
3961
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3979
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
3962
3980
|
"use strict";
|
|
3963
3981
|
var Pair = require_Pair();
|
|
3964
3982
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4064,9 +4082,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4064
4082
|
}
|
|
4065
4083
|
});
|
|
4066
4084
|
|
|
4067
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4085
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4068
4086
|
var require_resolve_block_seq = __commonJS({
|
|
4069
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4087
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4070
4088
|
"use strict";
|
|
4071
4089
|
var YAMLSeq = require_YAMLSeq();
|
|
4072
4090
|
var resolveProps = require_resolve_props();
|
|
@@ -4091,7 +4109,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4091
4109
|
});
|
|
4092
4110
|
if (!props.found) {
|
|
4093
4111
|
if (props.anchor || props.tag || value) {
|
|
4094
|
-
if (value
|
|
4112
|
+
if (value?.type === "block-seq")
|
|
4095
4113
|
onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
4096
4114
|
else
|
|
4097
4115
|
onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
@@ -4115,9 +4133,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4115
4133
|
}
|
|
4116
4134
|
});
|
|
4117
4135
|
|
|
4118
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4136
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
4119
4137
|
var require_resolve_end = __commonJS({
|
|
4120
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4138
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4121
4139
|
"use strict";
|
|
4122
4140
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4123
4141
|
let comment = "";
|
|
@@ -4158,9 +4176,9 @@ var require_resolve_end = __commonJS({
|
|
|
4158
4176
|
}
|
|
4159
4177
|
});
|
|
4160
4178
|
|
|
4161
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4179
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4162
4180
|
var require_resolve_flow_collection = __commonJS({
|
|
4163
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4181
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4164
4182
|
"use strict";
|
|
4165
4183
|
var identity = require_identity();
|
|
4166
4184
|
var Pair = require_Pair();
|
|
@@ -4288,7 +4306,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4288
4306
|
onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
4289
4307
|
}
|
|
4290
4308
|
} else if (value) {
|
|
4291
|
-
if ("source" in value && value.source
|
|
4309
|
+
if ("source" in value && value.source?.[0] === ":")
|
|
4292
4310
|
onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
|
|
4293
4311
|
else
|
|
4294
4312
|
onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
@@ -4325,7 +4343,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4325
4343
|
const expectedEnd = isMap ? "}" : "]";
|
|
4326
4344
|
const [ce, ...ee] = fc.end;
|
|
4327
4345
|
let cePos = offset;
|
|
4328
|
-
if (ce
|
|
4346
|
+
if (ce?.source === expectedEnd)
|
|
4329
4347
|
cePos = ce.offset + ce.source.length;
|
|
4330
4348
|
else {
|
|
4331
4349
|
const name2 = fcName[0].toUpperCase() + fcName.substring(1);
|
|
@@ -4352,9 +4370,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4352
4370
|
}
|
|
4353
4371
|
});
|
|
4354
4372
|
|
|
4355
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4373
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
4356
4374
|
var require_compose_collection = __commonJS({
|
|
4357
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4375
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4358
4376
|
"use strict";
|
|
4359
4377
|
var identity = require_identity();
|
|
4360
4378
|
var Scalar = require_Scalar();
|
|
@@ -4392,12 +4410,12 @@ var require_compose_collection = __commonJS({
|
|
|
4392
4410
|
let tag = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
|
|
4393
4411
|
if (!tag) {
|
|
4394
4412
|
const kt = ctx.schema.knownTags[tagName];
|
|
4395
|
-
if (kt
|
|
4413
|
+
if (kt?.collection === expType) {
|
|
4396
4414
|
ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
|
|
4397
4415
|
tag = kt;
|
|
4398
4416
|
} else {
|
|
4399
|
-
if (kt
|
|
4400
|
-
onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
|
|
4417
|
+
if (kt) {
|
|
4418
|
+
onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? "scalar"}`, true);
|
|
4401
4419
|
} else {
|
|
4402
4420
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
|
|
4403
4421
|
}
|
|
@@ -4417,9 +4435,9 @@ var require_compose_collection = __commonJS({
|
|
|
4417
4435
|
}
|
|
4418
4436
|
});
|
|
4419
4437
|
|
|
4420
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4438
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4421
4439
|
var require_resolve_block_scalar = __commonJS({
|
|
4422
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4440
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4423
4441
|
"use strict";
|
|
4424
4442
|
var Scalar = require_Scalar();
|
|
4425
4443
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4600,9 +4618,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4600
4618
|
}
|
|
4601
4619
|
});
|
|
4602
4620
|
|
|
4603
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4621
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4604
4622
|
var require_resolve_flow_scalar = __commonJS({
|
|
4605
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4623
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4606
4624
|
"use strict";
|
|
4607
4625
|
var Scalar = require_Scalar();
|
|
4608
4626
|
var resolveEnd = require_resolve_end();
|
|
@@ -4819,9 +4837,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4819
4837
|
}
|
|
4820
4838
|
});
|
|
4821
4839
|
|
|
4822
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4840
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4823
4841
|
var require_compose_scalar = __commonJS({
|
|
4824
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4842
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
4825
4843
|
"use strict";
|
|
4826
4844
|
var identity = require_identity();
|
|
4827
4845
|
var Scalar = require_Scalar();
|
|
@@ -4900,14 +4918,13 @@ var require_compose_scalar = __commonJS({
|
|
|
4900
4918
|
}
|
|
4901
4919
|
});
|
|
4902
4920
|
|
|
4903
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4921
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4904
4922
|
var require_util_empty_scalar_position = __commonJS({
|
|
4905
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4923
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
4906
4924
|
"use strict";
|
|
4907
4925
|
function emptyScalarPosition(offset, before, pos) {
|
|
4908
4926
|
if (before) {
|
|
4909
|
-
|
|
4910
|
-
pos = before.length;
|
|
4927
|
+
pos ?? (pos = before.length);
|
|
4911
4928
|
for (let i = pos - 1; i >= 0; --i) {
|
|
4912
4929
|
let st = before[i];
|
|
4913
4930
|
switch (st.type) {
|
|
@@ -4931,9 +4948,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4931
4948
|
}
|
|
4932
4949
|
});
|
|
4933
4950
|
|
|
4934
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4951
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
4935
4952
|
var require_compose_node = __commonJS({
|
|
4936
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4953
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
4937
4954
|
"use strict";
|
|
4938
4955
|
var Alias = require_Alias();
|
|
4939
4956
|
var identity = require_identity();
|
|
@@ -4964,17 +4981,22 @@ var require_compose_node = __commonJS({
|
|
|
4964
4981
|
case "block-map":
|
|
4965
4982
|
case "block-seq":
|
|
4966
4983
|
case "flow-collection":
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4984
|
+
try {
|
|
4985
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
4986
|
+
if (anchor)
|
|
4987
|
+
node.anchor = anchor.source.substring(1);
|
|
4988
|
+
} catch (error48) {
|
|
4989
|
+
const message = error48 instanceof Error ? error48.message : String(error48);
|
|
4990
|
+
onError(token, "RESOURCE_EXHAUSTION", message);
|
|
4991
|
+
}
|
|
4970
4992
|
break;
|
|
4971
4993
|
default: {
|
|
4972
4994
|
const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
|
|
4973
4995
|
onError(token, "UNEXPECTED_TOKEN", message);
|
|
4974
|
-
node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
|
|
4975
4996
|
isSrcToken = false;
|
|
4976
4997
|
}
|
|
4977
4998
|
}
|
|
4999
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
|
|
4978
5000
|
if (anchor && node.anchor === "")
|
|
4979
5001
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
4980
5002
|
if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
|
|
@@ -5032,9 +5054,9 @@ var require_compose_node = __commonJS({
|
|
|
5032
5054
|
}
|
|
5033
5055
|
});
|
|
5034
5056
|
|
|
5035
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5057
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
5036
5058
|
var require_compose_doc = __commonJS({
|
|
5037
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5059
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5038
5060
|
"use strict";
|
|
5039
5061
|
var Document2 = require_Document();
|
|
5040
5062
|
var composeNode = require_compose_node();
|
|
@@ -5075,10 +5097,11 @@ var require_compose_doc = __commonJS({
|
|
|
5075
5097
|
}
|
|
5076
5098
|
});
|
|
5077
5099
|
|
|
5078
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5100
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
5079
5101
|
var require_composer = __commonJS({
|
|
5080
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5102
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5081
5103
|
"use strict";
|
|
5104
|
+
var node_process = __require("process");
|
|
5082
5105
|
var directives = require_directives();
|
|
5083
5106
|
var Document2 = require_Document();
|
|
5084
5107
|
var errors = require_errors();
|
|
@@ -5194,7 +5217,7 @@ ${cb}` : comment;
|
|
|
5194
5217
|
}
|
|
5195
5218
|
/** Advance the composer by one CST token. */
|
|
5196
5219
|
*next(token) {
|
|
5197
|
-
if (
|
|
5220
|
+
if (node_process.env.LOG_STREAM)
|
|
5198
5221
|
console.dir(token, { depth: null });
|
|
5199
5222
|
switch (token.type) {
|
|
5200
5223
|
case "directive":
|
|
@@ -5280,9 +5303,9 @@ ${end.comment}` : end.comment;
|
|
|
5280
5303
|
}
|
|
5281
5304
|
});
|
|
5282
5305
|
|
|
5283
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5306
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5284
5307
|
var require_cst_scalar = __commonJS({
|
|
5285
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5308
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5286
5309
|
"use strict";
|
|
5287
5310
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5288
5311
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5465,9 +5488,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5465
5488
|
}
|
|
5466
5489
|
});
|
|
5467
5490
|
|
|
5468
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5491
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5469
5492
|
var require_cst_stringify = __commonJS({
|
|
5470
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5493
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5471
5494
|
"use strict";
|
|
5472
5495
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5473
5496
|
function stringifyToken(token) {
|
|
@@ -5526,9 +5549,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5526
5549
|
}
|
|
5527
5550
|
});
|
|
5528
5551
|
|
|
5529
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5552
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
5530
5553
|
var require_cst_visit = __commonJS({
|
|
5531
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5554
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5532
5555
|
"use strict";
|
|
5533
5556
|
var BREAK = Symbol("break visit");
|
|
5534
5557
|
var SKIP = Symbol("skip children");
|
|
@@ -5588,9 +5611,9 @@ var require_cst_visit = __commonJS({
|
|
|
5588
5611
|
}
|
|
5589
5612
|
});
|
|
5590
5613
|
|
|
5591
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5614
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
5592
5615
|
var require_cst = __commonJS({
|
|
5593
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5616
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5594
5617
|
"use strict";
|
|
5595
5618
|
var cstScalar = require_cst_scalar();
|
|
5596
5619
|
var cstStringify = require_cst_stringify();
|
|
@@ -5690,9 +5713,9 @@ var require_cst = __commonJS({
|
|
|
5690
5713
|
}
|
|
5691
5714
|
});
|
|
5692
5715
|
|
|
5693
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5716
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
5694
5717
|
var require_lexer = __commonJS({
|
|
5695
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5718
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5696
5719
|
"use strict";
|
|
5697
5720
|
var cst = require_cst();
|
|
5698
5721
|
function isEmpty(ch) {
|
|
@@ -6269,9 +6292,9 @@ var require_lexer = __commonJS({
|
|
|
6269
6292
|
}
|
|
6270
6293
|
});
|
|
6271
6294
|
|
|
6272
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6295
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
6273
6296
|
var require_line_counter = __commonJS({
|
|
6274
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6297
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6275
6298
|
"use strict";
|
|
6276
6299
|
var LineCounter = class {
|
|
6277
6300
|
constructor() {
|
|
@@ -6300,10 +6323,11 @@ var require_line_counter = __commonJS({
|
|
|
6300
6323
|
}
|
|
6301
6324
|
});
|
|
6302
6325
|
|
|
6303
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6326
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
6304
6327
|
var require_parser = __commonJS({
|
|
6305
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6328
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6306
6329
|
"use strict";
|
|
6330
|
+
var node_process = __require("process");
|
|
6307
6331
|
var cst = require_cst();
|
|
6308
6332
|
var lexer = require_lexer();
|
|
6309
6333
|
function includesToken(list, type) {
|
|
@@ -6427,7 +6451,7 @@ var require_parser = __commonJS({
|
|
|
6427
6451
|
*/
|
|
6428
6452
|
*next(source) {
|
|
6429
6453
|
this.source = source;
|
|
6430
|
-
if (
|
|
6454
|
+
if (node_process.env.LOG_TOKENS)
|
|
6431
6455
|
console.log("|", cst.prettyToken(source));
|
|
6432
6456
|
if (this.atScalar) {
|
|
6433
6457
|
this.atScalar = false;
|
|
@@ -6489,7 +6513,7 @@ var require_parser = __commonJS({
|
|
|
6489
6513
|
}
|
|
6490
6514
|
*step() {
|
|
6491
6515
|
const top = this.peek(1);
|
|
6492
|
-
if (this.type === "doc-end" &&
|
|
6516
|
+
if (this.type === "doc-end" && top?.type !== "doc-end") {
|
|
6493
6517
|
while (this.stack.length > 0)
|
|
6494
6518
|
yield* this.pop();
|
|
6495
6519
|
this.stack.push({
|
|
@@ -6866,14 +6890,14 @@ var require_parser = __commonJS({
|
|
|
6866
6890
|
case "scalar":
|
|
6867
6891
|
case "single-quoted-scalar":
|
|
6868
6892
|
case "double-quoted-scalar": {
|
|
6869
|
-
const
|
|
6893
|
+
const fs20 = this.flowScalar(this.type);
|
|
6870
6894
|
if (atNextItem || it.value) {
|
|
6871
|
-
map2.items.push({ start, key:
|
|
6895
|
+
map2.items.push({ start, key: fs20, sep: [] });
|
|
6872
6896
|
this.onKeyLine = true;
|
|
6873
6897
|
} else if (it.sep) {
|
|
6874
|
-
this.stack.push(
|
|
6898
|
+
this.stack.push(fs20);
|
|
6875
6899
|
} else {
|
|
6876
|
-
Object.assign(it, { key:
|
|
6900
|
+
Object.assign(it, { key: fs20, sep: [] });
|
|
6877
6901
|
this.onKeyLine = true;
|
|
6878
6902
|
}
|
|
6879
6903
|
return;
|
|
@@ -6881,7 +6905,17 @@ var require_parser = __commonJS({
|
|
|
6881
6905
|
default: {
|
|
6882
6906
|
const bv = this.startBlockValue(map2);
|
|
6883
6907
|
if (bv) {
|
|
6884
|
-
if (
|
|
6908
|
+
if (bv.type === "block-seq") {
|
|
6909
|
+
if (!it.explicitKey && it.sep && !includesToken(it.sep, "newline")) {
|
|
6910
|
+
yield* this.pop({
|
|
6911
|
+
type: "error",
|
|
6912
|
+
offset: this.offset,
|
|
6913
|
+
message: "Unexpected block-seq-ind on same line with key",
|
|
6914
|
+
source: this.source
|
|
6915
|
+
});
|
|
6916
|
+
return;
|
|
6917
|
+
}
|
|
6918
|
+
} else if (atMapIndent) {
|
|
6885
6919
|
map2.items.push({ start });
|
|
6886
6920
|
}
|
|
6887
6921
|
this.stack.push(bv);
|
|
@@ -6957,7 +6991,7 @@ var require_parser = __commonJS({
|
|
|
6957
6991
|
do {
|
|
6958
6992
|
yield* this.pop();
|
|
6959
6993
|
top = this.peek(1);
|
|
6960
|
-
} while (top
|
|
6994
|
+
} while (top?.type === "flow-collection");
|
|
6961
6995
|
} else if (fc.end.length === 0) {
|
|
6962
6996
|
switch (this.type) {
|
|
6963
6997
|
case "comma":
|
|
@@ -6991,13 +7025,13 @@ var require_parser = __commonJS({
|
|
|
6991
7025
|
case "scalar":
|
|
6992
7026
|
case "single-quoted-scalar":
|
|
6993
7027
|
case "double-quoted-scalar": {
|
|
6994
|
-
const
|
|
7028
|
+
const fs20 = this.flowScalar(this.type);
|
|
6995
7029
|
if (!it || it.value)
|
|
6996
|
-
fc.items.push({ start: [], key:
|
|
7030
|
+
fc.items.push({ start: [], key: fs20, sep: [] });
|
|
6997
7031
|
else if (it.sep)
|
|
6998
|
-
this.stack.push(
|
|
7032
|
+
this.stack.push(fs20);
|
|
6999
7033
|
else
|
|
7000
|
-
Object.assign(it, { key:
|
|
7034
|
+
Object.assign(it, { key: fs20, sep: [] });
|
|
7001
7035
|
return;
|
|
7002
7036
|
}
|
|
7003
7037
|
case "flow-map-end":
|
|
@@ -7156,9 +7190,9 @@ var require_parser = __commonJS({
|
|
|
7156
7190
|
}
|
|
7157
7191
|
});
|
|
7158
7192
|
|
|
7159
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7193
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
7160
7194
|
var require_public_api = __commonJS({
|
|
7161
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7195
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7162
7196
|
"use strict";
|
|
7163
7197
|
var composer = require_composer();
|
|
7164
7198
|
var Document2 = require_Document();
|
|
@@ -7253,9 +7287,9 @@ var require_public_api = __commonJS({
|
|
|
7253
7287
|
}
|
|
7254
7288
|
});
|
|
7255
7289
|
|
|
7256
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7290
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
7257
7291
|
var require_dist = __commonJS({
|
|
7258
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7292
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js"(exports2) {
|
|
7259
7293
|
"use strict";
|
|
7260
7294
|
var composer = require_composer();
|
|
7261
7295
|
var Document2 = require_Document();
|
|
@@ -8686,9 +8720,9 @@ var require_section_matter = __commonJS({
|
|
|
8686
8720
|
}
|
|
8687
8721
|
});
|
|
8688
8722
|
|
|
8689
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
8723
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js
|
|
8690
8724
|
var require_common = __commonJS({
|
|
8691
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
8725
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js"(exports2, module2) {
|
|
8692
8726
|
"use strict";
|
|
8693
8727
|
function isNothing(subject) {
|
|
8694
8728
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -8731,9 +8765,9 @@ var require_common = __commonJS({
|
|
|
8731
8765
|
}
|
|
8732
8766
|
});
|
|
8733
8767
|
|
|
8734
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
8768
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js
|
|
8735
8769
|
var require_exception = __commonJS({
|
|
8736
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
8770
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js"(exports2, module2) {
|
|
8737
8771
|
"use strict";
|
|
8738
8772
|
function YAMLException(reason, mark) {
|
|
8739
8773
|
Error.call(this);
|
|
@@ -8761,9 +8795,9 @@ var require_exception = __commonJS({
|
|
|
8761
8795
|
}
|
|
8762
8796
|
});
|
|
8763
8797
|
|
|
8764
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
8798
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js
|
|
8765
8799
|
var require_mark = __commonJS({
|
|
8766
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
8800
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js"(exports2, module2) {
|
|
8767
8801
|
"use strict";
|
|
8768
8802
|
var common = require_common();
|
|
8769
8803
|
function Mark(name2, buffer, position, line, column) {
|
|
@@ -8819,9 +8853,9 @@ var require_mark = __commonJS({
|
|
|
8819
8853
|
}
|
|
8820
8854
|
});
|
|
8821
8855
|
|
|
8822
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
8856
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js
|
|
8823
8857
|
var require_type = __commonJS({
|
|
8824
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
8858
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js"(exports2, module2) {
|
|
8825
8859
|
"use strict";
|
|
8826
8860
|
var YAMLException = require_exception();
|
|
8827
8861
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -8878,9 +8912,9 @@ var require_type = __commonJS({
|
|
|
8878
8912
|
}
|
|
8879
8913
|
});
|
|
8880
8914
|
|
|
8881
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
8915
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js
|
|
8882
8916
|
var require_schema4 = __commonJS({
|
|
8883
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
8917
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js"(exports2, module2) {
|
|
8884
8918
|
"use strict";
|
|
8885
8919
|
var common = require_common();
|
|
8886
8920
|
var YAMLException = require_exception();
|
|
@@ -8966,9 +9000,9 @@ var require_schema4 = __commonJS({
|
|
|
8966
9000
|
}
|
|
8967
9001
|
});
|
|
8968
9002
|
|
|
8969
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9003
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js
|
|
8970
9004
|
var require_str = __commonJS({
|
|
8971
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9005
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js"(exports2, module2) {
|
|
8972
9006
|
"use strict";
|
|
8973
9007
|
var Type = require_type();
|
|
8974
9008
|
module2.exports = new Type("tag:yaml.org,2002:str", {
|
|
@@ -8980,9 +9014,9 @@ var require_str = __commonJS({
|
|
|
8980
9014
|
}
|
|
8981
9015
|
});
|
|
8982
9016
|
|
|
8983
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9017
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js
|
|
8984
9018
|
var require_seq2 = __commonJS({
|
|
8985
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9019
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js"(exports2, module2) {
|
|
8986
9020
|
"use strict";
|
|
8987
9021
|
var Type = require_type();
|
|
8988
9022
|
module2.exports = new Type("tag:yaml.org,2002:seq", {
|
|
@@ -8994,9 +9028,9 @@ var require_seq2 = __commonJS({
|
|
|
8994
9028
|
}
|
|
8995
9029
|
});
|
|
8996
9030
|
|
|
8997
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9031
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js
|
|
8998
9032
|
var require_map2 = __commonJS({
|
|
8999
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9033
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js"(exports2, module2) {
|
|
9000
9034
|
"use strict";
|
|
9001
9035
|
var Type = require_type();
|
|
9002
9036
|
module2.exports = new Type("tag:yaml.org,2002:map", {
|
|
@@ -9008,9 +9042,9 @@ var require_map2 = __commonJS({
|
|
|
9008
9042
|
}
|
|
9009
9043
|
});
|
|
9010
9044
|
|
|
9011
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9045
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
|
|
9012
9046
|
var require_failsafe = __commonJS({
|
|
9013
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9047
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js"(exports2, module2) {
|
|
9014
9048
|
"use strict";
|
|
9015
9049
|
var Schema = require_schema4();
|
|
9016
9050
|
module2.exports = new Schema({
|
|
@@ -9023,9 +9057,9 @@ var require_failsafe = __commonJS({
|
|
|
9023
9057
|
}
|
|
9024
9058
|
});
|
|
9025
9059
|
|
|
9026
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9060
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js
|
|
9027
9061
|
var require_null2 = __commonJS({
|
|
9028
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9062
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js"(exports2, module2) {
|
|
9029
9063
|
"use strict";
|
|
9030
9064
|
var Type = require_type();
|
|
9031
9065
|
function resolveYamlNull(data) {
|
|
@@ -9063,9 +9097,9 @@ var require_null2 = __commonJS({
|
|
|
9063
9097
|
}
|
|
9064
9098
|
});
|
|
9065
9099
|
|
|
9066
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9100
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js
|
|
9067
9101
|
var require_bool3 = __commonJS({
|
|
9068
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9102
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js"(exports2, module2) {
|
|
9069
9103
|
"use strict";
|
|
9070
9104
|
var Type = require_type();
|
|
9071
9105
|
function resolveYamlBoolean(data) {
|
|
@@ -9100,9 +9134,9 @@ var require_bool3 = __commonJS({
|
|
|
9100
9134
|
}
|
|
9101
9135
|
});
|
|
9102
9136
|
|
|
9103
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9137
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js
|
|
9104
9138
|
var require_int3 = __commonJS({
|
|
9105
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9139
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js"(exports2, module2) {
|
|
9106
9140
|
"use strict";
|
|
9107
9141
|
var common = require_common();
|
|
9108
9142
|
var Type = require_type();
|
|
@@ -9233,9 +9267,9 @@ var require_int3 = __commonJS({
|
|
|
9233
9267
|
}
|
|
9234
9268
|
});
|
|
9235
9269
|
|
|
9236
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9270
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js
|
|
9237
9271
|
var require_float3 = __commonJS({
|
|
9238
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9272
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js"(exports2, module2) {
|
|
9239
9273
|
"use strict";
|
|
9240
9274
|
var common = require_common();
|
|
9241
9275
|
var Type = require_type();
|
|
@@ -9328,9 +9362,9 @@ var require_float3 = __commonJS({
|
|
|
9328
9362
|
}
|
|
9329
9363
|
});
|
|
9330
9364
|
|
|
9331
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9365
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js
|
|
9332
9366
|
var require_json = __commonJS({
|
|
9333
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9367
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js"(exports2, module2) {
|
|
9334
9368
|
"use strict";
|
|
9335
9369
|
var Schema = require_schema4();
|
|
9336
9370
|
module2.exports = new Schema({
|
|
@@ -9347,9 +9381,9 @@ var require_json = __commonJS({
|
|
|
9347
9381
|
}
|
|
9348
9382
|
});
|
|
9349
9383
|
|
|
9350
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9384
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js
|
|
9351
9385
|
var require_core = __commonJS({
|
|
9352
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9386
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js"(exports2, module2) {
|
|
9353
9387
|
"use strict";
|
|
9354
9388
|
var Schema = require_schema4();
|
|
9355
9389
|
module2.exports = new Schema({
|
|
@@ -9360,9 +9394,9 @@ var require_core = __commonJS({
|
|
|
9360
9394
|
}
|
|
9361
9395
|
});
|
|
9362
9396
|
|
|
9363
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9397
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
|
|
9364
9398
|
var require_timestamp2 = __commonJS({
|
|
9365
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9399
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js"(exports2, module2) {
|
|
9366
9400
|
"use strict";
|
|
9367
9401
|
var Type = require_type();
|
|
9368
9402
|
var YAML_DATE_REGEXP = new RegExp(
|
|
@@ -9421,9 +9455,9 @@ var require_timestamp2 = __commonJS({
|
|
|
9421
9455
|
}
|
|
9422
9456
|
});
|
|
9423
9457
|
|
|
9424
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9458
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js
|
|
9425
9459
|
var require_merge2 = __commonJS({
|
|
9426
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9460
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js"(exports2, module2) {
|
|
9427
9461
|
"use strict";
|
|
9428
9462
|
var Type = require_type();
|
|
9429
9463
|
function resolveYamlMerge(data) {
|
|
@@ -9436,9 +9470,9 @@ var require_merge2 = __commonJS({
|
|
|
9436
9470
|
}
|
|
9437
9471
|
});
|
|
9438
9472
|
|
|
9439
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9473
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js
|
|
9440
9474
|
var require_binary2 = __commonJS({
|
|
9441
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9475
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js"(exports2, module2) {
|
|
9442
9476
|
"use strict";
|
|
9443
9477
|
var NodeBuffer;
|
|
9444
9478
|
try {
|
|
@@ -9529,9 +9563,9 @@ var require_binary2 = __commonJS({
|
|
|
9529
9563
|
}
|
|
9530
9564
|
});
|
|
9531
9565
|
|
|
9532
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9566
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js
|
|
9533
9567
|
var require_omap2 = __commonJS({
|
|
9534
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9568
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js"(exports2, module2) {
|
|
9535
9569
|
"use strict";
|
|
9536
9570
|
var Type = require_type();
|
|
9537
9571
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -9566,9 +9600,9 @@ var require_omap2 = __commonJS({
|
|
|
9566
9600
|
}
|
|
9567
9601
|
});
|
|
9568
9602
|
|
|
9569
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9603
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js
|
|
9570
9604
|
var require_pairs2 = __commonJS({
|
|
9571
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9605
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js"(exports2, module2) {
|
|
9572
9606
|
"use strict";
|
|
9573
9607
|
var Type = require_type();
|
|
9574
9608
|
var _toString = Object.prototype.toString;
|
|
@@ -9604,9 +9638,9 @@ var require_pairs2 = __commonJS({
|
|
|
9604
9638
|
}
|
|
9605
9639
|
});
|
|
9606
9640
|
|
|
9607
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9641
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js
|
|
9608
9642
|
var require_set2 = __commonJS({
|
|
9609
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9643
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js"(exports2, module2) {
|
|
9610
9644
|
"use strict";
|
|
9611
9645
|
var Type = require_type();
|
|
9612
9646
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -9631,9 +9665,9 @@ var require_set2 = __commonJS({
|
|
|
9631
9665
|
}
|
|
9632
9666
|
});
|
|
9633
9667
|
|
|
9634
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9668
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
|
|
9635
9669
|
var require_default_safe = __commonJS({
|
|
9636
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9670
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js"(exports2, module2) {
|
|
9637
9671
|
"use strict";
|
|
9638
9672
|
var Schema = require_schema4();
|
|
9639
9673
|
module2.exports = new Schema({
|
|
@@ -9654,9 +9688,9 @@ var require_default_safe = __commonJS({
|
|
|
9654
9688
|
}
|
|
9655
9689
|
});
|
|
9656
9690
|
|
|
9657
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9691
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
|
|
9658
9692
|
var require_undefined = __commonJS({
|
|
9659
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9693
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js"(exports2, module2) {
|
|
9660
9694
|
"use strict";
|
|
9661
9695
|
var Type = require_type();
|
|
9662
9696
|
function resolveJavascriptUndefined() {
|
|
@@ -9681,9 +9715,9 @@ var require_undefined = __commonJS({
|
|
|
9681
9715
|
}
|
|
9682
9716
|
});
|
|
9683
9717
|
|
|
9684
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9718
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
|
|
9685
9719
|
var require_regexp = __commonJS({
|
|
9686
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9720
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js"(exports2, module2) {
|
|
9687
9721
|
"use strict";
|
|
9688
9722
|
var Type = require_type();
|
|
9689
9723
|
function resolveJavascriptRegExp(data) {
|
|
@@ -9725,9 +9759,9 @@ var require_regexp = __commonJS({
|
|
|
9725
9759
|
}
|
|
9726
9760
|
});
|
|
9727
9761
|
|
|
9728
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9762
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js
|
|
9729
9763
|
var require_function = __commonJS({
|
|
9730
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9764
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js"(exports2, module2) {
|
|
9731
9765
|
"use strict";
|
|
9732
9766
|
var esprima;
|
|
9733
9767
|
try {
|
|
@@ -9780,9 +9814,9 @@ var require_function = __commonJS({
|
|
|
9780
9814
|
}
|
|
9781
9815
|
});
|
|
9782
9816
|
|
|
9783
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9817
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
|
|
9784
9818
|
var require_default_full = __commonJS({
|
|
9785
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9819
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js"(exports2, module2) {
|
|
9786
9820
|
"use strict";
|
|
9787
9821
|
var Schema = require_schema4();
|
|
9788
9822
|
module2.exports = Schema.DEFAULT = new Schema({
|
|
@@ -9798,9 +9832,9 @@ var require_default_full = __commonJS({
|
|
|
9798
9832
|
}
|
|
9799
9833
|
});
|
|
9800
9834
|
|
|
9801
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
9835
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js
|
|
9802
9836
|
var require_loader = __commonJS({
|
|
9803
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
9837
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js"(exports2, module2) {
|
|
9804
9838
|
"use strict";
|
|
9805
9839
|
var common = require_common();
|
|
9806
9840
|
var YAMLException = require_exception();
|
|
@@ -9876,6 +9910,18 @@ var require_loader = __commonJS({
|
|
|
9876
9910
|
(c - 65536 & 1023) + 56320
|
|
9877
9911
|
);
|
|
9878
9912
|
}
|
|
9913
|
+
function setProperty(object2, key, value) {
|
|
9914
|
+
if (key === "__proto__") {
|
|
9915
|
+
Object.defineProperty(object2, key, {
|
|
9916
|
+
configurable: true,
|
|
9917
|
+
enumerable: true,
|
|
9918
|
+
writable: true,
|
|
9919
|
+
value
|
|
9920
|
+
});
|
|
9921
|
+
} else {
|
|
9922
|
+
object2[key] = value;
|
|
9923
|
+
}
|
|
9924
|
+
}
|
|
9879
9925
|
var simpleEscapeCheck = new Array(256);
|
|
9880
9926
|
var simpleEscapeMap = new Array(256);
|
|
9881
9927
|
for (i = 0; i < 256; i++) {
|
|
@@ -9983,7 +10029,7 @@ var require_loader = __commonJS({
|
|
|
9983
10029
|
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
9984
10030
|
key = sourceKeys[index];
|
|
9985
10031
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
9986
|
-
destination
|
|
10032
|
+
setProperty(destination, key, source[key]);
|
|
9987
10033
|
overridableKeys[key] = true;
|
|
9988
10034
|
}
|
|
9989
10035
|
}
|
|
@@ -10022,7 +10068,7 @@ var require_loader = __commonJS({
|
|
|
10022
10068
|
state.position = startPos || state.position;
|
|
10023
10069
|
throwError(state, "duplicated mapping key");
|
|
10024
10070
|
}
|
|
10025
|
-
_result
|
|
10071
|
+
setProperty(_result, keyNode, valueNode);
|
|
10026
10072
|
delete overridableKeys[keyNode];
|
|
10027
10073
|
}
|
|
10028
10074
|
return _result;
|
|
@@ -10905,9 +10951,9 @@ var require_loader = __commonJS({
|
|
|
10905
10951
|
}
|
|
10906
10952
|
});
|
|
10907
10953
|
|
|
10908
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
10954
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js
|
|
10909
10955
|
var require_dumper = __commonJS({
|
|
10910
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
10956
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js"(exports2, module2) {
|
|
10911
10957
|
"use strict";
|
|
10912
10958
|
var common = require_common();
|
|
10913
10959
|
var YAMLException = require_exception();
|
|
@@ -11453,9 +11499,9 @@ var require_dumper = __commonJS({
|
|
|
11453
11499
|
}
|
|
11454
11500
|
});
|
|
11455
11501
|
|
|
11456
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
11502
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js
|
|
11457
11503
|
var require_js_yaml = __commonJS({
|
|
11458
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
11504
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js"(exports2, module2) {
|
|
11459
11505
|
"use strict";
|
|
11460
11506
|
var loader = require_loader();
|
|
11461
11507
|
var dumper = require_dumper();
|
|
@@ -11488,9 +11534,9 @@ var require_js_yaml = __commonJS({
|
|
|
11488
11534
|
}
|
|
11489
11535
|
});
|
|
11490
11536
|
|
|
11491
|
-
// ../../node_modules/.pnpm/js-yaml@3.14.
|
|
11537
|
+
// ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js
|
|
11492
11538
|
var require_js_yaml2 = __commonJS({
|
|
11493
|
-
"../../node_modules/.pnpm/js-yaml@3.14.
|
|
11539
|
+
"../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js"(exports2, module2) {
|
|
11494
11540
|
"use strict";
|
|
11495
11541
|
var yaml5 = require_js_yaml();
|
|
11496
11542
|
module2.exports = yaml5;
|
|
@@ -11776,7 +11822,7 @@ var require_parse2 = __commonJS({
|
|
|
11776
11822
|
var require_gray_matter = __commonJS({
|
|
11777
11823
|
"../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports2, module2) {
|
|
11778
11824
|
"use strict";
|
|
11779
|
-
var
|
|
11825
|
+
var fs20 = __require("fs");
|
|
11780
11826
|
var sections = require_section_matter();
|
|
11781
11827
|
var defaults = require_defaults();
|
|
11782
11828
|
var stringify = require_stringify3();
|
|
@@ -11860,7 +11906,7 @@ var require_gray_matter = __commonJS({
|
|
|
11860
11906
|
return stringify(file2, data, options2);
|
|
11861
11907
|
};
|
|
11862
11908
|
matter2.read = function(filepath, options2) {
|
|
11863
|
-
const str2 =
|
|
11909
|
+
const str2 = fs20.readFileSync(filepath, "utf8");
|
|
11864
11910
|
const file2 = matter2(str2, options2);
|
|
11865
11911
|
file2.path = filepath;
|
|
11866
11912
|
return file2;
|
|
@@ -28620,7 +28666,7 @@ var require_util2 = __commonJS({
|
|
|
28620
28666
|
return result;
|
|
28621
28667
|
};
|
|
28622
28668
|
}
|
|
28623
|
-
var
|
|
28669
|
+
var normalize6 = lruMemoize(function normalize7(aPath) {
|
|
28624
28670
|
var path12 = aPath;
|
|
28625
28671
|
var url2 = urlParse(aPath);
|
|
28626
28672
|
if (url2) {
|
|
@@ -28672,7 +28718,7 @@ var require_util2 = __commonJS({
|
|
|
28672
28718
|
}
|
|
28673
28719
|
return path12;
|
|
28674
28720
|
});
|
|
28675
|
-
exports2.normalize =
|
|
28721
|
+
exports2.normalize = normalize6;
|
|
28676
28722
|
function join2(aRoot, aPath) {
|
|
28677
28723
|
if (aRoot === "") {
|
|
28678
28724
|
aRoot = ".";
|
|
@@ -28698,7 +28744,7 @@ var require_util2 = __commonJS({
|
|
|
28698
28744
|
aRootUrl.host = aPath;
|
|
28699
28745
|
return urlGenerate(aRootUrl);
|
|
28700
28746
|
}
|
|
28701
|
-
var joined = aPath.charAt(0) === "/" ? aPath :
|
|
28747
|
+
var joined = aPath.charAt(0) === "/" ? aPath : normalize6(aRoot.replace(/\/+$/, "") + "/" + aPath);
|
|
28702
28748
|
if (aRootUrl) {
|
|
28703
28749
|
aRootUrl.path = joined;
|
|
28704
28750
|
return urlGenerate(aRootUrl);
|
|
@@ -28921,7 +28967,7 @@ var require_util2 = __commonJS({
|
|
|
28921
28967
|
}
|
|
28922
28968
|
sourceURL = join2(urlGenerate(parsed), sourceURL);
|
|
28923
28969
|
}
|
|
28924
|
-
return
|
|
28970
|
+
return normalize6(sourceURL);
|
|
28925
28971
|
}
|
|
28926
28972
|
exports2.computeSourceURL = computeSourceURL;
|
|
28927
28973
|
}
|
|
@@ -69052,11 +69098,11 @@ Visit https://nodejs.org to download the latest version.`
|
|
|
69052
69098
|
}
|
|
69053
69099
|
|
|
69054
69100
|
// src/program.ts
|
|
69055
|
-
import { Command as
|
|
69101
|
+
import { Command as Command48 } from "commander";
|
|
69056
69102
|
|
|
69057
69103
|
// package.json
|
|
69058
69104
|
var name = "@scalar/cli";
|
|
69059
|
-
var version = "1.8.
|
|
69105
|
+
var version = "1.8.7";
|
|
69060
69106
|
var bin = {
|
|
69061
69107
|
scalar: "./dist/index.js",
|
|
69062
69108
|
"scalar-cli": "./dist/index.js"
|
|
@@ -86772,6 +86818,22 @@ var mcpServerDocsPageToolSchema = external_exports.object({
|
|
|
86772
86818
|
}).meta({
|
|
86773
86819
|
id: "mcp-server-docs-page-tool"
|
|
86774
86820
|
});
|
|
86821
|
+
var mcpServerDocumentVersionSchema = external_exports.object({
|
|
86822
|
+
id: external_exports.string(),
|
|
86823
|
+
mcpServerId: external_exports.string(),
|
|
86824
|
+
versionId: external_exports.string(),
|
|
86825
|
+
createdAt: external_exports.string()
|
|
86826
|
+
}).meta({
|
|
86827
|
+
id: "mcp-server-document-version"
|
|
86828
|
+
});
|
|
86829
|
+
var mcpServerDocsPublishSchema = external_exports.object({
|
|
86830
|
+
id: external_exports.string(),
|
|
86831
|
+
mcpServerId: external_exports.string(),
|
|
86832
|
+
docsPublishId: external_exports.string(),
|
|
86833
|
+
createdAt: external_exports.string()
|
|
86834
|
+
}).meta({
|
|
86835
|
+
id: "mcp-server-docs-publish"
|
|
86836
|
+
});
|
|
86775
86837
|
var mcpInstallationSchema = external_exports.object({
|
|
86776
86838
|
id: external_exports.string(),
|
|
86777
86839
|
mcpServerId: external_exports.string(),
|
|
@@ -86791,7 +86853,7 @@ var monthlyUsageSchema = zod_default.object({
|
|
|
86791
86853
|
messages: zod_default.number()
|
|
86792
86854
|
}).meta({ id: "monthly-usage" });
|
|
86793
86855
|
|
|
86794
|
-
// ../../node_modules/.pnpm/@scalar+helpers@0.
|
|
86856
|
+
// ../../node_modules/.pnpm/@scalar+helpers@0.5.1/node_modules/@scalar/helpers/dist/http/http-methods.js
|
|
86795
86857
|
var HTTP_METHODS = ["delete", "get", "head", "options", "patch", "post", "put", "trace"];
|
|
86796
86858
|
var httpMethods = Object.freeze(new Set(HTTP_METHODS));
|
|
86797
86859
|
|
|
@@ -90112,6 +90174,19 @@ function publishApiFactory(requestService) {
|
|
|
90112
90174
|
})
|
|
90113
90175
|
});
|
|
90114
90176
|
}
|
|
90177
|
+
async function publishTemplate({ slug, repository, branch, configPath }) {
|
|
90178
|
+
return await requestService.request({
|
|
90179
|
+
url: "publish-deploy/publish/template",
|
|
90180
|
+
method: "post",
|
|
90181
|
+
data: {
|
|
90182
|
+
slug,
|
|
90183
|
+
repository,
|
|
90184
|
+
branch,
|
|
90185
|
+
configPath
|
|
90186
|
+
},
|
|
90187
|
+
schema: external_exports.object({ publishUid: nanoidSchema })
|
|
90188
|
+
});
|
|
90189
|
+
}
|
|
90115
90190
|
async function checkDNSRecords(domain2) {
|
|
90116
90191
|
return await requestService.request({
|
|
90117
90192
|
url: "core/publish/dns-check",
|
|
@@ -90227,6 +90302,7 @@ function publishApiFactory(requestService) {
|
|
|
90227
90302
|
return {
|
|
90228
90303
|
publishCli,
|
|
90229
90304
|
publishGithub: publishGithub2,
|
|
90305
|
+
publishTemplate,
|
|
90230
90306
|
publishWysiwyg,
|
|
90231
90307
|
exportWysiwyg,
|
|
90232
90308
|
checkDNSRecords,
|
|
@@ -90610,7 +90686,7 @@ var config2 = {
|
|
|
90610
90686
|
}
|
|
90611
90687
|
},
|
|
90612
90688
|
cdnUrl: process.env.CDN_URL ?? "https://cdn.scalar.com",
|
|
90613
|
-
ssgDocsIsolateVersion: process.env.SSG_DOCS_ISOLATE_VERSION ?? "1.3.
|
|
90689
|
+
ssgDocsIsolateVersion: process.env.SSG_DOCS_ISOLATE_VERSION ?? "1.3.6"
|
|
90614
90690
|
};
|
|
90615
90691
|
|
|
90616
90692
|
// src/domains/auth/login/helpers/personal-token-generate-access.ts
|
|
@@ -92393,7 +92469,7 @@ authCommands.forEach((command) => authDomain.addCommand(command()));
|
|
|
92393
92469
|
var auth_default = authDomain;
|
|
92394
92470
|
|
|
92395
92471
|
// src/domains/document/index.ts
|
|
92396
|
-
import { Command as
|
|
92472
|
+
import { Command as Command29 } from "commander";
|
|
92397
92473
|
|
|
92398
92474
|
// src/domains/document/join/index.ts
|
|
92399
92475
|
var import_yaml3 = __toESM(require_dist(), 1);
|
|
@@ -92658,7 +92734,6 @@ function LintCommand() {
|
|
|
92658
92734
|
import fs8 from "node:fs";
|
|
92659
92735
|
import as16 from "ansis";
|
|
92660
92736
|
import { Command as Command21 } from "commander";
|
|
92661
|
-
import { normalize as normalize5 } from "@scalar/openapi-parser";
|
|
92662
92737
|
import { createMarkdownFromOpenApi } from "@scalar/openapi-to-markdown";
|
|
92663
92738
|
function MarkdownCommand() {
|
|
92664
92739
|
const cmd2 = new Command21("markdown");
|
|
@@ -92672,7 +92747,7 @@ function MarkdownCommand() {
|
|
|
92672
92747
|
return output.error().title("Invalid argument").message("Please provide a file path or URL").exit("error");
|
|
92673
92748
|
}
|
|
92674
92749
|
const specification = await getFileOrUrl(inputArgument);
|
|
92675
|
-
const markdown = await createMarkdownFromOpenApi(
|
|
92750
|
+
const markdown = await createMarkdownFromOpenApi(specification);
|
|
92676
92751
|
if (outputPath) {
|
|
92677
92752
|
fs8.writeFileSync(outputPath, markdown, "utf8");
|
|
92678
92753
|
const endTime = performance.now();
|
|
@@ -92819,14 +92894,65 @@ function MockCommand() {
|
|
|
92819
92894
|
return cmd2;
|
|
92820
92895
|
}
|
|
92821
92896
|
|
|
92822
|
-
// src/domains/document/
|
|
92823
|
-
|
|
92897
|
+
// src/domains/document/postman/index.ts
|
|
92898
|
+
var import_yaml4 = __toESM(require_dist(), 1);
|
|
92899
|
+
import fs9 from "node:fs";
|
|
92824
92900
|
import as19 from "ansis";
|
|
92825
92901
|
import { Command as Command23 } from "commander";
|
|
92902
|
+
import { convert } from "@scalar/postman-to-openapi";
|
|
92903
|
+
function ConvertCommand() {
|
|
92904
|
+
const cmd2 = new Command23("convert");
|
|
92905
|
+
cmd2.description("Convert a Postman collection to an OpenAPI document");
|
|
92906
|
+
cmd2.argument("[file|url]", "Postman collection file path or URL to convert");
|
|
92907
|
+
cmd2.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
92908
|
+
cmd2.option(
|
|
92909
|
+
"--merge-operations",
|
|
92910
|
+
"Merge operations with shared path+method combinations"
|
|
92911
|
+
);
|
|
92912
|
+
cmd2.action(
|
|
92913
|
+
async (inputArgument, {
|
|
92914
|
+
output: outputPath,
|
|
92915
|
+
mergeOperations
|
|
92916
|
+
}) => {
|
|
92917
|
+
const startTime = performance.now();
|
|
92918
|
+
if (!inputArgument) {
|
|
92919
|
+
return output.error().title("Invalid argument").message("Please provide a Postman collection file path or URL").exit("error");
|
|
92920
|
+
}
|
|
92921
|
+
const collection = await getFileOrUrl(inputArgument);
|
|
92922
|
+
let specification;
|
|
92923
|
+
try {
|
|
92924
|
+
specification = convert(collection, {
|
|
92925
|
+
mergeOperation: !!mergeOperations
|
|
92926
|
+
});
|
|
92927
|
+
} catch {
|
|
92928
|
+
return output.error().title("Failed to convert Postman collection").message("The provided input is not a valid Postman collection").exit("error");
|
|
92929
|
+
}
|
|
92930
|
+
const openApiDocument = outputPath ? isYamlFileName(outputPath) ? import_yaml4.default.stringify(specification) : JSON.stringify(specification, null, 2) : JSON.stringify(specification, null, 2);
|
|
92931
|
+
if (outputPath) {
|
|
92932
|
+
fs9.writeFileSync(outputPath, openApiDocument, "utf8");
|
|
92933
|
+
const endTime = performance.now();
|
|
92934
|
+
output.info().line(
|
|
92935
|
+
`${as19.green("OpenAPI document generated")} ${as19.grey(
|
|
92936
|
+
`in ${as19.white(`${as19.bold(`${Math.round(endTime - startTime)}`)} ms`)}`
|
|
92937
|
+
)}`
|
|
92938
|
+
).line(`Written to ${as19.cyan(outputPath)}`).print();
|
|
92939
|
+
return;
|
|
92940
|
+
}
|
|
92941
|
+
process.stdout.write(`${openApiDocument}
|
|
92942
|
+
`);
|
|
92943
|
+
}
|
|
92944
|
+
);
|
|
92945
|
+
return cmd2;
|
|
92946
|
+
}
|
|
92947
|
+
|
|
92948
|
+
// src/domains/document/serve/index.ts
|
|
92949
|
+
import { serve as serve2 } from "@hono/node-server";
|
|
92950
|
+
import as20 from "ansis";
|
|
92951
|
+
import { Command as Command24 } from "commander";
|
|
92826
92952
|
import { Hono } from "hono";
|
|
92827
92953
|
import { stream } from "hono/streaming";
|
|
92828
92954
|
function ServeCommand() {
|
|
92829
|
-
const cmd2 = new
|
|
92955
|
+
const cmd2 = new Command24("serve");
|
|
92830
92956
|
cmd2.description("Serve an API Reference from an OpenAPI file");
|
|
92831
92957
|
cmd2.argument("[file|url]", "OpenAPI file or URL to show the reference for");
|
|
92832
92958
|
cmd2.option("-w, --watch", "watch the file for changes");
|
|
@@ -92869,7 +92995,7 @@ function ServeCommand() {
|
|
|
92869
92995
|
const newResult = await loadOpenApiFile(inputArgument);
|
|
92870
92996
|
const specificationHasChanged = newResult?.specification && JSON.stringify(specification) !== JSON.stringify(newResult.specification);
|
|
92871
92997
|
if (specificationHasChanged) {
|
|
92872
|
-
output.info().title(
|
|
92998
|
+
output.info().title(as20.grey("OpenAPI file modified")).print();
|
|
92873
92999
|
printSpecificationBanner({
|
|
92874
93000
|
version: newResult.version,
|
|
92875
93001
|
schema: newResult.schema
|
|
@@ -92894,9 +93020,9 @@ function ServeCommand() {
|
|
|
92894
93020
|
},
|
|
92895
93021
|
(info) => {
|
|
92896
93022
|
output.info().line(
|
|
92897
|
-
`${
|
|
93023
|
+
`${as20.green.bold("\u279C API Reference Server")} ${as20.white(
|
|
92898
93024
|
"listening on"
|
|
92899
|
-
)} ${
|
|
93025
|
+
)} ${as20.cyan(`http://localhost:${info.port}`)}`
|
|
92900
93026
|
).print();
|
|
92901
93027
|
}
|
|
92902
93028
|
);
|
|
@@ -92944,10 +93070,10 @@ var getHtmlDocument = (specification, watch = false) => {
|
|
|
92944
93070
|
};
|
|
92945
93071
|
|
|
92946
93072
|
// src/domains/document/share/index.ts
|
|
92947
|
-
import
|
|
92948
|
-
import { Command as
|
|
93073
|
+
import as21 from "ansis";
|
|
93074
|
+
import { Command as Command25 } from "commander";
|
|
92949
93075
|
function ShareCommand() {
|
|
92950
|
-
const cmd2 = new
|
|
93076
|
+
const cmd2 = new Command25("share");
|
|
92951
93077
|
cmd2.description("Share an OpenAPI file");
|
|
92952
93078
|
cmd2.argument("[file]", "file to share");
|
|
92953
93079
|
cmd2.option(
|
|
@@ -92973,29 +93099,29 @@ function ShareCommand() {
|
|
|
92973
93099
|
})
|
|
92974
93100
|
}).then((response) => response.json()).then((data) => {
|
|
92975
93101
|
const { id, token: newToken } = data;
|
|
92976
|
-
output.info().line(
|
|
93102
|
+
output.info().line(as21.green.bold("Your OpenAPI file is public.")).line().table(
|
|
92977
93103
|
[
|
|
92978
93104
|
[
|
|
92979
|
-
`${
|
|
92980
|
-
|
|
93105
|
+
`${as21.green("\u279C")} ${as21.white.bold("API Reference:")}`,
|
|
93106
|
+
as21.cyan(`https://sandbox.scalar.com/p/${id}`)
|
|
92981
93107
|
],
|
|
92982
93108
|
[
|
|
92983
|
-
`${
|
|
92984
|
-
|
|
93109
|
+
`${as21.grey("\u279C")} ${as21.grey.bold("Editor:")}`,
|
|
93110
|
+
as21.cyan(`https://sandbox.scalar.com/e/${id}`)
|
|
92985
93111
|
],
|
|
92986
93112
|
[],
|
|
92987
93113
|
[
|
|
92988
|
-
`${
|
|
92989
|
-
|
|
93114
|
+
`${as21.grey("\u279C")} ${as21.grey.bold("OpenAPI JSON:")}`,
|
|
93115
|
+
as21.cyan(`https://sandbox.scalar.com/files/${id}/openapi.json`)
|
|
92990
93116
|
],
|
|
92991
93117
|
[
|
|
92992
|
-
`${
|
|
92993
|
-
|
|
93118
|
+
`${as21.grey("\u279C")} ${as21.grey.bold("OpenAPI YAML:")}`,
|
|
93119
|
+
as21.cyan(`https://sandbox.scalar.com/files/${id}/openapi.yaml`)
|
|
92994
93120
|
]
|
|
92995
93121
|
],
|
|
92996
93122
|
{ padding: 1 }
|
|
92997
93123
|
).line().line("Use the token to update the existing sandbox:").line().line(
|
|
92998
|
-
`${
|
|
93124
|
+
`${as21.grey("$")} ${as21.white.bold("scalar document share --token=")}${as21.cyan.bold(`${newToken}`)} `
|
|
92999
93125
|
).line().print();
|
|
93000
93126
|
}).catch((error48) => {
|
|
93001
93127
|
output.error().title("Failed to share the file.").message(`Details: ${error48}`).exit("error");
|
|
@@ -93005,14 +93131,14 @@ function ShareCommand() {
|
|
|
93005
93131
|
}
|
|
93006
93132
|
|
|
93007
93133
|
// src/domains/document/upgrade/index.ts
|
|
93008
|
-
var
|
|
93009
|
-
import
|
|
93134
|
+
var import_yaml5 = __toESM(require_dist(), 1);
|
|
93135
|
+
import fs10 from "node:fs/promises";
|
|
93010
93136
|
import { confirm as confirm2 } from "@clack/prompts";
|
|
93011
|
-
import
|
|
93012
|
-
import { Command as
|
|
93013
|
-
import { normalize as
|
|
93137
|
+
import as22 from "ansis";
|
|
93138
|
+
import { Command as Command26 } from "commander";
|
|
93139
|
+
import { normalize as normalize5, upgrade } from "@scalar/openapi-parser";
|
|
93014
93140
|
function UpgradeCommand() {
|
|
93015
|
-
const cmd2 = new
|
|
93141
|
+
const cmd2 = new Command26("upgrade");
|
|
93016
93142
|
cmd2.description("Upgrade OpenAPI document to version 3.1");
|
|
93017
93143
|
cmd2.argument("[file|url]", "File or URL to validate");
|
|
93018
93144
|
cmd2.option("-o, --output <file>", "Path to save the upgraded output file");
|
|
@@ -93036,31 +93162,31 @@ function UpgradeCommand() {
|
|
|
93036
93162
|
}
|
|
93037
93163
|
}
|
|
93038
93164
|
const outputFileName = outputFilePath ?? input;
|
|
93039
|
-
const document2 =
|
|
93165
|
+
const document2 = normalize5(await getFileOrUrl(input));
|
|
93040
93166
|
const { result, executionTimeMs } = await measureTime(
|
|
93041
93167
|
() => upgrade(document2)
|
|
93042
93168
|
);
|
|
93043
93169
|
const isYaml = isYamlFileName(outputFileName);
|
|
93044
|
-
await
|
|
93170
|
+
await fs10.writeFile(
|
|
93045
93171
|
outputFileName,
|
|
93046
|
-
isYaml ?
|
|
93172
|
+
isYaml ? import_yaml5.default.stringify(result.specification) : JSON.stringify(result.specification, null, 2)
|
|
93047
93173
|
);
|
|
93048
93174
|
output.info().message(
|
|
93049
|
-
`${
|
|
93175
|
+
`${as22.green(`\u2728 OpenAPI Schema upgraded to version ${result.version}`)} in ${as22.white(`${as22.bold(`${executionTimeMs.toFixed(2)}`)} ms`)}`
|
|
93050
93176
|
).print();
|
|
93051
93177
|
});
|
|
93052
93178
|
return cmd2;
|
|
93053
93179
|
}
|
|
93054
93180
|
|
|
93055
93181
|
// src/domains/document/validate/index.ts
|
|
93056
|
-
import
|
|
93057
|
-
import { Command as
|
|
93182
|
+
import as23 from "ansis";
|
|
93183
|
+
import { Command as Command27 } from "commander";
|
|
93058
93184
|
import prettyjson from "prettyjson";
|
|
93059
93185
|
import { bundle as bundle3 } from "@scalar/json-magic/bundle";
|
|
93060
93186
|
import { fetchUrls as fetchUrls3, readFiles as readFiles3 } from "@scalar/json-magic/bundle/plugins/node";
|
|
93061
93187
|
import { validate as validate2 } from "@scalar/openapi-parser";
|
|
93062
93188
|
function ValidateCommand() {
|
|
93063
|
-
const cmd2 = new
|
|
93189
|
+
const cmd2 = new Command27("validate");
|
|
93064
93190
|
cmd2.description("Validate an OpenAPI file");
|
|
93065
93191
|
cmd2.argument("[file|url]", "File or URL to validate");
|
|
93066
93192
|
cmd2.action(async (inputArgument) => {
|
|
@@ -93077,24 +93203,24 @@ function ValidateCommand() {
|
|
|
93077
93203
|
if (result.valid && result.version) {
|
|
93078
93204
|
const endTime = performance.now();
|
|
93079
93205
|
output.info().line(
|
|
93080
|
-
|
|
93081
|
-
`Matches the OpenAPI specification${
|
|
93206
|
+
as23.green(
|
|
93207
|
+
`Matches the OpenAPI specification${as23.white(` (OpenAPI ${as23.bold(result.version)})`)}
|
|
93082
93208
|
`
|
|
93083
93209
|
)
|
|
93084
93210
|
).line(
|
|
93085
|
-
`${
|
|
93086
|
-
`in ${
|
|
93211
|
+
`${as23.green("File validated")} ${as23.grey(
|
|
93212
|
+
`in ${as23.white(`${as23.bold(`${Math.round(endTime - startTime)}`)} ms`)}
|
|
93087
93213
|
`
|
|
93088
93214
|
)}`
|
|
93089
93215
|
).print();
|
|
93090
93216
|
} else {
|
|
93091
93217
|
output.error().message(prettyjson.render(result.errors)).message(
|
|
93092
|
-
|
|
93218
|
+
as23.red(
|
|
93093
93219
|
`File does not match the OpenAPI ${result.version ? `${result.version} ` : ""}specification.`
|
|
93094
93220
|
)
|
|
93095
93221
|
).message(
|
|
93096
|
-
|
|
93097
|
-
`${
|
|
93222
|
+
as23.red(
|
|
93223
|
+
`${as23.bold(
|
|
93098
93224
|
`${result.errors?.length} error${result.errors && result.errors.length > 1 ? "s" : ""}`
|
|
93099
93225
|
)} found.`
|
|
93100
93226
|
)
|
|
@@ -93106,11 +93232,11 @@ function ValidateCommand() {
|
|
|
93106
93232
|
|
|
93107
93233
|
// src/domains/document/void/index.ts
|
|
93108
93234
|
import { serve as serve3 } from "@hono/node-server";
|
|
93109
|
-
import
|
|
93110
|
-
import { Command as
|
|
93235
|
+
import as24 from "ansis";
|
|
93236
|
+
import { Command as Command28 } from "commander";
|
|
93111
93237
|
import { createVoidServer } from "@scalar/void-server";
|
|
93112
93238
|
function VoidCommand() {
|
|
93113
|
-
const cmd2 = new
|
|
93239
|
+
const cmd2 = new Command28("void");
|
|
93114
93240
|
cmd2.description("Boot a server to mirror HTTP requests");
|
|
93115
93241
|
cmd2.option("-o, --once", "run the server only once and exit after that");
|
|
93116
93242
|
cmd2.option("-p, --port <port>", "set the HTTP port for the mock server");
|
|
@@ -93142,9 +93268,9 @@ var bootServer2 = async ({
|
|
|
93142
93268
|
},
|
|
93143
93269
|
(info) => {
|
|
93144
93270
|
output.info().line(
|
|
93145
|
-
`${
|
|
93271
|
+
`${as24.green.bold("\u279C Void Server")} ${as24.white(
|
|
93146
93272
|
"listening on"
|
|
93147
|
-
)} ${
|
|
93273
|
+
)} ${as24.cyan(`http://localhost:${info.port}`)}
|
|
93148
93274
|
`
|
|
93149
93275
|
).print();
|
|
93150
93276
|
}
|
|
@@ -93157,6 +93283,7 @@ var documentCommands = [
|
|
|
93157
93283
|
SplitCommand,
|
|
93158
93284
|
JoinCommand,
|
|
93159
93285
|
FormatCommand,
|
|
93286
|
+
ConvertCommand,
|
|
93160
93287
|
MarkdownCommand,
|
|
93161
93288
|
MockCommand,
|
|
93162
93289
|
ServeCommand,
|
|
@@ -93166,27 +93293,27 @@ var documentCommands = [
|
|
|
93166
93293
|
LintCommand,
|
|
93167
93294
|
UpgradeCommand
|
|
93168
93295
|
];
|
|
93169
|
-
var documentDomain = new
|
|
93296
|
+
var documentDomain = new Command29("document");
|
|
93170
93297
|
documentDomain.description("Manage local openapi file");
|
|
93171
93298
|
documentCommands.forEach((command) => documentDomain.addCommand(command()));
|
|
93172
93299
|
var document_default = documentDomain;
|
|
93173
93300
|
|
|
93174
93301
|
// src/domains/project/index.ts
|
|
93175
|
-
import { Command as
|
|
93302
|
+
import { Command as Command36 } from "commander";
|
|
93176
93303
|
|
|
93177
93304
|
// src/domains/project/preview/index.ts
|
|
93178
93305
|
import { text as text4 } from "@clack/prompts";
|
|
93179
|
-
import
|
|
93180
|
-
import { Command as
|
|
93306
|
+
import as27 from "ansis";
|
|
93307
|
+
import { Command as Command31 } from "commander";
|
|
93181
93308
|
|
|
93182
93309
|
// src/domains/project/check-config/index.ts
|
|
93183
|
-
import
|
|
93184
|
-
import
|
|
93185
|
-
import { Command as
|
|
93310
|
+
import fs12 from "node:fs";
|
|
93311
|
+
import as25 from "ansis";
|
|
93312
|
+
import { Command as Command30 } from "commander";
|
|
93186
93313
|
|
|
93187
93314
|
// ../../packages/helpers/dist/parse/parse.js
|
|
93188
93315
|
var import_json5 = __toESM(require_lib(), 1);
|
|
93189
|
-
var
|
|
93316
|
+
var import_yaml6 = __toESM(require_dist(), 1);
|
|
93190
93317
|
function findDocType(val) {
|
|
93191
93318
|
const withoutWhiteSpace = val.trim();
|
|
93192
93319
|
if (
|
|
@@ -93201,7 +93328,7 @@ function findDocType(val) {
|
|
|
93201
93328
|
function parseAnything(val, schema) {
|
|
93202
93329
|
const docType = findDocType(val);
|
|
93203
93330
|
try {
|
|
93204
|
-
const obj = docType === "yaml" ?
|
|
93331
|
+
const obj = docType === "yaml" ? import_yaml6.default.parse(val) : import_json5.default.parse(val);
|
|
93205
93332
|
const result = schema.safeParse(obj);
|
|
93206
93333
|
if (result.success) {
|
|
93207
93334
|
return {
|
|
@@ -93483,7 +93610,7 @@ function resolveHeader({ references, guides, header }) {
|
|
|
93483
93610
|
}
|
|
93484
93611
|
|
|
93485
93612
|
// ../../packages/scalar-config/dist/legacy/resolvers/resolve-reference.js
|
|
93486
|
-
var
|
|
93613
|
+
var import_yaml7 = __toESM(require_dist(), 1);
|
|
93487
93614
|
|
|
93488
93615
|
// ../../packages/scalar-config/dist/schema/head.js
|
|
93489
93616
|
var tagPositionSchema = zod_default.enum(["head", "bodyClose", "bodyOpen"]).default("head");
|
|
@@ -93540,7 +93667,7 @@ var internalLinkNavigationEntrySchema = linkNavigationEntrySchema.extend({
|
|
|
93540
93667
|
uid: nanoidSchema
|
|
93541
93668
|
});
|
|
93542
93669
|
|
|
93543
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
93670
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-client-plugin.js
|
|
93544
93671
|
var sectionViewSchema = external_exports.object({
|
|
93545
93672
|
title: external_exports.string().optional(),
|
|
93546
93673
|
// Since this is meant to be a Vue component, we'll use unknown
|
|
@@ -93572,7 +93699,7 @@ var apiClientPluginSchema = external_exports.function({
|
|
|
93572
93699
|
})
|
|
93573
93700
|
});
|
|
93574
93701
|
|
|
93575
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
93702
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/base-configuration.js
|
|
93576
93703
|
var externalUrlsSchema = zod_default.object({
|
|
93577
93704
|
dashboardUrl: zod_default.string().prefault("https://dashboard.scalar.com"),
|
|
93578
93705
|
registryUrl: zod_default.string().prefault("https://registry.scalar.com"),
|
|
@@ -93722,13 +93849,13 @@ var baseConfigurationSchema = zod_default.object({
|
|
|
93722
93849
|
persistAuth: zod_default.boolean().optional().default(false).catch(false),
|
|
93723
93850
|
/** Plugins for the API client */
|
|
93724
93851
|
plugins: zod_default.array(apiClientPluginSchema).optional(),
|
|
93725
|
-
/** Enables / disables telemetry*/
|
|
93852
|
+
/** Enables / disables telemetry */
|
|
93726
93853
|
telemetry: zod_default.boolean().optional().default(true),
|
|
93727
93854
|
/** A bunch of external URLs to Scalar's services. */
|
|
93728
93855
|
externalUrls: externalUrlsSchema.prefault({})
|
|
93729
93856
|
});
|
|
93730
93857
|
|
|
93731
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
93858
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/source-configuration.js
|
|
93732
93859
|
var sourceConfigurationSchema = zod_default.object({
|
|
93733
93860
|
default: zod_default.boolean().default(false).optional().catch(false),
|
|
93734
93861
|
/**
|
|
@@ -93825,10 +93952,10 @@ var sourceConfigurationSchema = zod_default.object({
|
|
|
93825
93952
|
}).optional()
|
|
93826
93953
|
});
|
|
93827
93954
|
|
|
93828
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
93955
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-client-configuration.js
|
|
93829
93956
|
var apiClientConfigurationSchema = baseConfigurationSchema.extend(sourceConfigurationSchema.shape);
|
|
93830
93957
|
|
|
93831
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
93958
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-reference-plugin.js
|
|
93832
93959
|
var openApiExtensionSchema = external_exports.object({
|
|
93833
93960
|
/**
|
|
93834
93961
|
* Name of specification extension property. Has to start with `x-`.
|
|
@@ -93868,6 +93995,18 @@ var viewsSchema2 = external_exports.object({
|
|
|
93868
93995
|
*/
|
|
93869
93996
|
"content.end": external_exports.array(viewComponentSchema).optional()
|
|
93870
93997
|
});
|
|
93998
|
+
var lifecycleHooksSchema = external_exports.object({
|
|
93999
|
+
/** Called when the API Reference is initialized */
|
|
94000
|
+
onInit: external_exports.function({
|
|
94001
|
+
input: [external_exports.object({ config: baseConfigurationSchema.partial() })]
|
|
94002
|
+
}).optional(),
|
|
94003
|
+
/** Called when the API Reference configuration changes */
|
|
94004
|
+
onConfigChange: external_exports.function({
|
|
94005
|
+
input: [external_exports.object({ config: baseConfigurationSchema.partial() })]
|
|
94006
|
+
}).optional(),
|
|
94007
|
+
/** Called when the API Reference is destroyed */
|
|
94008
|
+
onDestroy: external_exports.function({ input: [] }).optional()
|
|
94009
|
+
});
|
|
93871
94010
|
var apiReferencePluginSchema = external_exports.function({
|
|
93872
94011
|
input: [],
|
|
93873
94012
|
output: external_exports.object({
|
|
@@ -93876,11 +94015,20 @@ var apiReferencePluginSchema = external_exports.function({
|
|
|
93876
94015
|
/**
|
|
93877
94016
|
* Components to render at specific views in the API Reference
|
|
93878
94017
|
*/
|
|
93879
|
-
views: viewsSchema2.optional()
|
|
94018
|
+
views: viewsSchema2.optional(),
|
|
94019
|
+
/**
|
|
94020
|
+
* Lifecycle hooks for the plugin
|
|
94021
|
+
*/
|
|
94022
|
+
hooks: lifecycleHooksSchema.optional(),
|
|
94023
|
+
/**
|
|
94024
|
+
* Client plugins to pass to the embedded API client.
|
|
94025
|
+
* Use this to extend the API client from an API reference plugin.
|
|
94026
|
+
*/
|
|
94027
|
+
apiClientPlugins: external_exports.array(external_exports.any()).optional()
|
|
93880
94028
|
})
|
|
93881
94029
|
});
|
|
93882
94030
|
|
|
93883
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
94031
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-reference-configuration.js
|
|
93884
94032
|
var fetchLikeSchema = external_exports.custom();
|
|
93885
94033
|
var apiReferenceConfigurationSchema = baseConfigurationSchema.extend({
|
|
93886
94034
|
/**
|
|
@@ -94234,7 +94382,7 @@ var apiReferenceConfigurationWithSourceSchema = apiReferenceConfigurationSchema.
|
|
|
94234
94382
|
return configuration;
|
|
94235
94383
|
});
|
|
94236
94384
|
|
|
94237
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
94385
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/html-rendering-configuration.js
|
|
94238
94386
|
var htmlRenderingConfigurationSchema = external_exports.object({
|
|
94239
94387
|
/**
|
|
94240
94388
|
* The URL to the Scalar API Reference JS CDN.
|
|
@@ -94252,7 +94400,7 @@ var htmlRenderingConfigurationSchema = external_exports.object({
|
|
|
94252
94400
|
pageTitle: external_exports.string().optional().default("Scalar API Reference")
|
|
94253
94401
|
});
|
|
94254
94402
|
|
|
94255
|
-
// ../../node_modules/.pnpm/@scalar+types@0.
|
|
94403
|
+
// ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/legacy/reference-config.js
|
|
94256
94404
|
var XScalarStability;
|
|
94257
94405
|
(function(XScalarStability2) {
|
|
94258
94406
|
XScalarStability2["Deprecated"] = "deprecated";
|
|
@@ -95389,7 +95537,7 @@ var wysiwygProjectToV2 = n.safeFn(({ project, invalidRefs, theme }) => {
|
|
|
95389
95537
|
}, (originalError) => createError("FAILED_TO_CONVERT_WYSIWYG_TO_V2", originalError));
|
|
95390
95538
|
|
|
95391
95539
|
// src/domains/project/helpers.ts
|
|
95392
|
-
import
|
|
95540
|
+
import fs11 from "node:fs";
|
|
95393
95541
|
import path5 from "node:path";
|
|
95394
95542
|
var DEFAULT_MARKDOWN_FILE_NAME = "docs-quickstart.md";
|
|
95395
95543
|
var DEFAULT_OPENAPI_FILE_NAME = "docs-openapi.json";
|
|
@@ -95401,7 +95549,7 @@ function findConfig(searchPath) {
|
|
|
95401
95549
|
return searchInDirectory(process.cwd());
|
|
95402
95550
|
}
|
|
95403
95551
|
const searchPathResolved = path5.resolve(searchPath);
|
|
95404
|
-
const stat =
|
|
95552
|
+
const stat = fs11.statSync(searchPathResolved, { throwIfNoEntry: false });
|
|
95405
95553
|
if (!stat) {
|
|
95406
95554
|
return null;
|
|
95407
95555
|
}
|
|
@@ -95418,7 +95566,7 @@ function getCurrentFolderName() {
|
|
|
95418
95566
|
}
|
|
95419
95567
|
function searchInDirectory(directory) {
|
|
95420
95568
|
try {
|
|
95421
|
-
const entries =
|
|
95569
|
+
const entries = fs11.readdirSync(directory);
|
|
95422
95570
|
for (const entry of entries) {
|
|
95423
95571
|
if (entry === CONFIG_FILE_NAME || entry.startsWith(`${CONFIG_FILE_NAME}.`)) {
|
|
95424
95572
|
return path5.join(directory, entry);
|
|
@@ -95444,7 +95592,7 @@ function readAndParseConfig(configPath) {
|
|
|
95444
95592
|
}
|
|
95445
95593
|
};
|
|
95446
95594
|
}
|
|
95447
|
-
const fileContent =
|
|
95595
|
+
const fileContent = fs12.readFileSync(file2, "utf-8");
|
|
95448
95596
|
const parseConfigResult = parseConfig(fileContent);
|
|
95449
95597
|
if (!parseConfigResult.success) {
|
|
95450
95598
|
return {
|
|
@@ -95464,17 +95612,17 @@ function readAndParseConfig(configPath) {
|
|
|
95464
95612
|
};
|
|
95465
95613
|
}
|
|
95466
95614
|
function CheckConfigCommand() {
|
|
95467
|
-
const cmd2 = new
|
|
95615
|
+
const cmd2 = new Command30("check-config");
|
|
95468
95616
|
cmd2.description("Check a Scalar Configuration file");
|
|
95469
95617
|
cmd2.argument("[file]", "File to check");
|
|
95470
95618
|
cmd2.action(async (inputArgument) => {
|
|
95471
95619
|
const result = readAndParseConfig(inputArgument);
|
|
95472
95620
|
if (result.success) {
|
|
95473
95621
|
output.info().line(
|
|
95474
|
-
`${
|
|
95622
|
+
`${as25.green("[SUCCESS]")} ${as25.green("The Scalar Configuration is valid:")} ${as25.green(result.filePath)}`
|
|
95475
95623
|
).line(
|
|
95476
|
-
`${
|
|
95477
|
-
`in ${
|
|
95624
|
+
`${as25.green("Scalar Configuration validated")} ${as25.grey(
|
|
95625
|
+
`in ${as25.white.bold(`${result.validationTime} ms`)}`
|
|
95478
95626
|
)}
|
|
95479
95627
|
`
|
|
95480
95628
|
).print();
|
|
@@ -95491,7 +95639,7 @@ function CheckConfigCommand() {
|
|
|
95491
95639
|
if (error48.issues) {
|
|
95492
95640
|
output.error().table(
|
|
95493
95641
|
error48.issues.map((issue2) => [
|
|
95494
|
-
|
|
95642
|
+
as25.yellow(`${issue2.path.join("/").trim() || "root"}:`),
|
|
95495
95643
|
issue2.message
|
|
95496
95644
|
]),
|
|
95497
95645
|
{ padding: 2 }
|
|
@@ -95506,7 +95654,7 @@ function CheckConfigCommand() {
|
|
|
95506
95654
|
|
|
95507
95655
|
// src/domains/project/preview/v2.ts
|
|
95508
95656
|
import { execFile, spawn } from "node:child_process";
|
|
95509
|
-
import
|
|
95657
|
+
import fs13 from "node:fs/promises";
|
|
95510
95658
|
import os2 from "node:os";
|
|
95511
95659
|
import path6 from "node:path";
|
|
95512
95660
|
import { Readable } from "node:stream";
|
|
@@ -95515,14 +95663,14 @@ import tar from "tar-fs";
|
|
|
95515
95663
|
|
|
95516
95664
|
// src/helpers/run-command.ts
|
|
95517
95665
|
import { exec as exec2 } from "node:child_process";
|
|
95518
|
-
import
|
|
95666
|
+
import as26 from "ansis";
|
|
95519
95667
|
async function runCommand(command, cwd2) {
|
|
95520
95668
|
return new Promise((resolve, reject) => {
|
|
95521
95669
|
const comm = exec2(command, { cwd: cwd2 });
|
|
95522
95670
|
comm.stdout?.pipe(process.stdout);
|
|
95523
95671
|
comm.stderr?.pipe(process.stderr);
|
|
95524
95672
|
comm.on("error", (err) => {
|
|
95525
|
-
|
|
95673
|
+
as26.redBright(err.message);
|
|
95526
95674
|
reject(err);
|
|
95527
95675
|
});
|
|
95528
95676
|
comm.on("close", (code) => code === 0 ? resolve(true) : reject(code));
|
|
@@ -95534,7 +95682,7 @@ var ISOLATE_EXTRACTION_DIR = path6.join(os2.homedir(), ".scalar");
|
|
|
95534
95682
|
var ISOLATE_DIR = path6.join(ISOLATE_EXTRACTION_DIR, "isolate");
|
|
95535
95683
|
async function getExistingIsolateVersion() {
|
|
95536
95684
|
try {
|
|
95537
|
-
const packageJsonString = await
|
|
95685
|
+
const packageJsonString = await fs13.readFile(
|
|
95538
95686
|
path6.join(ISOLATE_DIR, "package.json"),
|
|
95539
95687
|
"utf8"
|
|
95540
95688
|
);
|
|
@@ -95589,7 +95737,7 @@ Remove-Item $tempFile
|
|
|
95589
95737
|
async function downloadIsolate() {
|
|
95590
95738
|
const existingIsolateVersion = await getExistingIsolateVersion();
|
|
95591
95739
|
if (config2.ssgDocsIsolateVersion === existingIsolateVersion) return;
|
|
95592
|
-
await
|
|
95740
|
+
await fs13.rm(ISOLATE_EXTRACTION_DIR, { force: true, recursive: true });
|
|
95593
95741
|
const logger = output.info({ animate: true }).loader("Downloading docs isolate. This may take a minute...");
|
|
95594
95742
|
const ISOLATE_URL = `${config2.cdnUrl}/isolates/${config2.ssgDocsIsolateVersion}-isolate.tar.gz`;
|
|
95595
95743
|
if (process.platform === "win32") {
|
|
@@ -95654,7 +95802,7 @@ async function previewV2Project({
|
|
|
95654
95802
|
|
|
95655
95803
|
// src/domains/project/preview/index.ts
|
|
95656
95804
|
var PreviewCommand = () => {
|
|
95657
|
-
const cmd2 = new
|
|
95805
|
+
const cmd2 = new Command31("preview");
|
|
95658
95806
|
cmd2.description("Preview scalar guides");
|
|
95659
95807
|
cmd2.argument(
|
|
95660
95808
|
"[config]",
|
|
@@ -95712,7 +95860,7 @@ var PreviewCommand = () => {
|
|
|
95712
95860
|
if (error48.issues) {
|
|
95713
95861
|
output.error().table(
|
|
95714
95862
|
error48.issues.map((issue2) => [
|
|
95715
|
-
|
|
95863
|
+
as27.yellow(`${issue2.path.join("/").trim() || "root"}:`),
|
|
95716
95864
|
issue2.message
|
|
95717
95865
|
]),
|
|
95718
95866
|
{ padding: 2 }
|
|
@@ -95723,7 +95871,7 @@ var PreviewCommand = () => {
|
|
|
95723
95871
|
}
|
|
95724
95872
|
if (parseConfigResult.success) {
|
|
95725
95873
|
output.info().line(
|
|
95726
|
-
`${
|
|
95874
|
+
`${as27.green("[SUCCESS]")} ${as27.green("Configuration is valid:")} ${as27.green(parseConfigResult.filePath)}`
|
|
95727
95875
|
).print();
|
|
95728
95876
|
}
|
|
95729
95877
|
const { config: config3 } = parseConfigResult;
|
|
@@ -95746,10 +95894,10 @@ var PreviewCommand = () => {
|
|
|
95746
95894
|
|
|
95747
95895
|
// src/domains/project/create/index.ts
|
|
95748
95896
|
import { text as text5 } from "@clack/prompts";
|
|
95749
|
-
import
|
|
95750
|
-
import { Command as
|
|
95897
|
+
import as28 from "ansis";
|
|
95898
|
+
import { Command as Command32 } from "commander";
|
|
95751
95899
|
var CreateCommand = () => {
|
|
95752
|
-
const cmd2 = new
|
|
95900
|
+
const cmd2 = new Command32("create");
|
|
95753
95901
|
cmd2.description(
|
|
95754
95902
|
"Create a new project that is not linked to a github project."
|
|
95755
95903
|
);
|
|
@@ -95786,19 +95934,19 @@ var CreateCommand = () => {
|
|
|
95786
95934
|
}
|
|
95787
95935
|
logger.update("loader", 0, { content: "Project created successfully!" });
|
|
95788
95936
|
logger.message(
|
|
95789
|
-
`Project uid: ${
|
|
95790
|
-
Project slug: ${
|
|
95937
|
+
`Project uid: ${as28.cyan(response.data.uid)}
|
|
95938
|
+
Project slug: ${as28.cyan(response.data.slug)}`
|
|
95791
95939
|
).exit("success");
|
|
95792
95940
|
});
|
|
95793
95941
|
return cmd2;
|
|
95794
95942
|
};
|
|
95795
95943
|
|
|
95796
95944
|
// src/domains/project/init/index.ts
|
|
95797
|
-
import
|
|
95945
|
+
import fs14 from "node:fs/promises";
|
|
95798
95946
|
import path7 from "node:path";
|
|
95799
95947
|
import { cancel, confirm as confirm3, isCancel, text as text6 } from "@clack/prompts";
|
|
95800
|
-
import
|
|
95801
|
-
import { Command as
|
|
95948
|
+
import as29 from "ansis";
|
|
95949
|
+
import { Command as Command33 } from "commander";
|
|
95802
95950
|
|
|
95803
95951
|
// ../../node_modules/.pnpm/@scalar+galaxy@0.6.2/node_modules/@scalar/galaxy/dist/3.1.json
|
|
95804
95952
|
var __default = {
|
|
@@ -97759,14 +97907,14 @@ We're here to help:
|
|
|
97759
97907
|
// src/domains/project/init/index.ts
|
|
97760
97908
|
async function fileExists2(path12) {
|
|
97761
97909
|
try {
|
|
97762
|
-
await
|
|
97910
|
+
await fs14.access(path12, fs14.constants.F_OK);
|
|
97763
97911
|
return true;
|
|
97764
97912
|
} catch {
|
|
97765
97913
|
return false;
|
|
97766
97914
|
}
|
|
97767
97915
|
}
|
|
97768
97916
|
var InitCommand = () => {
|
|
97769
|
-
const cmd2 = new
|
|
97917
|
+
const cmd2 = new Command33("init");
|
|
97770
97918
|
cmd2.description("Create a new Scalar Docs project.");
|
|
97771
97919
|
cmd2.option("-s, --subdomain [url]", "subdomain to publish on");
|
|
97772
97920
|
cmd2.option("--force", "override existing configuration");
|
|
@@ -97775,14 +97923,14 @@ var InitCommand = () => {
|
|
|
97775
97923
|
let validInput;
|
|
97776
97924
|
const nextSteps = () => {
|
|
97777
97925
|
output.info().line("What to do next:").line(
|
|
97778
|
-
` ${
|
|
97926
|
+
` ${as29.cyan("scalar project preview")} to preview your project locally`
|
|
97779
97927
|
).line(
|
|
97780
|
-
` ${
|
|
97928
|
+
` ${as29.cyan("scalar project check-config")} to validate your scalar.config.json file`
|
|
97781
97929
|
).line(
|
|
97782
|
-
` ${
|
|
97930
|
+
` ${as29.cyan("scalar project publish --slug")} ${as29.gray("[dashboard-project-slug]")} to publish your project`
|
|
97783
97931
|
).line(
|
|
97784
|
-
|
|
97785
|
-
`Run ${
|
|
97932
|
+
as29.white(
|
|
97933
|
+
`Run ${as29.magenta("scalar --help")} to see all available commands.`
|
|
97786
97934
|
)
|
|
97787
97935
|
).print();
|
|
97788
97936
|
};
|
|
@@ -97793,10 +97941,10 @@ var InitCommand = () => {
|
|
|
97793
97941
|
};
|
|
97794
97942
|
if (await fileExists2(configFile)) {
|
|
97795
97943
|
output.info().line(
|
|
97796
|
-
`${
|
|
97944
|
+
`${as29.green("\u26A0")} Found existing configuration: ${as29.green.bold(`${configFile}`)}`
|
|
97797
97945
|
).print();
|
|
97798
97946
|
if (force) {
|
|
97799
|
-
output.info().line(`${
|
|
97947
|
+
output.info().line(`${as29.green("\u2714")} Overwriting existing file\u2026`).print();
|
|
97800
97948
|
}
|
|
97801
97949
|
const shouldOverwriteExisting = force ?? await confirm3({
|
|
97802
97950
|
message: "Do you want to override the file?",
|
|
@@ -97851,23 +97999,23 @@ var InitCommand = () => {
|
|
|
97851
97999
|
const slug = slugify3(title);
|
|
97852
98000
|
configuration.info = { title, description: `Documentation for ${title}` };
|
|
97853
98001
|
subdomain = slug;
|
|
97854
|
-
output.info().line(`${
|
|
98002
|
+
output.info().line(`${as29.green("\u2714")} Subdomain: ${as29.green(subdomain)}`).print();
|
|
97855
98003
|
}
|
|
97856
98004
|
configuration.siteConfig.subdomain = subdomain.trim();
|
|
97857
98005
|
const content = JSON.stringify(configuration, null, 2);
|
|
97858
|
-
await
|
|
97859
|
-
await
|
|
98006
|
+
await fs14.writeFile(configFile, content);
|
|
98007
|
+
await fs14.writeFile(
|
|
97860
98008
|
path7.join(currentDir, DEFAULT_MARKDOWN_FILE_NAME),
|
|
97861
98009
|
quickstartMarkdown
|
|
97862
98010
|
);
|
|
97863
|
-
await
|
|
98011
|
+
await fs14.writeFile(
|
|
97864
98012
|
path7.join(currentDir, DEFAULT_OPENAPI_FILE_NAME),
|
|
97865
98013
|
JSON.stringify(__default, null, 2)
|
|
97866
98014
|
);
|
|
97867
|
-
output.info().line(`${
|
|
97868
|
-
`).line(`${
|
|
98015
|
+
output.info().line(`${as29.green("\u2714")} Configuration stored.
|
|
98016
|
+
`).line(`${as29.green.bold(`${configFile}`)}
|
|
97869
98017
|
`).line(
|
|
97870
|
-
`${
|
|
98018
|
+
`${as29.grey(
|
|
97871
98019
|
content.split("\n").map((line) => ` ${line}`).join("\n")
|
|
97872
98020
|
)}`
|
|
97873
98021
|
).print();
|
|
@@ -97877,12 +98025,12 @@ var InitCommand = () => {
|
|
|
97877
98025
|
};
|
|
97878
98026
|
|
|
97879
98027
|
// src/domains/project/publish/index.ts
|
|
97880
|
-
import
|
|
98028
|
+
import fs16 from "node:fs";
|
|
97881
98029
|
import { dirname } from "node:path";
|
|
97882
|
-
import { Command as
|
|
98030
|
+
import { Command as Command34 } from "commander";
|
|
97883
98031
|
|
|
97884
98032
|
// src/domains/project/publish/publish.ts
|
|
97885
|
-
import
|
|
98033
|
+
import fs15 from "node:fs";
|
|
97886
98034
|
import path8 from "node:path";
|
|
97887
98035
|
import { Readable as Readable2 } from "node:stream";
|
|
97888
98036
|
import ignore from "ignore";
|
|
@@ -97893,7 +98041,7 @@ function isErrnoException(error48) {
|
|
|
97893
98041
|
}
|
|
97894
98042
|
async function readGitIgnore(configDir) {
|
|
97895
98043
|
try {
|
|
97896
|
-
const gitignore = await
|
|
98044
|
+
const gitignore = await fs15.promises.readFile(
|
|
97897
98045
|
path8.resolve(configDir, ".gitignore"),
|
|
97898
98046
|
"utf8"
|
|
97899
98047
|
);
|
|
@@ -97985,7 +98133,7 @@ var sleep = (ms) => {
|
|
|
97985
98133
|
|
|
97986
98134
|
// src/domains/project/publish/index.ts
|
|
97987
98135
|
var PublishCommand = () => {
|
|
97988
|
-
const cmd2 = new
|
|
98136
|
+
const cmd2 = new Command34("publish");
|
|
97989
98137
|
cmd2.description(
|
|
97990
98138
|
"Publish new build for a github sync project that is not linked."
|
|
97991
98139
|
);
|
|
@@ -98039,10 +98187,10 @@ var PublishCommand = () => {
|
|
|
98039
98187
|
});
|
|
98040
98188
|
}
|
|
98041
98189
|
const configPath = configPathOption ?? findConfig();
|
|
98042
|
-
if (!configPath || !
|
|
98190
|
+
if (!configPath || !fs16.existsSync(configPath)) {
|
|
98043
98191
|
return output.error().title("Invalid configuration file").message("Could not find the Scalar Configuration file:").message(configPath ?? "").exit("error");
|
|
98044
98192
|
}
|
|
98045
|
-
const rawConfig =
|
|
98193
|
+
const rawConfig = fs16.readFileSync(configPath, "utf-8");
|
|
98046
98194
|
const configParseResult = parseConfig(rawConfig);
|
|
98047
98195
|
if (!configParseResult.success) {
|
|
98048
98196
|
return output.error().title("Invalid configuration file").line(
|
|
@@ -98122,11 +98270,11 @@ async function getDeployStatus({
|
|
|
98122
98270
|
}
|
|
98123
98271
|
|
|
98124
98272
|
// src/domains/project/upgrade/index.ts
|
|
98125
|
-
import
|
|
98273
|
+
import fs17 from "node:fs/promises";
|
|
98126
98274
|
import path9 from "node:path";
|
|
98127
98275
|
import { text as text7 } from "@clack/prompts";
|
|
98128
|
-
import
|
|
98129
|
-
import { Command as
|
|
98276
|
+
import as30 from "ansis";
|
|
98277
|
+
import { Command as Command35 } from "commander";
|
|
98130
98278
|
import { n as n2 } from "neverpanic";
|
|
98131
98279
|
|
|
98132
98280
|
// src/errors.ts
|
|
@@ -98155,7 +98303,7 @@ function displayError(error48, fallback = "Unknown error occurred. Please contac
|
|
|
98155
98303
|
|
|
98156
98304
|
// src/domains/project/upgrade/index.ts
|
|
98157
98305
|
var UpgradeCommand2 = () => {
|
|
98158
|
-
const cmd2 = new
|
|
98306
|
+
const cmd2 = new Command35("upgrade");
|
|
98159
98307
|
cmd2.description("Upgrade scalar project");
|
|
98160
98308
|
cmd2.argument(
|
|
98161
98309
|
"[config]",
|
|
@@ -98181,7 +98329,7 @@ var UpgradeCommand2 = () => {
|
|
|
98181
98329
|
if (error48.issues) {
|
|
98182
98330
|
output.error().table(
|
|
98183
98331
|
error48.issues.map((issue2) => [
|
|
98184
|
-
|
|
98332
|
+
as30.yellow(`${issue2.path.join("/").trim() || "root"}:`),
|
|
98185
98333
|
issue2.message
|
|
98186
98334
|
]),
|
|
98187
98335
|
{ padding: 2 }
|
|
@@ -98192,7 +98340,7 @@ var UpgradeCommand2 = () => {
|
|
|
98192
98340
|
}
|
|
98193
98341
|
if (parseConfigResult.success) {
|
|
98194
98342
|
output.info().line(
|
|
98195
|
-
`${
|
|
98343
|
+
`${as30.green("[SUCCESS]")} ${as30.green("Configuration is valid:")} ${as30.green(parseConfigResult.filePath)}`
|
|
98196
98344
|
).print();
|
|
98197
98345
|
}
|
|
98198
98346
|
const { config: config3 } = parseConfigResult;
|
|
@@ -98211,7 +98359,7 @@ var UpgradeCommand2 = () => {
|
|
|
98211
98359
|
const { upgradedConfig, legacyTheme, legacyFooter, legacyScript } = upgradedConfigResult.data;
|
|
98212
98360
|
if (legacyTheme) {
|
|
98213
98361
|
const writeUpgradedThemeResult = await n2.fromUnsafe(
|
|
98214
|
-
() =>
|
|
98362
|
+
() => fs17.writeFile(
|
|
98215
98363
|
path9.resolve(
|
|
98216
98364
|
path9.dirname(parseConfigResult.filePath),
|
|
98217
98365
|
config3.root ?? "./",
|
|
@@ -98227,7 +98375,7 @@ var UpgradeCommand2 = () => {
|
|
|
98227
98375
|
}
|
|
98228
98376
|
if (legacyFooter) {
|
|
98229
98377
|
const writeUpgradedFooterResult = await n2.fromUnsafe(
|
|
98230
|
-
() =>
|
|
98378
|
+
() => fs17.writeFile(
|
|
98231
98379
|
path9.resolve(
|
|
98232
98380
|
path9.dirname(parseConfigResult.filePath),
|
|
98233
98381
|
config3.root ?? "./",
|
|
@@ -98243,7 +98391,7 @@ var UpgradeCommand2 = () => {
|
|
|
98243
98391
|
}
|
|
98244
98392
|
if (legacyScript) {
|
|
98245
98393
|
const writeUpgradedScriptResult = await n2.fromUnsafe(
|
|
98246
|
-
() =>
|
|
98394
|
+
() => fs17.writeFile(
|
|
98247
98395
|
path9.resolve(
|
|
98248
98396
|
path9.dirname(parseConfigResult.filePath),
|
|
98249
98397
|
config3.root ?? "./",
|
|
@@ -98258,7 +98406,7 @@ var UpgradeCommand2 = () => {
|
|
|
98258
98406
|
}
|
|
98259
98407
|
}
|
|
98260
98408
|
const writeUpgradedConfigResult = await n2.fromUnsafe(
|
|
98261
|
-
() =>
|
|
98409
|
+
() => fs17.writeFile(
|
|
98262
98410
|
parseConfigResult.filePath,
|
|
98263
98411
|
JSON.stringify(upgradedConfig, null, 2)
|
|
98264
98412
|
),
|
|
@@ -98281,21 +98429,21 @@ var projectCommands = [
|
|
|
98281
98429
|
PublishCommand,
|
|
98282
98430
|
UpgradeCommand2
|
|
98283
98431
|
];
|
|
98284
|
-
var projectDomain = new
|
|
98432
|
+
var projectDomain = new Command36("project");
|
|
98285
98433
|
projectDomain.description("Manage scalar project");
|
|
98286
98434
|
projectCommands.forEach((command) => projectDomain.addCommand(command()));
|
|
98287
98435
|
var project_default = projectDomain;
|
|
98288
98436
|
|
|
98289
98437
|
// src/domains/readme/index.ts
|
|
98290
|
-
import { Command as
|
|
98438
|
+
import { Command as Command38 } from "commander";
|
|
98291
98439
|
|
|
98292
98440
|
// src/domains/readme/generate.ts
|
|
98293
98441
|
import { text as text8 } from "@clack/prompts";
|
|
98294
|
-
import
|
|
98295
|
-
import { Command as
|
|
98442
|
+
import as31 from "ansis";
|
|
98443
|
+
import { Command as Command37 } from "commander";
|
|
98296
98444
|
|
|
98297
98445
|
// src/helpers/documentation/index.ts
|
|
98298
|
-
import
|
|
98446
|
+
import fs18 from "node:fs/promises";
|
|
98299
98447
|
import path10 from "node:path";
|
|
98300
98448
|
var generateDocs = (command, depth = 0) => {
|
|
98301
98449
|
const documentation = [];
|
|
@@ -98324,13 +98472,13 @@ ${docs.content}${codeBlock}`);
|
|
|
98324
98472
|
};
|
|
98325
98473
|
var generateDocumentationFile = async (outputPath) => {
|
|
98326
98474
|
const commandDocumentation = generateCommandDocumentation(getProgram());
|
|
98327
|
-
const template = await
|
|
98475
|
+
const template = await fs18.readFile(
|
|
98328
98476
|
path10.join(import.meta.dirname, "template.md"),
|
|
98329
98477
|
{
|
|
98330
98478
|
encoding: "utf-8"
|
|
98331
98479
|
}
|
|
98332
98480
|
);
|
|
98333
|
-
await
|
|
98481
|
+
await fs18.writeFile(
|
|
98334
98482
|
outputPath,
|
|
98335
98483
|
template.replace("<COMMANDS>", commandDocumentation)
|
|
98336
98484
|
);
|
|
@@ -98338,7 +98486,7 @@ var generateDocumentationFile = async (outputPath) => {
|
|
|
98338
98486
|
|
|
98339
98487
|
// src/domains/readme/generate.ts
|
|
98340
98488
|
function GenerateReadmeCommand() {
|
|
98341
|
-
const cmd2 = new
|
|
98489
|
+
const cmd2 = new Command37("generate");
|
|
98342
98490
|
cmd2.description("Self generate documentation for the cli");
|
|
98343
98491
|
cmd2.option(
|
|
98344
98492
|
"-o, --output [file]",
|
|
@@ -98363,20 +98511,20 @@ function GenerateReadmeCommand() {
|
|
|
98363
98511
|
const { executionTimeMs } = await measureTime(
|
|
98364
98512
|
() => generateDocumentationFile(outputPath)
|
|
98365
98513
|
);
|
|
98366
|
-
output.info().line().title(
|
|
98367
|
-
`\u23F1\uFE0F Generation completed in ${
|
|
98514
|
+
output.info().line().title(as31.green("Documentation Generated Successfully! \u{1F389}")).line().message(`\u2728 Documentation has been generated at: ${as31.blue(outputPath)}`).line(
|
|
98515
|
+
`\u23F1\uFE0F Generation completed in ${as31.yellow(executionTimeMs.toFixed(2))}ms`
|
|
98368
98516
|
).line("").exit("success");
|
|
98369
98517
|
});
|
|
98370
98518
|
return cmd2;
|
|
98371
98519
|
}
|
|
98372
98520
|
|
|
98373
98521
|
// src/domains/readme/serve.ts
|
|
98374
|
-
import
|
|
98522
|
+
import fs19 from "node:fs/promises";
|
|
98375
98523
|
import path11 from "node:path";
|
|
98376
|
-
import
|
|
98524
|
+
import as32 from "ansis";
|
|
98377
98525
|
var fileExists3 = async (filePath) => {
|
|
98378
98526
|
try {
|
|
98379
|
-
await
|
|
98527
|
+
await fs19.access(filePath);
|
|
98380
98528
|
return true;
|
|
98381
98529
|
} catch {
|
|
98382
98530
|
return false;
|
|
@@ -98395,24 +98543,24 @@ function ServeReadmeCommand(cmd2) {
|
|
|
98395
98543
|
openBrowser(docsUrl);
|
|
98396
98544
|
output.info().message(
|
|
98397
98545
|
"Documentation is being opened in your default browser. If it does not open automatically, please visit the following URL:"
|
|
98398
|
-
).line(
|
|
98546
|
+
).line(as32.blue(docsUrl)).line().exit("success");
|
|
98399
98547
|
});
|
|
98400
98548
|
return cmd2;
|
|
98401
98549
|
}
|
|
98402
98550
|
|
|
98403
98551
|
// src/domains/readme/index.ts
|
|
98404
|
-
var readmeDomain = new
|
|
98552
|
+
var readmeDomain = new Command38("readme");
|
|
98405
98553
|
readmeDomain.addCommand(GenerateReadmeCommand());
|
|
98406
98554
|
ServeReadmeCommand(readmeDomain);
|
|
98407
98555
|
var readme_default = readmeDomain;
|
|
98408
98556
|
|
|
98409
98557
|
// src/domains/registry/index.ts
|
|
98410
|
-
import { Command as
|
|
98558
|
+
import { Command as Command43 } from "commander";
|
|
98411
98559
|
|
|
98412
98560
|
// src/domains/registry/publish/index.ts
|
|
98413
98561
|
import { text as text9 } from "@clack/prompts";
|
|
98414
|
-
import
|
|
98415
|
-
import { Command as
|
|
98562
|
+
import as33 from "ansis";
|
|
98563
|
+
import { Command as Command39 } from "commander";
|
|
98416
98564
|
import { bundle as bundle4 } from "@scalar/json-magic/bundle";
|
|
98417
98565
|
import { fetchUrls as fetchUrls4, readFiles as readFiles4 } from "@scalar/json-magic/bundle/plugins/node";
|
|
98418
98566
|
import { parseJsonOrYaml as parseJsonOrYaml2 } from "@scalar/oas-utils/helpers";
|
|
@@ -98425,7 +98573,7 @@ function apiDashboardUrl(uid) {
|
|
|
98425
98573
|
|
|
98426
98574
|
// src/domains/registry/publish/index.ts
|
|
98427
98575
|
var PublishCommand2 = () => {
|
|
98428
|
-
const cmd2 = new
|
|
98576
|
+
const cmd2 = new Command39("publish");
|
|
98429
98577
|
cmd2.description("Publish an OpenAPI document to the Scalar registry");
|
|
98430
98578
|
cmd2.argument("[file]", "OpenAPI file to upload");
|
|
98431
98579
|
cmd2.option(
|
|
@@ -98564,15 +98712,15 @@ var PublishCommand2 = () => {
|
|
|
98564
98712
|
const dashboardUrl = apiDashboardUrl(
|
|
98565
98713
|
matchingApi?.uid ?? publishRes.data.uid
|
|
98566
98714
|
);
|
|
98567
|
-
output.info().line(`${
|
|
98715
|
+
output.info().line(`${as33.green("\u279C")} ${as33.white.bold("View in dashboard:")}`).line(as33.cyan(dashboardUrl)).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry Preview:")}`).line(as33.cyan(registryUrl(api.url({ version: version3 })))).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry YAML:")}`).line(as33.cyan(registryUrl(api.url({ version: version3, format: "yaml" })))).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry JSON:")}`).line(as33.cyan(registryUrl(api.url({ version: version3, format: "json" })))).print();
|
|
98568
98716
|
});
|
|
98569
98717
|
return cmd2;
|
|
98570
98718
|
};
|
|
98571
98719
|
|
|
98572
98720
|
// src/domains/registry/delete/index.ts
|
|
98573
|
-
import { Command as
|
|
98721
|
+
import { Command as Command40 } from "commander";
|
|
98574
98722
|
var DeleteCommand = () => {
|
|
98575
|
-
const cmd2 = new
|
|
98723
|
+
const cmd2 = new Command40("delete");
|
|
98576
98724
|
cmd2.description("Delete a document from scalar registry");
|
|
98577
98725
|
cmd2.argument("[namespace]", "Team namespace");
|
|
98578
98726
|
cmd2.argument("[slug]", "Managed doc slug");
|
|
@@ -98589,10 +98737,10 @@ var DeleteCommand = () => {
|
|
|
98589
98737
|
};
|
|
98590
98738
|
|
|
98591
98739
|
// src/domains/registry/list/index.ts
|
|
98592
|
-
import
|
|
98593
|
-
import { Command as
|
|
98740
|
+
import as34 from "ansis";
|
|
98741
|
+
import { Command as Command41 } from "commander";
|
|
98594
98742
|
var ListCommand = () => {
|
|
98595
|
-
const cmd2 = new
|
|
98743
|
+
const cmd2 = new Command41("list");
|
|
98596
98744
|
cmd2.description("List all registry APIs for a team namespace");
|
|
98597
98745
|
cmd2.option("--namespace <namespace>", "Team namespace");
|
|
98598
98746
|
cmd2.action(async (args) => {
|
|
@@ -98628,17 +98776,17 @@ var ListCommand = () => {
|
|
|
98628
98776
|
output.info().table(
|
|
98629
98777
|
[
|
|
98630
98778
|
[
|
|
98631
|
-
|
|
98632
|
-
|
|
98633
|
-
|
|
98634
|
-
|
|
98779
|
+
as34.underline.bold("Slug"),
|
|
98780
|
+
as34.underline.bold("Title"),
|
|
98781
|
+
as34.underline.bold("Version"),
|
|
98782
|
+
as34.underline.bold("Privacy")
|
|
98635
98783
|
],
|
|
98636
98784
|
...listApisRes.data.map((api) => {
|
|
98637
98785
|
return [
|
|
98638
|
-
|
|
98639
|
-
|
|
98640
|
-
|
|
98641
|
-
api.isPrivate ?
|
|
98786
|
+
as34.blue(api.slug),
|
|
98787
|
+
as34.blue(api.title),
|
|
98788
|
+
as34.blue(api.version),
|
|
98789
|
+
api.isPrivate ? as34.green("Private") : as34.yellow("Public")
|
|
98642
98790
|
];
|
|
98643
98791
|
})
|
|
98644
98792
|
],
|
|
@@ -98650,10 +98798,10 @@ var ListCommand = () => {
|
|
|
98650
98798
|
|
|
98651
98799
|
// src/domains/registry/update/index.ts
|
|
98652
98800
|
import { text as text10 } from "@clack/prompts";
|
|
98653
|
-
import
|
|
98654
|
-
import { Command as
|
|
98801
|
+
import as35 from "ansis";
|
|
98802
|
+
import { Command as Command42 } from "commander";
|
|
98655
98803
|
var UpdateCommand = () => {
|
|
98656
|
-
const cmd2 = new
|
|
98804
|
+
const cmd2 = new Command42("update");
|
|
98657
98805
|
cmd2.description("Update document metadata on scalar registry");
|
|
98658
98806
|
cmd2.argument("[namespace]", "namespace of document you want to update");
|
|
98659
98807
|
cmd2.argument("[slug]", "slug of document you want to update");
|
|
@@ -98672,12 +98820,12 @@ var UpdateCommand = () => {
|
|
|
98672
98820
|
const shouldPrompt = ![title, description].some((it) => it !== void 0);
|
|
98673
98821
|
if (!titleValue && shouldPrompt) {
|
|
98674
98822
|
titleValue = await text10({
|
|
98675
|
-
message: `What is the new title of your document? ${
|
|
98823
|
+
message: `What is the new title of your document? ${as35.grey("(Optional)")}`
|
|
98676
98824
|
});
|
|
98677
98825
|
}
|
|
98678
98826
|
if (!descriptionValue && shouldPrompt) {
|
|
98679
98827
|
descriptionValue = await text10({
|
|
98680
|
-
message: `What is the new description of your document? ${
|
|
98828
|
+
message: `What is the new description of your document? ${as35.grey("(Optional)")}`
|
|
98681
98829
|
});
|
|
98682
98830
|
}
|
|
98683
98831
|
if (!titleValue && !descriptionValue) {
|
|
@@ -98706,17 +98854,17 @@ var registryCommands = [
|
|
|
98706
98854
|
DeleteCommand,
|
|
98707
98855
|
ListCommand
|
|
98708
98856
|
];
|
|
98709
|
-
var registryDomain = new
|
|
98857
|
+
var registryDomain = new Command43("registry");
|
|
98710
98858
|
registryDomain.description("Manage your scalar registry");
|
|
98711
98859
|
registryCommands.forEach((command) => registryDomain.addCommand(command()));
|
|
98712
98860
|
var registry_default = registryDomain;
|
|
98713
98861
|
|
|
98714
98862
|
// src/domains/team/index.ts
|
|
98715
|
-
import { Command as
|
|
98863
|
+
import { Command as Command46 } from "commander";
|
|
98716
98864
|
|
|
98717
98865
|
// src/domains/team/list/index.ts
|
|
98718
|
-
import
|
|
98719
|
-
import { Command as
|
|
98866
|
+
import as36 from "ansis";
|
|
98867
|
+
import { Command as Command44 } from "commander";
|
|
98720
98868
|
|
|
98721
98869
|
// src/domains/team/helpers.ts
|
|
98722
98870
|
var getUserTeams = async (client, email3) => {
|
|
@@ -98731,7 +98879,7 @@ var getUserTeams = async (client, email3) => {
|
|
|
98731
98879
|
|
|
98732
98880
|
// src/domains/team/list/index.ts
|
|
98733
98881
|
var ListCommand2 = () => {
|
|
98734
|
-
const cmd2 = new
|
|
98882
|
+
const cmd2 = new Command44("list");
|
|
98735
98883
|
cmd2.description("List all teams current user is part of");
|
|
98736
98884
|
cmd2.action(async () => {
|
|
98737
98885
|
const auth = await getAuthData();
|
|
@@ -98744,7 +98892,7 @@ var ListCommand2 = () => {
|
|
|
98744
98892
|
output.info().table(
|
|
98745
98893
|
teams.data.map((it) => {
|
|
98746
98894
|
const isCurrentTeam = it.teamUid === auth.teamUid;
|
|
98747
|
-
const color = isCurrentTeam ?
|
|
98895
|
+
const color = isCurrentTeam ? as36.green : as36.blue;
|
|
98748
98896
|
const teamName = isCurrentTeam ? `${it.teamName} (default)` : it.teamName;
|
|
98749
98897
|
return [isCurrentTeam ? color("\u279C") : " ", color(teamName)];
|
|
98750
98898
|
}),
|
|
@@ -98756,10 +98904,10 @@ var ListCommand2 = () => {
|
|
|
98756
98904
|
|
|
98757
98905
|
// src/domains/team/set/index.ts
|
|
98758
98906
|
import { select as select7 } from "@clack/prompts";
|
|
98759
|
-
import
|
|
98760
|
-
import { Command as
|
|
98907
|
+
import as37 from "ansis";
|
|
98908
|
+
import { Command as Command45 } from "commander";
|
|
98761
98909
|
var SetCommand = () => {
|
|
98762
|
-
const cmd2 = new
|
|
98910
|
+
const cmd2 = new Command45("set");
|
|
98763
98911
|
cmd2.description("Set current active team for the user");
|
|
98764
98912
|
cmd2.option("--team <team>", "Team uid");
|
|
98765
98913
|
cmd2.action(async ({ team }) => {
|
|
@@ -98791,7 +98939,7 @@ var SetCommand = () => {
|
|
|
98791
98939
|
}
|
|
98792
98940
|
await refreshToken(auth.refreshToken, teamValue);
|
|
98793
98941
|
output.info().message(
|
|
98794
|
-
`Operation ${
|
|
98942
|
+
`Operation ${as37.green("successful")}. Selected team: ${as37.cyan(selectedTeam.teamName)}`
|
|
98795
98943
|
).print();
|
|
98796
98944
|
});
|
|
98797
98945
|
return cmd2;
|
|
@@ -98799,18 +98947,18 @@ var SetCommand = () => {
|
|
|
98799
98947
|
|
|
98800
98948
|
// src/domains/team/index.ts
|
|
98801
98949
|
var teamCommands = [ListCommand2, SetCommand];
|
|
98802
|
-
var teamDomain = new
|
|
98950
|
+
var teamDomain = new Command46("team");
|
|
98803
98951
|
teamDomain.description("Manage user teams");
|
|
98804
98952
|
teamCommands.forEach((command) => teamDomain.addCommand(command()));
|
|
98805
98953
|
var team_default = teamDomain;
|
|
98806
98954
|
|
|
98807
98955
|
// src/domains/upgrade/index.ts
|
|
98808
98956
|
import { execSync } from "node:child_process";
|
|
98809
|
-
import
|
|
98810
|
-
import { Command as
|
|
98957
|
+
import as39 from "ansis";
|
|
98958
|
+
import { Command as Command47 } from "commander";
|
|
98811
98959
|
|
|
98812
98960
|
// src/helpers/upgrade.ts
|
|
98813
|
-
import
|
|
98961
|
+
import as38 from "ansis";
|
|
98814
98962
|
import semver3 from "semver";
|
|
98815
98963
|
var packageJsonSchema = external_exports.object({
|
|
98816
98964
|
version: external_exports.string()
|
|
@@ -98838,7 +98986,7 @@ async function getUpgradeInformation() {
|
|
|
98838
98986
|
}
|
|
98839
98987
|
async function checkUpgrade() {
|
|
98840
98988
|
const emitOutput = () => output.info().message(
|
|
98841
|
-
`New version available! Run ${
|
|
98989
|
+
`New version available! Run ${as38.cyan("`scalar upgrade`")} to install the latest version`
|
|
98842
98990
|
).print();
|
|
98843
98991
|
const now = performance.now();
|
|
98844
98992
|
const delay = 1 * 60 * 60 * 1e3;
|
|
@@ -98863,7 +99011,7 @@ async function checkUpgrade() {
|
|
|
98863
99011
|
}
|
|
98864
99012
|
|
|
98865
99013
|
// src/domains/upgrade/index.ts
|
|
98866
|
-
var cmd = new
|
|
99014
|
+
var cmd = new Command47("upgrade");
|
|
98867
99015
|
cmd.description("Upgrade current version of your cli");
|
|
98868
99016
|
cmd.action(async () => {
|
|
98869
99017
|
const upgradeStatus = await getUpgradeInformation();
|
|
@@ -98880,7 +99028,7 @@ cmd.action(async () => {
|
|
|
98880
99028
|
});
|
|
98881
99029
|
output.info().message("Successfully upgraded to the latest version").print();
|
|
98882
99030
|
} catch {
|
|
98883
|
-
output.error().title("Upgrade failed").message("Failed to upgrade the CLI. Please try running:").message(
|
|
99031
|
+
output.error().title("Upgrade failed").message("Failed to upgrade the CLI. Please try running:").message(as39.cyan(`npm install -g ${upgradeStatus.name}@latest`)).exit("error");
|
|
98884
99032
|
}
|
|
98885
99033
|
});
|
|
98886
99034
|
var upgrade_default = cmd;
|
|
@@ -98901,8 +99049,8 @@ var domains_default = domains;
|
|
|
98901
99049
|
|
|
98902
99050
|
// src/program.ts
|
|
98903
99051
|
var getProgram = () => {
|
|
98904
|
-
const program2 = new
|
|
98905
|
-
program2.enablePositionalOptions().name(Object.keys(bin)[0]).description("CLI to work with your OpenAPI files").version(version);
|
|
99052
|
+
const program2 = new Command48();
|
|
99053
|
+
program2.enablePositionalOptions().name(Object.keys(bin)[0]).description("CLI to work with your OpenAPI files").version(version, "-v, --version");
|
|
98906
99054
|
program2.showHelpAfterError();
|
|
98907
99055
|
domains_default.forEach((domain2) => program2.addCommand(domain2));
|
|
98908
99056
|
return program2;
|