mirror of
https://github.com/actions/setup-java.git
synced 2026-11-14 13:10:34 +08:00
chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 (#1323)
* chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.11.2 to 5.12.0. - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.11.2...v5.12.0) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-version: 5.12.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Fix generated dist and license records Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bruno Borges <brborges@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot App
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bruno Borges
parent
9ce5b12cb9
commit
a3c8068301
Vendored
+27
-14
@@ -15686,19 +15686,26 @@ var Matcher = __webpack_require__(8257);
|
||||
;// CONCATENATED MODULE: ./node_modules/fast-xml-builder/src/util.js
|
||||
|
||||
|
||||
// String(val)/val.toString() drop the sign of -0 (e.g. String(-0) === '0'), silently
|
||||
// corrupting a round-tripped negative-zero value. XML has no separate int/float syntax,
|
||||
// so this is the single place every raw value gets turned into text.
|
||||
function valToStr(val) {
|
||||
return typeof val === 'number' && Object.is(val, -0) ? '-0' : String(val)
|
||||
}
|
||||
|
||||
function safeComment(val) {
|
||||
return String(val)
|
||||
return valToStr(val)
|
||||
.replace(/--/g, '- -') // -- is illegal anywhere in comment content
|
||||
.replace(/--/g, '- -') // handle the scenario when 2 consiucative dashes appears
|
||||
.replace(/-$/, '- '); // trailing - would form -- with the closing -->
|
||||
}
|
||||
|
||||
function safeCdata(val) {
|
||||
return String(val).replace(/\]\]>/g, ']]]]><![CDATA[>')
|
||||
return valToStr(val).replace(/\]\]>/g, ']]]]><![CDATA[>')
|
||||
}
|
||||
|
||||
function escapeAttribute(val) {
|
||||
return String(val).replace(/"/g, '"').replace(/'/g, ''')
|
||||
return valToStr(val).replace(/"/g, '"').replace(/'/g, ''')
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/xml-naming/src/index.js
|
||||
var src = __webpack_require__(4658);
|
||||
@@ -15793,7 +15800,7 @@ function arrToStr(arr, options, indentation, matcher, stopNodeExpressions, qName
|
||||
if (!Array.isArray(arr)) {
|
||||
// Non-array values (e.g. string tag values) should be treated as text content
|
||||
if (arr !== undefined && arr !== null) {
|
||||
let text = arr.toString();
|
||||
let text = valToStr(arr);
|
||||
text = replaceEntitiesValue(text, options);
|
||||
return text;
|
||||
}
|
||||
@@ -15832,6 +15839,7 @@ function arrToStr(arr, options, indentation, matcher, stopNodeExpressions, qName
|
||||
tagText = options.tagValueProcessor(tagName, tagText);
|
||||
tagText = replaceEntitiesValue(tagText, options);
|
||||
}
|
||||
tagText = valToStr(tagText);
|
||||
if (isPreviousElementTag) {
|
||||
xmlStr += indentation;
|
||||
}
|
||||
@@ -15940,7 +15948,7 @@ function orderedJs2Xml_getRawContent(arr, options) {
|
||||
if (!Array.isArray(arr)) {
|
||||
// Non-array values return as-is
|
||||
if (arr !== undefined && arr !== null) {
|
||||
return arr.toString();
|
||||
return valToStr(arr);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@@ -15952,7 +15960,7 @@ function orderedJs2Xml_getRawContent(arr, options) {
|
||||
|
||||
if (tagName === options.textNodeName) {
|
||||
// Raw text content - NO processing, NO entity replacement
|
||||
content += item[tagName];
|
||||
content += valToStr(item[tagName]);
|
||||
} else if (tagName === options.cdataPropName) {
|
||||
// CDATA content
|
||||
content += item[tagName][0][options.textNodeName];
|
||||
@@ -16293,11 +16301,11 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
if (attr && !this.ignoreAttributesFn(attr, jPath)) {
|
||||
// Resolve the attribute name through sanitizeName
|
||||
const resolvedAttr = fxb_resolveTagName(attr, true, this.options, matcher, qNameValidator);
|
||||
attrStr += this.buildAttrPairStr(resolvedAttr, '' + jObj[key], isCurrentStopNode);
|
||||
attrStr += this.buildAttrPairStr(resolvedAttr, valToStr(jObj[key]), isCurrentStopNode);
|
||||
} else if (!attr) {
|
||||
//tag value
|
||||
if (key === this.options.textNodeName) {
|
||||
let newval = this.options.tagValueProcessor(key, '' + jObj[key]);
|
||||
let newval = this.options.tagValueProcessor(key, valToStr(jObj[key]));
|
||||
val += this.replaceEntitiesValue(newval);
|
||||
} else {
|
||||
// Check if this is a stopNode before building
|
||||
@@ -16307,7 +16315,7 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
|
||||
if (isStopNode) {
|
||||
// Build as raw content without encoding
|
||||
const textValue = '' + jObj[key];
|
||||
const textValue = valToStr(jObj[key]);
|
||||
if (textValue === '') {
|
||||
val += this.indentate(level) + '<' + resolvedKey + this.closeTag(resolvedKey) + this.tagEndChar;
|
||||
} else {
|
||||
@@ -16349,6 +16357,7 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
if (this.options.oneListGroup) {
|
||||
let textValue = this.options.tagValueProcessor(resolvedKey, item);
|
||||
textValue = this.replaceEntitiesValue(textValue);
|
||||
textValue = valToStr(textValue);
|
||||
listTagVal += textValue;
|
||||
} else {
|
||||
// Check if this is a stopNode before building
|
||||
@@ -16358,7 +16367,7 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
|
||||
if (isStopNode) {
|
||||
// Build as raw content without encoding
|
||||
const textValue = '' + item;
|
||||
const textValue = valToStr(item);
|
||||
if (textValue === '') {
|
||||
listTagVal += this.indentate(level) + '<' + resolvedKey + this.closeTag(resolvedKey) + this.tagEndChar;
|
||||
} else {
|
||||
@@ -16382,7 +16391,7 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
for (let j = 0; j < L; j++) {
|
||||
// Resolve attribute names inside attributesGroupName
|
||||
const resolvedAttr = fxb_resolveTagName(Ks[j], true, this.options, matcher, qNameValidator);
|
||||
attrStr += this.buildAttrPairStr(resolvedAttr, '' + jObj[key][Ks[j]], isCurrentStopNode);
|
||||
attrStr += this.buildAttrPairStr(resolvedAttr, valToStr(jObj[key][Ks[j]]), isCurrentStopNode);
|
||||
}
|
||||
} else {
|
||||
val += this.processTextOrObjNode(jObj[key], resolvedKey, level, matcher, qNameValidator)
|
||||
@@ -16394,7 +16403,7 @@ Builder.prototype.j2x = function (jObj, level, matcher, qNameValidator) {
|
||||
|
||||
Builder.prototype.buildAttrPairStr = function (attrName, val, isStopNode) {
|
||||
if (!isStopNode) {
|
||||
val = this.options.attributeValueProcessor(attrName, '' + val);
|
||||
val = this.options.attributeValueProcessor(attrName, valToStr(val));
|
||||
val = this.replaceEntitiesValue(val);
|
||||
}
|
||||
if (this.options.suppressBooleanAttributes && val === "true") {
|
||||
@@ -16654,6 +16663,10 @@ Builder.prototype.buildTextValNode = function (val, key, attrStr, level, matcher
|
||||
// Normal processing: apply tagValueProcessor and entity replacement
|
||||
let textValue = this.options.tagValueProcessor(key, val);
|
||||
textValue = this.replaceEntitiesValue(textValue);
|
||||
// tagValueProcessor may return the raw value unchanged (default is identity), and
|
||||
// replaceEntitiesValue no-ops on non-strings, so a plain number can still reach here;
|
||||
// stringify it now, sign-preserving, before it's implicitly ToString'd below.
|
||||
textValue = valToStr(textValue);
|
||||
|
||||
if (textValue === '') {
|
||||
return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar;
|
||||
@@ -16695,8 +16708,8 @@ function isAttribute(name /*, options*/) {
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/fast-xml-parser/src/fxp.js
|
||||
var fxp = __webpack_require__(5824);
|
||||
// EXTERNAL MODULE: ./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js + 22 modules
|
||||
var XMLParser = __webpack_require__(6009);
|
||||
// EXTERNAL MODULE: ./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js + 23 modules
|
||||
var XMLParser = __webpack_require__(1143);
|
||||
;// CONCATENATED MODULE: ./node_modules/@azure/core-xml/dist/esm/xml.common.js
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
Reference in New Issue
Block a user