@depup/js-yaml 5.4.2-depup.8 → 5.4.3-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/browser/js-yaml.esm.min.mjs +486 -483
- package/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/dist/browser/js-yaml.umd.min.js +4 -4
- package/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/dist/js-yaml.cjs.js +11 -8
- package/dist/js-yaml.cjs.js.map +1 -1
- package/dist/js-yaml.mjs +11 -8
- package/dist/js-yaml.mjs.map +1 -1
- package/package.json +3 -3
package/dist/js-yaml.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! js-yaml 5.4.
|
|
1
|
+
/*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT */
|
|
2
2
|
//#region src/tag.ts
|
|
3
3
|
/**
|
|
4
4
|
* Returned by a scalar resolver when the source does not match its tag.
|
|
@@ -2133,7 +2133,7 @@ function readBlockScalar(state, parentIndent, props) {
|
|
|
2133
2133
|
state.position = linePosition + column;
|
|
2134
2134
|
throwError(state, "tab characters must not be used in indentation");
|
|
2135
2135
|
}
|
|
2136
|
-
if (column < maxLeadingIndent) {
|
|
2136
|
+
if (column >= parentIndent && column < maxLeadingIndent) {
|
|
2137
2137
|
state.position = linePosition + column;
|
|
2138
2138
|
throwError(state, "bad indentation of a mapping entry");
|
|
2139
2139
|
}
|
|
@@ -2343,13 +2343,16 @@ function readBlockMapping(state, nodeIndent, flowIndent, props) {
|
|
|
2343
2343
|
ch = state.input.charCodeAt(++state.position);
|
|
2344
2344
|
if (!isWsOrEolOrEnd(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
2345
2345
|
if (!mappingOpened) {
|
|
2346
|
-
|
|
2347
|
-
|
|
2346
|
+
state.events.splice(beforeKey.eventsLength, 0, {
|
|
2347
|
+
type: EVENT_ID.MAPPING,
|
|
2348
|
+
start: beforeKey.position,
|
|
2349
|
+
anchorStart: props.anchorStart,
|
|
2350
|
+
anchorEnd: props.anchorEnd,
|
|
2351
|
+
tagStart: props.tagStart,
|
|
2352
|
+
tagEnd: props.tagEnd,
|
|
2353
|
+
style: COLLECTION_STYLE.BLOCK
|
|
2354
|
+
});
|
|
2348
2355
|
mappingOpened = true;
|
|
2349
|
-
parseNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true);
|
|
2350
|
-
ch = state.input.charCodeAt(state.position);
|
|
2351
|
-
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
2352
|
-
state.position++;
|
|
2353
2356
|
}
|
|
2354
2357
|
detected = true;
|
|
2355
2358
|
atExplicitKey = false;
|