@ms-cloudpack/remote-cache 0.8.11 → 0.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AzureRemoteCacheClient-BJABDYTC.js → AzureRemoteCacheClient-SXMK4YHG.js} +10 -6
- package/dist/{ReporterDecorator-BI76ZNDZ.js → ReporterDecorator-FPB3SR62.js} +2 -2
- package/dist/{chunk-FUS4SMZ3.js → chunk-4MIMLTI6.js} +164 -139
- package/dist/{chunk-AITD3OIO.js → chunk-OSKYHKJO.js} +86 -54
- package/dist/{getCredential-QYKZSYTT.js → getCredential-M7NO6U6M.js} +5933 -5416
- package/dist/{getListOfBlobs-UJPCIOIS.js → getListOfBlobs-LFPGQVDD.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_commonjs3 as require_commonjs4,
|
|
11
11
|
require_commonjs4 as require_commonjs5,
|
|
12
12
|
require_dist
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4MIMLTI6.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__name,
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
tslib_es6_exports
|
|
22
22
|
} from "./chunk-PAESICSC.js";
|
|
23
23
|
|
|
24
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
24
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureKeyCredential.js
|
|
25
25
|
var require_azureKeyCredential = __commonJS({
|
|
26
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
26
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureKeyCredential.js"(exports) {
|
|
27
27
|
"use strict";
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.AzureKeyCredential = void 0;
|
|
@@ -64,27 +64,27 @@ var require_azureKeyCredential = __commonJS({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
67
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/keyCredential.js
|
|
68
68
|
var require_keyCredential = __commonJS({
|
|
69
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
69
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/keyCredential.js"(exports) {
|
|
70
70
|
"use strict";
|
|
71
71
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72
|
-
exports.isKeyCredential =
|
|
72
|
+
exports.isKeyCredential = isKeyCredential;
|
|
73
73
|
var core_util_1 = require_commonjs2();
|
|
74
74
|
function isKeyCredential(credential) {
|
|
75
75
|
return (0, core_util_1.isObjectWithProperties)(credential, ["key"]) && typeof credential.key === "string";
|
|
76
76
|
}
|
|
77
77
|
__name(isKeyCredential, "isKeyCredential");
|
|
78
|
-
exports.isKeyCredential = isKeyCredential;
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
80
|
|
|
82
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
81
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureNamedKeyCredential.js
|
|
83
82
|
var require_azureNamedKeyCredential = __commonJS({
|
|
84
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
83
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureNamedKeyCredential.js"(exports) {
|
|
85
84
|
"use strict";
|
|
86
85
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
86
|
+
exports.AzureNamedKeyCredential = void 0;
|
|
87
|
+
exports.isNamedKeyCredential = isNamedKeyCredential;
|
|
88
88
|
var core_util_1 = require_commonjs2();
|
|
89
89
|
var _AzureNamedKeyCredential = class _AzureNamedKeyCredential {
|
|
90
90
|
/**
|
|
@@ -137,16 +137,16 @@ var require_azureNamedKeyCredential = __commonJS({
|
|
|
137
137
|
return (0, core_util_1.isObjectWithProperties)(credential, ["name", "key"]) && typeof credential.key === "string" && typeof credential.name === "string";
|
|
138
138
|
}
|
|
139
139
|
__name(isNamedKeyCredential, "isNamedKeyCredential");
|
|
140
|
-
exports.isNamedKeyCredential = isNamedKeyCredential;
|
|
141
140
|
}
|
|
142
141
|
});
|
|
143
142
|
|
|
144
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
143
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureSASCredential.js
|
|
145
144
|
var require_azureSASCredential = __commonJS({
|
|
146
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
145
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/azureSASCredential.js"(exports) {
|
|
147
146
|
"use strict";
|
|
148
147
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
149
|
-
exports.
|
|
148
|
+
exports.AzureSASCredential = void 0;
|
|
149
|
+
exports.isSASCredential = isSASCredential;
|
|
150
150
|
var core_util_1 = require_commonjs2();
|
|
151
151
|
var _AzureSASCredential = class _AzureSASCredential {
|
|
152
152
|
/**
|
|
@@ -189,28 +189,26 @@ var require_azureSASCredential = __commonJS({
|
|
|
189
189
|
return (0, core_util_1.isObjectWithProperties)(credential, ["signature"]) && typeof credential.signature === "string";
|
|
190
190
|
}
|
|
191
191
|
__name(isSASCredential, "isSASCredential");
|
|
192
|
-
exports.isSASCredential = isSASCredential;
|
|
193
192
|
}
|
|
194
193
|
});
|
|
195
194
|
|
|
196
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
195
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/tokenCredential.js
|
|
197
196
|
var require_tokenCredential = __commonJS({
|
|
198
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
197
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/tokenCredential.js"(exports) {
|
|
199
198
|
"use strict";
|
|
200
199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
201
|
-
exports.isTokenCredential =
|
|
200
|
+
exports.isTokenCredential = isTokenCredential;
|
|
202
201
|
function isTokenCredential(credential) {
|
|
203
202
|
const castCredential = credential;
|
|
204
203
|
return castCredential && typeof castCredential.getToken === "function" && (castCredential.signRequest === void 0 || castCredential.getToken.length > 0);
|
|
205
204
|
}
|
|
206
205
|
__name(isTokenCredential, "isTokenCredential");
|
|
207
|
-
exports.isTokenCredential = isTokenCredential;
|
|
208
206
|
}
|
|
209
207
|
});
|
|
210
208
|
|
|
211
|
-
// ../../node_modules/.store/@azure-core-auth-npm-1.
|
|
209
|
+
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/index.js
|
|
212
210
|
var require_commonjs6 = __commonJS({
|
|
213
|
-
"../../node_modules/.store/@azure-core-auth-npm-1.
|
|
211
|
+
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/index.js"(exports) {
|
|
214
212
|
"use strict";
|
|
215
213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
216
214
|
exports.isTokenCredential = exports.isSASCredential = exports.AzureSASCredential = exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = exports.isKeyCredential = exports.AzureKeyCredential = void 0;
|
|
@@ -736,9 +734,9 @@ var require_commonjs7 = __commonJS({
|
|
|
736
734
|
}
|
|
737
735
|
});
|
|
738
736
|
|
|
739
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
737
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/util.js
|
|
740
738
|
var require_util2 = __commonJS({
|
|
741
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
739
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/util.js"(exports) {
|
|
742
740
|
"use strict";
|
|
743
741
|
var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
744
742
|
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
@@ -795,9 +793,9 @@ var require_util2 = __commonJS({
|
|
|
795
793
|
}
|
|
796
794
|
});
|
|
797
795
|
|
|
798
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
796
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/validator.js
|
|
799
797
|
var require_validator = __commonJS({
|
|
800
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
798
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/validator.js"(exports) {
|
|
801
799
|
"use strict";
|
|
802
800
|
var util = require_util2();
|
|
803
801
|
var defaultOptions = {
|
|
@@ -1119,9 +1117,9 @@ var require_validator = __commonJS({
|
|
|
1119
1117
|
}
|
|
1120
1118
|
});
|
|
1121
1119
|
|
|
1122
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1120
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/OptionsBuilder.js
|
|
1123
1121
|
var require_OptionsBuilder = __commonJS({
|
|
1124
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1122
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/OptionsBuilder.js"(exports) {
|
|
1125
1123
|
var defaultOptions = {
|
|
1126
1124
|
preserveOrder: false,
|
|
1127
1125
|
attributeNamePrefix: "@_",
|
|
@@ -1174,9 +1172,9 @@ var require_OptionsBuilder = __commonJS({
|
|
|
1174
1172
|
}
|
|
1175
1173
|
});
|
|
1176
1174
|
|
|
1177
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1175
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/xmlNode.js
|
|
1178
1176
|
var require_xmlNode = __commonJS({
|
|
1179
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1177
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/xmlNode.js"(exports, module) {
|
|
1180
1178
|
"use strict";
|
|
1181
1179
|
var _XmlNode = class _XmlNode {
|
|
1182
1180
|
constructor(tagname) {
|
|
@@ -1203,9 +1201,9 @@ var require_xmlNode = __commonJS({
|
|
|
1203
1201
|
}
|
|
1204
1202
|
});
|
|
1205
1203
|
|
|
1206
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1204
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/DocTypeReader.js
|
|
1207
1205
|
var require_DocTypeReader = __commonJS({
|
|
1208
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1206
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/DocTypeReader.js"(exports, module) {
|
|
1209
1207
|
var util = require_util2();
|
|
1210
1208
|
function readDocType(xmlData, i) {
|
|
1211
1209
|
const entities = {};
|
|
@@ -1388,14 +1386,41 @@ var require_strnum = __commonJS({
|
|
|
1388
1386
|
}
|
|
1389
1387
|
});
|
|
1390
1388
|
|
|
1391
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1389
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/ignoreAttributes.js
|
|
1390
|
+
var require_ignoreAttributes = __commonJS({
|
|
1391
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/ignoreAttributes.js"(exports, module) {
|
|
1392
|
+
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
1393
|
+
if (typeof ignoreAttributes === "function") {
|
|
1394
|
+
return ignoreAttributes;
|
|
1395
|
+
}
|
|
1396
|
+
if (Array.isArray(ignoreAttributes)) {
|
|
1397
|
+
return (attrName) => {
|
|
1398
|
+
for (const pattern of ignoreAttributes) {
|
|
1399
|
+
if (typeof pattern === "string" && attrName === pattern) {
|
|
1400
|
+
return true;
|
|
1401
|
+
}
|
|
1402
|
+
if (pattern instanceof RegExp && pattern.test(attrName)) {
|
|
1403
|
+
return true;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
return () => false;
|
|
1409
|
+
}
|
|
1410
|
+
__name(getIgnoreAttributesFn, "getIgnoreAttributesFn");
|
|
1411
|
+
module.exports = getIgnoreAttributesFn;
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/OrderedObjParser.js
|
|
1392
1416
|
var require_OrderedObjParser = __commonJS({
|
|
1393
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1417
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/OrderedObjParser.js"(exports, module) {
|
|
1394
1418
|
"use strict";
|
|
1395
1419
|
var util = require_util2();
|
|
1396
1420
|
var xmlNode = require_xmlNode();
|
|
1397
1421
|
var readDocType = require_DocTypeReader();
|
|
1398
1422
|
var toNumber = require_strnum();
|
|
1423
|
+
var getIgnoreAttributesFn = require_ignoreAttributes();
|
|
1399
1424
|
var _OrderedObjParser = class _OrderedObjParser {
|
|
1400
1425
|
constructor(options) {
|
|
1401
1426
|
this.options = options;
|
|
@@ -1436,6 +1461,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1436
1461
|
this.readStopNodeData = readStopNodeData;
|
|
1437
1462
|
this.saveTextToParentTag = saveTextToParentTag;
|
|
1438
1463
|
this.addChild = addChild;
|
|
1464
|
+
this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
|
|
1439
1465
|
}
|
|
1440
1466
|
};
|
|
1441
1467
|
__name(_OrderedObjParser, "OrderedObjParser");
|
|
@@ -1493,12 +1519,15 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1493
1519
|
__name(resolveNameSpace, "resolveNameSpace");
|
|
1494
1520
|
var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
1495
1521
|
function buildAttributesMap(attrStr, jPath, tagName) {
|
|
1496
|
-
if (
|
|
1522
|
+
if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
|
|
1497
1523
|
const matches = util.getAllMatches(attrStr, attrsRegx);
|
|
1498
1524
|
const len = matches.length;
|
|
1499
1525
|
const attrs = {};
|
|
1500
1526
|
for (let i = 0; i < len; i++) {
|
|
1501
1527
|
const attrName = this.resolveNameSpace(matches[i][1]);
|
|
1528
|
+
if (this.ignoreAttributesFn(attrName, jPath)) {
|
|
1529
|
+
continue;
|
|
1530
|
+
}
|
|
1502
1531
|
let oldVal = matches[i][4];
|
|
1503
1532
|
let aName = this.options.attributeNamePrefix + attrName;
|
|
1504
1533
|
if (attrName.length) {
|
|
@@ -1892,9 +1921,9 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1892
1921
|
}
|
|
1893
1922
|
});
|
|
1894
1923
|
|
|
1895
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1924
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/node2json.js
|
|
1896
1925
|
var require_node2json = __commonJS({
|
|
1897
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
1926
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/node2json.js"(exports) {
|
|
1898
1927
|
"use strict";
|
|
1899
1928
|
function prettify(node, options) {
|
|
1900
1929
|
return compress(node, options);
|
|
@@ -1984,9 +2013,9 @@ var require_node2json = __commonJS({
|
|
|
1984
2013
|
}
|
|
1985
2014
|
});
|
|
1986
2015
|
|
|
1987
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2016
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/XMLParser.js
|
|
1988
2017
|
var require_XMLParser = __commonJS({
|
|
1989
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2018
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlparser/XMLParser.js"(exports, module) {
|
|
1990
2019
|
var { buildOptions } = require_OptionsBuilder();
|
|
1991
2020
|
var OrderedObjParser = require_OrderedObjParser();
|
|
1992
2021
|
var { prettify } = require_node2json();
|
|
@@ -2044,9 +2073,9 @@ var require_XMLParser = __commonJS({
|
|
|
2044
2073
|
}
|
|
2045
2074
|
});
|
|
2046
2075
|
|
|
2047
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2076
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlbuilder/orderedJs2Xml.js
|
|
2048
2077
|
var require_orderedJs2Xml = __commonJS({
|
|
2049
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2078
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlbuilder/orderedJs2Xml.js"(exports, module) {
|
|
2050
2079
|
var EOL = "\n";
|
|
2051
2080
|
function toXml(jArray, options) {
|
|
2052
2081
|
let indentation = "";
|
|
@@ -2175,11 +2204,12 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2175
2204
|
}
|
|
2176
2205
|
});
|
|
2177
2206
|
|
|
2178
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2207
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlbuilder/json2xml.js
|
|
2179
2208
|
var require_json2xml = __commonJS({
|
|
2180
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2209
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/xmlbuilder/json2xml.js"(exports, module) {
|
|
2181
2210
|
"use strict";
|
|
2182
2211
|
var buildFromOrderedJs = require_orderedJs2Xml();
|
|
2212
|
+
var getIgnoreAttributesFn = require_ignoreAttributes();
|
|
2183
2213
|
var defaultOptions = {
|
|
2184
2214
|
attributeNamePrefix: "@_",
|
|
2185
2215
|
attributesGroupName: false,
|
|
@@ -2216,11 +2246,12 @@ var require_json2xml = __commonJS({
|
|
|
2216
2246
|
};
|
|
2217
2247
|
function Builder(options) {
|
|
2218
2248
|
this.options = Object.assign({}, defaultOptions, options);
|
|
2219
|
-
if (this.options.ignoreAttributes || this.options.attributesGroupName) {
|
|
2249
|
+
if (this.options.ignoreAttributes === true || this.options.attributesGroupName) {
|
|
2220
2250
|
this.isAttribute = function() {
|
|
2221
2251
|
return false;
|
|
2222
2252
|
};
|
|
2223
2253
|
} else {
|
|
2254
|
+
this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
|
|
2224
2255
|
this.attrPrefixLen = this.options.attributeNamePrefix.length;
|
|
2225
2256
|
this.isAttribute = isAttribute;
|
|
2226
2257
|
}
|
|
@@ -2247,12 +2278,13 @@ var require_json2xml = __commonJS({
|
|
|
2247
2278
|
[this.options.arrayNodeName]: jObj
|
|
2248
2279
|
};
|
|
2249
2280
|
}
|
|
2250
|
-
return this.j2x(jObj, 0).val;
|
|
2281
|
+
return this.j2x(jObj, 0, []).val;
|
|
2251
2282
|
}
|
|
2252
2283
|
};
|
|
2253
|
-
Builder.prototype.j2x = function(jObj, level) {
|
|
2284
|
+
Builder.prototype.j2x = function(jObj, level, ajPath) {
|
|
2254
2285
|
let attrStr = "";
|
|
2255
2286
|
let val2 = "";
|
|
2287
|
+
const jPath = ajPath.join(".");
|
|
2256
2288
|
for (let key in jObj) {
|
|
2257
2289
|
if (!Object.prototype.hasOwnProperty.call(jObj, key)) continue;
|
|
2258
2290
|
if (typeof jObj[key] === "undefined") {
|
|
@@ -2271,9 +2303,9 @@ var require_json2xml = __commonJS({
|
|
|
2271
2303
|
val2 += this.buildTextValNode(jObj[key], key, "", level);
|
|
2272
2304
|
} else if (typeof jObj[key] !== "object") {
|
|
2273
2305
|
const attr = this.isAttribute(key);
|
|
2274
|
-
if (attr) {
|
|
2306
|
+
if (attr && !this.ignoreAttributesFn(attr, jPath)) {
|
|
2275
2307
|
attrStr += this.buildAttrPairStr(attr, "" + jObj[key]);
|
|
2276
|
-
} else {
|
|
2308
|
+
} else if (!attr) {
|
|
2277
2309
|
if (key === this.options.textNodeName) {
|
|
2278
2310
|
let newval = this.options.tagValueProcessor(key, "" + jObj[key]);
|
|
2279
2311
|
val2 += this.replaceEntitiesValue(newval);
|
|
@@ -2293,13 +2325,13 @@ var require_json2xml = __commonJS({
|
|
|
2293
2325
|
else val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
2294
2326
|
} else if (typeof item === "object") {
|
|
2295
2327
|
if (this.options.oneListGroup) {
|
|
2296
|
-
const result = this.j2x(item, level + 1);
|
|
2328
|
+
const result = this.j2x(item, level + 1, ajPath.concat(key));
|
|
2297
2329
|
listTagVal += result.val;
|
|
2298
2330
|
if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {
|
|
2299
2331
|
listTagAttr += result.attrStr;
|
|
2300
2332
|
}
|
|
2301
2333
|
} else {
|
|
2302
|
-
listTagVal += this.processTextOrObjNode(item, key, level);
|
|
2334
|
+
listTagVal += this.processTextOrObjNode(item, key, level, ajPath);
|
|
2303
2335
|
}
|
|
2304
2336
|
} else {
|
|
2305
2337
|
if (this.options.oneListGroup) {
|
|
@@ -2323,7 +2355,7 @@ var require_json2xml = __commonJS({
|
|
|
2323
2355
|
attrStr += this.buildAttrPairStr(Ks[j], "" + jObj[key][Ks[j]]);
|
|
2324
2356
|
}
|
|
2325
2357
|
} else {
|
|
2326
|
-
val2 += this.processTextOrObjNode(jObj[key], key, level);
|
|
2358
|
+
val2 += this.processTextOrObjNode(jObj[key], key, level, ajPath);
|
|
2327
2359
|
}
|
|
2328
2360
|
}
|
|
2329
2361
|
}
|
|
@@ -2336,8 +2368,8 @@ var require_json2xml = __commonJS({
|
|
|
2336
2368
|
return " " + attrName;
|
|
2337
2369
|
} else return " " + attrName + '="' + val2 + '"';
|
|
2338
2370
|
};
|
|
2339
|
-
function processTextOrObjNode(object, key, level) {
|
|
2340
|
-
const result = this.j2x(object, level + 1);
|
|
2371
|
+
function processTextOrObjNode(object, key, level, ajPath) {
|
|
2372
|
+
const result = this.j2x(object, level + 1, ajPath.concat(key));
|
|
2341
2373
|
if (object[this.options.textNodeName] !== void 0 && Object.keys(object).length === 1) {
|
|
2342
2374
|
return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level);
|
|
2343
2375
|
} else {
|
|
@@ -2420,9 +2452,9 @@ var require_json2xml = __commonJS({
|
|
|
2420
2452
|
}
|
|
2421
2453
|
});
|
|
2422
2454
|
|
|
2423
|
-
// ../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2455
|
+
// ../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/fxp.js
|
|
2424
2456
|
var require_fxp = __commonJS({
|
|
2425
|
-
"../../node_modules/.store/fast-xml-parser-npm-4.
|
|
2457
|
+
"../../node_modules/.store/fast-xml-parser-npm-4.5.0-353a57f69a/package/src/fxp.js"(exports, module) {
|
|
2426
2458
|
"use strict";
|
|
2427
2459
|
var validator = require_validator();
|
|
2428
2460
|
var XMLParser = require_XMLParser();
|