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
+1 -1
View File
@@ -1,6 +1,6 @@
--- ---
name: js-yaml name: js-yaml
version: 5.2.2 version: 5.2.3
type: npm type: npm
summary: YAML 1.2 parser and serializer summary: YAML 1.2 parser and serializer
homepage: homepage:
+37 -20
View File
@@ -38249,7 +38249,7 @@ const getContent = async (client, repoPath) => {
}; };
;// CONCATENATED MODULE: ./node_modules/js-yaml/dist/js-yaml.mjs ;// 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 //#region src/tag.ts
var NOT_RESOLVED = Symbol("NOT_RESOLVED"); var NOT_RESOLVED = Symbol("NOT_RESOLVED");
var MERGE_KEY = Symbol("MERGE_KEY"); var MERGE_KEY = Symbol("MERGE_KEY");
@@ -38704,6 +38704,11 @@ var binaryTag = defineScalarTag("tag:yaml.org,2002:binary", {
//#region src/tag/scalar/timestamp.ts //#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_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]))?))?$"); 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) { function resolveYamlTimestamp(source) {
let match = YAML_DATE_REGEXP.exec(source); let match = YAML_DATE_REGEXP.exec(source);
if (match === null) match = YAML_TIMESTAMP_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 month = +match[2] - 1;
const day = +match[3]; const day = +match[3];
if (!match[4]) { 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; if (date.getUTCFullYear() !== year || date.getUTCMonth() !== month || date.getUTCDate() !== day) return NOT_RESOLVED;
return date; return date;
} }
@@ -38726,7 +38731,7 @@ function resolveYamlTimestamp(source) {
while (value.length < 3) value += "0"; while (value.length < 3) value += "0";
fraction = +value; 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 (date.getUTCFullYear() !== year || date.getUTCMonth() !== month || date.getUTCDate() !== day) return NOT_RESOLVED;
if (match[9]) { if (match[9]) {
const offsetHour = +match[10]; const offsetHour = +match[10];
@@ -38834,7 +38839,11 @@ var mapTag = defineMappingTag("tag:yaml.org,2002:map", {
return Object.prototype.hasOwnProperty.call(container, String(key)); return Object.prototype.hasOwnProperty.call(container, String(key));
}, },
keys: (container) => Object.keys(container), 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 //#endregion
//#region src/tag/mapping/set.ts //#region src/tag/mapping/set.ts
@@ -38859,9 +38868,9 @@ var setTag = defineMappingTag("tag:yaml.org,2002:set", {
//#region src/schema.ts //#region src/schema.ts
function createTagDefinitionMap() { function createTagDefinitionMap() {
return { return {
scalar: {}, scalar: Object.create(null),
sequence: {}, sequence: Object.create(null),
mapping: {} mapping: Object.create(null)
}; };
} }
function createTagDefinitionListMap() { function createTagDefinitionListMap() {
@@ -39035,7 +39044,11 @@ var legacyMapTag = defineMappingTag("tag:yaml.org,2002:map", {
return normalizedKey !== null && Object.prototype.hasOwnProperty.call(container, normalizedKey); return normalizedKey !== null && Object.prototype.hasOwnProperty.call(container, normalizedKey);
}, },
keys: (container) => Object.keys(container), 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 //#endregion
//#region src/common/snippet.ts //#region src/common/snippet.ts
@@ -39367,10 +39380,10 @@ function getScalarValue(input, scalar) {
} }
//#endregion //#endregion
//#region src/common/tagname.ts //#region src/common/tagname.ts
var DEFAULT_TAG_HANDLERS = { var DEFAULT_TAG_HANDLERS = Object.assign(Object.create(null), {
"!": "!", "!": "!",
"!!": "tag:yaml.org,2002:" "!!": "tag:yaml.org,2002:"
}; });
function tagPercentEncode(source) { function tagPercentEncode(source) {
return encodeURI(source).replace(/!/g, "%21"); return encodeURI(source).replace(/!/g, "%21");
} }
@@ -39625,6 +39638,10 @@ function constructFromEvents(events, options) {
} }
case 6: { case 6: {
const frame = state.frames.pop(); 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); if (frame.kind === "document") state.documents.push(frame.value);
else { else {
const value = frame.tag.carrierIsResult ? frame.value : finalizeCollection(state, frame.position, frame.tag, frame.value); 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 if (state.lineIndent === parentIndent) indentStatus = 0;
else indentStatus = -1; else indentStatus = -1;
} }
if (state.position === state.lineStart && testDocumentSeparator(state)) {
state.depth--;
return false;
}
if (indentStatus === 1) while (true) { if (indentStatus === 1) while (true) {
const ch = state.input.charCodeAt(state.position); const ch = state.input.charCodeAt(state.position);
const propertyState = snapshotState(state); const propertyState = snapshotState(state);
@@ -40867,14 +40880,14 @@ function chooseScalarStyle(state, string, layout, singleLineOnly, forceQuote, in
if (char === CHAR_LINE_FEED) { if (char === CHAR_LINE_FEED) {
hasLineBreak = true; hasLineBreak = true;
if (shouldTrackWidth) { if (shouldTrackWidth) {
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " "; hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && !isMoreIndented(string[previousLineBreak + 1]);
previousLineBreak = i; previousLineBreak = i;
} }
} else if (!isPrintable(char)) return STYLE_DOUBLE; } else if (!isPrintable(char)) return STYLE_DOUBLE;
plain = plain && isPlainSafe(char, prevChar, inblock); plain = plain && isPlainSafe(char, prevChar, inblock);
prevChar = char; 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 (!hasLineBreak && !hasFoldableLine) {
if (plain && !forceQuote) return STYLE_PLAIN; if (plain && !forceQuote) return STYLE_PLAIN;
@@ -40933,27 +40946,30 @@ function encodeFlowBreaks(string, indent) {
function dropEndingNewline(string) { function dropEndingNewline(string) {
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string; return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
} }
function isMoreIndented(char) {
return char === " " || char === " ";
}
function foldBlockScalar(string, width) { function foldBlockScalar(string, width) {
const lineRe = /(\n+)([^\n]*)/g; const lineRe = /(\n+)([^\n]*)/g;
let nextLF = string.indexOf("\n"); let nextLF = string.indexOf("\n");
if (nextLF === -1) nextLF = string.length; if (nextLF === -1) nextLF = string.length;
lineRe.lastIndex = nextLF; lineRe.lastIndex = nextLF;
let result = foldLine(string.slice(0, nextLF), width); 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 moreIndented;
let match; let match;
while (match = lineRe.exec(string)) { while (match = lineRe.exec(string)) {
const prefix = match[1]; const prefix = match[1];
const line = match[2]; const line = match[2];
moreIndented = line[0] === " "; moreIndented = line !== "" && isMoreIndented(line[0]);
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width); result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
prevMoreIndented = moreIndented; prevMoreIndented = moreIndented;
} }
return result; return result;
} }
function foldLine(line, width) { function foldLine(line, width) {
if (line === "" || line[0] === " ") return line; if (line === "" || isMoreIndented(line[0])) return line;
const breakRe = / [^ ]/g; const breakRe = / [^ \t]/g;
let match; let match;
let start = 0; let start = 0;
let end; let end;
@@ -41379,6 +41395,7 @@ function eventsToAst(events, options) {
} }
case 6: { case 6: {
const frame = state.frames.pop(); 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); if (frame.kind === "document") state.documents.push(frame.doc);
else addNode(state, frame.node); else addNode(state, frame.node);
break; break;
+7 -7
View File
@@ -12,7 +12,7 @@
"@actions/core": "^3.0.1", "@actions/core": "^3.0.1",
"@actions/github": "^9.1.1", "@actions/github": "^9.1.1",
"@octokit/plugin-retry": "^8.1.0", "@octokit/plugin-retry": "^8.1.0",
"js-yaml": "^5.2.2", "js-yaml": "^5.2.3",
"minimatch": "^10.2.5" "minimatch": "^10.2.5"
}, },
"devDependencies": { "devDependencies": {
@@ -894,9 +894,9 @@
} }
}, },
"node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": {
"version": "3.15.0", "version": "3.15.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.0.tgz", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz",
"integrity": "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==", "integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -4549,9 +4549,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/js-yaml": { "node_modules/js-yaml": {
"version": "5.2.2", "version": "5.2.3",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.2.2.tgz", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.2.3.tgz",
"integrity": "sha512-dayzUzKkJ1MkuUtZglSebU43utNXH0OWQByK9rKOOuYIO8M5TV1y+n8ALMdG0rdzBnfNkOmZEqrURepb0ejqBw==", "integrity": "sha512-n+mUVyUX5bVv7G/G2zyIHOhdxfuU1dY2NOFzTQUWiMUbFss8b57NFlgCCaggU78wSw5KVS9cllzeLyzyR+n5nw==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
+1 -1
View File
@@ -31,7 +31,7 @@
"@actions/core": "^3.0.1", "@actions/core": "^3.0.1",
"@actions/github": "^9.1.1", "@actions/github": "^9.1.1",
"@octokit/plugin-retry": "^8.1.0", "@octokit/plugin-retry": "^8.1.0",
"js-yaml": "^5.2.2", "js-yaml": "^5.2.3",
"minimatch": "^10.2.5" "minimatch": "^10.2.5"
}, },
"devDependencies": { "devDependencies": {