Bump js-yaml from 5.2.2 to 5.2.3 (#967)

* Bump js-yaml from 5.2.2 to 5.2.3

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 5.2.2 to 5.2.3.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump js-yaml to version 5.2.3 and update package-lock.json

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chiranjib-swain <chiranjib-swain@github.com>
This commit is contained in:
dependabot[bot]
2026-08-26 15:39:26 -05:00
committed by GitHub
co-authored by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chiranjib-swain
parent 2c2a2313b2
commit 98ce1450c7
4 changed files with 46 additions and 29 deletions
+37 -20
View File
@@ -38249,7 +38249,7 @@ const getContent = async (client, repoPath) => {
};
;// CONCATENATED MODULE: ./node_modules/js-yaml/dist/js-yaml.mjs
/*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT */
/*! js-yaml 5.2.3 https://github.com/nodeca/js-yaml @license MIT */
//#region src/tag.ts
var NOT_RESOLVED = Symbol("NOT_RESOLVED");
var MERGE_KEY = Symbol("MERGE_KEY");
@@ -38704,6 +38704,11 @@ var binaryTag = defineScalarTag("tag:yaml.org,2002:binary", {
//#region src/tag/scalar/timestamp.ts
var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
function makeUtcDate(year, month, day, hour = 0, minute = 0, second = 0, fraction = 0) {
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
date.setUTCFullYear(year, month, day);
return date;
}
function resolveYamlTimestamp(source) {
let match = YAML_DATE_REGEXP.exec(source);
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(source);
@@ -38712,7 +38717,7 @@ function resolveYamlTimestamp(source) {
const month = +match[2] - 1;
const day = +match[3];
if (!match[4]) {
const date = new Date(Date.UTC(year, month, day));
const date = makeUtcDate(year, month, day);
if (date.getUTCFullYear() !== year || date.getUTCMonth() !== month || date.getUTCDate() !== day) return NOT_RESOLVED;
return date;
}
@@ -38726,7 +38731,7 @@ function resolveYamlTimestamp(source) {
while (value.length < 3) value += "0";
fraction = +value;
}
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
const date = makeUtcDate(year, month, day, hour, minute, second, fraction);
if (date.getUTCFullYear() !== year || date.getUTCMonth() !== month || date.getUTCDate() !== day) return NOT_RESOLVED;
if (match[9]) {
const offsetHour = +match[10];
@@ -38834,7 +38839,11 @@ var mapTag = defineMappingTag("tag:yaml.org,2002:map", {
return Object.prototype.hasOwnProperty.call(container, String(key));
},
keys: (container) => Object.keys(container),
get: (container, key) => container[String(key)]
get: (container, key) => {
const normalizedKey = String(key);
if (!Object.prototype.hasOwnProperty.call(container, normalizedKey)) return null;
return container[normalizedKey];
}
});
//#endregion
//#region src/tag/mapping/set.ts
@@ -38859,9 +38868,9 @@ var setTag = defineMappingTag("tag:yaml.org,2002:set", {
//#region src/schema.ts
function createTagDefinitionMap() {
return {
scalar: {},
sequence: {},
mapping: {}
scalar: Object.create(null),
sequence: Object.create(null),
mapping: Object.create(null)
};
}
function createTagDefinitionListMap() {
@@ -39035,7 +39044,11 @@ var legacyMapTag = defineMappingTag("tag:yaml.org,2002:map", {
return normalizedKey !== null && Object.prototype.hasOwnProperty.call(container, normalizedKey);
},
keys: (container) => Object.keys(container),
get: (container, key) => container[String(key)]
get: (container, key) => {
const normalizedKey = String(key);
if (!Object.prototype.hasOwnProperty.call(container, normalizedKey)) return null;
return container[normalizedKey];
}
});
//#endregion
//#region src/common/snippet.ts
@@ -39367,10 +39380,10 @@ function getScalarValue(input, scalar) {
}
//#endregion
//#region src/common/tagname.ts
var DEFAULT_TAG_HANDLERS = {
var DEFAULT_TAG_HANDLERS = Object.assign(Object.create(null), {
"!": "!",
"!!": "tag:yaml.org,2002:"
};
});
function tagPercentEncode(source) {
return encodeURI(source).replace(/!/g, "%21");
}
@@ -39625,6 +39638,10 @@ function constructFromEvents(events, options) {
}
case 6: {
const frame = state.frames.pop();
if (frame.kind === "mapping" && frame.hasKey) {
state.position = frame.keyPosition;
throwError$1(state, "incomplete mapping pair in event stream");
}
if (frame.kind === "document") state.documents.push(frame.value);
else {
const value = frame.tag.carrierIsResult ? frame.value : finalizeCollection(state, frame.position, frame.tag, frame.value);
@@ -40297,10 +40314,6 @@ function parseNode(state, parentIndent, nodeContext, allowToSeek, allowCompact,
else if (state.lineIndent === parentIndent) indentStatus = 0;
else indentStatus = -1;
}
if (state.position === state.lineStart && testDocumentSeparator(state)) {
state.depth--;
return false;
}
if (indentStatus === 1) while (true) {
const ch = state.input.charCodeAt(state.position);
const propertyState = snapshotState(state);
@@ -40867,14 +40880,14 @@ function chooseScalarStyle(state, string, layout, singleLineOnly, forceQuote, in
if (char === CHAR_LINE_FEED) {
hasLineBreak = true;
if (shouldTrackWidth) {
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && !isMoreIndented(string[previousLineBreak + 1]);
previousLineBreak = i;
}
} else if (!isPrintable(char)) return STYLE_DOUBLE;
plain = plain && isPlainSafe(char, prevChar, inblock);
prevChar = char;
}
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && !isMoreIndented(string[previousLineBreak + 1]);
}
if (!hasLineBreak && !hasFoldableLine) {
if (plain && !forceQuote) return STYLE_PLAIN;
@@ -40933,27 +40946,30 @@ function encodeFlowBreaks(string, indent) {
function dropEndingNewline(string) {
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
}
function isMoreIndented(char) {
return char === " " || char === " ";
}
function foldBlockScalar(string, width) {
const lineRe = /(\n+)([^\n]*)/g;
let nextLF = string.indexOf("\n");
if (nextLF === -1) nextLF = string.length;
lineRe.lastIndex = nextLF;
let result = foldLine(string.slice(0, nextLF), width);
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
let prevMoreIndented = string[0] === "\n" || isMoreIndented(string[0]);
let moreIndented;
let match;
while (match = lineRe.exec(string)) {
const prefix = match[1];
const line = match[2];
moreIndented = line[0] === " ";
moreIndented = line !== "" && isMoreIndented(line[0]);
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
prevMoreIndented = moreIndented;
}
return result;
}
function foldLine(line, width) {
if (line === "" || line[0] === " ") return line;
const breakRe = / [^ ]/g;
if (line === "" || isMoreIndented(line[0])) return line;
const breakRe = / [^ \t]/g;
let match;
let start = 0;
let end;
@@ -41379,6 +41395,7 @@ function eventsToAst(events, options) {
}
case 6: {
const frame = state.frames.pop();
if (frame.kind === "mapping" && frame.key) throw new Error("incomplete mapping pair in event stream");
if (frame.kind === "document") state.documents.push(frame.doc);
else addNode(state, frame.node);
break;