Skip to content

Commit

Permalink
Bump xml2js from 0.4.23 to 0.6.2 (#102)
Browse files Browse the repository at this point in the history
* Bump xml2js from 0.4.23 to 0.6.2

Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) from 0.4.23 to 0.6.2.
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.6.2)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@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: Petter Friberg <petter_friberg@hotmail.com>
  • Loading branch information
dependabot[bot] and flaeppe authored Mar 25, 2024
1 parent 95997d2 commit 414420b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
30 changes: 22 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14572,7 +14572,7 @@ function wrappy (fn, cb) {
// Generated by CoffeeScript 1.12.7
(function() {
"use strict";
var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate,
var bom, defaults, defineProperty, events, isEmpty, processItem, processors, sax, setImmediate,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Expand Down Expand Up @@ -14602,6 +14602,16 @@ function wrappy (fn, cb) {
return item;
};

defineProperty = function(obj, key, value) {
var descriptor;
descriptor = Object.create(null);
descriptor.value = value;
descriptor.writable = true;
descriptor.enumerable = true;
descriptor.configurable = true;
return Object.defineProperty(obj, key, descriptor);
};

exports.Parser = (function(superClass) {
extend(Parser, superClass);

Expand Down Expand Up @@ -14665,13 +14675,13 @@ function wrappy (fn, cb) {
Parser.prototype.assignOrPush = function(obj, key, newValue) {
if (!(key in obj)) {
if (!this.options.explicitArray) {
return obj[key] = newValue;
return defineProperty(obj, key, newValue);
} else {
return obj[key] = [newValue];
return defineProperty(obj, key, [newValue]);
}
} else {
if (!(obj[key] instanceof Array)) {
obj[key] = [obj[key]];
defineProperty(obj, key, [obj[key]]);
}
return obj[key].push(newValue);
}
Expand Down Expand Up @@ -14726,7 +14736,7 @@ function wrappy (fn, cb) {
if (_this.options.mergeAttrs) {
_this.assignOrPush(obj, processedKey, newValue);
} else {
obj[attrkey][processedKey] = newValue;
defineProperty(obj[attrkey], processedKey, newValue);
}
}
}
Expand Down Expand Up @@ -14769,7 +14779,11 @@ function wrappy (fn, cb) {
}
}
if (isEmpty(obj)) {
obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;
if (typeof _this.options.emptyTag === 'function') {
obj = _this.options.emptyTag();
} else {
obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;
}
}
if (_this.options.validator != null) {
xpath = "/" + ((function() {
Expand Down Expand Up @@ -14811,7 +14825,7 @@ function wrappy (fn, cb) {
objClone = {};
for (key in obj) {
if (!hasProp.call(obj, key)) continue;
objClone[key] = obj[key];
defineProperty(objClone, key, obj[key]);
}
s[_this.options.childkey].push(objClone);
delete obj["#name"];
Expand All @@ -14826,7 +14840,7 @@ function wrappy (fn, cb) {
if (_this.options.explicitRoot) {
old = obj;
obj = {};
obj[nodeName] = old;
defineProperty(obj, nodeName, old);
}
_this.resultObject = obj;
_this.saxParser.ended = true;
Expand Down
62 changes: 24 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@actions/core": "^1.6.0",
"@actions/github": "^5.1.1",
"glob-promise": "^4.2.2",
"xml2js": "^0.4.23"
"xml2js": "^0.6.2"
},
"devDependencies": {
"@vercel/ncc": "^0.34.0",
Expand Down

0 comments on commit 414420b

Please sign in to comment.