lockdelta 0.1.1 → 0.1.2
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/action.yml +18 -2
- package/dist/{action.js → action.cjs} +594 -549
- package/dist/action.cjs.map +1 -0
- package/dist/cli.js +32 -17
- package/dist/cli.js.map +1 -1
- package/dist/index.js +32 -17
- package/dist/index.js.map +1 -1
- package/package.json +17 -13
- package/dist/action.js.map +0 -1
|
@@ -1,16 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
14
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
10
|
};
|
|
16
11
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -32,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
27
|
|
|
33
28
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
34
29
|
var require_identity = __commonJS({
|
|
35
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(
|
|
30
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
36
31
|
"use strict";
|
|
37
32
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
38
33
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -68,28 +63,28 @@ var require_identity = __commonJS({
|
|
|
68
63
|
return false;
|
|
69
64
|
}
|
|
70
65
|
var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
66
|
+
exports2.ALIAS = ALIAS;
|
|
67
|
+
exports2.DOC = DOC;
|
|
68
|
+
exports2.MAP = MAP;
|
|
69
|
+
exports2.NODE_TYPE = NODE_TYPE;
|
|
70
|
+
exports2.PAIR = PAIR;
|
|
71
|
+
exports2.SCALAR = SCALAR;
|
|
72
|
+
exports2.SEQ = SEQ;
|
|
73
|
+
exports2.hasAnchor = hasAnchor;
|
|
74
|
+
exports2.isAlias = isAlias;
|
|
75
|
+
exports2.isCollection = isCollection;
|
|
76
|
+
exports2.isDocument = isDocument;
|
|
77
|
+
exports2.isMap = isMap;
|
|
78
|
+
exports2.isNode = isNode;
|
|
79
|
+
exports2.isPair = isPair;
|
|
80
|
+
exports2.isScalar = isScalar;
|
|
81
|
+
exports2.isSeq = isSeq;
|
|
87
82
|
}
|
|
88
83
|
});
|
|
89
84
|
|
|
90
85
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js
|
|
91
86
|
var require_visit = __commonJS({
|
|
92
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(
|
|
87
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports2) {
|
|
93
88
|
"use strict";
|
|
94
89
|
var identity = require_identity();
|
|
95
90
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -240,14 +235,14 @@ var require_visit = __commonJS({
|
|
|
240
235
|
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
241
236
|
}
|
|
242
237
|
}
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
exports2.visit = visit;
|
|
239
|
+
exports2.visitAsync = visitAsync;
|
|
245
240
|
}
|
|
246
241
|
});
|
|
247
242
|
|
|
248
243
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
|
|
249
244
|
var require_directives = __commonJS({
|
|
250
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(
|
|
245
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
251
246
|
"use strict";
|
|
252
247
|
var identity = require_identity();
|
|
253
248
|
var visit = require_visit();
|
|
@@ -412,13 +407,13 @@ var require_directives = __commonJS({
|
|
|
412
407
|
};
|
|
413
408
|
Directives.defaultYaml = { explicit: false, version: "1.2" };
|
|
414
409
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
415
|
-
|
|
410
|
+
exports2.Directives = Directives;
|
|
416
411
|
}
|
|
417
412
|
});
|
|
418
413
|
|
|
419
414
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
|
|
420
415
|
var require_anchors = __commonJS({
|
|
421
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(
|
|
416
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
422
417
|
"use strict";
|
|
423
418
|
var identity = require_identity();
|
|
424
419
|
var visit = require_visit();
|
|
@@ -479,16 +474,16 @@ var require_anchors = __commonJS({
|
|
|
479
474
|
sourceObjects
|
|
480
475
|
};
|
|
481
476
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
477
|
+
exports2.anchorIsValid = anchorIsValid;
|
|
478
|
+
exports2.anchorNames = anchorNames;
|
|
479
|
+
exports2.createNodeAnchors = createNodeAnchors;
|
|
480
|
+
exports2.findNewAnchor = findNewAnchor;
|
|
486
481
|
}
|
|
487
482
|
});
|
|
488
483
|
|
|
489
484
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
490
485
|
var require_applyReviver = __commonJS({
|
|
491
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(
|
|
486
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
492
487
|
"use strict";
|
|
493
488
|
function applyReviver(reviver, obj, key, val) {
|
|
494
489
|
if (val && typeof val === "object") {
|
|
@@ -532,13 +527,13 @@ var require_applyReviver = __commonJS({
|
|
|
532
527
|
}
|
|
533
528
|
return reviver.call(obj, key, val);
|
|
534
529
|
}
|
|
535
|
-
|
|
530
|
+
exports2.applyReviver = applyReviver;
|
|
536
531
|
}
|
|
537
532
|
});
|
|
538
533
|
|
|
539
534
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
|
|
540
535
|
var require_toJS = __commonJS({
|
|
541
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(
|
|
536
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
542
537
|
"use strict";
|
|
543
538
|
var identity = require_identity();
|
|
544
539
|
function toJS(value, arg, ctx) {
|
|
@@ -562,13 +557,13 @@ var require_toJS = __commonJS({
|
|
|
562
557
|
return Number(value);
|
|
563
558
|
return value;
|
|
564
559
|
}
|
|
565
|
-
|
|
560
|
+
exports2.toJS = toJS;
|
|
566
561
|
}
|
|
567
562
|
});
|
|
568
563
|
|
|
569
564
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
|
|
570
565
|
var require_Node = __commonJS({
|
|
571
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(
|
|
566
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
572
567
|
"use strict";
|
|
573
568
|
var applyReviver = require_applyReviver();
|
|
574
569
|
var identity = require_identity();
|
|
@@ -603,13 +598,13 @@ var require_Node = __commonJS({
|
|
|
603
598
|
return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
|
|
604
599
|
}
|
|
605
600
|
};
|
|
606
|
-
|
|
601
|
+
exports2.NodeBase = NodeBase;
|
|
607
602
|
}
|
|
608
603
|
});
|
|
609
604
|
|
|
610
605
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
|
|
611
606
|
var require_Alias = __commonJS({
|
|
612
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(
|
|
607
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
613
608
|
"use strict";
|
|
614
609
|
var anchors = require_anchors();
|
|
615
610
|
var visit = require_visit();
|
|
@@ -719,13 +714,13 @@ var require_Alias = __commonJS({
|
|
|
719
714
|
}
|
|
720
715
|
return 1;
|
|
721
716
|
}
|
|
722
|
-
|
|
717
|
+
exports2.Alias = Alias;
|
|
723
718
|
}
|
|
724
719
|
});
|
|
725
720
|
|
|
726
721
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
727
722
|
var require_Scalar = __commonJS({
|
|
728
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(
|
|
723
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
729
724
|
"use strict";
|
|
730
725
|
var identity = require_identity();
|
|
731
726
|
var Node = require_Node();
|
|
@@ -748,14 +743,14 @@ var require_Scalar = __commonJS({
|
|
|
748
743
|
Scalar.PLAIN = "PLAIN";
|
|
749
744
|
Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
750
745
|
Scalar.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
751
|
-
|
|
752
|
-
|
|
746
|
+
exports2.Scalar = Scalar;
|
|
747
|
+
exports2.isScalarValue = isScalarValue;
|
|
753
748
|
}
|
|
754
749
|
});
|
|
755
750
|
|
|
756
751
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
|
|
757
752
|
var require_createNode = __commonJS({
|
|
758
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(
|
|
753
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
759
754
|
"use strict";
|
|
760
755
|
var Alias = require_Alias();
|
|
761
756
|
var identity = require_identity();
|
|
@@ -824,13 +819,13 @@ var require_createNode = __commonJS({
|
|
|
824
819
|
ref.node = node;
|
|
825
820
|
return node;
|
|
826
821
|
}
|
|
827
|
-
|
|
822
|
+
exports2.createNode = createNode;
|
|
828
823
|
}
|
|
829
824
|
});
|
|
830
825
|
|
|
831
826
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
|
|
832
827
|
var require_Collection = __commonJS({
|
|
833
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(
|
|
828
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
834
829
|
"use strict";
|
|
835
830
|
var createNode = require_createNode();
|
|
836
831
|
var identity = require_identity();
|
|
@@ -965,15 +960,15 @@ var require_Collection = __commonJS({
|
|
|
965
960
|
}
|
|
966
961
|
}
|
|
967
962
|
};
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
963
|
+
exports2.Collection = Collection;
|
|
964
|
+
exports2.collectionFromPath = collectionFromPath;
|
|
965
|
+
exports2.isEmptyPath = isEmptyPath;
|
|
971
966
|
}
|
|
972
967
|
});
|
|
973
968
|
|
|
974
969
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
975
970
|
var require_stringifyComment = __commonJS({
|
|
976
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(
|
|
971
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
977
972
|
"use strict";
|
|
978
973
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
979
974
|
function indentComment(comment, indent) {
|
|
@@ -982,15 +977,15 @@ var require_stringifyComment = __commonJS({
|
|
|
982
977
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
983
978
|
}
|
|
984
979
|
var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
980
|
+
exports2.indentComment = indentComment;
|
|
981
|
+
exports2.lineComment = lineComment;
|
|
982
|
+
exports2.stringifyComment = stringifyComment;
|
|
988
983
|
}
|
|
989
984
|
});
|
|
990
985
|
|
|
991
986
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
992
987
|
var require_foldFlowLines = __commonJS({
|
|
993
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(
|
|
988
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
994
989
|
"use strict";
|
|
995
990
|
var FOLD_FLOW = "flow";
|
|
996
991
|
var FOLD_BLOCK = "block";
|
|
@@ -1117,16 +1112,16 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1117
1112
|
}
|
|
1118
1113
|
return end;
|
|
1119
1114
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1115
|
+
exports2.FOLD_BLOCK = FOLD_BLOCK;
|
|
1116
|
+
exports2.FOLD_FLOW = FOLD_FLOW;
|
|
1117
|
+
exports2.FOLD_QUOTED = FOLD_QUOTED;
|
|
1118
|
+
exports2.foldFlowLines = foldFlowLines;
|
|
1124
1119
|
}
|
|
1125
1120
|
});
|
|
1126
1121
|
|
|
1127
1122
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1128
1123
|
var require_stringifyString = __commonJS({
|
|
1129
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(
|
|
1124
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1130
1125
|
"use strict";
|
|
1131
1126
|
var Scalar = require_Scalar();
|
|
1132
1127
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1403,13 +1398,13 @@ ${indent}`);
|
|
|
1403
1398
|
}
|
|
1404
1399
|
return res;
|
|
1405
1400
|
}
|
|
1406
|
-
|
|
1401
|
+
exports2.stringifyString = stringifyString;
|
|
1407
1402
|
}
|
|
1408
1403
|
});
|
|
1409
1404
|
|
|
1410
1405
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1411
1406
|
var require_stringify = __commonJS({
|
|
1412
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(
|
|
1407
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1413
1408
|
"use strict";
|
|
1414
1409
|
var anchors = require_anchors();
|
|
1415
1410
|
var identity = require_identity();
|
|
@@ -1526,14 +1521,14 @@ var require_stringify = __commonJS({
|
|
|
1526
1521
|
return identity.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
|
|
1527
1522
|
${ctx.indent}${str}`;
|
|
1528
1523
|
}
|
|
1529
|
-
|
|
1530
|
-
|
|
1524
|
+
exports2.createStringifyContext = createStringifyContext;
|
|
1525
|
+
exports2.stringify = stringify2;
|
|
1531
1526
|
}
|
|
1532
1527
|
});
|
|
1533
1528
|
|
|
1534
1529
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1535
1530
|
var require_stringifyPair = __commonJS({
|
|
1536
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(
|
|
1531
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1537
1532
|
"use strict";
|
|
1538
1533
|
var identity = require_identity();
|
|
1539
1534
|
var Scalar = require_Scalar();
|
|
@@ -1660,15 +1655,15 @@ ${ctx.indent}`;
|
|
|
1660
1655
|
}
|
|
1661
1656
|
return str;
|
|
1662
1657
|
}
|
|
1663
|
-
|
|
1658
|
+
exports2.stringifyPair = stringifyPair;
|
|
1664
1659
|
}
|
|
1665
1660
|
});
|
|
1666
1661
|
|
|
1667
1662
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js
|
|
1668
1663
|
var require_log = __commonJS({
|
|
1669
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(
|
|
1664
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports2) {
|
|
1670
1665
|
"use strict";
|
|
1671
|
-
var node_process =
|
|
1666
|
+
var node_process = require("process");
|
|
1672
1667
|
function debug(logLevel, ...messages) {
|
|
1673
1668
|
if (logLevel === "debug")
|
|
1674
1669
|
console.log(...messages);
|
|
@@ -1681,14 +1676,14 @@ var require_log = __commonJS({
|
|
|
1681
1676
|
console.warn(warning);
|
|
1682
1677
|
}
|
|
1683
1678
|
}
|
|
1684
|
-
|
|
1685
|
-
|
|
1679
|
+
exports2.debug = debug;
|
|
1680
|
+
exports2.warn = warn;
|
|
1686
1681
|
}
|
|
1687
1682
|
});
|
|
1688
1683
|
|
|
1689
1684
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1690
1685
|
var require_merge = __commonJS({
|
|
1691
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(
|
|
1686
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
1692
1687
|
"use strict";
|
|
1693
1688
|
var identity = require_identity();
|
|
1694
1689
|
var Scalar = require_Scalar();
|
|
@@ -1740,15 +1735,15 @@ var require_merge = __commonJS({
|
|
|
1740
1735
|
function resolveAliasValue(ctx, value) {
|
|
1741
1736
|
return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
1742
1737
|
}
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1738
|
+
exports2.addMergeToJSMap = addMergeToJSMap;
|
|
1739
|
+
exports2.isMergeKey = isMergeKey;
|
|
1740
|
+
exports2.merge = merge;
|
|
1746
1741
|
}
|
|
1747
1742
|
});
|
|
1748
1743
|
|
|
1749
1744
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1750
1745
|
var require_addPairToJSMap = __commonJS({
|
|
1751
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(
|
|
1746
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1752
1747
|
"use strict";
|
|
1753
1748
|
var log = require_log();
|
|
1754
1749
|
var merge = require_merge();
|
|
@@ -1806,13 +1801,13 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1806
1801
|
}
|
|
1807
1802
|
return JSON.stringify(jsKey);
|
|
1808
1803
|
}
|
|
1809
|
-
|
|
1804
|
+
exports2.addPairToJSMap = addPairToJSMap;
|
|
1810
1805
|
}
|
|
1811
1806
|
});
|
|
1812
1807
|
|
|
1813
1808
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
|
|
1814
1809
|
var require_Pair = __commonJS({
|
|
1815
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(
|
|
1810
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
1816
1811
|
"use strict";
|
|
1817
1812
|
var createNode = require_createNode();
|
|
1818
1813
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1845,14 +1840,14 @@ var require_Pair = __commonJS({
|
|
|
1845
1840
|
return ctx?.doc ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
|
|
1846
1841
|
}
|
|
1847
1842
|
};
|
|
1848
|
-
|
|
1849
|
-
|
|
1843
|
+
exports2.Pair = Pair;
|
|
1844
|
+
exports2.createPair = createPair;
|
|
1850
1845
|
}
|
|
1851
1846
|
});
|
|
1852
1847
|
|
|
1853
1848
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1854
1849
|
var require_stringifyCollection = __commonJS({
|
|
1855
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(
|
|
1850
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
1856
1851
|
"use strict";
|
|
1857
1852
|
var identity = require_identity();
|
|
1858
1853
|
var stringify2 = require_stringify();
|
|
@@ -1997,13 +1992,13 @@ ${indent}${end}`;
|
|
|
1997
1992
|
lines.push(ic.trimStart());
|
|
1998
1993
|
}
|
|
1999
1994
|
}
|
|
2000
|
-
|
|
1995
|
+
exports2.stringifyCollection = stringifyCollection;
|
|
2001
1996
|
}
|
|
2002
1997
|
});
|
|
2003
1998
|
|
|
2004
1999
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2005
2000
|
var require_YAMLMap = __commonJS({
|
|
2006
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(
|
|
2001
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
2007
2002
|
"use strict";
|
|
2008
2003
|
var stringifyCollection = require_stringifyCollection();
|
|
2009
2004
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2140,14 +2135,14 @@ var require_YAMLMap = __commonJS({
|
|
|
2140
2135
|
});
|
|
2141
2136
|
}
|
|
2142
2137
|
};
|
|
2143
|
-
|
|
2144
|
-
|
|
2138
|
+
exports2.YAMLMap = YAMLMap;
|
|
2139
|
+
exports2.findPair = findPair;
|
|
2145
2140
|
}
|
|
2146
2141
|
});
|
|
2147
2142
|
|
|
2148
2143
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
|
|
2149
2144
|
var require_map = __commonJS({
|
|
2150
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(
|
|
2145
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2151
2146
|
"use strict";
|
|
2152
2147
|
var identity = require_identity();
|
|
2153
2148
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2163,13 +2158,13 @@ var require_map = __commonJS({
|
|
|
2163
2158
|
},
|
|
2164
2159
|
createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
|
|
2165
2160
|
};
|
|
2166
|
-
|
|
2161
|
+
exports2.map = map;
|
|
2167
2162
|
}
|
|
2168
2163
|
});
|
|
2169
2164
|
|
|
2170
2165
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2171
2166
|
var require_YAMLSeq = __commonJS({
|
|
2172
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(
|
|
2167
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2173
2168
|
"use strict";
|
|
2174
2169
|
var createNode = require_createNode();
|
|
2175
2170
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2279,13 +2274,13 @@ var require_YAMLSeq = __commonJS({
|
|
|
2279
2274
|
idx = Number(idx);
|
|
2280
2275
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
2281
2276
|
}
|
|
2282
|
-
|
|
2277
|
+
exports2.YAMLSeq = YAMLSeq;
|
|
2283
2278
|
}
|
|
2284
2279
|
});
|
|
2285
2280
|
|
|
2286
2281
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
|
|
2287
2282
|
var require_seq = __commonJS({
|
|
2288
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(
|
|
2283
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2289
2284
|
"use strict";
|
|
2290
2285
|
var identity = require_identity();
|
|
2291
2286
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2301,13 +2296,13 @@ var require_seq = __commonJS({
|
|
|
2301
2296
|
},
|
|
2302
2297
|
createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
|
|
2303
2298
|
};
|
|
2304
|
-
|
|
2299
|
+
exports2.seq = seq;
|
|
2305
2300
|
}
|
|
2306
2301
|
});
|
|
2307
2302
|
|
|
2308
2303
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
|
|
2309
2304
|
var require_string = __commonJS({
|
|
2310
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(
|
|
2305
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2311
2306
|
"use strict";
|
|
2312
2307
|
var stringifyString = require_stringifyString();
|
|
2313
2308
|
var string = {
|
|
@@ -2320,13 +2315,13 @@ var require_string = __commonJS({
|
|
|
2320
2315
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
2321
2316
|
}
|
|
2322
2317
|
};
|
|
2323
|
-
|
|
2318
|
+
exports2.string = string;
|
|
2324
2319
|
}
|
|
2325
2320
|
});
|
|
2326
2321
|
|
|
2327
2322
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
|
|
2328
2323
|
var require_null = __commonJS({
|
|
2329
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(
|
|
2324
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2330
2325
|
"use strict";
|
|
2331
2326
|
var Scalar = require_Scalar();
|
|
2332
2327
|
var nullTag = {
|
|
@@ -2338,13 +2333,13 @@ var require_null = __commonJS({
|
|
|
2338
2333
|
resolve: () => new Scalar.Scalar(null),
|
|
2339
2334
|
stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
2340
2335
|
};
|
|
2341
|
-
|
|
2336
|
+
exports2.nullTag = nullTag;
|
|
2342
2337
|
}
|
|
2343
2338
|
});
|
|
2344
2339
|
|
|
2345
2340
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
|
|
2346
2341
|
var require_bool = __commonJS({
|
|
2347
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(
|
|
2342
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2348
2343
|
"use strict";
|
|
2349
2344
|
var Scalar = require_Scalar();
|
|
2350
2345
|
var boolTag = {
|
|
@@ -2362,13 +2357,13 @@ var require_bool = __commonJS({
|
|
|
2362
2357
|
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
2363
2358
|
}
|
|
2364
2359
|
};
|
|
2365
|
-
|
|
2360
|
+
exports2.boolTag = boolTag;
|
|
2366
2361
|
}
|
|
2367
2362
|
});
|
|
2368
2363
|
|
|
2369
2364
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2370
2365
|
var require_stringifyNumber = __commonJS({
|
|
2371
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(
|
|
2366
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2372
2367
|
"use strict";
|
|
2373
2368
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2374
2369
|
if (typeof value === "bigint")
|
|
@@ -2389,13 +2384,13 @@ var require_stringifyNumber = __commonJS({
|
|
|
2389
2384
|
}
|
|
2390
2385
|
return n;
|
|
2391
2386
|
}
|
|
2392
|
-
|
|
2387
|
+
exports2.stringifyNumber = stringifyNumber;
|
|
2393
2388
|
}
|
|
2394
2389
|
});
|
|
2395
2390
|
|
|
2396
2391
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
|
|
2397
2392
|
var require_float = __commonJS({
|
|
2398
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(
|
|
2393
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2399
2394
|
"use strict";
|
|
2400
2395
|
var Scalar = require_Scalar();
|
|
2401
2396
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2433,15 +2428,15 @@ var require_float = __commonJS({
|
|
|
2433
2428
|
},
|
|
2434
2429
|
stringify: stringifyNumber.stringifyNumber
|
|
2435
2430
|
};
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2431
|
+
exports2.float = float;
|
|
2432
|
+
exports2.floatExp = floatExp;
|
|
2433
|
+
exports2.floatNaN = floatNaN;
|
|
2439
2434
|
}
|
|
2440
2435
|
});
|
|
2441
2436
|
|
|
2442
2437
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
|
|
2443
2438
|
var require_int = __commonJS({
|
|
2444
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(
|
|
2439
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2445
2440
|
"use strict";
|
|
2446
2441
|
var stringifyNumber = require_stringifyNumber();
|
|
2447
2442
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2478,15 +2473,15 @@ var require_int = __commonJS({
|
|
|
2478
2473
|
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
2479
2474
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
2480
2475
|
};
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2476
|
+
exports2.int = int;
|
|
2477
|
+
exports2.intHex = intHex;
|
|
2478
|
+
exports2.intOct = intOct;
|
|
2484
2479
|
}
|
|
2485
2480
|
});
|
|
2486
2481
|
|
|
2487
2482
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2488
2483
|
var require_schema = __commonJS({
|
|
2489
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(
|
|
2484
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2490
2485
|
"use strict";
|
|
2491
2486
|
var map = require_map();
|
|
2492
2487
|
var _null = require_null();
|
|
@@ -2508,13 +2503,13 @@ var require_schema = __commonJS({
|
|
|
2508
2503
|
float.floatExp,
|
|
2509
2504
|
float.float
|
|
2510
2505
|
];
|
|
2511
|
-
|
|
2506
|
+
exports2.schema = schema;
|
|
2512
2507
|
}
|
|
2513
2508
|
});
|
|
2514
2509
|
|
|
2515
2510
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2516
2511
|
var require_schema2 = __commonJS({
|
|
2517
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(
|
|
2512
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2518
2513
|
"use strict";
|
|
2519
2514
|
var Scalar = require_Scalar();
|
|
2520
2515
|
var map = require_map();
|
|
@@ -2575,15 +2570,15 @@ var require_schema2 = __commonJS({
|
|
|
2575
2570
|
}
|
|
2576
2571
|
};
|
|
2577
2572
|
var schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
|
|
2578
|
-
|
|
2573
|
+
exports2.schema = schema;
|
|
2579
2574
|
}
|
|
2580
2575
|
});
|
|
2581
2576
|
|
|
2582
2577
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2583
2578
|
var require_binary = __commonJS({
|
|
2584
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(
|
|
2579
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2585
2580
|
"use strict";
|
|
2586
|
-
var node_buffer =
|
|
2581
|
+
var node_buffer = require("buffer");
|
|
2587
2582
|
var Scalar = require_Scalar();
|
|
2588
2583
|
var stringifyString = require_stringifyString();
|
|
2589
2584
|
var binary = {
|
|
@@ -2641,13 +2636,13 @@ var require_binary = __commonJS({
|
|
|
2641
2636
|
return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
|
|
2642
2637
|
}
|
|
2643
2638
|
};
|
|
2644
|
-
|
|
2639
|
+
exports2.binary = binary;
|
|
2645
2640
|
}
|
|
2646
2641
|
});
|
|
2647
2642
|
|
|
2648
2643
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2649
2644
|
var require_pairs = __commonJS({
|
|
2650
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(
|
|
2645
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2651
2646
|
"use strict";
|
|
2652
2647
|
var identity = require_identity();
|
|
2653
2648
|
var Pair = require_Pair();
|
|
@@ -2717,15 +2712,15 @@ ${cn.comment}` : item.comment;
|
|
|
2717
2712
|
resolve: resolvePairs,
|
|
2718
2713
|
createNode: createPairs
|
|
2719
2714
|
};
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2715
|
+
exports2.createPairs = createPairs;
|
|
2716
|
+
exports2.pairs = pairs;
|
|
2717
|
+
exports2.resolvePairs = resolvePairs;
|
|
2723
2718
|
}
|
|
2724
2719
|
});
|
|
2725
2720
|
|
|
2726
2721
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2727
2722
|
var require_omap = __commonJS({
|
|
2728
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(
|
|
2723
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2729
2724
|
"use strict";
|
|
2730
2725
|
var identity = require_identity();
|
|
2731
2726
|
var toJS = require_toJS();
|
|
@@ -2796,14 +2791,14 @@ var require_omap = __commonJS({
|
|
|
2796
2791
|
},
|
|
2797
2792
|
createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
|
|
2798
2793
|
};
|
|
2799
|
-
|
|
2800
|
-
|
|
2794
|
+
exports2.YAMLOMap = YAMLOMap;
|
|
2795
|
+
exports2.omap = omap;
|
|
2801
2796
|
}
|
|
2802
2797
|
});
|
|
2803
2798
|
|
|
2804
2799
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2805
2800
|
var require_bool2 = __commonJS({
|
|
2806
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(
|
|
2801
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
2807
2802
|
"use strict";
|
|
2808
2803
|
var Scalar = require_Scalar();
|
|
2809
2804
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2828,14 +2823,14 @@ var require_bool2 = __commonJS({
|
|
|
2828
2823
|
resolve: () => new Scalar.Scalar(false),
|
|
2829
2824
|
stringify: boolStringify
|
|
2830
2825
|
};
|
|
2831
|
-
|
|
2832
|
-
|
|
2826
|
+
exports2.falseTag = falseTag;
|
|
2827
|
+
exports2.trueTag = trueTag;
|
|
2833
2828
|
}
|
|
2834
2829
|
});
|
|
2835
2830
|
|
|
2836
2831
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2837
2832
|
var require_float2 = __commonJS({
|
|
2838
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(
|
|
2833
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
2839
2834
|
"use strict";
|
|
2840
2835
|
var Scalar = require_Scalar();
|
|
2841
2836
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2876,15 +2871,15 @@ var require_float2 = __commonJS({
|
|
|
2876
2871
|
},
|
|
2877
2872
|
stringify: stringifyNumber.stringifyNumber
|
|
2878
2873
|
};
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2874
|
+
exports2.float = float;
|
|
2875
|
+
exports2.floatExp = floatExp;
|
|
2876
|
+
exports2.floatNaN = floatNaN;
|
|
2882
2877
|
}
|
|
2883
2878
|
});
|
|
2884
2879
|
|
|
2885
2880
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2886
2881
|
var require_int2 = __commonJS({
|
|
2887
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(
|
|
2882
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
2888
2883
|
"use strict";
|
|
2889
2884
|
var stringifyNumber = require_stringifyNumber();
|
|
2890
2885
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2954,16 +2949,16 @@ var require_int2 = __commonJS({
|
|
|
2954
2949
|
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
2955
2950
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
2956
2951
|
};
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2952
|
+
exports2.int = int;
|
|
2953
|
+
exports2.intBin = intBin;
|
|
2954
|
+
exports2.intHex = intHex;
|
|
2955
|
+
exports2.intOct = intOct;
|
|
2961
2956
|
}
|
|
2962
2957
|
});
|
|
2963
2958
|
|
|
2964
2959
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2965
2960
|
var require_set = __commonJS({
|
|
2966
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(
|
|
2961
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
2967
2962
|
"use strict";
|
|
2968
2963
|
var identity = require_identity();
|
|
2969
2964
|
var Pair = require_Pair();
|
|
@@ -3045,14 +3040,14 @@ var require_set = __commonJS({
|
|
|
3045
3040
|
return map;
|
|
3046
3041
|
}
|
|
3047
3042
|
};
|
|
3048
|
-
|
|
3049
|
-
|
|
3043
|
+
exports2.YAMLSet = YAMLSet;
|
|
3044
|
+
exports2.set = set;
|
|
3050
3045
|
}
|
|
3051
3046
|
});
|
|
3052
3047
|
|
|
3053
3048
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3054
3049
|
var require_timestamp = __commonJS({
|
|
3055
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(
|
|
3050
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3056
3051
|
"use strict";
|
|
3057
3052
|
var stringifyNumber = require_stringifyNumber();
|
|
3058
3053
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3132,15 +3127,15 @@ var require_timestamp = __commonJS({
|
|
|
3132
3127
|
},
|
|
3133
3128
|
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
3134
3129
|
};
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3130
|
+
exports2.floatTime = floatTime;
|
|
3131
|
+
exports2.intTime = intTime;
|
|
3132
|
+
exports2.timestamp = timestamp;
|
|
3138
3133
|
}
|
|
3139
3134
|
});
|
|
3140
3135
|
|
|
3141
3136
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3142
3137
|
var require_schema3 = __commonJS({
|
|
3143
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(
|
|
3138
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3144
3139
|
"use strict";
|
|
3145
3140
|
var map = require_map();
|
|
3146
3141
|
var _null = require_null();
|
|
@@ -3178,13 +3173,13 @@ var require_schema3 = __commonJS({
|
|
|
3178
3173
|
timestamp.floatTime,
|
|
3179
3174
|
timestamp.timestamp
|
|
3180
3175
|
];
|
|
3181
|
-
|
|
3176
|
+
exports2.schema = schema;
|
|
3182
3177
|
}
|
|
3183
3178
|
});
|
|
3184
3179
|
|
|
3185
3180
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
|
|
3186
3181
|
var require_tags = __commonJS({
|
|
3187
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(
|
|
3182
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3188
3183
|
"use strict";
|
|
3189
3184
|
var map = require_map();
|
|
3190
3185
|
var _null = require_null();
|
|
@@ -3271,14 +3266,14 @@ var require_tags = __commonJS({
|
|
|
3271
3266
|
return tags2;
|
|
3272
3267
|
}, []);
|
|
3273
3268
|
}
|
|
3274
|
-
|
|
3275
|
-
|
|
3269
|
+
exports2.coreKnownTags = coreKnownTags;
|
|
3270
|
+
exports2.getTags = getTags;
|
|
3276
3271
|
}
|
|
3277
3272
|
});
|
|
3278
3273
|
|
|
3279
3274
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
|
|
3280
3275
|
var require_Schema = __commonJS({
|
|
3281
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(
|
|
3276
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3282
3277
|
"use strict";
|
|
3283
3278
|
var identity = require_identity();
|
|
3284
3279
|
var map = require_map();
|
|
@@ -3304,13 +3299,13 @@ var require_Schema = __commonJS({
|
|
|
3304
3299
|
return copy;
|
|
3305
3300
|
}
|
|
3306
3301
|
};
|
|
3307
|
-
|
|
3302
|
+
exports2.Schema = Schema;
|
|
3308
3303
|
}
|
|
3309
3304
|
});
|
|
3310
3305
|
|
|
3311
3306
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3312
3307
|
var require_stringifyDocument = __commonJS({
|
|
3313
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(
|
|
3308
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3314
3309
|
"use strict";
|
|
3315
3310
|
var identity = require_identity();
|
|
3316
3311
|
var stringify2 = require_stringify();
|
|
@@ -3384,13 +3379,13 @@ var require_stringifyDocument = __commonJS({
|
|
|
3384
3379
|
}
|
|
3385
3380
|
return lines.join("\n") + "\n";
|
|
3386
3381
|
}
|
|
3387
|
-
|
|
3382
|
+
exports2.stringifyDocument = stringifyDocument;
|
|
3388
3383
|
}
|
|
3389
3384
|
});
|
|
3390
3385
|
|
|
3391
3386
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
|
|
3392
3387
|
var require_Document = __commonJS({
|
|
3393
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(
|
|
3388
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3394
3389
|
"use strict";
|
|
3395
3390
|
var Alias = require_Alias();
|
|
3396
3391
|
var Collection = require_Collection();
|
|
@@ -3693,13 +3688,13 @@ var require_Document = __commonJS({
|
|
|
3693
3688
|
return true;
|
|
3694
3689
|
throw new Error("Expected a YAML collection as document contents");
|
|
3695
3690
|
}
|
|
3696
|
-
|
|
3691
|
+
exports2.Document = Document;
|
|
3697
3692
|
}
|
|
3698
3693
|
});
|
|
3699
3694
|
|
|
3700
3695
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js
|
|
3701
3696
|
var require_errors = __commonJS({
|
|
3702
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(
|
|
3697
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3703
3698
|
"use strict";
|
|
3704
3699
|
var YAMLError = class extends Error {
|
|
3705
3700
|
constructor(name, pos, code, message) {
|
|
@@ -3755,16 +3750,16 @@ ${pointer}
|
|
|
3755
3750
|
`;
|
|
3756
3751
|
}
|
|
3757
3752
|
};
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3753
|
+
exports2.YAMLError = YAMLError;
|
|
3754
|
+
exports2.YAMLParseError = YAMLParseError;
|
|
3755
|
+
exports2.YAMLWarning = YAMLWarning;
|
|
3756
|
+
exports2.prettifyError = prettifyError;
|
|
3762
3757
|
}
|
|
3763
3758
|
});
|
|
3764
3759
|
|
|
3765
3760
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3766
3761
|
var require_resolve_props = __commonJS({
|
|
3767
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(
|
|
3762
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3768
3763
|
"use strict";
|
|
3769
3764
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3770
3765
|
let spaceBefore = false;
|
|
@@ -3781,29 +3776,29 @@ var require_resolve_props = __commonJS({
|
|
|
3781
3776
|
let comma = null;
|
|
3782
3777
|
let found = null;
|
|
3783
3778
|
let start = null;
|
|
3784
|
-
for (const
|
|
3779
|
+
for (const token of tokens) {
|
|
3785
3780
|
if (reqSpace) {
|
|
3786
|
-
if (
|
|
3787
|
-
onError(
|
|
3781
|
+
if (token.type !== "space" && token.type !== "newline" && token.type !== "comma")
|
|
3782
|
+
onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
|
|
3788
3783
|
reqSpace = false;
|
|
3789
3784
|
}
|
|
3790
3785
|
if (tab) {
|
|
3791
|
-
if (atNewline &&
|
|
3786
|
+
if (atNewline && token.type !== "comment" && token.type !== "newline") {
|
|
3792
3787
|
onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
|
|
3793
3788
|
}
|
|
3794
3789
|
tab = null;
|
|
3795
3790
|
}
|
|
3796
|
-
switch (
|
|
3791
|
+
switch (token.type) {
|
|
3797
3792
|
case "space":
|
|
3798
|
-
if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") &&
|
|
3799
|
-
tab =
|
|
3793
|
+
if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) {
|
|
3794
|
+
tab = token;
|
|
3800
3795
|
}
|
|
3801
3796
|
hasSpace = true;
|
|
3802
3797
|
break;
|
|
3803
3798
|
case "comment": {
|
|
3804
3799
|
if (!hasSpace)
|
|
3805
|
-
onError(
|
|
3806
|
-
const cb =
|
|
3800
|
+
onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
3801
|
+
const cb = token.source.substring(1) || " ";
|
|
3807
3802
|
if (!comment)
|
|
3808
3803
|
comment = cb;
|
|
3809
3804
|
else
|
|
@@ -3815,33 +3810,33 @@ var require_resolve_props = __commonJS({
|
|
|
3815
3810
|
case "newline":
|
|
3816
3811
|
if (atNewline) {
|
|
3817
3812
|
if (comment)
|
|
3818
|
-
comment +=
|
|
3813
|
+
comment += token.source;
|
|
3819
3814
|
else if (!found || indicator !== "seq-item-ind")
|
|
3820
3815
|
spaceBefore = true;
|
|
3821
3816
|
} else
|
|
3822
|
-
commentSep +=
|
|
3817
|
+
commentSep += token.source;
|
|
3823
3818
|
atNewline = true;
|
|
3824
3819
|
hasNewline = true;
|
|
3825
3820
|
if (anchor || tag)
|
|
3826
|
-
newlineAfterProp =
|
|
3821
|
+
newlineAfterProp = token;
|
|
3827
3822
|
hasSpace = true;
|
|
3828
3823
|
break;
|
|
3829
3824
|
case "anchor":
|
|
3830
3825
|
if (anchor)
|
|
3831
|
-
onError(
|
|
3832
|
-
if (
|
|
3833
|
-
onError(
|
|
3834
|
-
anchor =
|
|
3835
|
-
start ?? (start =
|
|
3826
|
+
onError(token, "MULTIPLE_ANCHORS", "A node can have at most one anchor");
|
|
3827
|
+
if (token.source.endsWith(":"))
|
|
3828
|
+
onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
|
|
3829
|
+
anchor = token;
|
|
3830
|
+
start ?? (start = token.offset);
|
|
3836
3831
|
atNewline = false;
|
|
3837
3832
|
hasSpace = false;
|
|
3838
3833
|
reqSpace = true;
|
|
3839
3834
|
break;
|
|
3840
3835
|
case "tag": {
|
|
3841
3836
|
if (tag)
|
|
3842
|
-
onError(
|
|
3843
|
-
tag =
|
|
3844
|
-
start ?? (start =
|
|
3837
|
+
onError(token, "MULTIPLE_TAGS", "A node can have at most one tag");
|
|
3838
|
+
tag = token;
|
|
3839
|
+
start ?? (start = token.offset);
|
|
3845
3840
|
atNewline = false;
|
|
3846
3841
|
hasSpace = false;
|
|
3847
3842
|
reqSpace = true;
|
|
@@ -3849,25 +3844,25 @@ var require_resolve_props = __commonJS({
|
|
|
3849
3844
|
}
|
|
3850
3845
|
case indicator:
|
|
3851
3846
|
if (anchor || tag)
|
|
3852
|
-
onError(
|
|
3847
|
+
onError(token, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token.source} indicator`);
|
|
3853
3848
|
if (found)
|
|
3854
|
-
onError(
|
|
3855
|
-
found =
|
|
3849
|
+
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
|
|
3850
|
+
found = token;
|
|
3856
3851
|
atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
|
|
3857
3852
|
hasSpace = false;
|
|
3858
3853
|
break;
|
|
3859
3854
|
case "comma":
|
|
3860
3855
|
if (flow) {
|
|
3861
3856
|
if (comma)
|
|
3862
|
-
onError(
|
|
3863
|
-
comma =
|
|
3857
|
+
onError(token, "UNEXPECTED_TOKEN", `Unexpected , in ${flow}`);
|
|
3858
|
+
comma = token;
|
|
3864
3859
|
atNewline = false;
|
|
3865
3860
|
hasSpace = false;
|
|
3866
3861
|
break;
|
|
3867
3862
|
}
|
|
3868
3863
|
// else fallthrough
|
|
3869
3864
|
default:
|
|
3870
|
-
onError(
|
|
3865
|
+
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.type} token`);
|
|
3871
3866
|
atNewline = false;
|
|
3872
3867
|
hasSpace = false;
|
|
3873
3868
|
}
|
|
@@ -3892,13 +3887,13 @@ var require_resolve_props = __commonJS({
|
|
|
3892
3887
|
start: start ?? end
|
|
3893
3888
|
};
|
|
3894
3889
|
}
|
|
3895
|
-
|
|
3890
|
+
exports2.resolveProps = resolveProps;
|
|
3896
3891
|
}
|
|
3897
3892
|
});
|
|
3898
3893
|
|
|
3899
3894
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3900
3895
|
var require_util_contains_newline = __commonJS({
|
|
3901
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(
|
|
3896
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
3902
3897
|
"use strict";
|
|
3903
3898
|
function containsNewline(key) {
|
|
3904
3899
|
if (!key)
|
|
@@ -3934,13 +3929,13 @@ var require_util_contains_newline = __commonJS({
|
|
|
3934
3929
|
return true;
|
|
3935
3930
|
}
|
|
3936
3931
|
}
|
|
3937
|
-
|
|
3932
|
+
exports2.containsNewline = containsNewline;
|
|
3938
3933
|
}
|
|
3939
3934
|
});
|
|
3940
3935
|
|
|
3941
3936
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3942
3937
|
var require_util_flow_indent_check = __commonJS({
|
|
3943
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(
|
|
3938
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
3944
3939
|
"use strict";
|
|
3945
3940
|
var utilContainsNewline = require_util_contains_newline();
|
|
3946
3941
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3952,13 +3947,13 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3952
3947
|
}
|
|
3953
3948
|
}
|
|
3954
3949
|
}
|
|
3955
|
-
|
|
3950
|
+
exports2.flowIndentCheck = flowIndentCheck;
|
|
3956
3951
|
}
|
|
3957
3952
|
});
|
|
3958
3953
|
|
|
3959
3954
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3960
3955
|
var require_util_map_includes = __commonJS({
|
|
3961
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(
|
|
3956
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
3962
3957
|
"use strict";
|
|
3963
3958
|
var identity = require_identity();
|
|
3964
3959
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3968,13 +3963,13 @@ var require_util_map_includes = __commonJS({
|
|
|
3968
3963
|
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
|
|
3969
3964
|
return items.some((pair) => isEqual(pair.key, search));
|
|
3970
3965
|
}
|
|
3971
|
-
|
|
3966
|
+
exports2.mapIncludes = mapIncludes;
|
|
3972
3967
|
}
|
|
3973
3968
|
});
|
|
3974
3969
|
|
|
3975
3970
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3976
3971
|
var require_resolve_block_map = __commonJS({
|
|
3977
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(
|
|
3972
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
3978
3973
|
"use strict";
|
|
3979
3974
|
var Pair = require_Pair();
|
|
3980
3975
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4076,13 +4071,13 @@ var require_resolve_block_map = __commonJS({
|
|
|
4076
4071
|
map.range = [bm.offset, offset, commentEnd ?? offset];
|
|
4077
4072
|
return map;
|
|
4078
4073
|
}
|
|
4079
|
-
|
|
4074
|
+
exports2.resolveBlockMap = resolveBlockMap;
|
|
4080
4075
|
}
|
|
4081
4076
|
});
|
|
4082
4077
|
|
|
4083
4078
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4084
4079
|
var require_resolve_block_seq = __commonJS({
|
|
4085
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(
|
|
4080
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4086
4081
|
"use strict";
|
|
4087
4082
|
var YAMLSeq = require_YAMLSeq();
|
|
4088
4083
|
var resolveProps = require_resolve_props();
|
|
@@ -4127,28 +4122,28 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4127
4122
|
seq.range = [bs.offset, offset, commentEnd ?? offset];
|
|
4128
4123
|
return seq;
|
|
4129
4124
|
}
|
|
4130
|
-
|
|
4125
|
+
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
4131
4126
|
}
|
|
4132
4127
|
});
|
|
4133
4128
|
|
|
4134
4129
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
4135
4130
|
var require_resolve_end = __commonJS({
|
|
4136
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(
|
|
4131
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4137
4132
|
"use strict";
|
|
4138
4133
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4139
4134
|
let comment = "";
|
|
4140
4135
|
if (end) {
|
|
4141
4136
|
let hasSpace = false;
|
|
4142
4137
|
let sep = "";
|
|
4143
|
-
for (const
|
|
4144
|
-
const { source, type } =
|
|
4138
|
+
for (const token of end) {
|
|
4139
|
+
const { source, type } = token;
|
|
4145
4140
|
switch (type) {
|
|
4146
4141
|
case "space":
|
|
4147
4142
|
hasSpace = true;
|
|
4148
4143
|
break;
|
|
4149
4144
|
case "comment": {
|
|
4150
4145
|
if (reqSpace && !hasSpace)
|
|
4151
|
-
onError(
|
|
4146
|
+
onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
4152
4147
|
const cb = source.substring(1) || " ";
|
|
4153
4148
|
if (!comment)
|
|
4154
4149
|
comment = cb;
|
|
@@ -4163,20 +4158,20 @@ var require_resolve_end = __commonJS({
|
|
|
4163
4158
|
hasSpace = true;
|
|
4164
4159
|
break;
|
|
4165
4160
|
default:
|
|
4166
|
-
onError(
|
|
4161
|
+
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type} at node end`);
|
|
4167
4162
|
}
|
|
4168
4163
|
offset += source.length;
|
|
4169
4164
|
}
|
|
4170
4165
|
}
|
|
4171
4166
|
return { comment, offset };
|
|
4172
4167
|
}
|
|
4173
|
-
|
|
4168
|
+
exports2.resolveEnd = resolveEnd;
|
|
4174
4169
|
}
|
|
4175
4170
|
});
|
|
4176
4171
|
|
|
4177
4172
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4178
4173
|
var require_resolve_flow_collection = __commonJS({
|
|
4179
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(
|
|
4174
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4180
4175
|
"use strict";
|
|
4181
4176
|
var identity = require_identity();
|
|
4182
4177
|
var Pair = require_Pair();
|
|
@@ -4187,7 +4182,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4187
4182
|
var utilContainsNewline = require_util_contains_newline();
|
|
4188
4183
|
var utilMapIncludes = require_util_map_includes();
|
|
4189
4184
|
var blockMsg = "Block collections are not allowed within flow collections";
|
|
4190
|
-
var isBlock = (
|
|
4185
|
+
var isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
|
|
4191
4186
|
function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
|
|
4192
4187
|
const isMap = fc.start.source === "{";
|
|
4193
4188
|
const fcName = isMap ? "flow map" : "flow sequence";
|
|
@@ -4364,13 +4359,13 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4364
4359
|
}
|
|
4365
4360
|
return coll;
|
|
4366
4361
|
}
|
|
4367
|
-
|
|
4362
|
+
exports2.resolveFlowCollection = resolveFlowCollection;
|
|
4368
4363
|
}
|
|
4369
4364
|
});
|
|
4370
4365
|
|
|
4371
4366
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
4372
4367
|
var require_compose_collection = __commonJS({
|
|
4373
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(
|
|
4368
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4374
4369
|
"use strict";
|
|
4375
4370
|
var identity = require_identity();
|
|
4376
4371
|
var Scalar = require_Scalar();
|
|
@@ -4379,8 +4374,8 @@ var require_compose_collection = __commonJS({
|
|
|
4379
4374
|
var resolveBlockMap = require_resolve_block_map();
|
|
4380
4375
|
var resolveBlockSeq = require_resolve_block_seq();
|
|
4381
4376
|
var resolveFlowCollection = require_resolve_flow_collection();
|
|
4382
|
-
function resolveCollection(CN, ctx,
|
|
4383
|
-
const coll =
|
|
4377
|
+
function resolveCollection(CN, ctx, token, onError, tagName, tag) {
|
|
4378
|
+
const coll = token.type === "block-map" ? resolveBlockMap.resolveBlockMap(CN, ctx, token, onError, tag) : token.type === "block-seq" ? resolveBlockSeq.resolveBlockSeq(CN, ctx, token, onError, tag) : resolveFlowCollection.resolveFlowCollection(CN, ctx, token, onError, tag);
|
|
4384
4379
|
const Coll = coll.constructor;
|
|
4385
4380
|
if (tagName === "!" || tagName === Coll.tagName) {
|
|
4386
4381
|
coll.tag = Coll.tagName;
|
|
@@ -4390,10 +4385,10 @@ var require_compose_collection = __commonJS({
|
|
|
4390
4385
|
coll.tag = tagName;
|
|
4391
4386
|
return coll;
|
|
4392
4387
|
}
|
|
4393
|
-
function composeCollection(CN, ctx,
|
|
4388
|
+
function composeCollection(CN, ctx, token, props, onError) {
|
|
4394
4389
|
const tagToken = props.tag;
|
|
4395
4390
|
const tagName = !tagToken ? null : ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg));
|
|
4396
|
-
if (
|
|
4391
|
+
if (token.type === "block-seq") {
|
|
4397
4392
|
const { anchor, newlineAfterProp: nl } = props;
|
|
4398
4393
|
const lastProp = anchor && tagToken ? anchor.offset > tagToken.offset ? anchor : tagToken : anchor ?? tagToken;
|
|
4399
4394
|
if (lastProp && (!nl || nl.offset < lastProp.offset)) {
|
|
@@ -4401,9 +4396,9 @@ var require_compose_collection = __commonJS({
|
|
|
4401
4396
|
onError(lastProp, "MISSING_CHAR", message);
|
|
4402
4397
|
}
|
|
4403
4398
|
}
|
|
4404
|
-
const expType =
|
|
4399
|
+
const expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq";
|
|
4405
4400
|
if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq") {
|
|
4406
|
-
return resolveCollection(CN, ctx,
|
|
4401
|
+
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
4407
4402
|
}
|
|
4408
4403
|
let tag = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
|
|
4409
4404
|
if (!tag) {
|
|
@@ -4417,10 +4412,10 @@ var require_compose_collection = __commonJS({
|
|
|
4417
4412
|
} else {
|
|
4418
4413
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
|
|
4419
4414
|
}
|
|
4420
|
-
return resolveCollection(CN, ctx,
|
|
4415
|
+
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
4421
4416
|
}
|
|
4422
4417
|
}
|
|
4423
|
-
const coll = resolveCollection(CN, ctx,
|
|
4418
|
+
const coll = resolveCollection(CN, ctx, token, onError, tagName, tag);
|
|
4424
4419
|
const res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll;
|
|
4425
4420
|
const node = identity.isNode(res) ? res : new Scalar.Scalar(res);
|
|
4426
4421
|
node.range = coll.range;
|
|
@@ -4429,13 +4424,13 @@ var require_compose_collection = __commonJS({
|
|
|
4429
4424
|
node.format = tag.format;
|
|
4430
4425
|
return node;
|
|
4431
4426
|
}
|
|
4432
|
-
|
|
4427
|
+
exports2.composeCollection = composeCollection;
|
|
4433
4428
|
}
|
|
4434
4429
|
});
|
|
4435
4430
|
|
|
4436
4431
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4437
4432
|
var require_resolve_block_scalar = __commonJS({
|
|
4438
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(
|
|
4433
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4439
4434
|
"use strict";
|
|
4440
4435
|
var Scalar = require_Scalar();
|
|
4441
4436
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4570,31 +4565,31 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4570
4565
|
let comment = "";
|
|
4571
4566
|
let length = source.length;
|
|
4572
4567
|
for (let i = 1; i < props.length; ++i) {
|
|
4573
|
-
const
|
|
4574
|
-
switch (
|
|
4568
|
+
const token = props[i];
|
|
4569
|
+
switch (token.type) {
|
|
4575
4570
|
case "space":
|
|
4576
4571
|
hasSpace = true;
|
|
4577
4572
|
// fallthrough
|
|
4578
4573
|
case "newline":
|
|
4579
|
-
length +=
|
|
4574
|
+
length += token.source.length;
|
|
4580
4575
|
break;
|
|
4581
4576
|
case "comment":
|
|
4582
4577
|
if (strict && !hasSpace) {
|
|
4583
4578
|
const message = "Comments must be separated from other tokens by white space characters";
|
|
4584
|
-
onError(
|
|
4579
|
+
onError(token, "MISSING_CHAR", message);
|
|
4585
4580
|
}
|
|
4586
|
-
length +=
|
|
4587
|
-
comment =
|
|
4581
|
+
length += token.source.length;
|
|
4582
|
+
comment = token.source.substring(1);
|
|
4588
4583
|
break;
|
|
4589
4584
|
case "error":
|
|
4590
|
-
onError(
|
|
4591
|
-
length +=
|
|
4585
|
+
onError(token, "UNEXPECTED_TOKEN", token.message);
|
|
4586
|
+
length += token.source.length;
|
|
4592
4587
|
break;
|
|
4593
4588
|
/* istanbul ignore next should not happen */
|
|
4594
4589
|
default: {
|
|
4595
|
-
const message = `Unexpected token in block scalar header: ${
|
|
4596
|
-
onError(
|
|
4597
|
-
const ts =
|
|
4590
|
+
const message = `Unexpected token in block scalar header: ${token.type}`;
|
|
4591
|
+
onError(token, "UNEXPECTED_TOKEN", message);
|
|
4592
|
+
const ts = token.source;
|
|
4598
4593
|
if (ts && typeof ts === "string")
|
|
4599
4594
|
length += ts.length;
|
|
4600
4595
|
}
|
|
@@ -4612,13 +4607,13 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4612
4607
|
lines.push([split[i], split[i + 1]]);
|
|
4613
4608
|
return lines;
|
|
4614
4609
|
}
|
|
4615
|
-
|
|
4610
|
+
exports2.resolveBlockScalar = resolveBlockScalar;
|
|
4616
4611
|
}
|
|
4617
4612
|
});
|
|
4618
4613
|
|
|
4619
4614
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4620
4615
|
var require_resolve_flow_scalar = __commonJS({
|
|
4621
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(
|
|
4616
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4622
4617
|
"use strict";
|
|
4623
4618
|
var Scalar = require_Scalar();
|
|
4624
4619
|
var resolveEnd = require_resolve_end();
|
|
@@ -4832,37 +4827,37 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4832
4827
|
return raw;
|
|
4833
4828
|
}
|
|
4834
4829
|
}
|
|
4835
|
-
|
|
4830
|
+
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
4836
4831
|
}
|
|
4837
4832
|
});
|
|
4838
4833
|
|
|
4839
4834
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4840
4835
|
var require_compose_scalar = __commonJS({
|
|
4841
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(
|
|
4836
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
4842
4837
|
"use strict";
|
|
4843
4838
|
var identity = require_identity();
|
|
4844
4839
|
var Scalar = require_Scalar();
|
|
4845
4840
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4846
4841
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
4847
|
-
function composeScalar(ctx,
|
|
4848
|
-
const { value, type, comment, range } =
|
|
4842
|
+
function composeScalar(ctx, token, tagToken, onError) {
|
|
4843
|
+
const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
4849
4844
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
4850
4845
|
let tag;
|
|
4851
4846
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
4852
4847
|
tag = ctx.schema[identity.SCALAR];
|
|
4853
4848
|
} else if (tagName)
|
|
4854
4849
|
tag = findScalarTagByName(ctx.schema, value, tagName, tagToken, onError);
|
|
4855
|
-
else if (
|
|
4856
|
-
tag = findScalarTagByTest(ctx, value,
|
|
4850
|
+
else if (token.type === "scalar")
|
|
4851
|
+
tag = findScalarTagByTest(ctx, value, token, onError);
|
|
4857
4852
|
else
|
|
4858
4853
|
tag = ctx.schema[identity.SCALAR];
|
|
4859
4854
|
let scalar;
|
|
4860
4855
|
try {
|
|
4861
|
-
const res = tag.resolve(value, (msg) => onError(tagToken ??
|
|
4856
|
+
const res = tag.resolve(value, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
4862
4857
|
scalar = identity.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
4863
4858
|
} catch (error) {
|
|
4864
4859
|
const msg = error instanceof Error ? error.message : String(error);
|
|
4865
|
-
onError(tagToken ??
|
|
4860
|
+
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
4866
4861
|
scalar = new Scalar.Scalar(value);
|
|
4867
4862
|
}
|
|
4868
4863
|
scalar.range = range;
|
|
@@ -4900,7 +4895,7 @@ var require_compose_scalar = __commonJS({
|
|
|
4900
4895
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
|
|
4901
4896
|
return schema[identity.SCALAR];
|
|
4902
4897
|
}
|
|
4903
|
-
function findScalarTagByTest({ atKey, directives, schema }, value,
|
|
4898
|
+
function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
|
|
4904
4899
|
const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity.SCALAR];
|
|
4905
4900
|
if (schema.compat) {
|
|
4906
4901
|
const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
|
|
@@ -4908,18 +4903,18 @@ var require_compose_scalar = __commonJS({
|
|
|
4908
4903
|
const ts = directives.tagString(tag.tag);
|
|
4909
4904
|
const cs = directives.tagString(compat.tag);
|
|
4910
4905
|
const msg = `Value may be parsed as either ${ts} or ${cs}`;
|
|
4911
|
-
onError(
|
|
4906
|
+
onError(token, "TAG_RESOLVE_FAILED", msg, true);
|
|
4912
4907
|
}
|
|
4913
4908
|
}
|
|
4914
4909
|
return tag;
|
|
4915
4910
|
}
|
|
4916
|
-
|
|
4911
|
+
exports2.composeScalar = composeScalar;
|
|
4917
4912
|
}
|
|
4918
4913
|
});
|
|
4919
4914
|
|
|
4920
4915
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4921
4916
|
var require_util_empty_scalar_position = __commonJS({
|
|
4922
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(
|
|
4917
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
4923
4918
|
"use strict";
|
|
4924
4919
|
function emptyScalarPosition(offset, before, pos) {
|
|
4925
4920
|
if (before) {
|
|
@@ -4943,13 +4938,13 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4943
4938
|
}
|
|
4944
4939
|
return offset;
|
|
4945
4940
|
}
|
|
4946
|
-
|
|
4941
|
+
exports2.emptyScalarPosition = emptyScalarPosition;
|
|
4947
4942
|
}
|
|
4948
4943
|
});
|
|
4949
4944
|
|
|
4950
4945
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
|
|
4951
4946
|
var require_compose_node = __commonJS({
|
|
4952
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(
|
|
4947
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
4953
4948
|
"use strict";
|
|
4954
4949
|
var Alias = require_Alias();
|
|
4955
4950
|
var identity = require_identity();
|
|
@@ -4958,22 +4953,22 @@ var require_compose_node = __commonJS({
|
|
|
4958
4953
|
var resolveEnd = require_resolve_end();
|
|
4959
4954
|
var utilEmptyScalarPosition = require_util_empty_scalar_position();
|
|
4960
4955
|
var CN = { composeNode, composeEmptyNode };
|
|
4961
|
-
function composeNode(ctx,
|
|
4956
|
+
function composeNode(ctx, token, props, onError) {
|
|
4962
4957
|
const atKey = ctx.atKey;
|
|
4963
4958
|
const { spaceBefore, comment, anchor, tag } = props;
|
|
4964
4959
|
let node;
|
|
4965
4960
|
let isSrcToken = true;
|
|
4966
|
-
switch (
|
|
4961
|
+
switch (token.type) {
|
|
4967
4962
|
case "alias":
|
|
4968
|
-
node = composeAlias(ctx,
|
|
4963
|
+
node = composeAlias(ctx, token, onError);
|
|
4969
4964
|
if (anchor || tag)
|
|
4970
|
-
onError(
|
|
4965
|
+
onError(token, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
4971
4966
|
break;
|
|
4972
4967
|
case "scalar":
|
|
4973
4968
|
case "single-quoted-scalar":
|
|
4974
4969
|
case "double-quoted-scalar":
|
|
4975
4970
|
case "block-scalar":
|
|
4976
|
-
node = composeScalar.composeScalar(ctx,
|
|
4971
|
+
node = composeScalar.composeScalar(ctx, token, tag, onError);
|
|
4977
4972
|
if (anchor)
|
|
4978
4973
|
node.anchor = anchor.source.substring(1);
|
|
4979
4974
|
break;
|
|
@@ -4981,47 +4976,47 @@ var require_compose_node = __commonJS({
|
|
|
4981
4976
|
case "block-seq":
|
|
4982
4977
|
case "flow-collection":
|
|
4983
4978
|
try {
|
|
4984
|
-
node = composeCollection.composeCollection(CN, ctx,
|
|
4979
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
4985
4980
|
if (anchor)
|
|
4986
4981
|
node.anchor = anchor.source.substring(1);
|
|
4987
4982
|
} catch (error) {
|
|
4988
4983
|
const message = error instanceof Error ? error.message : String(error);
|
|
4989
|
-
onError(
|
|
4984
|
+
onError(token, "RESOURCE_EXHAUSTION", message);
|
|
4990
4985
|
}
|
|
4991
4986
|
break;
|
|
4992
4987
|
default: {
|
|
4993
|
-
const message =
|
|
4994
|
-
onError(
|
|
4988
|
+
const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
|
|
4989
|
+
onError(token, "UNEXPECTED_TOKEN", message);
|
|
4995
4990
|
isSrcToken = false;
|
|
4996
4991
|
}
|
|
4997
4992
|
}
|
|
4998
|
-
node ?? (node = composeEmptyNode(ctx,
|
|
4993
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
|
|
4999
4994
|
if (anchor && node.anchor === "")
|
|
5000
4995
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
5001
4996
|
if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
|
|
5002
4997
|
const msg = "With stringKeys, all keys must be strings";
|
|
5003
|
-
onError(tag ??
|
|
4998
|
+
onError(tag ?? token, "NON_STRING_KEY", msg);
|
|
5004
4999
|
}
|
|
5005
5000
|
if (spaceBefore)
|
|
5006
5001
|
node.spaceBefore = true;
|
|
5007
5002
|
if (comment) {
|
|
5008
|
-
if (
|
|
5003
|
+
if (token.type === "scalar" && token.source === "")
|
|
5009
5004
|
node.comment = comment;
|
|
5010
5005
|
else
|
|
5011
5006
|
node.commentBefore = comment;
|
|
5012
5007
|
}
|
|
5013
5008
|
if (ctx.options.keepSourceTokens && isSrcToken)
|
|
5014
|
-
node.srcToken =
|
|
5009
|
+
node.srcToken = token;
|
|
5015
5010
|
return node;
|
|
5016
5011
|
}
|
|
5017
5012
|
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
|
5018
|
-
const
|
|
5013
|
+
const token = {
|
|
5019
5014
|
type: "scalar",
|
|
5020
5015
|
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
|
5021
5016
|
indent: -1,
|
|
5022
5017
|
source: ""
|
|
5023
5018
|
};
|
|
5024
|
-
const node = composeScalar.composeScalar(ctx,
|
|
5019
|
+
const node = composeScalar.composeScalar(ctx, token, tag, onError);
|
|
5025
5020
|
if (anchor) {
|
|
5026
5021
|
node.anchor = anchor.source.substring(1);
|
|
5027
5022
|
if (node.anchor === "")
|
|
@@ -5048,14 +5043,14 @@ var require_compose_node = __commonJS({
|
|
|
5048
5043
|
alias.comment = re.comment;
|
|
5049
5044
|
return alias;
|
|
5050
5045
|
}
|
|
5051
|
-
|
|
5052
|
-
|
|
5046
|
+
exports2.composeEmptyNode = composeEmptyNode;
|
|
5047
|
+
exports2.composeNode = composeNode;
|
|
5053
5048
|
}
|
|
5054
5049
|
});
|
|
5055
5050
|
|
|
5056
5051
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
5057
5052
|
var require_compose_doc = __commonJS({
|
|
5058
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(
|
|
5053
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5059
5054
|
"use strict";
|
|
5060
5055
|
var Document = require_Document();
|
|
5061
5056
|
var composeNode = require_compose_node();
|
|
@@ -5092,15 +5087,15 @@ var require_compose_doc = __commonJS({
|
|
|
5092
5087
|
doc.range = [offset, contentEnd, re.offset];
|
|
5093
5088
|
return doc;
|
|
5094
5089
|
}
|
|
5095
|
-
|
|
5090
|
+
exports2.composeDoc = composeDoc;
|
|
5096
5091
|
}
|
|
5097
5092
|
});
|
|
5098
5093
|
|
|
5099
5094
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
|
|
5100
5095
|
var require_composer = __commonJS({
|
|
5101
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(
|
|
5096
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5102
5097
|
"use strict";
|
|
5103
|
-
var node_process =
|
|
5098
|
+
var node_process = require("process");
|
|
5104
5099
|
var directives = require_directives();
|
|
5105
5100
|
var Document = require_Document();
|
|
5106
5101
|
var errors = require_errors();
|
|
@@ -5212,28 +5207,28 @@ ${cb}` : comment;
|
|
|
5212
5207
|
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
|
5213
5208
|
*/
|
|
5214
5209
|
*compose(tokens, forceDoc = false, endOffset = -1) {
|
|
5215
|
-
for (const
|
|
5216
|
-
yield* this.next(
|
|
5210
|
+
for (const token of tokens)
|
|
5211
|
+
yield* this.next(token);
|
|
5217
5212
|
yield* this.end(forceDoc, endOffset);
|
|
5218
5213
|
}
|
|
5219
5214
|
/** Advance the composer by one CST token. */
|
|
5220
|
-
*next(
|
|
5215
|
+
*next(token) {
|
|
5221
5216
|
if (node_process.env.LOG_STREAM)
|
|
5222
|
-
console.dir(
|
|
5223
|
-
switch (
|
|
5217
|
+
console.dir(token, { depth: null });
|
|
5218
|
+
switch (token.type) {
|
|
5224
5219
|
case "directive":
|
|
5225
|
-
this.directives.add(
|
|
5226
|
-
const pos = getErrorPos(
|
|
5220
|
+
this.directives.add(token.source, (offset, message, warning) => {
|
|
5221
|
+
const pos = getErrorPos(token);
|
|
5227
5222
|
pos[0] += offset;
|
|
5228
5223
|
this.onError(pos, "BAD_DIRECTIVE", message, warning);
|
|
5229
5224
|
});
|
|
5230
|
-
this.prelude.push(
|
|
5225
|
+
this.prelude.push(token.source);
|
|
5231
5226
|
this.atDirectives = true;
|
|
5232
5227
|
break;
|
|
5233
5228
|
case "document": {
|
|
5234
|
-
const doc = composeDoc.composeDoc(this.options, this.directives,
|
|
5229
|
+
const doc = composeDoc.composeDoc(this.options, this.directives, token, this.onError);
|
|
5235
5230
|
if (this.atDirectives && !doc.directives.docStart)
|
|
5236
|
-
this.onError(
|
|
5231
|
+
this.onError(token, "MISSING_CHAR", "Missing directives-end/doc-start indicator line");
|
|
5237
5232
|
this.decorate(doc, false);
|
|
5238
5233
|
if (this.doc)
|
|
5239
5234
|
yield this.doc;
|
|
@@ -5246,11 +5241,11 @@ ${cb}` : comment;
|
|
|
5246
5241
|
break;
|
|
5247
5242
|
case "comment":
|
|
5248
5243
|
case "newline":
|
|
5249
|
-
this.prelude.push(
|
|
5244
|
+
this.prelude.push(token.source);
|
|
5250
5245
|
break;
|
|
5251
5246
|
case "error": {
|
|
5252
|
-
const msg =
|
|
5253
|
-
const error = new errors.YAMLParseError(getErrorPos(
|
|
5247
|
+
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
5248
|
+
const error = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
5254
5249
|
if (this.atDirectives || !this.doc)
|
|
5255
5250
|
this.errors.push(error);
|
|
5256
5251
|
else
|
|
@@ -5260,11 +5255,11 @@ ${cb}` : comment;
|
|
|
5260
5255
|
case "doc-end": {
|
|
5261
5256
|
if (!this.doc) {
|
|
5262
5257
|
const msg = "Unexpected doc-end without preceding document";
|
|
5263
|
-
this.errors.push(new errors.YAMLParseError(getErrorPos(
|
|
5258
|
+
this.errors.push(new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
5264
5259
|
break;
|
|
5265
5260
|
}
|
|
5266
5261
|
this.doc.directives.docEnd = true;
|
|
5267
|
-
const end = resolveEnd.resolveEnd(
|
|
5262
|
+
const end = resolveEnd.resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError);
|
|
5268
5263
|
this.decorate(this.doc, true);
|
|
5269
5264
|
if (end.comment) {
|
|
5270
5265
|
const dc = this.doc.comment;
|
|
@@ -5275,7 +5270,7 @@ ${end.comment}` : end.comment;
|
|
|
5275
5270
|
break;
|
|
5276
5271
|
}
|
|
5277
5272
|
default:
|
|
5278
|
-
this.errors.push(new errors.YAMLParseError(getErrorPos(
|
|
5273
|
+
this.errors.push(new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
5279
5274
|
}
|
|
5280
5275
|
}
|
|
5281
5276
|
/**
|
|
@@ -5300,20 +5295,20 @@ ${end.comment}` : end.comment;
|
|
|
5300
5295
|
}
|
|
5301
5296
|
}
|
|
5302
5297
|
};
|
|
5303
|
-
|
|
5298
|
+
exports2.Composer = Composer;
|
|
5304
5299
|
}
|
|
5305
5300
|
});
|
|
5306
5301
|
|
|
5307
5302
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5308
5303
|
var require_cst_scalar = __commonJS({
|
|
5309
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(
|
|
5304
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5310
5305
|
"use strict";
|
|
5311
5306
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5312
5307
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
5313
5308
|
var errors = require_errors();
|
|
5314
5309
|
var stringifyString = require_stringifyString();
|
|
5315
|
-
function resolveAsScalar(
|
|
5316
|
-
if (
|
|
5310
|
+
function resolveAsScalar(token, strict = true, onError) {
|
|
5311
|
+
if (token) {
|
|
5317
5312
|
const _onError = (pos, code, message) => {
|
|
5318
5313
|
const offset = typeof pos === "number" ? pos : Array.isArray(pos) ? pos[0] : pos.offset;
|
|
5319
5314
|
if (onError)
|
|
@@ -5321,13 +5316,13 @@ var require_cst_scalar = __commonJS({
|
|
|
5321
5316
|
else
|
|
5322
5317
|
throw new errors.YAMLParseError([offset, offset + 1], code, message);
|
|
5323
5318
|
};
|
|
5324
|
-
switch (
|
|
5319
|
+
switch (token.type) {
|
|
5325
5320
|
case "scalar":
|
|
5326
5321
|
case "single-quoted-scalar":
|
|
5327
5322
|
case "double-quoted-scalar":
|
|
5328
|
-
return resolveFlowScalar.resolveFlowScalar(
|
|
5323
|
+
return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
|
|
5329
5324
|
case "block-scalar":
|
|
5330
|
-
return resolveBlockScalar.resolveBlockScalar({ options: { strict } },
|
|
5325
|
+
return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
|
|
5331
5326
|
}
|
|
5332
5327
|
}
|
|
5333
5328
|
return null;
|
|
@@ -5364,13 +5359,13 @@ var require_cst_scalar = __commonJS({
|
|
|
5364
5359
|
return { type: "scalar", offset, indent, source, end };
|
|
5365
5360
|
}
|
|
5366
5361
|
}
|
|
5367
|
-
function setScalarValue(
|
|
5362
|
+
function setScalarValue(token, value, context = {}) {
|
|
5368
5363
|
let { afterKey = false, implicitKey = false, inFlow = false, type } = context;
|
|
5369
|
-
let indent = "indent" in
|
|
5364
|
+
let indent = "indent" in token ? token.indent : null;
|
|
5370
5365
|
if (afterKey && typeof indent === "number")
|
|
5371
5366
|
indent += 2;
|
|
5372
5367
|
if (!type)
|
|
5373
|
-
switch (
|
|
5368
|
+
switch (token.type) {
|
|
5374
5369
|
case "single-quoted-scalar":
|
|
5375
5370
|
type = "QUOTE_SINGLE";
|
|
5376
5371
|
break;
|
|
@@ -5378,7 +5373,7 @@ var require_cst_scalar = __commonJS({
|
|
|
5378
5373
|
type = "QUOTE_DOUBLE";
|
|
5379
5374
|
break;
|
|
5380
5375
|
case "block-scalar": {
|
|
5381
|
-
const header =
|
|
5376
|
+
const header = token.props[0];
|
|
5382
5377
|
if (header.type !== "block-scalar-header")
|
|
5383
5378
|
throw new Error("Invalid block scalar header");
|
|
5384
5379
|
type = header.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
|
|
@@ -5396,40 +5391,40 @@ var require_cst_scalar = __commonJS({
|
|
|
5396
5391
|
switch (source[0]) {
|
|
5397
5392
|
case "|":
|
|
5398
5393
|
case ">":
|
|
5399
|
-
setBlockScalarValue(
|
|
5394
|
+
setBlockScalarValue(token, source);
|
|
5400
5395
|
break;
|
|
5401
5396
|
case '"':
|
|
5402
|
-
setFlowScalarValue(
|
|
5397
|
+
setFlowScalarValue(token, source, "double-quoted-scalar");
|
|
5403
5398
|
break;
|
|
5404
5399
|
case "'":
|
|
5405
|
-
setFlowScalarValue(
|
|
5400
|
+
setFlowScalarValue(token, source, "single-quoted-scalar");
|
|
5406
5401
|
break;
|
|
5407
5402
|
default:
|
|
5408
|
-
setFlowScalarValue(
|
|
5403
|
+
setFlowScalarValue(token, source, "scalar");
|
|
5409
5404
|
}
|
|
5410
5405
|
}
|
|
5411
|
-
function setBlockScalarValue(
|
|
5406
|
+
function setBlockScalarValue(token, source) {
|
|
5412
5407
|
const he = source.indexOf("\n");
|
|
5413
5408
|
const head = source.substring(0, he);
|
|
5414
5409
|
const body = source.substring(he + 1) + "\n";
|
|
5415
|
-
if (
|
|
5416
|
-
const header =
|
|
5410
|
+
if (token.type === "block-scalar") {
|
|
5411
|
+
const header = token.props[0];
|
|
5417
5412
|
if (header.type !== "block-scalar-header")
|
|
5418
5413
|
throw new Error("Invalid block scalar header");
|
|
5419
5414
|
header.source = head;
|
|
5420
|
-
|
|
5415
|
+
token.source = body;
|
|
5421
5416
|
} else {
|
|
5422
|
-
const { offset } =
|
|
5423
|
-
const indent = "indent" in
|
|
5417
|
+
const { offset } = token;
|
|
5418
|
+
const indent = "indent" in token ? token.indent : -1;
|
|
5424
5419
|
const props = [
|
|
5425
5420
|
{ type: "block-scalar-header", offset, indent, source: head }
|
|
5426
5421
|
];
|
|
5427
|
-
if (!addEndtoBlockProps(props, "end" in
|
|
5422
|
+
if (!addEndtoBlockProps(props, "end" in token ? token.end : void 0))
|
|
5428
5423
|
props.push({ type: "newline", offset: -1, indent, source: "\n" });
|
|
5429
|
-
for (const key of Object.keys(
|
|
5424
|
+
for (const key of Object.keys(token))
|
|
5430
5425
|
if (key !== "type" && key !== "offset")
|
|
5431
|
-
delete
|
|
5432
|
-
Object.assign(
|
|
5426
|
+
delete token[key];
|
|
5427
|
+
Object.assign(token, { type: "block-scalar", indent, props, source: body });
|
|
5433
5428
|
}
|
|
5434
5429
|
}
|
|
5435
5430
|
function addEndtoBlockProps(props, end) {
|
|
@@ -5446,88 +5441,88 @@ var require_cst_scalar = __commonJS({
|
|
|
5446
5441
|
}
|
|
5447
5442
|
return false;
|
|
5448
5443
|
}
|
|
5449
|
-
function setFlowScalarValue(
|
|
5450
|
-
switch (
|
|
5444
|
+
function setFlowScalarValue(token, source, type) {
|
|
5445
|
+
switch (token.type) {
|
|
5451
5446
|
case "scalar":
|
|
5452
5447
|
case "double-quoted-scalar":
|
|
5453
5448
|
case "single-quoted-scalar":
|
|
5454
|
-
|
|
5455
|
-
|
|
5449
|
+
token.type = type;
|
|
5450
|
+
token.source = source;
|
|
5456
5451
|
break;
|
|
5457
5452
|
case "block-scalar": {
|
|
5458
|
-
const end =
|
|
5453
|
+
const end = token.props.slice(1);
|
|
5459
5454
|
let oa = source.length;
|
|
5460
|
-
if (
|
|
5461
|
-
oa -=
|
|
5455
|
+
if (token.props[0].type === "block-scalar-header")
|
|
5456
|
+
oa -= token.props[0].source.length;
|
|
5462
5457
|
for (const tok of end)
|
|
5463
5458
|
tok.offset += oa;
|
|
5464
|
-
delete
|
|
5465
|
-
Object.assign(
|
|
5459
|
+
delete token.props;
|
|
5460
|
+
Object.assign(token, { type, source, end });
|
|
5466
5461
|
break;
|
|
5467
5462
|
}
|
|
5468
5463
|
case "block-map":
|
|
5469
5464
|
case "block-seq": {
|
|
5470
|
-
const offset =
|
|
5471
|
-
const nl = { type: "newline", offset, indent:
|
|
5472
|
-
delete
|
|
5473
|
-
Object.assign(
|
|
5465
|
+
const offset = token.offset + source.length;
|
|
5466
|
+
const nl = { type: "newline", offset, indent: token.indent, source: "\n" };
|
|
5467
|
+
delete token.items;
|
|
5468
|
+
Object.assign(token, { type, source, end: [nl] });
|
|
5474
5469
|
break;
|
|
5475
5470
|
}
|
|
5476
5471
|
default: {
|
|
5477
|
-
const indent = "indent" in
|
|
5478
|
-
const end = "end" in
|
|
5479
|
-
for (const key of Object.keys(
|
|
5472
|
+
const indent = "indent" in token ? token.indent : -1;
|
|
5473
|
+
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st) => st.type === "space" || st.type === "comment" || st.type === "newline") : [];
|
|
5474
|
+
for (const key of Object.keys(token))
|
|
5480
5475
|
if (key !== "type" && key !== "offset")
|
|
5481
|
-
delete
|
|
5482
|
-
Object.assign(
|
|
5476
|
+
delete token[key];
|
|
5477
|
+
Object.assign(token, { type, indent, source, end });
|
|
5483
5478
|
}
|
|
5484
5479
|
}
|
|
5485
5480
|
}
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5481
|
+
exports2.createScalarToken = createScalarToken;
|
|
5482
|
+
exports2.resolveAsScalar = resolveAsScalar;
|
|
5483
|
+
exports2.setScalarValue = setScalarValue;
|
|
5489
5484
|
}
|
|
5490
5485
|
});
|
|
5491
5486
|
|
|
5492
5487
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5493
5488
|
var require_cst_stringify = __commonJS({
|
|
5494
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(
|
|
5489
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5495
5490
|
"use strict";
|
|
5496
5491
|
var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5497
|
-
function stringifyToken(
|
|
5498
|
-
switch (
|
|
5492
|
+
function stringifyToken(token) {
|
|
5493
|
+
switch (token.type) {
|
|
5499
5494
|
case "block-scalar": {
|
|
5500
5495
|
let res = "";
|
|
5501
|
-
for (const tok of
|
|
5496
|
+
for (const tok of token.props)
|
|
5502
5497
|
res += stringifyToken(tok);
|
|
5503
|
-
return res +
|
|
5498
|
+
return res + token.source;
|
|
5504
5499
|
}
|
|
5505
5500
|
case "block-map":
|
|
5506
5501
|
case "block-seq": {
|
|
5507
5502
|
let res = "";
|
|
5508
|
-
for (const item of
|
|
5503
|
+
for (const item of token.items)
|
|
5509
5504
|
res += stringifyItem(item);
|
|
5510
5505
|
return res;
|
|
5511
5506
|
}
|
|
5512
5507
|
case "flow-collection": {
|
|
5513
|
-
let res =
|
|
5514
|
-
for (const item of
|
|
5508
|
+
let res = token.start.source;
|
|
5509
|
+
for (const item of token.items)
|
|
5515
5510
|
res += stringifyItem(item);
|
|
5516
|
-
for (const st of
|
|
5511
|
+
for (const st of token.end)
|
|
5517
5512
|
res += st.source;
|
|
5518
5513
|
return res;
|
|
5519
5514
|
}
|
|
5520
5515
|
case "document": {
|
|
5521
|
-
let res = stringifyItem(
|
|
5522
|
-
if (
|
|
5523
|
-
for (const st of
|
|
5516
|
+
let res = stringifyItem(token);
|
|
5517
|
+
if (token.end)
|
|
5518
|
+
for (const st of token.end)
|
|
5524
5519
|
res += st.source;
|
|
5525
5520
|
return res;
|
|
5526
5521
|
}
|
|
5527
5522
|
default: {
|
|
5528
|
-
let res =
|
|
5529
|
-
if ("end" in
|
|
5530
|
-
for (const st of
|
|
5523
|
+
let res = token.source;
|
|
5524
|
+
if ("end" in token && token.end)
|
|
5525
|
+
for (const st of token.end)
|
|
5531
5526
|
res += st.source;
|
|
5532
5527
|
return res;
|
|
5533
5528
|
}
|
|
@@ -5546,13 +5541,13 @@ var require_cst_stringify = __commonJS({
|
|
|
5546
5541
|
res += stringifyToken(value);
|
|
5547
5542
|
return res;
|
|
5548
5543
|
}
|
|
5549
|
-
|
|
5544
|
+
exports2.stringify = stringify2;
|
|
5550
5545
|
}
|
|
5551
5546
|
});
|
|
5552
5547
|
|
|
5553
5548
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5554
5549
|
var require_cst_visit = __commonJS({
|
|
5555
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(
|
|
5550
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5556
5551
|
"use strict";
|
|
5557
5552
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
5558
5553
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -5589,16 +5584,16 @@ var require_cst_visit = __commonJS({
|
|
|
5589
5584
|
if (typeof ctrl === "symbol")
|
|
5590
5585
|
return ctrl;
|
|
5591
5586
|
for (const field of ["key", "value"]) {
|
|
5592
|
-
const
|
|
5593
|
-
if (
|
|
5594
|
-
for (let i = 0; i <
|
|
5595
|
-
const ci = _visit(Object.freeze(path.concat([[field, i]])),
|
|
5587
|
+
const token = item[field];
|
|
5588
|
+
if (token && "items" in token) {
|
|
5589
|
+
for (let i = 0; i < token.items.length; ++i) {
|
|
5590
|
+
const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
|
|
5596
5591
|
if (typeof ci === "number")
|
|
5597
5592
|
i = ci - 1;
|
|
5598
5593
|
else if (ci === BREAK)
|
|
5599
5594
|
return BREAK;
|
|
5600
5595
|
else if (ci === REMOVE) {
|
|
5601
|
-
|
|
5596
|
+
token.items.splice(i, 1);
|
|
5602
5597
|
i -= 1;
|
|
5603
5598
|
}
|
|
5604
5599
|
}
|
|
@@ -5608,13 +5603,13 @@ var require_cst_visit = __commonJS({
|
|
|
5608
5603
|
}
|
|
5609
5604
|
return typeof ctrl === "function" ? ctrl(item, path) : ctrl;
|
|
5610
5605
|
}
|
|
5611
|
-
|
|
5606
|
+
exports2.visit = visit;
|
|
5612
5607
|
}
|
|
5613
5608
|
});
|
|
5614
5609
|
|
|
5615
5610
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
5616
5611
|
var require_cst = __commonJS({
|
|
5617
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(
|
|
5612
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5618
5613
|
"use strict";
|
|
5619
5614
|
var cstScalar = require_cst_scalar();
|
|
5620
5615
|
var cstStringify = require_cst_stringify();
|
|
@@ -5623,10 +5618,10 @@ var require_cst = __commonJS({
|
|
|
5623
5618
|
var DOCUMENT = "";
|
|
5624
5619
|
var FLOW_END = "";
|
|
5625
5620
|
var SCALAR = "";
|
|
5626
|
-
var isCollection = (
|
|
5627
|
-
var isScalar = (
|
|
5628
|
-
function prettyToken(
|
|
5629
|
-
switch (
|
|
5621
|
+
var isCollection = (token) => !!token && "items" in token;
|
|
5622
|
+
var isScalar = (token) => !!token && (token.type === "scalar" || token.type === "single-quoted-scalar" || token.type === "double-quoted-scalar" || token.type === "block-scalar");
|
|
5623
|
+
function prettyToken(token) {
|
|
5624
|
+
switch (token) {
|
|
5630
5625
|
case BOM:
|
|
5631
5626
|
return "<BOM>";
|
|
5632
5627
|
case DOCUMENT:
|
|
@@ -5636,7 +5631,7 @@ var require_cst = __commonJS({
|
|
|
5636
5631
|
case SCALAR:
|
|
5637
5632
|
return "<SCALAR>";
|
|
5638
5633
|
default:
|
|
5639
|
-
return JSON.stringify(
|
|
5634
|
+
return JSON.stringify(token);
|
|
5640
5635
|
}
|
|
5641
5636
|
}
|
|
5642
5637
|
function tokenType(source) {
|
|
@@ -5698,25 +5693,25 @@ var require_cst = __commonJS({
|
|
|
5698
5693
|
}
|
|
5699
5694
|
return null;
|
|
5700
5695
|
}
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5696
|
+
exports2.createScalarToken = cstScalar.createScalarToken;
|
|
5697
|
+
exports2.resolveAsScalar = cstScalar.resolveAsScalar;
|
|
5698
|
+
exports2.setScalarValue = cstScalar.setScalarValue;
|
|
5699
|
+
exports2.stringify = cstStringify.stringify;
|
|
5700
|
+
exports2.visit = cstVisit.visit;
|
|
5701
|
+
exports2.BOM = BOM;
|
|
5702
|
+
exports2.DOCUMENT = DOCUMENT;
|
|
5703
|
+
exports2.FLOW_END = FLOW_END;
|
|
5704
|
+
exports2.SCALAR = SCALAR;
|
|
5705
|
+
exports2.isCollection = isCollection;
|
|
5706
|
+
exports2.isScalar = isScalar;
|
|
5707
|
+
exports2.prettyToken = prettyToken;
|
|
5708
|
+
exports2.tokenType = tokenType;
|
|
5714
5709
|
}
|
|
5715
5710
|
});
|
|
5716
5711
|
|
|
5717
5712
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5718
5713
|
var require_lexer = __commonJS({
|
|
5719
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(
|
|
5714
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5720
5715
|
"use strict";
|
|
5721
5716
|
var cst = require_cst();
|
|
5722
5717
|
function isEmpty(ch) {
|
|
@@ -6299,13 +6294,13 @@ var require_lexer = __commonJS({
|
|
|
6299
6294
|
return yield* this.pushToIndex(i, false);
|
|
6300
6295
|
}
|
|
6301
6296
|
};
|
|
6302
|
-
|
|
6297
|
+
exports2.Lexer = Lexer;
|
|
6303
6298
|
}
|
|
6304
6299
|
});
|
|
6305
6300
|
|
|
6306
6301
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6307
6302
|
var require_line_counter = __commonJS({
|
|
6308
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(
|
|
6303
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6309
6304
|
"use strict";
|
|
6310
6305
|
var LineCounter = class {
|
|
6311
6306
|
constructor() {
|
|
@@ -6330,15 +6325,15 @@ var require_line_counter = __commonJS({
|
|
|
6330
6325
|
};
|
|
6331
6326
|
}
|
|
6332
6327
|
};
|
|
6333
|
-
|
|
6328
|
+
exports2.LineCounter = LineCounter;
|
|
6334
6329
|
}
|
|
6335
6330
|
});
|
|
6336
6331
|
|
|
6337
6332
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
6338
6333
|
var require_parser = __commonJS({
|
|
6339
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(
|
|
6334
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6340
6335
|
"use strict";
|
|
6341
|
-
var node_process =
|
|
6336
|
+
var node_process = require("process");
|
|
6342
6337
|
var cst = require_cst();
|
|
6343
6338
|
var lexer = require_lexer();
|
|
6344
6339
|
function includesToken(list, type) {
|
|
@@ -6360,8 +6355,8 @@ var require_parser = __commonJS({
|
|
|
6360
6355
|
}
|
|
6361
6356
|
return -1;
|
|
6362
6357
|
}
|
|
6363
|
-
function isFlowToken(
|
|
6364
|
-
switch (
|
|
6358
|
+
function isFlowToken(token) {
|
|
6359
|
+
switch (token?.type) {
|
|
6365
6360
|
case "alias":
|
|
6366
6361
|
case "scalar":
|
|
6367
6362
|
case "single-quoted-scalar":
|
|
@@ -6568,38 +6563,38 @@ var require_parser = __commonJS({
|
|
|
6568
6563
|
return this.stack[this.stack.length - n];
|
|
6569
6564
|
}
|
|
6570
6565
|
*pop(error) {
|
|
6571
|
-
const
|
|
6572
|
-
if (!
|
|
6566
|
+
const token = error ?? this.stack.pop();
|
|
6567
|
+
if (!token) {
|
|
6573
6568
|
const message = "Tried to pop an empty stack";
|
|
6574
6569
|
yield { type: "error", offset: this.offset, source: "", message };
|
|
6575
6570
|
} else if (this.stack.length === 0) {
|
|
6576
|
-
yield
|
|
6571
|
+
yield token;
|
|
6577
6572
|
} else {
|
|
6578
6573
|
const top = this.peek(1);
|
|
6579
|
-
if (
|
|
6580
|
-
|
|
6581
|
-
} else if (
|
|
6582
|
-
|
|
6574
|
+
if (token.type === "block-scalar") {
|
|
6575
|
+
token.indent = "indent" in top ? top.indent : 0;
|
|
6576
|
+
} else if (token.type === "flow-collection" && top.type === "document") {
|
|
6577
|
+
token.indent = 0;
|
|
6583
6578
|
}
|
|
6584
|
-
if (
|
|
6585
|
-
fixFlowSeqItems(
|
|
6579
|
+
if (token.type === "flow-collection")
|
|
6580
|
+
fixFlowSeqItems(token);
|
|
6586
6581
|
switch (top.type) {
|
|
6587
6582
|
case "document":
|
|
6588
|
-
top.value =
|
|
6583
|
+
top.value = token;
|
|
6589
6584
|
break;
|
|
6590
6585
|
case "block-scalar":
|
|
6591
|
-
top.props.push(
|
|
6586
|
+
top.props.push(token);
|
|
6592
6587
|
break;
|
|
6593
6588
|
case "block-map": {
|
|
6594
6589
|
const it = top.items[top.items.length - 1];
|
|
6595
6590
|
if (it.value) {
|
|
6596
|
-
top.items.push({ start: [], key:
|
|
6591
|
+
top.items.push({ start: [], key: token, sep: [] });
|
|
6597
6592
|
this.onKeyLine = true;
|
|
6598
6593
|
return;
|
|
6599
6594
|
} else if (it.sep) {
|
|
6600
|
-
it.value =
|
|
6595
|
+
it.value = token;
|
|
6601
6596
|
} else {
|
|
6602
|
-
Object.assign(it, { key:
|
|
6597
|
+
Object.assign(it, { key: token, sep: [] });
|
|
6603
6598
|
this.onKeyLine = !it.explicitKey;
|
|
6604
6599
|
return;
|
|
6605
6600
|
}
|
|
@@ -6608,34 +6603,34 @@ var require_parser = __commonJS({
|
|
|
6608
6603
|
case "block-seq": {
|
|
6609
6604
|
const it = top.items[top.items.length - 1];
|
|
6610
6605
|
if (it.value)
|
|
6611
|
-
top.items.push({ start: [], value:
|
|
6606
|
+
top.items.push({ start: [], value: token });
|
|
6612
6607
|
else
|
|
6613
|
-
it.value =
|
|
6608
|
+
it.value = token;
|
|
6614
6609
|
break;
|
|
6615
6610
|
}
|
|
6616
6611
|
case "flow-collection": {
|
|
6617
6612
|
const it = top.items[top.items.length - 1];
|
|
6618
6613
|
if (!it || it.value)
|
|
6619
|
-
top.items.push({ start: [], key:
|
|
6614
|
+
top.items.push({ start: [], key: token, sep: [] });
|
|
6620
6615
|
else if (it.sep)
|
|
6621
|
-
it.value =
|
|
6616
|
+
it.value = token;
|
|
6622
6617
|
else
|
|
6623
|
-
Object.assign(it, { key:
|
|
6618
|
+
Object.assign(it, { key: token, sep: [] });
|
|
6624
6619
|
return;
|
|
6625
6620
|
}
|
|
6626
6621
|
/* istanbul ignore next should not happen */
|
|
6627
6622
|
default:
|
|
6628
6623
|
yield* this.pop();
|
|
6629
|
-
yield* this.pop(
|
|
6624
|
+
yield* this.pop(token);
|
|
6630
6625
|
}
|
|
6631
|
-
if ((top.type === "document" || top.type === "block-map" || top.type === "block-seq") && (
|
|
6632
|
-
const last =
|
|
6633
|
-
if (last && !last.sep && !last.value && last.start.length > 0 && findNonEmptyIndex(last.start) === -1 && (
|
|
6626
|
+
if ((top.type === "document" || top.type === "block-map" || top.type === "block-seq") && (token.type === "block-map" || token.type === "block-seq")) {
|
|
6627
|
+
const last = token.items[token.items.length - 1];
|
|
6628
|
+
if (last && !last.sep && !last.value && last.start.length > 0 && findNonEmptyIndex(last.start) === -1 && (token.indent === 0 || last.start.every((st) => st.type !== "comment" || st.indent < token.indent))) {
|
|
6634
6629
|
if (top.type === "document")
|
|
6635
6630
|
top.end = last.start;
|
|
6636
6631
|
else
|
|
6637
6632
|
top.items.push({ start: last.start });
|
|
6638
|
-
|
|
6633
|
+
token.items.splice(-1, 1);
|
|
6639
6634
|
}
|
|
6640
6635
|
}
|
|
6641
6636
|
}
|
|
@@ -7178,7 +7173,7 @@ var require_parser = __commonJS({
|
|
|
7178
7173
|
yield* this.pop();
|
|
7179
7174
|
}
|
|
7180
7175
|
}
|
|
7181
|
-
*lineEnd(
|
|
7176
|
+
*lineEnd(token) {
|
|
7182
7177
|
switch (this.type) {
|
|
7183
7178
|
case "comma":
|
|
7184
7179
|
case "doc-start":
|
|
@@ -7195,22 +7190,22 @@ var require_parser = __commonJS({
|
|
|
7195
7190
|
case "space":
|
|
7196
7191
|
case "comment":
|
|
7197
7192
|
default:
|
|
7198
|
-
if (
|
|
7199
|
-
|
|
7193
|
+
if (token.end)
|
|
7194
|
+
token.end.push(this.sourceToken);
|
|
7200
7195
|
else
|
|
7201
|
-
|
|
7196
|
+
token.end = [this.sourceToken];
|
|
7202
7197
|
if (this.type === "newline")
|
|
7203
7198
|
yield* this.pop();
|
|
7204
7199
|
}
|
|
7205
7200
|
}
|
|
7206
7201
|
};
|
|
7207
|
-
|
|
7202
|
+
exports2.Parser = Parser;
|
|
7208
7203
|
}
|
|
7209
7204
|
});
|
|
7210
7205
|
|
|
7211
7206
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
7212
7207
|
var require_public_api = __commonJS({
|
|
7213
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(
|
|
7208
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7214
7209
|
"use strict";
|
|
7215
7210
|
var composer = require_composer();
|
|
7216
7211
|
var Document = require_Document();
|
|
@@ -7257,7 +7252,7 @@ var require_public_api = __commonJS({
|
|
|
7257
7252
|
}
|
|
7258
7253
|
return doc;
|
|
7259
7254
|
}
|
|
7260
|
-
function
|
|
7255
|
+
function parse4(src, reviver, options) {
|
|
7261
7256
|
let _reviver = void 0;
|
|
7262
7257
|
if (typeof reviver === "function") {
|
|
7263
7258
|
_reviver = reviver;
|
|
@@ -7298,16 +7293,16 @@ var require_public_api = __commonJS({
|
|
|
7298
7293
|
return value.toString(options);
|
|
7299
7294
|
return new Document.Document(value, _replacer, options).toString(options);
|
|
7300
7295
|
}
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7296
|
+
exports2.parse = parse4;
|
|
7297
|
+
exports2.parseAllDocuments = parseAllDocuments;
|
|
7298
|
+
exports2.parseDocument = parseDocument;
|
|
7299
|
+
exports2.stringify = stringify2;
|
|
7305
7300
|
}
|
|
7306
7301
|
});
|
|
7307
7302
|
|
|
7308
7303
|
// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js
|
|
7309
7304
|
var require_dist = __commonJS({
|
|
7310
|
-
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(
|
|
7305
|
+
"node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports2) {
|
|
7311
7306
|
"use strict";
|
|
7312
7307
|
var composer = require_composer();
|
|
7313
7308
|
var Document = require_Document();
|
|
@@ -7325,55 +7320,125 @@ var require_dist = __commonJS({
|
|
|
7325
7320
|
var parser = require_parser();
|
|
7326
7321
|
var publicApi = require_public_api();
|
|
7327
7322
|
var visit = require_visit();
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7323
|
+
exports2.Composer = composer.Composer;
|
|
7324
|
+
exports2.Document = Document.Document;
|
|
7325
|
+
exports2.Schema = Schema.Schema;
|
|
7326
|
+
exports2.YAMLError = errors.YAMLError;
|
|
7327
|
+
exports2.YAMLParseError = errors.YAMLParseError;
|
|
7328
|
+
exports2.YAMLWarning = errors.YAMLWarning;
|
|
7329
|
+
exports2.Alias = Alias.Alias;
|
|
7330
|
+
exports2.isAlias = identity.isAlias;
|
|
7331
|
+
exports2.isCollection = identity.isCollection;
|
|
7332
|
+
exports2.isDocument = identity.isDocument;
|
|
7333
|
+
exports2.isMap = identity.isMap;
|
|
7334
|
+
exports2.isNode = identity.isNode;
|
|
7335
|
+
exports2.isPair = identity.isPair;
|
|
7336
|
+
exports2.isScalar = identity.isScalar;
|
|
7337
|
+
exports2.isSeq = identity.isSeq;
|
|
7338
|
+
exports2.Pair = Pair.Pair;
|
|
7339
|
+
exports2.Scalar = Scalar.Scalar;
|
|
7340
|
+
exports2.YAMLMap = YAMLMap.YAMLMap;
|
|
7341
|
+
exports2.YAMLSeq = YAMLSeq.YAMLSeq;
|
|
7342
|
+
exports2.CST = cst;
|
|
7343
|
+
exports2.Lexer = lexer.Lexer;
|
|
7344
|
+
exports2.LineCounter = lineCounter.LineCounter;
|
|
7345
|
+
exports2.Parser = parser.Parser;
|
|
7346
|
+
exports2.parse = publicApi.parse;
|
|
7347
|
+
exports2.parseAllDocuments = publicApi.parseAllDocuments;
|
|
7348
|
+
exports2.parseDocument = publicApi.parseDocument;
|
|
7349
|
+
exports2.stringify = publicApi.stringify;
|
|
7350
|
+
exports2.visit = visit.visit;
|
|
7351
|
+
exports2.visitAsync = visit.visitAsync;
|
|
7357
7352
|
}
|
|
7358
7353
|
});
|
|
7359
7354
|
|
|
7360
7355
|
// src/action.ts
|
|
7361
|
-
|
|
7356
|
+
var import_node_fs2 = require("fs");
|
|
7357
|
+
var import_yaml4 = __toESM(require_dist(), 1);
|
|
7362
7358
|
|
|
7363
|
-
// src/
|
|
7359
|
+
// src/sources/github.ts
|
|
7360
|
+
var import_node_child_process = require("child_process");
|
|
7364
7361
|
var API_BASE = "https://api.github.com";
|
|
7362
|
+
var cachedToken;
|
|
7363
|
+
function resolveToken() {
|
|
7364
|
+
if (cachedToken) return cachedToken;
|
|
7365
|
+
if (process.env.GITHUB_TOKEN) {
|
|
7366
|
+
cachedToken = process.env.GITHUB_TOKEN;
|
|
7367
|
+
return cachedToken;
|
|
7368
|
+
}
|
|
7369
|
+
try {
|
|
7370
|
+
const t = (0, import_node_child_process.execFileSync)("gh", ["auth", "token"], {
|
|
7371
|
+
encoding: "utf-8",
|
|
7372
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
7373
|
+
}).trim();
|
|
7374
|
+
if (t) {
|
|
7375
|
+
cachedToken = t;
|
|
7376
|
+
return cachedToken;
|
|
7377
|
+
}
|
|
7378
|
+
} catch {
|
|
7379
|
+
}
|
|
7380
|
+
throw new Error("No GitHub token found. Set GITHUB_TOKEN or run `gh auth login`.");
|
|
7381
|
+
}
|
|
7382
|
+
function headers(accept = "application/vnd.github+json") {
|
|
7383
|
+
return {
|
|
7384
|
+
Authorization: `Bearer ${resolveToken()}`,
|
|
7385
|
+
Accept: accept,
|
|
7386
|
+
"X-GitHub-Api-Version": "2022-11-28"
|
|
7387
|
+
};
|
|
7388
|
+
}
|
|
7389
|
+
async function ghFileAtSha(sha, path, repo) {
|
|
7390
|
+
const url = `${API_BASE}/repos/${repo}/contents/${path}?ref=${sha}`;
|
|
7391
|
+
const response = await fetch(url, {
|
|
7392
|
+
headers: headers("application/vnd.github.raw+json")
|
|
7393
|
+
});
|
|
7394
|
+
if (!response.ok) return null;
|
|
7395
|
+
return response.text();
|
|
7396
|
+
}
|
|
7397
|
+
async function ghLsTree(sha, repo) {
|
|
7398
|
+
const url = `${API_BASE}/repos/${repo}/git/trees/${sha}?recursive=1`;
|
|
7399
|
+
const response = await fetch(url, { headers: headers() });
|
|
7400
|
+
if (!response.ok) return [];
|
|
7401
|
+
const data = await response.json();
|
|
7402
|
+
return data.tree.filter((item) => item.type === "blob").map((item) => item.path);
|
|
7403
|
+
}
|
|
7404
|
+
async function getPrShas(prNumber, repo) {
|
|
7405
|
+
const url = `${API_BASE}/repos/${repo}/pulls/${prNumber}`;
|
|
7406
|
+
const response = await fetch(url, { headers: headers() });
|
|
7407
|
+
if (!response.ok) {
|
|
7408
|
+
throw new Error(`GitHub API error ${response.status}: failed to fetch PR #${prNumber}`);
|
|
7409
|
+
}
|
|
7410
|
+
const data = await response.json();
|
|
7411
|
+
return { baseRefOid: data.base.sha, headRefOid: data.head.sha };
|
|
7412
|
+
}
|
|
7413
|
+
function detectRepo() {
|
|
7414
|
+
const fromEnv = process.env.GITHUB_REPOSITORY;
|
|
7415
|
+
if (fromEnv) return fromEnv;
|
|
7416
|
+
try {
|
|
7417
|
+
const remote = (0, import_node_child_process.execFileSync)("git", ["remote", "get-url", "origin"], {
|
|
7418
|
+
encoding: "utf-8",
|
|
7419
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
7420
|
+
}).trim();
|
|
7421
|
+
const match = remote.match(/github\.com[:/]([^/]+\/[^/.]+?)(?:\.git)?$/);
|
|
7422
|
+
if (match) return match[1];
|
|
7423
|
+
} catch {
|
|
7424
|
+
}
|
|
7425
|
+
throw new Error("Could not detect GitHub repo \u2014 set GITHUB_REPOSITORY or pass --repo");
|
|
7426
|
+
}
|
|
7427
|
+
|
|
7428
|
+
// src/action/comment.ts
|
|
7429
|
+
var API_BASE2 = "https://api.github.com";
|
|
7365
7430
|
var MARKER = "<!-- lockdelta -->";
|
|
7366
|
-
function githubHeaders(
|
|
7431
|
+
function githubHeaders(token) {
|
|
7367
7432
|
return {
|
|
7368
|
-
Authorization: `Bearer ${
|
|
7433
|
+
Authorization: `Bearer ${token}`,
|
|
7369
7434
|
Accept: "application/vnd.github+json",
|
|
7370
7435
|
"Content-Type": "application/json",
|
|
7371
7436
|
"X-GitHub-Api-Version": "2022-11-28"
|
|
7372
7437
|
};
|
|
7373
7438
|
}
|
|
7374
|
-
async function findExistingComment(prNumber, repo,
|
|
7375
|
-
const url = `${
|
|
7376
|
-
const response = await fetch(url, { headers: githubHeaders(
|
|
7439
|
+
async function findExistingComment(prNumber, repo, token) {
|
|
7440
|
+
const url = `${API_BASE2}/repos/${repo}/issues/${prNumber}/comments?per_page=100`;
|
|
7441
|
+
const response = await fetch(url, { headers: githubHeaders(token) });
|
|
7377
7442
|
if (!response.ok) return null;
|
|
7378
7443
|
const comments = await response.json();
|
|
7379
7444
|
const found = comments.find((c) => c.body.includes(MARKER));
|
|
@@ -7382,34 +7447,42 @@ async function findExistingComment(prNumber, repo, token2) {
|
|
|
7382
7447
|
async function postPrComment(markdown, prNumber, repo) {
|
|
7383
7448
|
if (!prNumber) throw new Error("post-comment requires a PR number");
|
|
7384
7449
|
if (!repo) throw new Error("post-comment requires repo to be set");
|
|
7385
|
-
const t =
|
|
7386
|
-
if (!t) throw new Error("GITHUB_TOKEN is required for post-comment");
|
|
7450
|
+
const t = resolveToken();
|
|
7387
7451
|
const body = `${MARKER}
|
|
7388
7452
|
|
|
7389
7453
|
${markdown}`;
|
|
7390
7454
|
const hdrs = githubHeaders(t);
|
|
7391
7455
|
const existing = await findExistingComment(prNumber, repo, t);
|
|
7456
|
+
let res;
|
|
7392
7457
|
if (existing !== null) {
|
|
7393
|
-
await fetch(`${
|
|
7458
|
+
res = await fetch(`${API_BASE2}/repos/${repo}/issues/comments/${existing.id}`, {
|
|
7394
7459
|
method: "PATCH",
|
|
7395
7460
|
headers: hdrs,
|
|
7396
7461
|
body: JSON.stringify({ body })
|
|
7397
7462
|
});
|
|
7398
7463
|
} else {
|
|
7399
|
-
await fetch(`${
|
|
7464
|
+
res = await fetch(`${API_BASE2}/repos/${repo}/issues/${prNumber}/comments`, {
|
|
7400
7465
|
method: "POST",
|
|
7401
7466
|
headers: hdrs,
|
|
7402
7467
|
body: JSON.stringify({ body })
|
|
7403
7468
|
});
|
|
7404
7469
|
}
|
|
7470
|
+
if (!res.ok) {
|
|
7471
|
+
const text = await res.text().catch(() => "");
|
|
7472
|
+
throw new Error(`Failed to post PR comment (${res.status}): ${text}`);
|
|
7473
|
+
}
|
|
7405
7474
|
}
|
|
7406
7475
|
async function hidePrComment(prNumber, repo) {
|
|
7407
7476
|
if (!prNumber || !repo) return;
|
|
7408
|
-
|
|
7409
|
-
|
|
7477
|
+
let t;
|
|
7478
|
+
try {
|
|
7479
|
+
t = resolveToken();
|
|
7480
|
+
} catch {
|
|
7481
|
+
return;
|
|
7482
|
+
}
|
|
7410
7483
|
const existing = await findExistingComment(prNumber, repo, t);
|
|
7411
7484
|
if (!existing) return;
|
|
7412
|
-
await fetch(`${
|
|
7485
|
+
await fetch(`${API_BASE2}/graphql`, {
|
|
7413
7486
|
method: "POST",
|
|
7414
7487
|
headers: githubHeaders(t),
|
|
7415
7488
|
body: JSON.stringify({
|
|
@@ -7425,15 +7498,7 @@ async function hidePrComment(prNumber, repo) {
|
|
|
7425
7498
|
|
|
7426
7499
|
// src/action/filters.ts
|
|
7427
7500
|
var import_yaml = __toESM(require_dist(), 1);
|
|
7428
|
-
function
|
|
7429
|
-
if (!filtersYaml.trim()) return {};
|
|
7430
|
-
let config;
|
|
7431
|
-
try {
|
|
7432
|
-
config = (0, import_yaml.parse)(filtersYaml);
|
|
7433
|
-
} catch {
|
|
7434
|
-
return {};
|
|
7435
|
-
}
|
|
7436
|
-
if (!config || typeof config !== "object") return {};
|
|
7501
|
+
function applyFiltersConfig(config, changes) {
|
|
7437
7502
|
const changedNames = new Set(changes.map((c) => c.name.toLowerCase()));
|
|
7438
7503
|
const result = {};
|
|
7439
7504
|
for (const [groupName, packages] of Object.entries(config)) {
|
|
@@ -7502,11 +7567,8 @@ ${removed.map(fmt).join("\n")}`);
|
|
|
7502
7567
|
return sections.join("\n\n");
|
|
7503
7568
|
}
|
|
7504
7569
|
|
|
7505
|
-
// src/index.ts
|
|
7506
|
-
import { readFileSync } from "fs";
|
|
7507
|
-
|
|
7508
7570
|
// src/core/report.ts
|
|
7509
|
-
|
|
7571
|
+
var import_node_path2 = require("path");
|
|
7510
7572
|
|
|
7511
7573
|
// src/ecosystems/deno/deno-json.ts
|
|
7512
7574
|
function normalizeDenoName(name) {
|
|
@@ -8745,13 +8807,13 @@ function diffPackages(oldPkgs, newPkgs, directDeps, normalizeName) {
|
|
|
8745
8807
|
}
|
|
8746
8808
|
|
|
8747
8809
|
// src/core/discovery.ts
|
|
8748
|
-
|
|
8810
|
+
var import_node_path = require("path");
|
|
8749
8811
|
function workspaceFromPath(filePath) {
|
|
8750
|
-
const parent = posix.dirname(filePath);
|
|
8812
|
+
const parent = import_node_path.posix.dirname(filePath);
|
|
8751
8813
|
return parent === "." || parent === "" ? "." : parent;
|
|
8752
8814
|
}
|
|
8753
8815
|
function detectLockfileInfo(filePath) {
|
|
8754
|
-
const filename = posix.basename(filePath);
|
|
8816
|
+
const filename = import_node_path.posix.basename(filePath);
|
|
8755
8817
|
const ecosystem = getEcosystemForLockfile(filename);
|
|
8756
8818
|
if (!ecosystem) return null;
|
|
8757
8819
|
const type = ecosystem.getLockfileType(filename);
|
|
@@ -8796,7 +8858,7 @@ var LOCKFILE_PRIORITY = {
|
|
|
8796
8858
|
"pdm.lock": 2
|
|
8797
8859
|
};
|
|
8798
8860
|
function lockfilePriority(path) {
|
|
8799
|
-
return LOCKFILE_PRIORITY[posix.basename(path)] ?? 99;
|
|
8861
|
+
return LOCKFILE_PRIORITY[import_node_path.posix.basename(path)] ?? 99;
|
|
8800
8862
|
}
|
|
8801
8863
|
function resolveLockfilePair(baseFiles, headFiles) {
|
|
8802
8864
|
const headByPath = new Map(headFiles.map((f) => [f.path, f]));
|
|
@@ -8821,7 +8883,7 @@ function resolveLockfilePair(baseFiles, headFiles) {
|
|
|
8821
8883
|
baseType: base.type,
|
|
8822
8884
|
headPath: head.path,
|
|
8823
8885
|
headType: head.type,
|
|
8824
|
-
migrationNote: `lockfile migration: ${posix.basename(base.path)} (${base.type}) \u2192 ${posix.basename(head.path)} (${head.type})`,
|
|
8886
|
+
migrationNote: `lockfile migration: ${import_node_path.posix.basename(base.path)} (${base.type}) \u2192 ${import_node_path.posix.basename(head.path)} (${head.type})`,
|
|
8825
8887
|
ecosystemName: head.ecosystemName
|
|
8826
8888
|
};
|
|
8827
8889
|
}
|
|
@@ -8832,7 +8894,7 @@ function resolveLockfilePair(baseFiles, headFiles) {
|
|
|
8832
8894
|
baseType: null,
|
|
8833
8895
|
headPath: head.path,
|
|
8834
8896
|
headType: head.type,
|
|
8835
|
-
migrationNote: `new lockfile added: ${posix.basename(head.path)} (${head.type})`,
|
|
8897
|
+
migrationNote: `new lockfile added: ${import_node_path.posix.basename(head.path)} (${head.type})`,
|
|
8836
8898
|
ecosystemName: head.ecosystemName
|
|
8837
8899
|
};
|
|
8838
8900
|
}
|
|
@@ -8843,7 +8905,7 @@ function resolveLockfilePair(baseFiles, headFiles) {
|
|
|
8843
8905
|
baseType: base.type,
|
|
8844
8906
|
headPath: null,
|
|
8845
8907
|
headType: null,
|
|
8846
|
-
migrationNote: `lockfile removed: ${posix.basename(base.path)} (${base.type})`,
|
|
8908
|
+
migrationNote: `lockfile removed: ${import_node_path.posix.basename(base.path)} (${base.type})`,
|
|
8847
8909
|
ecosystemName: base.ecosystemName
|
|
8848
8910
|
};
|
|
8849
8911
|
}
|
|
@@ -8854,7 +8916,7 @@ function resolveLockfilePair(baseFiles, headFiles) {
|
|
|
8854
8916
|
async function buildLockfileEntry(pair, workspace, getBase, getHead) {
|
|
8855
8917
|
const ecosystem = getEcosystemByName(pair.ecosystemName);
|
|
8856
8918
|
if (!ecosystem) return null;
|
|
8857
|
-
const manifestPath = ecosystem.manifestName ? workspace === "." ? ecosystem.manifestName :
|
|
8919
|
+
const manifestPath = ecosystem.manifestName ? workspace === "." ? ecosystem.manifestName : import_node_path2.posix.join(workspace, ecosystem.manifestName) : null;
|
|
8858
8920
|
const [oldContent, newContent, manifestContent] = await Promise.all([
|
|
8859
8921
|
pair.basePath ? getBase(pair.basePath) : Promise.resolve(null),
|
|
8860
8922
|
pair.headPath ? getHead(pair.headPath) : Promise.resolve(null),
|
|
@@ -8891,12 +8953,12 @@ async function buildLockfileEntry(pair, workspace, getBase, getHead) {
|
|
|
8891
8953
|
async function collectLockfileEntries(options) {
|
|
8892
8954
|
const { getBase, getHead, allBasePaths, allHeadPaths, lockfile, lockfileType, onNote } = options;
|
|
8893
8955
|
if (lockfile) {
|
|
8894
|
-
const filename =
|
|
8956
|
+
const filename = import_node_path2.posix.basename(lockfile);
|
|
8895
8957
|
const ecosystem = getEcosystemForLockfile(filename);
|
|
8896
8958
|
if (!ecosystem) throw new Error(`Cannot determine ecosystem for lockfile: ${lockfile}`);
|
|
8897
8959
|
const type = lockfileType ?? ecosystem.getLockfileType(filename);
|
|
8898
8960
|
if (!type) throw new Error(`Cannot determine lockfile type for ${lockfile} \u2014 use --type`);
|
|
8899
|
-
const ws =
|
|
8961
|
+
const ws = import_node_path2.posix.dirname(lockfile);
|
|
8900
8962
|
const pair = {
|
|
8901
8963
|
basePath: lockfile,
|
|
8902
8964
|
baseType: type,
|
|
@@ -8955,10 +9017,10 @@ function buildDiffReport(lockfiles, baseRef, headRef) {
|
|
|
8955
9017
|
}
|
|
8956
9018
|
|
|
8957
9019
|
// src/sources/git.ts
|
|
8958
|
-
|
|
9020
|
+
var import_node_child_process2 = require("child_process");
|
|
8959
9021
|
function gitShow(ref, path) {
|
|
8960
9022
|
try {
|
|
8961
|
-
const result = execFileSync("git", ["show", `${ref}:${path}`], {
|
|
9023
|
+
const result = (0, import_node_child_process2.execFileSync)("git", ["show", `${ref}:${path}`], {
|
|
8962
9024
|
encoding: "utf-8",
|
|
8963
9025
|
stdio: ["pipe", "pipe", "pipe"]
|
|
8964
9026
|
});
|
|
@@ -8969,7 +9031,7 @@ function gitShow(ref, path) {
|
|
|
8969
9031
|
}
|
|
8970
9032
|
function gitLsTree(ref) {
|
|
8971
9033
|
try {
|
|
8972
|
-
const result = execFileSync("git", ["ls-tree", "-r", "--name-only", ref], {
|
|
9034
|
+
const result = (0, import_node_child_process2.execFileSync)("git", ["ls-tree", "-r", "--name-only", ref], {
|
|
8973
9035
|
encoding: "utf-8",
|
|
8974
9036
|
stdio: ["pipe", "pipe", "pipe"]
|
|
8975
9037
|
});
|
|
@@ -8979,58 +9041,14 @@ function gitLsTree(ref) {
|
|
|
8979
9041
|
}
|
|
8980
9042
|
}
|
|
8981
9043
|
|
|
8982
|
-
// src/sources/
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
function token() {
|
|
8986
|
-
const t = process.env.GITHUB_TOKEN;
|
|
8987
|
-
if (!t) throw new Error("GITHUB_TOKEN is required for GitHub API access");
|
|
8988
|
-
return t;
|
|
8989
|
-
}
|
|
8990
|
-
function headers(accept = "application/vnd.github+json") {
|
|
8991
|
-
return {
|
|
8992
|
-
Authorization: `Bearer ${token()}`,
|
|
8993
|
-
Accept: accept,
|
|
8994
|
-
"X-GitHub-Api-Version": "2022-11-28"
|
|
8995
|
-
};
|
|
8996
|
-
}
|
|
8997
|
-
async function ghFileAtSha(sha, path, repo) {
|
|
8998
|
-
const url = `${API_BASE2}/repos/${repo}/contents/${path}?ref=${sha}`;
|
|
8999
|
-
const response = await fetch(url, {
|
|
9000
|
-
headers: headers("application/vnd.github.raw+json")
|
|
9001
|
-
});
|
|
9002
|
-
if (!response.ok) return null;
|
|
9003
|
-
return response.text();
|
|
9004
|
-
}
|
|
9005
|
-
async function ghLsTree(sha, repo) {
|
|
9006
|
-
const url = `${API_BASE2}/repos/${repo}/git/trees/${sha}?recursive=1`;
|
|
9007
|
-
const response = await fetch(url, { headers: headers() });
|
|
9008
|
-
if (!response.ok) return [];
|
|
9009
|
-
const data = await response.json();
|
|
9010
|
-
return data.tree.filter((item) => item.type === "blob").map((item) => item.path);
|
|
9011
|
-
}
|
|
9012
|
-
async function getPrShas(prNumber, repo) {
|
|
9013
|
-
const url = `${API_BASE2}/repos/${repo}/pulls/${prNumber}`;
|
|
9014
|
-
const response = await fetch(url, { headers: headers() });
|
|
9015
|
-
if (!response.ok) {
|
|
9016
|
-
throw new Error(`GitHub API error ${response.status}: failed to fetch PR #${prNumber}`);
|
|
9017
|
-
}
|
|
9018
|
-
const data = await response.json();
|
|
9019
|
-
return { baseRefOid: data.base.sha, headRefOid: data.head.sha };
|
|
9020
|
-
}
|
|
9021
|
-
function detectRepo() {
|
|
9022
|
-
const fromEnv = process.env.GITHUB_REPOSITORY;
|
|
9023
|
-
if (fromEnv) return fromEnv;
|
|
9044
|
+
// src/sources/local.ts
|
|
9045
|
+
var import_node_fs = require("fs");
|
|
9046
|
+
function readLocalFile(path) {
|
|
9024
9047
|
try {
|
|
9025
|
-
|
|
9026
|
-
encoding: "utf-8",
|
|
9027
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
9028
|
-
}).trim();
|
|
9029
|
-
const match = remote.match(/github\.com[:/]([^/]+\/[^/.]+?)(?:\.git)?$/);
|
|
9030
|
-
if (match) return match[1];
|
|
9048
|
+
return (0, import_node_fs.readFileSync)(path, "utf-8");
|
|
9031
9049
|
} catch {
|
|
9050
|
+
return null;
|
|
9032
9051
|
}
|
|
9033
|
-
throw new Error("Could not detect GitHub repo \u2014 set GITHUB_REPOSITORY or pass --repo");
|
|
9034
9052
|
}
|
|
9035
9053
|
|
|
9036
9054
|
// src/index.ts
|
|
@@ -9054,15 +9072,8 @@ async function run(options = {}) {
|
|
|
9054
9072
|
if (options.oldFile && options.newFile) {
|
|
9055
9073
|
const oldPath = options.oldFile;
|
|
9056
9074
|
const newPath = options.newFile;
|
|
9057
|
-
const
|
|
9058
|
-
|
|
9059
|
-
return readFileSync(filePath, "utf-8");
|
|
9060
|
-
} catch {
|
|
9061
|
-
return null;
|
|
9062
|
-
}
|
|
9063
|
-
};
|
|
9064
|
-
const getBase2 = (path) => Promise.resolve(path === oldPath ? readLocal(oldPath) : null);
|
|
9065
|
-
const getHead2 = (path) => Promise.resolve(path === newPath ? readLocal(newPath) : null);
|
|
9075
|
+
const getBase2 = (path) => Promise.resolve(path === oldPath ? readLocalFile(oldPath) : null);
|
|
9076
|
+
const getHead2 = (path) => Promise.resolve(path === newPath ? readLocalFile(newPath) : null);
|
|
9066
9077
|
const lockfiles2 = await collectLockfileEntries({
|
|
9067
9078
|
getBase: getBase2,
|
|
9068
9079
|
getHead: getHead2,
|
|
@@ -9115,13 +9126,13 @@ async function run(options = {}) {
|
|
|
9115
9126
|
|
|
9116
9127
|
// src/action.ts
|
|
9117
9128
|
function getInput(name) {
|
|
9118
|
-
return (process.env[`INPUT_${name.replace(
|
|
9129
|
+
return (process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] ?? "").trim();
|
|
9119
9130
|
}
|
|
9120
9131
|
function setOutput(name, value) {
|
|
9121
9132
|
const outputFile = process.env.GITHUB_OUTPUT;
|
|
9122
9133
|
if (outputFile) {
|
|
9123
9134
|
const delimiter = `DEPDIFF_${Math.random().toString(36).slice(2).toUpperCase()}`;
|
|
9124
|
-
appendFileSync(outputFile, `${name}<<${delimiter}
|
|
9135
|
+
(0, import_node_fs2.appendFileSync)(outputFile, `${name}<<${delimiter}
|
|
9125
9136
|
${value}
|
|
9126
9137
|
${delimiter}
|
|
9127
9138
|
`);
|
|
@@ -9142,7 +9153,7 @@ function readEventPayload() {
|
|
|
9142
9153
|
const eventPath = process.env.GITHUB_EVENT_PATH;
|
|
9143
9154
|
if (!eventPath) return null;
|
|
9144
9155
|
try {
|
|
9145
|
-
return JSON.parse(
|
|
9156
|
+
return JSON.parse((0, import_node_fs2.readFileSync)(eventPath, "utf-8"));
|
|
9146
9157
|
} catch {
|
|
9147
9158
|
return null;
|
|
9148
9159
|
}
|
|
@@ -9167,10 +9178,14 @@ function detectPushShas() {
|
|
|
9167
9178
|
try {
|
|
9168
9179
|
const prNumber = getInput("pr-number") || detectPrNumber();
|
|
9169
9180
|
const repo = getInput("repo") || process.env.GITHUB_REPOSITORY || "";
|
|
9170
|
-
const
|
|
9181
|
+
const inputBase = getInput("base-ref") || void 0;
|
|
9182
|
+
const inputHead = getInput("head-ref") || void 0;
|
|
9183
|
+
const base = inputBase ?? (!inputHead ? process.env.GITHUB_BASE_REF || void 0 : void 0);
|
|
9184
|
+
const head = inputHead ?? (!inputBase ? process.env.GITHUB_HEAD_REF || void 0 : void 0);
|
|
9185
|
+
const pushShas = !prNumber && !inputBase && !inputHead ? detectPushShas() : null;
|
|
9171
9186
|
const report = await run({
|
|
9172
|
-
base
|
|
9173
|
-
head
|
|
9187
|
+
base,
|
|
9188
|
+
head,
|
|
9174
9189
|
prNumber: prNumber || void 0,
|
|
9175
9190
|
baseSha: pushShas?.baseSha,
|
|
9176
9191
|
headSha: pushShas?.headSha,
|
|
@@ -9181,19 +9196,49 @@ function detectPushShas() {
|
|
|
9181
9196
|
});
|
|
9182
9197
|
const json = JSON.stringify(report, null, 2);
|
|
9183
9198
|
setOutput("diff", json);
|
|
9199
|
+
const hasChanges = report.summary.total_changes > 0;
|
|
9200
|
+
setOutput("has-changes", String(hasChanges));
|
|
9184
9201
|
const jsonToFile = getInput("json-to-file");
|
|
9185
|
-
if (jsonToFile) writeFileSync(jsonToFile, json);
|
|
9202
|
+
if (jsonToFile) (0, import_node_fs2.writeFileSync)(jsonToFile, json);
|
|
9186
9203
|
const filtersInput = getInput("filters");
|
|
9187
|
-
|
|
9204
|
+
const filtersFromPath = getInput("filters-from");
|
|
9205
|
+
if (filtersInput || filtersFromPath) {
|
|
9206
|
+
let fileConfig = {};
|
|
9207
|
+
if (filtersFromPath) {
|
|
9208
|
+
let content;
|
|
9209
|
+
try {
|
|
9210
|
+
content = (0, import_node_fs2.readFileSync)(filtersFromPath, "utf-8");
|
|
9211
|
+
} catch {
|
|
9212
|
+
logError(`filters-from: could not read file '${filtersFromPath}'`);
|
|
9213
|
+
process.exit(1);
|
|
9214
|
+
}
|
|
9215
|
+
try {
|
|
9216
|
+
fileConfig = (0, import_yaml4.parse)(content) ?? {};
|
|
9217
|
+
} catch {
|
|
9218
|
+
logError(`filters-from: invalid YAML in '${filtersFromPath}'`);
|
|
9219
|
+
process.exit(1);
|
|
9220
|
+
}
|
|
9221
|
+
}
|
|
9222
|
+
let inlineConfig = {};
|
|
9223
|
+
if (filtersInput) {
|
|
9224
|
+
try {
|
|
9225
|
+
inlineConfig = (0, import_yaml4.parse)(filtersInput) ?? {};
|
|
9226
|
+
} catch {
|
|
9227
|
+
logError("filters: invalid YAML");
|
|
9228
|
+
process.exit(1);
|
|
9229
|
+
}
|
|
9230
|
+
}
|
|
9231
|
+
const mergedConfig = { ...fileConfig, ...inlineConfig };
|
|
9188
9232
|
const allChanges = report.lockfiles.flatMap((lf) => lf.changes);
|
|
9189
|
-
const filterResults =
|
|
9233
|
+
const filterResults = applyFiltersConfig(mergedConfig, allChanges);
|
|
9190
9234
|
for (const [name, matched] of Object.entries(filterResults)) {
|
|
9191
9235
|
setOutput(name, String(matched));
|
|
9192
9236
|
}
|
|
9237
|
+
const changedGroups = Object.entries(filterResults).filter(([, matched]) => matched).map(([name]) => name);
|
|
9238
|
+
setOutput("changed-groups", JSON.stringify(changedGroups));
|
|
9193
9239
|
}
|
|
9194
9240
|
const wantsMarkdown = getInput("markdown") === "true";
|
|
9195
9241
|
const postCommentMode = getInput("post-comment");
|
|
9196
|
-
const hasChanges = report.summary.total_changes > 0;
|
|
9197
9242
|
const shouldPost = postCommentMode === "true" || postCommentMode === "if-changed" && hasChanges;
|
|
9198
9243
|
const shouldHide = postCommentMode === "if-changed" && !hasChanges;
|
|
9199
9244
|
if (wantsMarkdown || shouldPost) {
|
|
@@ -9201,7 +9246,7 @@ function detectPushShas() {
|
|
|
9201
9246
|
if (wantsMarkdown) {
|
|
9202
9247
|
setOutput("markdown", md);
|
|
9203
9248
|
const markdownToFile = getInput("markdown-to-file");
|
|
9204
|
-
if (markdownToFile) writeFileSync(markdownToFile, md);
|
|
9249
|
+
if (markdownToFile) (0, import_node_fs2.writeFileSync)(markdownToFile, md);
|
|
9205
9250
|
}
|
|
9206
9251
|
if (shouldPost) {
|
|
9207
9252
|
await postPrComment(md, prNumber, repo || void 0);
|
|
@@ -9258,4 +9303,4 @@ smol-toml/dist/index.js:
|
|
|
9258
9303
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
9259
9304
|
*)
|
|
9260
9305
|
*/
|
|
9261
|
-
//# sourceMappingURL=action.
|
|
9306
|
+
//# sourceMappingURL=action.cjs.map
|