Skip to content

Commit dbebe35

Browse files
Bump fast-xml-parser from 4.3.6 to 4.4.1 (#540)
* Bump fast-xml-parser from 4.3.6 to 4.4.1 Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.3.6 to 4.4.1. - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v4.3.6...v4.4.1) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix checks --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarithaVattikuti <[email protected]>
1 parent 6bd8b7f commit dbebe35

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

.licenses/npm/fast-xml-parser.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51639,6 +51639,8 @@ exports.validate = function (xmlData, options) {
5163951639
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' doesn't have proper closing.", getLineNumberForPosition(xmlData, i));
5164051640
} else if (attrStr.trim().length > 0) {
5164151641
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
51642+
} else if (tags.length === 0) {
51643+
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
5164251644
} else {
5164351645
const otg = tags.pop();
5164451646
if (tagName !== otg.tagName) {
@@ -52082,6 +52084,7 @@ Builder.prototype.j2x = function(jObj, level) {
5208252084
//repeated nodes
5208352085
const arrLen = jObj[key].length;
5208452086
let listTagVal = "";
52087+
let listTagAttr = "";
5208552088
for (let j = 0; j < arrLen; j++) {
5208652089
const item = jObj[key][j];
5208752090
if (typeof item === 'undefined') {
@@ -52091,17 +52094,27 @@ Builder.prototype.j2x = function(jObj, level) {
5209152094
else val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;
5209252095
// val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;
5209352096
} else if (typeof item === 'object') {
52094-
if(this.options.oneListGroup ){
52095-
listTagVal += this.j2x(item, level + 1).val;
52097+
if(this.options.oneListGroup){
52098+
const result = this.j2x(item, level + 1);
52099+
listTagVal += result.val;
52100+
if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {
52101+
listTagAttr += result.attrStr
52102+
}
5209652103
}else{
5209752104
listTagVal += this.processTextOrObjNode(item, key, level)
5209852105
}
5209952106
} else {
52100-
listTagVal += this.buildTextValNode(item, key, '', level);
52107+
if (this.options.oneListGroup) {
52108+
let textValue = this.options.tagValueProcessor(key, item);
52109+
textValue = this.replaceEntitiesValue(textValue);
52110+
listTagVal += textValue;
52111+
} else {
52112+
listTagVal += this.buildTextValNode(item, key, '', level);
52113+
}
5210152114
}
5210252115
}
5210352116
if(this.options.oneListGroup){
52104-
listTagVal = this.buildObjectNode(listTagVal, key, '', level);
52117+
listTagVal = this.buildObjectNode(listTagVal, key, listTagAttr, level);
5210552118
}
5210652119
val += listTagVal;
5210752120
} else {
@@ -52911,10 +52924,18 @@ const parseXml = function(xmlData) {
5291152924
let tagContent = "";
5291252925
//self-closing tag
5291352926
if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){
52927+
if(tagName[tagName.length - 1] === "/"){ //remove trailing '/'
52928+
tagName = tagName.substr(0, tagName.length - 1);
52929+
jPath = jPath.substr(0, jPath.length - 1);
52930+
tagExp = tagName;
52931+
}else{
52932+
tagExp = tagExp.substr(0, tagExp.length - 1);
52933+
}
5291452934
i = result.closeIndex;
5291552935
}
5291652936
//unpaired tag
5291752937
else if(this.options.unpairedTags.indexOf(tagName) !== -1){
52938+
5291852939
i = result.closeIndex;
5291952940
}
5292052941
//normal tag

externals/install-dotnet.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ get_machine_architecture() {
327327
echo "loongarch64"
328328
return 0
329329
;;
330+
riscv64)
331+
echo "riscv64"
332+
return 0
333+
;;
330334
esac
331335
fi
332336

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@actions/glob": "^0.4.0",
3434
"@actions/http-client": "^2.2.1",
3535
"@actions/io": "^1.0.2",
36-
"fast-xml-parser": "^4.3.6",
36+
"fast-xml-parser": "^4.4.1",
3737
"json5": "^2.2.3",
3838
"semver": "^7.6.0"
3939
},

0 commit comments

Comments
 (0)