Skip to content

Commit a7b3e91

Browse files
Bump the npm-dependencies group with 4 updates (#152)
* Bump the npm-dependencies group with 4 updates Bumps the npm-dependencies group with 4 updates: [@actions/artifact](https://github.com/actions/toolkit/tree/HEAD/packages/artifact), [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core), [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node). Updates `@actions/artifact` from 4.0.0 to 5.0.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/artifact/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/artifact) Updates `@actions/core` from 1.11.1 to 2.0.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/@actions/artifact@2.0.1/packages/core) Updates `fast-xml-parser` from 5.3.2 to 5.3.3 - [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@v5.3.2...v5.3.3) Updates `@types/node` from 24.10.1 to 25.0.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@actions/artifact" dependency-version: 5.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: npm-dependencies - dependency-name: "@actions/core" dependency-version: 2.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: npm-dependencies - dependency-name: fast-xml-parser dependency-version: 5.3.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: "@types/node" dependency-version: 25.0.2 dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Publish dist files --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jerome Prinet <jprinet@gradle.com>
1 parent 6ebe8df commit a7b3e91

7 files changed

Lines changed: 248941 additions & 219681 deletions

File tree

dist/maven-publish-build-scan/index.js

Lines changed: 116296 additions & 106152 deletions
Large diffs are not rendered by default.

dist/setup-maven/main/671.index.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ function resolveNameSpace(tagname) {
12731273
//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm");
12741274
const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?', 'gm');
12751275

1276-
function buildAttributesMap(attrStr, jPath, tagName) {
1276+
function buildAttributesMap(attrStr, jPath) {
12771277
if (this.options.ignoreAttributes !== true && typeof attrStr === 'string') {
12781278
// attrStr = attrStr.replace(/\r?\n/g, ' ');
12791279
//attrStr = attrStr || attrStr.trim();
@@ -1385,14 +1385,14 @@ const parseXml = function(xmlData) {
13851385

13861386
textData = this.saveTextToParentTag(textData, currentNode, jPath);
13871387
if( (this.options.ignoreDeclaration && tagData.tagName === "?xml") || this.options.ignorePiTags){
1388-
1388+
//do nothing
13891389
}else{
13901390

13911391
const childNode = new XmlNode(tagData.tagName);
13921392
childNode.add(this.options.textNodeName, "");
13931393

13941394
if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){
1395-
childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
1395+
childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath);
13961396
}
13971397
this.addChild(currentNode, childNode, jPath, i);
13981398
}
@@ -1439,7 +1439,12 @@ const parseXml = function(xmlData) {
14391439
let closeIndex = result.closeIndex;
14401440

14411441
if (this.options.transformTagName) {
1442-
tagName = this.options.transformTagName(tagName);
1442+
//console.log(tagExp, tagName)
1443+
const newTagName = this.options.transformTagName(tagName);
1444+
if(tagExp === tagName) {
1445+
tagExp = newTagName
1446+
}
1447+
tagName = newTagName;
14431448
}
14441449

14451450
//save text as child node
@@ -1490,7 +1495,8 @@ const parseXml = function(xmlData) {
14901495
const childNode = new XmlNode(tagName);
14911496

14921497
if(tagName !== tagExp && attrExpPresent){
1493-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
1498+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath
1499+
);
14941500
}
14951501
if(tagContent) {
14961502
tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
@@ -1512,12 +1518,16 @@ const parseXml = function(xmlData) {
15121518
}
15131519

15141520
if(this.options.transformTagName) {
1515-
tagName = this.options.transformTagName(tagName);
1521+
const newTagName = this.options.transformTagName(tagName);
1522+
if(tagExp === tagName) {
1523+
tagExp = newTagName
1524+
}
1525+
tagName = newTagName;
15161526
}
15171527

15181528
const childNode = new XmlNode(tagName);
15191529
if(tagName !== tagExp && attrExpPresent){
1520-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
1530+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
15211531
}
15221532
this.addChild(currentNode, childNode, jPath, startIndex);
15231533
jPath = jPath.substr(0, jPath.lastIndexOf("."));
@@ -1528,7 +1538,7 @@ const parseXml = function(xmlData) {
15281538
this.tagsNodeStack.push(currentNode);
15291539

15301540
if(tagName !== tagExp && attrExpPresent){
1531-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
1541+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
15321542
}
15331543
this.addChild(currentNode, childNode, jPath, startIndex);
15341544
currentNode = childNode;
@@ -1549,6 +1559,7 @@ function addChild(currentNode, childNode, jPath, startIndex){
15491559
if (!this.options.captureMetaData) startIndex = undefined;
15501560
const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"])
15511561
if(result === false){
1562+
//do nothing
15521563
} else if(typeof result === "string"){
15531564
childNode.tagname = result
15541565
currentNode.addChild(childNode, startIndex);

0 commit comments

Comments
 (0)