Skip to content

Commit

Permalink
build v1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Apr 24, 2023
1 parent 07def83 commit b9fdc28
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 120 deletions.
18 changes: 11 additions & 7 deletions dist/cache-save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8603,7 +8603,7 @@ const Constants = {
/**
* The core-http version
*/
coreHttpVersion: "3.0.0",
coreHttpVersion: "3.0.1",
/**
* Specifies HTTP.
*/
Expand Down Expand Up @@ -54484,14 +54484,14 @@ module.exports = v4;
this.saxParser.onopentag = (function(_this) {
return function(node) {
var key, newValue, obj, processedKey, ref;
obj = {};
obj = Object.create(null);
obj[charkey] = "";
if (!_this.options.ignoreAttrs) {
ref = node.attributes;
for (key in ref) {
if (!hasProp.call(ref, key)) continue;
if (!(attrkey in obj) && !_this.options.mergeAttrs) {
obj[attrkey] = {};
obj[attrkey] = Object.create(null);
}
newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];
processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;
Expand Down Expand Up @@ -54541,7 +54541,11 @@ module.exports = v4;
}
}
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 All @@ -54565,7 +54569,7 @@ module.exports = v4;
}
if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {
if (!_this.options.preserveChildrenOrder) {
node = {};
node = Object.create(null);
if (_this.options.attrkey in obj) {
node[_this.options.attrkey] = obj[_this.options.attrkey];
delete obj[_this.options.attrkey];
Expand All @@ -54580,7 +54584,7 @@ module.exports = v4;
obj = node;
} else if (s) {
s[_this.options.childkey] = s[_this.options.childkey] || [];
objClone = {};
objClone = Object.create(null);
for (key in obj) {
if (!hasProp.call(obj, key)) continue;
objClone[key] = obj[key];
Expand All @@ -54597,7 +54601,7 @@ module.exports = v4;
} else {
if (_this.options.explicitRoot) {
old = obj;
obj = {};
obj = Object.create(null);
obj[nodeName] = old;
}
_this.resultObject = obj;
Expand Down
2 changes: 1 addition & 1 deletion dist/cache-save/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit b9fdc28

Please sign in to comment.