@rsbuild/plugin-source-build 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +228 -190
- package/dist/index.js +228 -190
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -224,9 +224,9 @@ var init_project = __esm({
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
227
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js
|
|
228
228
|
var require_identity = __commonJS({
|
|
229
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
229
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
230
230
|
"use strict";
|
|
231
231
|
var ALIAS = Symbol.for("yaml.alias");
|
|
232
232
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -281,9 +281,9 @@ var require_identity = __commonJS({
|
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
284
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js
|
|
285
285
|
var require_visit = __commonJS({
|
|
286
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
286
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js"(exports2) {
|
|
287
287
|
"use strict";
|
|
288
288
|
var identity = require_identity();
|
|
289
289
|
var BREAK = Symbol("break visit");
|
|
@@ -439,9 +439,9 @@ var require_visit = __commonJS({
|
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
|
|
442
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
442
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js
|
|
443
443
|
var require_directives = __commonJS({
|
|
444
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
444
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
445
445
|
"use strict";
|
|
446
446
|
var identity = require_identity();
|
|
447
447
|
var visit = require_visit();
|
|
@@ -610,9 +610,9 @@ var require_directives = __commonJS({
|
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
612
|
|
|
613
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
613
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js
|
|
614
614
|
var require_anchors = __commonJS({
|
|
615
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
615
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
616
616
|
"use strict";
|
|
617
617
|
var identity = require_identity();
|
|
618
618
|
var visit = require_visit();
|
|
@@ -681,9 +681,9 @@ var require_anchors = __commonJS({
|
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
684
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js
|
|
685
685
|
var require_applyReviver = __commonJS({
|
|
686
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
686
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
687
687
|
"use strict";
|
|
688
688
|
function applyReviver(reviver, obj, key, val) {
|
|
689
689
|
if (val && typeof val === "object") {
|
|
@@ -731,9 +731,9 @@ var require_applyReviver = __commonJS({
|
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
|
|
734
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
734
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js
|
|
735
735
|
var require_toJS = __commonJS({
|
|
736
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
736
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
737
737
|
"use strict";
|
|
738
738
|
var identity = require_identity();
|
|
739
739
|
function toJS(value, arg, ctx) {
|
|
@@ -761,9 +761,9 @@ var require_toJS = __commonJS({
|
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
|
|
764
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
764
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js
|
|
765
765
|
var require_Node = __commonJS({
|
|
766
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
766
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
767
767
|
"use strict";
|
|
768
768
|
var applyReviver = require_applyReviver();
|
|
769
769
|
var identity = require_identity();
|
|
@@ -802,9 +802,9 @@ var require_Node = __commonJS({
|
|
|
802
802
|
}
|
|
803
803
|
});
|
|
804
804
|
|
|
805
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
805
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js
|
|
806
806
|
var require_Alias = __commonJS({
|
|
807
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
807
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
808
808
|
"use strict";
|
|
809
809
|
var anchors = require_anchors();
|
|
810
810
|
var visit = require_visit();
|
|
@@ -904,9 +904,9 @@ var require_Alias = __commonJS({
|
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
|
|
907
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
907
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js
|
|
908
908
|
var require_Scalar = __commonJS({
|
|
909
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
909
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
910
910
|
"use strict";
|
|
911
911
|
var identity = require_identity();
|
|
912
912
|
var Node = require_Node();
|
|
@@ -934,9 +934,9 @@ var require_Scalar = __commonJS({
|
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
936
|
|
|
937
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
937
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js
|
|
938
938
|
var require_createNode = __commonJS({
|
|
939
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
939
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
940
940
|
"use strict";
|
|
941
941
|
var Alias = require_Alias();
|
|
942
942
|
var identity = require_identity();
|
|
@@ -1010,9 +1010,9 @@ var require_createNode = __commonJS({
|
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
|
|
1013
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1013
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js
|
|
1014
1014
|
var require_Collection = __commonJS({
|
|
1015
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1015
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
1016
1016
|
"use strict";
|
|
1017
1017
|
var createNode = require_createNode();
|
|
1018
1018
|
var identity = require_identity();
|
|
@@ -1154,9 +1154,9 @@ var require_Collection = __commonJS({
|
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
|
|
1157
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1157
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1158
1158
|
var require_stringifyComment = __commonJS({
|
|
1159
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1159
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
1160
1160
|
"use strict";
|
|
1161
1161
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1162
1162
|
function indentComment(comment, indent) {
|
|
@@ -1171,9 +1171,9 @@ var require_stringifyComment = __commonJS({
|
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
1173
|
|
|
1174
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1174
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1175
1175
|
var require_foldFlowLines = __commonJS({
|
|
1176
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1176
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
1177
1177
|
"use strict";
|
|
1178
1178
|
var FOLD_FLOW = "flow";
|
|
1179
1179
|
var FOLD_BLOCK = "block";
|
|
@@ -1305,9 +1305,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
1307
1307
|
|
|
1308
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1308
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1309
1309
|
var require_stringifyString = __commonJS({
|
|
1310
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1310
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1311
1311
|
"use strict";
|
|
1312
1312
|
var Scalar = require_Scalar();
|
|
1313
1313
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1580,9 +1580,9 @@ ${indent}`);
|
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
|
|
1583
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1583
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js
|
|
1584
1584
|
var require_stringify = __commonJS({
|
|
1585
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1585
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1586
1586
|
"use strict";
|
|
1587
1587
|
var anchors = require_anchors();
|
|
1588
1588
|
var identity = require_identity();
|
|
@@ -1699,9 +1699,9 @@ ${ctx.indent}${str}`;
|
|
|
1699
1699
|
}
|
|
1700
1700
|
});
|
|
1701
1701
|
|
|
1702
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1702
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1703
1703
|
var require_stringifyPair = __commonJS({
|
|
1704
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1704
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1705
1705
|
"use strict";
|
|
1706
1706
|
var identity = require_identity();
|
|
1707
1707
|
var Scalar = require_Scalar();
|
|
@@ -1714,7 +1714,7 @@ var require_stringifyPair = __commonJS({
|
|
|
1714
1714
|
if (keyComment) {
|
|
1715
1715
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
1716
1716
|
}
|
|
1717
|
-
if (identity.isCollection(key)) {
|
|
1717
|
+
if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") {
|
|
1718
1718
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
1719
1719
|
throw new Error(msg);
|
|
1720
1720
|
}
|
|
@@ -1832,9 +1832,9 @@ ${ctx.indent}`;
|
|
|
1832
1832
|
}
|
|
1833
1833
|
});
|
|
1834
1834
|
|
|
1835
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1835
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js
|
|
1836
1836
|
var require_log = __commonJS({
|
|
1837
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1837
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js"(exports2) {
|
|
1838
1838
|
"use strict";
|
|
1839
1839
|
function debug(logLevel, ...messages) {
|
|
1840
1840
|
if (logLevel === "debug")
|
|
@@ -1853,9 +1853,9 @@ var require_log = __commonJS({
|
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
|
|
1856
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1856
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1857
1857
|
var require_addPairToJSMap = __commonJS({
|
|
1858
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1858
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1859
1859
|
"use strict";
|
|
1860
1860
|
var log = require_log();
|
|
1861
1861
|
var stringify = require_stringify();
|
|
@@ -1947,9 +1947,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
|
|
1950
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1950
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js
|
|
1951
1951
|
var require_Pair = __commonJS({
|
|
1952
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1952
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
1953
1953
|
"use strict";
|
|
1954
1954
|
var createNode = require_createNode();
|
|
1955
1955
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1987,9 +1987,9 @@ var require_Pair = __commonJS({
|
|
|
1987
1987
|
}
|
|
1988
1988
|
});
|
|
1989
1989
|
|
|
1990
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
1990
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1991
1991
|
var require_stringifyCollection = __commonJS({
|
|
1992
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
1992
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
1993
1993
|
"use strict";
|
|
1994
1994
|
var identity = require_identity();
|
|
1995
1995
|
var stringify = require_stringify();
|
|
@@ -2131,9 +2131,9 @@ ${indent}${end}`;
|
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
2133
|
|
|
2134
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2134
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2135
2135
|
var require_YAMLMap = __commonJS({
|
|
2136
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2136
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
2137
2137
|
"use strict";
|
|
2138
2138
|
var stringifyCollection = require_stringifyCollection();
|
|
2139
2139
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2275,9 +2275,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2275
2275
|
}
|
|
2276
2276
|
});
|
|
2277
2277
|
|
|
2278
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2278
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js
|
|
2279
2279
|
var require_map = __commonJS({
|
|
2280
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2280
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2281
2281
|
"use strict";
|
|
2282
2282
|
var identity = require_identity();
|
|
2283
2283
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2297,9 +2297,9 @@ var require_map = __commonJS({
|
|
|
2297
2297
|
}
|
|
2298
2298
|
});
|
|
2299
2299
|
|
|
2300
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2300
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2301
2301
|
var require_YAMLSeq = __commonJS({
|
|
2302
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2302
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2303
2303
|
"use strict";
|
|
2304
2304
|
var createNode = require_createNode();
|
|
2305
2305
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2413,9 +2413,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2413
2413
|
}
|
|
2414
2414
|
});
|
|
2415
2415
|
|
|
2416
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2416
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js
|
|
2417
2417
|
var require_seq = __commonJS({
|
|
2418
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2418
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2419
2419
|
"use strict";
|
|
2420
2420
|
var identity = require_identity();
|
|
2421
2421
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2435,9 +2435,9 @@ var require_seq = __commonJS({
|
|
|
2435
2435
|
}
|
|
2436
2436
|
});
|
|
2437
2437
|
|
|
2438
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2438
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js
|
|
2439
2439
|
var require_string = __commonJS({
|
|
2440
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2440
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2441
2441
|
"use strict";
|
|
2442
2442
|
var stringifyString = require_stringifyString();
|
|
2443
2443
|
var string = {
|
|
@@ -2454,9 +2454,9 @@ var require_string = __commonJS({
|
|
|
2454
2454
|
}
|
|
2455
2455
|
});
|
|
2456
2456
|
|
|
2457
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2457
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js
|
|
2458
2458
|
var require_null = __commonJS({
|
|
2459
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2459
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2460
2460
|
"use strict";
|
|
2461
2461
|
var Scalar = require_Scalar();
|
|
2462
2462
|
var nullTag = {
|
|
@@ -2472,9 +2472,9 @@ var require_null = __commonJS({
|
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
2474
2474
|
|
|
2475
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2475
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js
|
|
2476
2476
|
var require_bool = __commonJS({
|
|
2477
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2477
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2478
2478
|
"use strict";
|
|
2479
2479
|
var Scalar = require_Scalar();
|
|
2480
2480
|
var boolTag = {
|
|
@@ -2496,9 +2496,9 @@ var require_bool = __commonJS({
|
|
|
2496
2496
|
}
|
|
2497
2497
|
});
|
|
2498
2498
|
|
|
2499
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2499
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2500
2500
|
var require_stringifyNumber = __commonJS({
|
|
2501
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2501
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2502
2502
|
"use strict";
|
|
2503
2503
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2504
2504
|
if (typeof value === "bigint")
|
|
@@ -2523,9 +2523,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2523
2523
|
}
|
|
2524
2524
|
});
|
|
2525
2525
|
|
|
2526
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2526
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js
|
|
2527
2527
|
var require_float = __commonJS({
|
|
2528
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2528
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2529
2529
|
"use strict";
|
|
2530
2530
|
var Scalar = require_Scalar();
|
|
2531
2531
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2533,7 +2533,7 @@ var require_float = __commonJS({
|
|
|
2533
2533
|
identify: (value) => typeof value === "number",
|
|
2534
2534
|
default: true,
|
|
2535
2535
|
tag: "tag:yaml.org,2002:float",
|
|
2536
|
-
test: /^(?:[-+]?\.(?:inf|Inf|INF
|
|
2536
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
2537
2537
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
2538
2538
|
stringify: stringifyNumber.stringifyNumber
|
|
2539
2539
|
};
|
|
@@ -2569,9 +2569,9 @@ var require_float = __commonJS({
|
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
2571
2571
|
|
|
2572
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2572
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js
|
|
2573
2573
|
var require_int = __commonJS({
|
|
2574
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2574
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2575
2575
|
"use strict";
|
|
2576
2576
|
var stringifyNumber = require_stringifyNumber();
|
|
2577
2577
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2614,9 +2614,9 @@ var require_int = __commonJS({
|
|
|
2614
2614
|
}
|
|
2615
2615
|
});
|
|
2616
2616
|
|
|
2617
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2617
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js
|
|
2618
2618
|
var require_schema = __commonJS({
|
|
2619
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2619
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2620
2620
|
"use strict";
|
|
2621
2621
|
var map = require_map();
|
|
2622
2622
|
var _null = require_null();
|
|
@@ -2642,9 +2642,9 @@ var require_schema = __commonJS({
|
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2645
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js
|
|
2646
2646
|
var require_schema2 = __commonJS({
|
|
2647
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2647
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2648
2648
|
"use strict";
|
|
2649
2649
|
var Scalar = require_Scalar();
|
|
2650
2650
|
var map = require_map();
|
|
@@ -2709,9 +2709,9 @@ var require_schema2 = __commonJS({
|
|
|
2709
2709
|
}
|
|
2710
2710
|
});
|
|
2711
2711
|
|
|
2712
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2712
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2713
2713
|
var require_binary = __commonJS({
|
|
2714
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2714
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2715
2715
|
"use strict";
|
|
2716
2716
|
var Scalar = require_Scalar();
|
|
2717
2717
|
var stringifyString = require_stringifyString();
|
|
@@ -2773,9 +2773,9 @@ var require_binary = __commonJS({
|
|
|
2773
2773
|
}
|
|
2774
2774
|
});
|
|
2775
2775
|
|
|
2776
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2776
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2777
2777
|
var require_pairs = __commonJS({
|
|
2778
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2778
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2779
2779
|
"use strict";
|
|
2780
2780
|
var identity = require_identity();
|
|
2781
2781
|
var Pair = require_Pair();
|
|
@@ -2851,9 +2851,9 @@ ${cn.comment}` : item.comment;
|
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
|
|
2854
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2854
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2855
2855
|
var require_omap = __commonJS({
|
|
2856
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2856
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2857
2857
|
"use strict";
|
|
2858
2858
|
var identity = require_identity();
|
|
2859
2859
|
var toJS = require_toJS();
|
|
@@ -2929,9 +2929,9 @@ var require_omap = __commonJS({
|
|
|
2929
2929
|
}
|
|
2930
2930
|
});
|
|
2931
2931
|
|
|
2932
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2932
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2933
2933
|
var require_bool2 = __commonJS({
|
|
2934
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2934
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
2935
2935
|
"use strict";
|
|
2936
2936
|
var Scalar = require_Scalar();
|
|
2937
2937
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2961,9 +2961,9 @@ var require_bool2 = __commonJS({
|
|
|
2961
2961
|
}
|
|
2962
2962
|
});
|
|
2963
2963
|
|
|
2964
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
2964
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2965
2965
|
var require_float2 = __commonJS({
|
|
2966
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
2966
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
2967
2967
|
"use strict";
|
|
2968
2968
|
var Scalar = require_Scalar();
|
|
2969
2969
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2971,7 +2971,7 @@ var require_float2 = __commonJS({
|
|
|
2971
2971
|
identify: (value) => typeof value === "number",
|
|
2972
2972
|
default: true,
|
|
2973
2973
|
tag: "tag:yaml.org,2002:float",
|
|
2974
|
-
test: /^[-+]?\.(?:inf|Inf|INF
|
|
2974
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
2975
2975
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
2976
2976
|
stringify: stringifyNumber.stringifyNumber
|
|
2977
2977
|
};
|
|
@@ -3010,9 +3010,9 @@ var require_float2 = __commonJS({
|
|
|
3010
3010
|
}
|
|
3011
3011
|
});
|
|
3012
3012
|
|
|
3013
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3013
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3014
3014
|
var require_int2 = __commonJS({
|
|
3015
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3015
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
3016
3016
|
"use strict";
|
|
3017
3017
|
var stringifyNumber = require_stringifyNumber();
|
|
3018
3018
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3089,9 +3089,9 @@ var require_int2 = __commonJS({
|
|
|
3089
3089
|
}
|
|
3090
3090
|
});
|
|
3091
3091
|
|
|
3092
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3092
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3093
3093
|
var require_set = __commonJS({
|
|
3094
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3094
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
3095
3095
|
"use strict";
|
|
3096
3096
|
var identity = require_identity();
|
|
3097
3097
|
var Pair = require_Pair();
|
|
@@ -3178,9 +3178,9 @@ var require_set = __commonJS({
|
|
|
3178
3178
|
}
|
|
3179
3179
|
});
|
|
3180
3180
|
|
|
3181
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3181
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3182
3182
|
var require_timestamp = __commonJS({
|
|
3183
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3183
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3184
3184
|
"use strict";
|
|
3185
3185
|
var stringifyNumber = require_stringifyNumber();
|
|
3186
3186
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3266,9 +3266,9 @@ var require_timestamp = __commonJS({
|
|
|
3266
3266
|
}
|
|
3267
3267
|
});
|
|
3268
3268
|
|
|
3269
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3269
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3270
3270
|
var require_schema3 = __commonJS({
|
|
3271
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3271
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3272
3272
|
"use strict";
|
|
3273
3273
|
var map = require_map();
|
|
3274
3274
|
var _null = require_null();
|
|
@@ -3308,9 +3308,9 @@ var require_schema3 = __commonJS({
|
|
|
3308
3308
|
}
|
|
3309
3309
|
});
|
|
3310
3310
|
|
|
3311
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3311
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js
|
|
3312
3312
|
var require_tags = __commonJS({
|
|
3313
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3313
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3314
3314
|
"use strict";
|
|
3315
3315
|
var map = require_map();
|
|
3316
3316
|
var _null = require_null();
|
|
@@ -3391,9 +3391,9 @@ var require_tags = __commonJS({
|
|
|
3391
3391
|
}
|
|
3392
3392
|
});
|
|
3393
3393
|
|
|
3394
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3394
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js
|
|
3395
3395
|
var require_Schema = __commonJS({
|
|
3396
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3396
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3397
3397
|
"use strict";
|
|
3398
3398
|
var identity = require_identity();
|
|
3399
3399
|
var map = require_map();
|
|
@@ -3424,9 +3424,9 @@ var require_Schema = __commonJS({
|
|
|
3424
3424
|
}
|
|
3425
3425
|
});
|
|
3426
3426
|
|
|
3427
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3427
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3428
3428
|
var require_stringifyDocument = __commonJS({
|
|
3429
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3429
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3430
3430
|
"use strict";
|
|
3431
3431
|
var identity = require_identity();
|
|
3432
3432
|
var stringify = require_stringify();
|
|
@@ -3504,9 +3504,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3504
3504
|
}
|
|
3505
3505
|
});
|
|
3506
3506
|
|
|
3507
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3507
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js
|
|
3508
3508
|
var require_Document = __commonJS({
|
|
3509
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3509
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3510
3510
|
"use strict";
|
|
3511
3511
|
var Alias = require_Alias();
|
|
3512
3512
|
var Collection = require_Collection();
|
|
@@ -3812,9 +3812,9 @@ var require_Document = __commonJS({
|
|
|
3812
3812
|
}
|
|
3813
3813
|
});
|
|
3814
3814
|
|
|
3815
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3815
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js
|
|
3816
3816
|
var require_errors = __commonJS({
|
|
3817
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3817
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3818
3818
|
"use strict";
|
|
3819
3819
|
var YAMLError = class extends Error {
|
|
3820
3820
|
constructor(name, pos, code, message) {
|
|
@@ -3877,11 +3877,11 @@ ${pointer}
|
|
|
3877
3877
|
}
|
|
3878
3878
|
});
|
|
3879
3879
|
|
|
3880
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
3880
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js
|
|
3881
3881
|
var require_resolve_props = __commonJS({
|
|
3882
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
3882
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3883
3883
|
"use strict";
|
|
3884
|
-
function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) {
|
|
3884
|
+
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3885
3885
|
let spaceBefore = false;
|
|
3886
3886
|
let atNewline = startOnNewline;
|
|
3887
3887
|
let hasSpace = startOnNewline;
|
|
@@ -3890,6 +3890,7 @@ var require_resolve_props = __commonJS({
|
|
|
3890
3890
|
let hasNewline = false;
|
|
3891
3891
|
let hasNewlineAfterProp = false;
|
|
3892
3892
|
let reqSpace = false;
|
|
3893
|
+
let tab = null;
|
|
3893
3894
|
let anchor = null;
|
|
3894
3895
|
let tag = null;
|
|
3895
3896
|
let comma = null;
|
|
@@ -3901,10 +3902,17 @@ var require_resolve_props = __commonJS({
|
|
|
3901
3902
|
onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
|
|
3902
3903
|
reqSpace = false;
|
|
3903
3904
|
}
|
|
3905
|
+
if (tab) {
|
|
3906
|
+
if (atNewline && token.type !== "comment" && token.type !== "newline") {
|
|
3907
|
+
onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
|
|
3908
|
+
}
|
|
3909
|
+
tab = null;
|
|
3910
|
+
}
|
|
3904
3911
|
switch (token.type) {
|
|
3905
3912
|
case "space":
|
|
3906
|
-
if (!flow &&
|
|
3907
|
-
|
|
3913
|
+
if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) {
|
|
3914
|
+
tab = token;
|
|
3915
|
+
}
|
|
3908
3916
|
hasSpace = true;
|
|
3909
3917
|
break;
|
|
3910
3918
|
case "comment": {
|
|
@@ -3962,7 +3970,7 @@ var require_resolve_props = __commonJS({
|
|
|
3962
3970
|
if (found)
|
|
3963
3971
|
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
|
|
3964
3972
|
found = token;
|
|
3965
|
-
atNewline =
|
|
3973
|
+
atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
|
|
3966
3974
|
hasSpace = false;
|
|
3967
3975
|
break;
|
|
3968
3976
|
case "comma":
|
|
@@ -3982,8 +3990,11 @@ var require_resolve_props = __commonJS({
|
|
|
3982
3990
|
}
|
|
3983
3991
|
const last = tokens[tokens.length - 1];
|
|
3984
3992
|
const end = last ? last.offset + last.source.length : offset;
|
|
3985
|
-
if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== ""))
|
|
3993
|
+
if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) {
|
|
3986
3994
|
onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
|
|
3995
|
+
}
|
|
3996
|
+
if (tab && (atNewline && tab.indent <= parentIndent || next?.type === "block-map" || next?.type === "block-seq"))
|
|
3997
|
+
onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
|
|
3987
3998
|
return {
|
|
3988
3999
|
comma,
|
|
3989
4000
|
found,
|
|
@@ -4001,9 +4012,9 @@ var require_resolve_props = __commonJS({
|
|
|
4001
4012
|
}
|
|
4002
4013
|
});
|
|
4003
4014
|
|
|
4004
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4015
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4005
4016
|
var require_util_contains_newline = __commonJS({
|
|
4006
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4017
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
4007
4018
|
"use strict";
|
|
4008
4019
|
function containsNewline(key) {
|
|
4009
4020
|
if (!key)
|
|
@@ -4043,9 +4054,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
4043
4054
|
}
|
|
4044
4055
|
});
|
|
4045
4056
|
|
|
4046
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4057
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4047
4058
|
var require_util_flow_indent_check = __commonJS({
|
|
4048
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4059
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
4049
4060
|
"use strict";
|
|
4050
4061
|
var utilContainsNewline = require_util_contains_newline();
|
|
4051
4062
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -4061,9 +4072,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
4061
4072
|
}
|
|
4062
4073
|
});
|
|
4063
4074
|
|
|
4064
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4075
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js
|
|
4065
4076
|
var require_util_map_includes = __commonJS({
|
|
4066
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4077
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
4067
4078
|
"use strict";
|
|
4068
4079
|
var identity = require_identity();
|
|
4069
4080
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4077,9 +4088,9 @@ var require_util_map_includes = __commonJS({
|
|
|
4077
4088
|
}
|
|
4078
4089
|
});
|
|
4079
4090
|
|
|
4080
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4091
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4081
4092
|
var require_resolve_block_map = __commonJS({
|
|
4082
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4093
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
4083
4094
|
"use strict";
|
|
4084
4095
|
var Pair = require_Pair();
|
|
4085
4096
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4102,6 +4113,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
4102
4113
|
next: key ?? sep?.[0],
|
|
4103
4114
|
offset,
|
|
4104
4115
|
onError,
|
|
4116
|
+
parentIndent: bm.indent,
|
|
4105
4117
|
startOnNewline: true
|
|
4106
4118
|
});
|
|
4107
4119
|
const implicitKey = !keyProps.found;
|
|
@@ -4139,6 +4151,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
4139
4151
|
next: value,
|
|
4140
4152
|
offset: keyNode.range[2],
|
|
4141
4153
|
onError,
|
|
4154
|
+
parentIndent: bm.indent,
|
|
4142
4155
|
startOnNewline: !key || key.type === "block-scalar"
|
|
4143
4156
|
});
|
|
4144
4157
|
offset = valueProps.end;
|
|
@@ -4181,9 +4194,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4181
4194
|
}
|
|
4182
4195
|
});
|
|
4183
4196
|
|
|
4184
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4197
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4185
4198
|
var require_resolve_block_seq = __commonJS({
|
|
4186
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4199
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4187
4200
|
"use strict";
|
|
4188
4201
|
var YAMLSeq = require_YAMLSeq();
|
|
4189
4202
|
var resolveProps = require_resolve_props();
|
|
@@ -4201,6 +4214,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4201
4214
|
next: value,
|
|
4202
4215
|
offset,
|
|
4203
4216
|
onError,
|
|
4217
|
+
parentIndent: bs.indent,
|
|
4204
4218
|
startOnNewline: true
|
|
4205
4219
|
});
|
|
4206
4220
|
if (!props.found) {
|
|
@@ -4229,9 +4243,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4229
4243
|
}
|
|
4230
4244
|
});
|
|
4231
4245
|
|
|
4232
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4246
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js
|
|
4233
4247
|
var require_resolve_end = __commonJS({
|
|
4234
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4248
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4235
4249
|
"use strict";
|
|
4236
4250
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4237
4251
|
let comment = "";
|
|
@@ -4272,9 +4286,9 @@ var require_resolve_end = __commonJS({
|
|
|
4272
4286
|
}
|
|
4273
4287
|
});
|
|
4274
4288
|
|
|
4275
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4289
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4276
4290
|
var require_resolve_flow_collection = __commonJS({
|
|
4277
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4291
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4278
4292
|
"use strict";
|
|
4279
4293
|
var identity = require_identity();
|
|
4280
4294
|
var Pair = require_Pair();
|
|
@@ -4305,6 +4319,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4305
4319
|
next: key ?? sep?.[0],
|
|
4306
4320
|
offset,
|
|
4307
4321
|
onError,
|
|
4322
|
+
parentIndent: fc.indent,
|
|
4308
4323
|
startOnNewline: false
|
|
4309
4324
|
});
|
|
4310
4325
|
if (!props.found) {
|
|
@@ -4380,6 +4395,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4380
4395
|
next: value,
|
|
4381
4396
|
offset: keyNode.range[2],
|
|
4382
4397
|
onError,
|
|
4398
|
+
parentIndent: fc.indent,
|
|
4383
4399
|
startOnNewline: false
|
|
4384
4400
|
});
|
|
4385
4401
|
if (valueProps.found) {
|
|
@@ -4459,9 +4475,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4459
4475
|
}
|
|
4460
4476
|
});
|
|
4461
4477
|
|
|
4462
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4478
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js
|
|
4463
4479
|
var require_compose_collection = __commonJS({
|
|
4464
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4480
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4465
4481
|
"use strict";
|
|
4466
4482
|
var identity = require_identity();
|
|
4467
4483
|
var Scalar = require_Scalar();
|
|
@@ -4515,14 +4531,14 @@ var require_compose_collection = __commonJS({
|
|
|
4515
4531
|
}
|
|
4516
4532
|
});
|
|
4517
4533
|
|
|
4518
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4534
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4519
4535
|
var require_resolve_block_scalar = __commonJS({
|
|
4520
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4536
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4521
4537
|
"use strict";
|
|
4522
4538
|
var Scalar = require_Scalar();
|
|
4523
|
-
function resolveBlockScalar(
|
|
4539
|
+
function resolveBlockScalar(ctx, scalar, onError) {
|
|
4524
4540
|
const start = scalar.offset;
|
|
4525
|
-
const header = parseBlockScalarHeader(scalar, strict, onError);
|
|
4541
|
+
const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
|
|
4526
4542
|
if (!header)
|
|
4527
4543
|
return { value: "", type: null, comment: "", range: [start, start, start] };
|
|
4528
4544
|
const type = header.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
|
|
@@ -4558,6 +4574,10 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4558
4574
|
if (header.indent === 0)
|
|
4559
4575
|
trimIndent = indent.length;
|
|
4560
4576
|
contentStart = i;
|
|
4577
|
+
if (trimIndent === 0 && !ctx.atRoot) {
|
|
4578
|
+
const message = "Block scalar values in collections must be indented";
|
|
4579
|
+
onError(offset, "BAD_INDENT", message);
|
|
4580
|
+
}
|
|
4561
4581
|
break;
|
|
4562
4582
|
}
|
|
4563
4583
|
offset += indent.length + content.length + 1;
|
|
@@ -4692,9 +4712,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4692
4712
|
}
|
|
4693
4713
|
});
|
|
4694
4714
|
|
|
4695
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4715
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4696
4716
|
var require_resolve_flow_scalar = __commonJS({
|
|
4697
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4717
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4698
4718
|
"use strict";
|
|
4699
4719
|
var Scalar = require_Scalar();
|
|
4700
4720
|
var resolveEnd = require_resolve_end();
|
|
@@ -4909,16 +4929,16 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4909
4929
|
}
|
|
4910
4930
|
});
|
|
4911
4931
|
|
|
4912
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
4932
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4913
4933
|
var require_compose_scalar = __commonJS({
|
|
4914
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
4934
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
4915
4935
|
"use strict";
|
|
4916
4936
|
var identity = require_identity();
|
|
4917
4937
|
var Scalar = require_Scalar();
|
|
4918
4938
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4919
4939
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
4920
4940
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
4921
|
-
const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(
|
|
4941
|
+
const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
4922
4942
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
4923
4943
|
const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[identity.SCALAR];
|
|
4924
4944
|
let scalar;
|
|
@@ -4982,9 +5002,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4982
5002
|
}
|
|
4983
5003
|
});
|
|
4984
5004
|
|
|
4985
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5005
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4986
5006
|
var require_util_empty_scalar_position = __commonJS({
|
|
4987
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5007
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
4988
5008
|
"use strict";
|
|
4989
5009
|
function emptyScalarPosition(offset, before, pos) {
|
|
4990
5010
|
if (before) {
|
|
@@ -5013,9 +5033,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
5013
5033
|
}
|
|
5014
5034
|
});
|
|
5015
5035
|
|
|
5016
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5036
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js
|
|
5017
5037
|
var require_compose_node = __commonJS({
|
|
5018
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5038
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
5019
5039
|
"use strict";
|
|
5020
5040
|
var Alias = require_Alias();
|
|
5021
5041
|
var composeCollection = require_compose_collection();
|
|
@@ -5108,9 +5128,9 @@ var require_compose_node = __commonJS({
|
|
|
5108
5128
|
}
|
|
5109
5129
|
});
|
|
5110
5130
|
|
|
5111
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5131
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js
|
|
5112
5132
|
var require_compose_doc = __commonJS({
|
|
5113
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5133
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5114
5134
|
"use strict";
|
|
5115
5135
|
var Document = require_Document();
|
|
5116
5136
|
var composeNode = require_compose_node();
|
|
@@ -5130,6 +5150,7 @@ var require_compose_doc = __commonJS({
|
|
|
5130
5150
|
next: value ?? end?.[0],
|
|
5131
5151
|
offset,
|
|
5132
5152
|
onError,
|
|
5153
|
+
parentIndent: 0,
|
|
5133
5154
|
startOnNewline: true
|
|
5134
5155
|
});
|
|
5135
5156
|
if (props.found) {
|
|
@@ -5149,9 +5170,9 @@ var require_compose_doc = __commonJS({
|
|
|
5149
5170
|
}
|
|
5150
5171
|
});
|
|
5151
5172
|
|
|
5152
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5173
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js
|
|
5153
5174
|
var require_composer = __commonJS({
|
|
5154
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5175
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5155
5176
|
"use strict";
|
|
5156
5177
|
var directives = require_directives();
|
|
5157
5178
|
var Document = require_Document();
|
|
@@ -5354,9 +5375,9 @@ ${end.comment}` : end.comment;
|
|
|
5354
5375
|
}
|
|
5355
5376
|
});
|
|
5356
5377
|
|
|
5357
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5378
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5358
5379
|
var require_cst_scalar = __commonJS({
|
|
5359
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5380
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5360
5381
|
"use strict";
|
|
5361
5382
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5362
5383
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5377,7 +5398,7 @@ var require_cst_scalar = __commonJS({
|
|
|
5377
5398
|
case "double-quoted-scalar":
|
|
5378
5399
|
return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
|
|
5379
5400
|
case "block-scalar":
|
|
5380
|
-
return resolveBlockScalar.resolveBlockScalar(
|
|
5401
|
+
return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
|
|
5381
5402
|
}
|
|
5382
5403
|
}
|
|
5383
5404
|
return null;
|
|
@@ -5539,9 +5560,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5539
5560
|
}
|
|
5540
5561
|
});
|
|
5541
5562
|
|
|
5542
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5563
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5543
5564
|
var require_cst_stringify = __commonJS({
|
|
5544
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5565
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5545
5566
|
"use strict";
|
|
5546
5567
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5547
5568
|
function stringifyToken(token) {
|
|
@@ -5600,9 +5621,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5600
5621
|
}
|
|
5601
5622
|
});
|
|
5602
5623
|
|
|
5603
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5624
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js
|
|
5604
5625
|
var require_cst_visit = __commonJS({
|
|
5605
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5626
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5606
5627
|
"use strict";
|
|
5607
5628
|
var BREAK = Symbol("break visit");
|
|
5608
5629
|
var SKIP = Symbol("skip children");
|
|
@@ -5662,9 +5683,9 @@ var require_cst_visit = __commonJS({
|
|
|
5662
5683
|
}
|
|
5663
5684
|
});
|
|
5664
5685
|
|
|
5665
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5686
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js
|
|
5666
5687
|
var require_cst = __commonJS({
|
|
5667
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5688
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5668
5689
|
"use strict";
|
|
5669
5690
|
var cstScalar = require_cst_scalar();
|
|
5670
5691
|
var cstStringify = require_cst_stringify();
|
|
@@ -5764,9 +5785,9 @@ var require_cst = __commonJS({
|
|
|
5764
5785
|
}
|
|
5765
5786
|
});
|
|
5766
5787
|
|
|
5767
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
5788
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js
|
|
5768
5789
|
var require_lexer = __commonJS({
|
|
5769
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
5790
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5770
5791
|
"use strict";
|
|
5771
5792
|
var cst = require_cst();
|
|
5772
5793
|
function isEmpty(ch) {
|
|
@@ -5781,11 +5802,11 @@ var require_lexer = __commonJS({
|
|
|
5781
5802
|
return false;
|
|
5782
5803
|
}
|
|
5783
5804
|
}
|
|
5784
|
-
var hexDigits = "0123456789ABCDEFabcdef"
|
|
5785
|
-
var tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"
|
|
5786
|
-
var
|
|
5787
|
-
var invalidAnchorChars = " ,[]{}\n\r "
|
|
5788
|
-
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.
|
|
5805
|
+
var hexDigits = new Set("0123456789ABCDEFabcdef");
|
|
5806
|
+
var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
5807
|
+
var flowIndicatorChars = new Set(",[]{}");
|
|
5808
|
+
var invalidAnchorChars = new Set(" ,[]{}\n\r ");
|
|
5809
|
+
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
|
|
5789
5810
|
var Lexer = class {
|
|
5790
5811
|
constructor() {
|
|
5791
5812
|
this.atEnd = false;
|
|
@@ -5808,6 +5829,8 @@ var require_lexer = __commonJS({
|
|
|
5808
5829
|
*/
|
|
5809
5830
|
*lex(source, incomplete = false) {
|
|
5810
5831
|
if (source) {
|
|
5832
|
+
if (typeof source !== "string")
|
|
5833
|
+
throw TypeError("source is not a string");
|
|
5811
5834
|
this.buffer = this.buffer ? this.buffer + source : source;
|
|
5812
5835
|
this.lineEndPos = null;
|
|
5813
5836
|
}
|
|
@@ -5905,11 +5928,15 @@ var require_lexer = __commonJS({
|
|
|
5905
5928
|
}
|
|
5906
5929
|
if (line[0] === "%") {
|
|
5907
5930
|
let dirEnd = line.length;
|
|
5908
|
-
|
|
5909
|
-
|
|
5931
|
+
let cs = line.indexOf("#");
|
|
5932
|
+
while (cs !== -1) {
|
|
5910
5933
|
const ch = line[cs - 1];
|
|
5911
|
-
if (ch === " " || ch === " ")
|
|
5934
|
+
if (ch === " " || ch === " ") {
|
|
5912
5935
|
dirEnd = cs - 1;
|
|
5936
|
+
break;
|
|
5937
|
+
} else {
|
|
5938
|
+
cs = line.indexOf("#", cs + 1);
|
|
5939
|
+
}
|
|
5913
5940
|
}
|
|
5914
5941
|
while (true) {
|
|
5915
5942
|
const ch = line[dirEnd - 1];
|
|
@@ -6133,17 +6160,17 @@ var require_lexer = __commonJS({
|
|
|
6133
6160
|
let indent = 0;
|
|
6134
6161
|
let ch;
|
|
6135
6162
|
loop:
|
|
6136
|
-
for (let
|
|
6163
|
+
for (let i2 = this.pos; ch = this.buffer[i2]; ++i2) {
|
|
6137
6164
|
switch (ch) {
|
|
6138
6165
|
case " ":
|
|
6139
6166
|
indent += 1;
|
|
6140
6167
|
break;
|
|
6141
6168
|
case "\n":
|
|
6142
|
-
nl =
|
|
6169
|
+
nl = i2;
|
|
6143
6170
|
indent = 0;
|
|
6144
6171
|
break;
|
|
6145
6172
|
case "\r": {
|
|
6146
|
-
const next = this.buffer[
|
|
6173
|
+
const next = this.buffer[i2 + 1];
|
|
6147
6174
|
if (!next && !this.atEnd)
|
|
6148
6175
|
return this.setNext("block-scalar");
|
|
6149
6176
|
if (next === "\n")
|
|
@@ -6158,8 +6185,9 @@ var require_lexer = __commonJS({
|
|
|
6158
6185
|
if (indent >= this.indentNext) {
|
|
6159
6186
|
if (this.blockScalarIndent === -1)
|
|
6160
6187
|
this.indentNext = indent;
|
|
6161
|
-
else
|
|
6162
|
-
this.indentNext
|
|
6188
|
+
else {
|
|
6189
|
+
this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
|
|
6190
|
+
}
|
|
6163
6191
|
do {
|
|
6164
6192
|
const cs = this.continueScalar(nl + 1);
|
|
6165
6193
|
if (cs === -1)
|
|
@@ -6172,17 +6200,25 @@ var require_lexer = __commonJS({
|
|
|
6172
6200
|
nl = this.buffer.length;
|
|
6173
6201
|
}
|
|
6174
6202
|
}
|
|
6175
|
-
|
|
6203
|
+
let i = nl + 1;
|
|
6204
|
+
ch = this.buffer[i];
|
|
6205
|
+
while (ch === " ")
|
|
6206
|
+
ch = this.buffer[++i];
|
|
6207
|
+
if (ch === " ") {
|
|
6208
|
+
while (ch === " " || ch === " " || ch === "\r" || ch === "\n")
|
|
6209
|
+
ch = this.buffer[++i];
|
|
6210
|
+
nl = i - 1;
|
|
6211
|
+
} else if (!this.blockScalarKeep) {
|
|
6176
6212
|
do {
|
|
6177
|
-
let
|
|
6178
|
-
let ch2 = this.buffer[
|
|
6213
|
+
let i2 = nl - 1;
|
|
6214
|
+
let ch2 = this.buffer[i2];
|
|
6179
6215
|
if (ch2 === "\r")
|
|
6180
|
-
ch2 = this.buffer[--
|
|
6181
|
-
const lastChar =
|
|
6182
|
-
while (ch2 === " "
|
|
6183
|
-
ch2 = this.buffer[--
|
|
6184
|
-
if (ch2 === "\n" &&
|
|
6185
|
-
nl =
|
|
6216
|
+
ch2 = this.buffer[--i2];
|
|
6217
|
+
const lastChar = i2;
|
|
6218
|
+
while (ch2 === " ")
|
|
6219
|
+
ch2 = this.buffer[--i2];
|
|
6220
|
+
if (ch2 === "\n" && i2 >= this.pos && i2 + 1 + indent > lastChar)
|
|
6221
|
+
nl = i2;
|
|
6186
6222
|
else
|
|
6187
6223
|
break;
|
|
6188
6224
|
} while (true);
|
|
@@ -6199,7 +6235,7 @@ var require_lexer = __commonJS({
|
|
|
6199
6235
|
while (ch = this.buffer[++i]) {
|
|
6200
6236
|
if (ch === ":") {
|
|
6201
6237
|
const next = this.buffer[i + 1];
|
|
6202
|
-
if (isEmpty(next) || inFlow && next
|
|
6238
|
+
if (isEmpty(next) || inFlow && flowIndicatorChars.has(next))
|
|
6203
6239
|
break;
|
|
6204
6240
|
end = i;
|
|
6205
6241
|
} else if (isEmpty(ch)) {
|
|
@@ -6212,7 +6248,7 @@ var require_lexer = __commonJS({
|
|
|
6212
6248
|
} else
|
|
6213
6249
|
end = i;
|
|
6214
6250
|
}
|
|
6215
|
-
if (next === "#" || inFlow &&
|
|
6251
|
+
if (next === "#" || inFlow && flowIndicatorChars.has(next))
|
|
6216
6252
|
break;
|
|
6217
6253
|
if (ch === "\n") {
|
|
6218
6254
|
const cs = this.continueScalar(i + 1);
|
|
@@ -6221,7 +6257,7 @@ var require_lexer = __commonJS({
|
|
|
6221
6257
|
i = Math.max(i, cs - 2);
|
|
6222
6258
|
}
|
|
6223
6259
|
} else {
|
|
6224
|
-
if (inFlow &&
|
|
6260
|
+
if (inFlow && flowIndicatorChars.has(ch))
|
|
6225
6261
|
break;
|
|
6226
6262
|
end = i;
|
|
6227
6263
|
}
|
|
@@ -6261,7 +6297,7 @@ var require_lexer = __commonJS({
|
|
|
6261
6297
|
case ":": {
|
|
6262
6298
|
const inFlow = this.flowLevel > 0;
|
|
6263
6299
|
const ch1 = this.charAt(1);
|
|
6264
|
-
if (isEmpty(ch1) || inFlow &&
|
|
6300
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6265
6301
|
if (!inFlow)
|
|
6266
6302
|
this.indentNext = this.indentValue + 1;
|
|
6267
6303
|
else if (this.flowKey)
|
|
@@ -6283,9 +6319,9 @@ var require_lexer = __commonJS({
|
|
|
6283
6319
|
let i = this.pos + 1;
|
|
6284
6320
|
let ch = this.buffer[i];
|
|
6285
6321
|
while (ch) {
|
|
6286
|
-
if (tagChars.
|
|
6322
|
+
if (tagChars.has(ch))
|
|
6287
6323
|
ch = this.buffer[++i];
|
|
6288
|
-
else if (ch === "%" && hexDigits.
|
|
6324
|
+
else if (ch === "%" && hexDigits.has(this.buffer[i + 1]) && hexDigits.has(this.buffer[i + 2])) {
|
|
6289
6325
|
ch = this.buffer[i += 3];
|
|
6290
6326
|
} else
|
|
6291
6327
|
break;
|
|
@@ -6327,9 +6363,9 @@ var require_lexer = __commonJS({
|
|
|
6327
6363
|
}
|
|
6328
6364
|
});
|
|
6329
6365
|
|
|
6330
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
6366
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js
|
|
6331
6367
|
var require_line_counter = __commonJS({
|
|
6332
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
6368
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6333
6369
|
"use strict";
|
|
6334
6370
|
var LineCounter = class {
|
|
6335
6371
|
constructor() {
|
|
@@ -6358,9 +6394,9 @@ var require_line_counter = __commonJS({
|
|
|
6358
6394
|
}
|
|
6359
6395
|
});
|
|
6360
6396
|
|
|
6361
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
6397
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js
|
|
6362
6398
|
var require_parser = __commonJS({
|
|
6363
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
6399
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6364
6400
|
"use strict";
|
|
6365
6401
|
var cst = require_cst();
|
|
6366
6402
|
var lexer = require_lexer();
|
|
@@ -6616,7 +6652,7 @@ var require_parser = __commonJS({
|
|
|
6616
6652
|
it.value = token;
|
|
6617
6653
|
} else {
|
|
6618
6654
|
Object.assign(it, { key: token, sep: [] });
|
|
6619
|
-
this.onKeyLine = !
|
|
6655
|
+
this.onKeyLine = !it.explicitKey;
|
|
6620
6656
|
return;
|
|
6621
6657
|
}
|
|
6622
6658
|
break;
|
|
@@ -6805,7 +6841,8 @@ var require_parser = __commonJS({
|
|
|
6805
6841
|
return;
|
|
6806
6842
|
}
|
|
6807
6843
|
if (this.indent >= map.indent) {
|
|
6808
|
-
const
|
|
6844
|
+
const atMapIndent = !this.onKeyLine && this.indent === map.indent;
|
|
6845
|
+
const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
|
|
6809
6846
|
let start = [];
|
|
6810
6847
|
if (atNextItem && it.sep && !it.value) {
|
|
6811
6848
|
const nl = [];
|
|
@@ -6842,23 +6879,24 @@ var require_parser = __commonJS({
|
|
|
6842
6879
|
}
|
|
6843
6880
|
return;
|
|
6844
6881
|
case "explicit-key-ind":
|
|
6845
|
-
if (!it.sep && !
|
|
6882
|
+
if (!it.sep && !it.explicitKey) {
|
|
6846
6883
|
it.start.push(this.sourceToken);
|
|
6884
|
+
it.explicitKey = true;
|
|
6847
6885
|
} else if (atNextItem || it.value) {
|
|
6848
6886
|
start.push(this.sourceToken);
|
|
6849
|
-
map.items.push({ start });
|
|
6887
|
+
map.items.push({ start, explicitKey: true });
|
|
6850
6888
|
} else {
|
|
6851
6889
|
this.stack.push({
|
|
6852
6890
|
type: "block-map",
|
|
6853
6891
|
offset: this.offset,
|
|
6854
6892
|
indent: this.indent,
|
|
6855
|
-
items: [{ start: [this.sourceToken] }]
|
|
6893
|
+
items: [{ start: [this.sourceToken], explicitKey: true }]
|
|
6856
6894
|
});
|
|
6857
6895
|
}
|
|
6858
6896
|
this.onKeyLine = true;
|
|
6859
6897
|
return;
|
|
6860
6898
|
case "map-value-ind":
|
|
6861
|
-
if (
|
|
6899
|
+
if (it.explicitKey) {
|
|
6862
6900
|
if (!it.sep) {
|
|
6863
6901
|
if (includesToken(it.start, "newline")) {
|
|
6864
6902
|
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
@@ -6934,7 +6972,7 @@ var require_parser = __commonJS({
|
|
|
6934
6972
|
default: {
|
|
6935
6973
|
const bv = this.startBlockValue(map);
|
|
6936
6974
|
if (bv) {
|
|
6937
|
-
if (
|
|
6975
|
+
if (atMapIndent && bv.type !== "block-seq") {
|
|
6938
6976
|
map.items.push({ start });
|
|
6939
6977
|
}
|
|
6940
6978
|
this.stack.push(bv);
|
|
@@ -7145,7 +7183,7 @@ var require_parser = __commonJS({
|
|
|
7145
7183
|
type: "block-map",
|
|
7146
7184
|
offset: this.offset,
|
|
7147
7185
|
indent: this.indent,
|
|
7148
|
-
items: [{ start }]
|
|
7186
|
+
items: [{ start, explicitKey: true }]
|
|
7149
7187
|
};
|
|
7150
7188
|
}
|
|
7151
7189
|
case "map-value-ind": {
|
|
@@ -7208,9 +7246,9 @@ var require_parser = __commonJS({
|
|
|
7208
7246
|
}
|
|
7209
7247
|
});
|
|
7210
7248
|
|
|
7211
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
7249
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js
|
|
7212
7250
|
var require_public_api = __commonJS({
|
|
7213
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
7251
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7214
7252
|
"use strict";
|
|
7215
7253
|
var composer = require_composer();
|
|
7216
7254
|
var Document = require_Document();
|
|
@@ -7302,9 +7340,9 @@ var require_public_api = __commonJS({
|
|
|
7302
7340
|
}
|
|
7303
7341
|
});
|
|
7304
7342
|
|
|
7305
|
-
// ../../node_modules/.pnpm/yaml@2.4.
|
|
7343
|
+
// ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js
|
|
7306
7344
|
var require_dist = __commonJS({
|
|
7307
|
-
"../../node_modules/.pnpm/yaml@2.4.
|
|
7345
|
+
"../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js"(exports2) {
|
|
7308
7346
|
"use strict";
|
|
7309
7347
|
var composer = require_composer();
|
|
7310
7348
|
var Document = require_Document();
|