@ms-cloudpack/remote-cache 0.7.9 → 0.8.1
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-LMRNY2C6.js → AzureRemoteCacheClient-YFWJLZNA.js} +2122 -3714
- package/dist/{ReporterDecorator-JLGERQ2U.js → ReporterDecorator-5LUAHYKK.js} +3 -3
- package/dist/{chunk-TXSHKS6T.js → chunk-D7DHZQ7L.js} +300 -326
- package/dist/{chunk-FUGMINXQ.js → chunk-DSANWO7J.js} +1 -1
- package/dist/{chunk-VCWIWY5Y.js → chunk-FW2AO4WO.js} +217 -305
- package/dist/{chunk-IVPGYNQL.js → chunk-GFDVXVVH.js} +1 -1
- package/dist/{chunk-B4GP6UPK.js → chunk-LRFMBF43.js} +137 -184
- package/dist/{getCredential-QZKOLRT5.js → getCredential-W6MRP3D2.js} +862 -381
- package/dist/{getListOfBlobs-TYZM4XYI.js → getListOfBlobs-2GKCJGDO.js} +4 -4
- package/dist/index.js +9 -9
- package/lib/authentication/forks/identity-cache-persistence/cachePersistencePlugin.d.ts +34 -0
- package/lib/authentication/forks/identity-cache-persistence/platforms.d.ts +50 -0
- package/lib/authentication/forks/identity-cache-persistence/provider.d.ts +17 -0
- package/lib/authentication/forks/msal-node-extensions/error/PersistenceError.d.ts +37 -0
- package/lib/authentication/forks/msal-node-extensions/lock/CrossPlatformLock.d.ts +25 -0
- package/lib/authentication/forks/msal-node-extensions/lock/CrossPlatformLockOptions.d.ts +16 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/BasePersistence.d.ts +6 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/FilePersistence.d.ts +31 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/FilePersistenceWithDataProtection.d.ts +30 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/IPersistence.d.ts +17 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/IPersistenceConfiguration.d.ts +16 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/NapiRsKeyRingPersistence.d.ts +19 -0
- package/lib/authentication/forks/msal-node-extensions/persistence/PersistenceCachePlugin.d.ts +35 -0
- package/lib/authentication/forks/msal-node-extensions/utils/Constants.d.ts +44 -0
- package/lib/authentication/forks/msal-node-extensions/utils/TypeGuards.d.ts +10 -0
- package/lib/authentication/getCredential.d.ts +0 -1
- package/lib/registerAzureLogger.d.ts +0 -1
- package/package.json +6 -4
|
@@ -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-D7DHZQ7L.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__name,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
init_tslib_es6,
|
|
20
20
|
require_commonjs,
|
|
21
21
|
tslib_es6_exports
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LRFMBF43.js";
|
|
23
23
|
|
|
24
24
|
// ../../node_modules/.store/@azure-core-auth-npm-1.7.2-10196debae/package/dist/commonjs/azureKeyCredential.js
|
|
25
25
|
var require_azureKeyCredential = __commonJS({
|
|
@@ -215,31 +215,31 @@ var require_commonjs6 = __commonJS({
|
|
|
215
215
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
216
216
|
exports.isTokenCredential = exports.isSASCredential = exports.AzureSASCredential = exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = exports.isKeyCredential = exports.AzureKeyCredential = void 0;
|
|
217
217
|
var azureKeyCredential_js_1 = require_azureKeyCredential();
|
|
218
|
-
Object.defineProperty(exports, "AzureKeyCredential", { enumerable: true, get: function() {
|
|
218
|
+
Object.defineProperty(exports, "AzureKeyCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
219
219
|
return azureKeyCredential_js_1.AzureKeyCredential;
|
|
220
|
-
} });
|
|
220
|
+
}, "get") });
|
|
221
221
|
var keyCredential_js_1 = require_keyCredential();
|
|
222
|
-
Object.defineProperty(exports, "isKeyCredential", { enumerable: true, get: function() {
|
|
222
|
+
Object.defineProperty(exports, "isKeyCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
223
223
|
return keyCredential_js_1.isKeyCredential;
|
|
224
|
-
} });
|
|
224
|
+
}, "get") });
|
|
225
225
|
var azureNamedKeyCredential_js_1 = require_azureNamedKeyCredential();
|
|
226
|
-
Object.defineProperty(exports, "AzureNamedKeyCredential", { enumerable: true, get: function() {
|
|
226
|
+
Object.defineProperty(exports, "AzureNamedKeyCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
227
227
|
return azureNamedKeyCredential_js_1.AzureNamedKeyCredential;
|
|
228
|
-
} });
|
|
229
|
-
Object.defineProperty(exports, "isNamedKeyCredential", { enumerable: true, get: function() {
|
|
228
|
+
}, "get") });
|
|
229
|
+
Object.defineProperty(exports, "isNamedKeyCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
230
230
|
return azureNamedKeyCredential_js_1.isNamedKeyCredential;
|
|
231
|
-
} });
|
|
231
|
+
}, "get") });
|
|
232
232
|
var azureSASCredential_js_1 = require_azureSASCredential();
|
|
233
|
-
Object.defineProperty(exports, "AzureSASCredential", { enumerable: true, get: function() {
|
|
233
|
+
Object.defineProperty(exports, "AzureSASCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
234
234
|
return azureSASCredential_js_1.AzureSASCredential;
|
|
235
|
-
} });
|
|
236
|
-
Object.defineProperty(exports, "isSASCredential", { enumerable: true, get: function() {
|
|
235
|
+
}, "get") });
|
|
236
|
+
Object.defineProperty(exports, "isSASCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
237
237
|
return azureSASCredential_js_1.isSASCredential;
|
|
238
|
-
} });
|
|
238
|
+
}, "get") });
|
|
239
239
|
var tokenCredential_js_1 = require_tokenCredential();
|
|
240
|
-
Object.defineProperty(exports, "isTokenCredential", { enumerable: true, get: function() {
|
|
240
|
+
Object.defineProperty(exports, "isTokenCredential", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
241
241
|
return tokenCredential_js_1.isTokenCredential;
|
|
242
|
-
} });
|
|
242
|
+
}, "get") });
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
|
|
@@ -690,10 +690,10 @@ var require_httpClientAdapter = __commonJS({
|
|
|
690
690
|
var util_js_1 = require_util();
|
|
691
691
|
function convertHttpClient(requestPolicyClient) {
|
|
692
692
|
return {
|
|
693
|
-
sendRequest: async (request) => {
|
|
693
|
+
sendRequest: /* @__PURE__ */ __name(async (request) => {
|
|
694
694
|
const response = await requestPolicyClient.sendRequest((0, util_js_1.toWebResourceLike)(request, { createProxy: true }));
|
|
695
695
|
return (0, response_js_1.toPipelineResponse)(response);
|
|
696
|
-
}
|
|
696
|
+
}, "sendRequest")
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
699
|
__name(convertHttpClient, "convertHttpClient");
|
|
@@ -708,31 +708,31 @@ var require_commonjs7 = __commonJS({
|
|
|
708
708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
709
709
|
exports.toHttpHeadersLike = exports.convertHttpClient = exports.disableKeepAlivePolicyName = exports.HttpPipelineLogLevel = exports.createRequestPolicyFactoryPolicy = exports.requestPolicyFactoryPolicyName = exports.ExtendedServiceClient = void 0;
|
|
710
710
|
var extendedClient_js_1 = require_extendedClient();
|
|
711
|
-
Object.defineProperty(exports, "ExtendedServiceClient", { enumerable: true, get: function() {
|
|
711
|
+
Object.defineProperty(exports, "ExtendedServiceClient", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
712
712
|
return extendedClient_js_1.ExtendedServiceClient;
|
|
713
|
-
} });
|
|
713
|
+
}, "get") });
|
|
714
714
|
var requestPolicyFactoryPolicy_js_1 = require_requestPolicyFactoryPolicy();
|
|
715
|
-
Object.defineProperty(exports, "requestPolicyFactoryPolicyName", { enumerable: true, get: function() {
|
|
715
|
+
Object.defineProperty(exports, "requestPolicyFactoryPolicyName", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
716
716
|
return requestPolicyFactoryPolicy_js_1.requestPolicyFactoryPolicyName;
|
|
717
|
-
} });
|
|
718
|
-
Object.defineProperty(exports, "createRequestPolicyFactoryPolicy", { enumerable: true, get: function() {
|
|
717
|
+
}, "get") });
|
|
718
|
+
Object.defineProperty(exports, "createRequestPolicyFactoryPolicy", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
719
719
|
return requestPolicyFactoryPolicy_js_1.createRequestPolicyFactoryPolicy;
|
|
720
|
-
} });
|
|
721
|
-
Object.defineProperty(exports, "HttpPipelineLogLevel", { enumerable: true, get: function() {
|
|
720
|
+
}, "get") });
|
|
721
|
+
Object.defineProperty(exports, "HttpPipelineLogLevel", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
722
722
|
return requestPolicyFactoryPolicy_js_1.HttpPipelineLogLevel;
|
|
723
|
-
} });
|
|
723
|
+
}, "get") });
|
|
724
724
|
var disableKeepAlivePolicy_js_1 = require_disableKeepAlivePolicy();
|
|
725
|
-
Object.defineProperty(exports, "disableKeepAlivePolicyName", { enumerable: true, get: function() {
|
|
725
|
+
Object.defineProperty(exports, "disableKeepAlivePolicyName", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
726
726
|
return disableKeepAlivePolicy_js_1.disableKeepAlivePolicyName;
|
|
727
|
-
} });
|
|
727
|
+
}, "get") });
|
|
728
728
|
var httpClientAdapter_js_1 = require_httpClientAdapter();
|
|
729
|
-
Object.defineProperty(exports, "convertHttpClient", { enumerable: true, get: function() {
|
|
729
|
+
Object.defineProperty(exports, "convertHttpClient", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
730
730
|
return httpClientAdapter_js_1.convertHttpClient;
|
|
731
|
-
} });
|
|
731
|
+
}, "get") });
|
|
732
732
|
var util_js_1 = require_util();
|
|
733
|
-
Object.defineProperty(exports, "toHttpHeadersLike", { enumerable: true, get: function() {
|
|
733
|
+
Object.defineProperty(exports, "toHttpHeadersLike", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
734
734
|
return util_js_1.toHttpHeadersLike;
|
|
735
|
-
} });
|
|
735
|
+
}, "get") });
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
738
|
|
|
@@ -817,8 +817,7 @@ var require_validator = __commonJS({
|
|
|
817
817
|
if (xmlData[i] === "<" && xmlData[i + 1] === "?") {
|
|
818
818
|
i += 2;
|
|
819
819
|
i = readPI(xmlData, i);
|
|
820
|
-
if (i.err)
|
|
821
|
-
return i;
|
|
820
|
+
if (i.err) return i;
|
|
822
821
|
} else if (xmlData[i] === "<") {
|
|
823
822
|
let tagStartPos = i;
|
|
824
823
|
i++;
|
|
@@ -906,8 +905,7 @@ var require_validator = __commonJS({
|
|
|
906
905
|
continue;
|
|
907
906
|
} else if (xmlData[i + 1] === "?") {
|
|
908
907
|
i = readPI(xmlData, ++i);
|
|
909
|
-
if (i.err)
|
|
910
|
-
return i;
|
|
908
|
+
if (i.err) return i;
|
|
911
909
|
} else {
|
|
912
910
|
break;
|
|
913
911
|
}
|
|
@@ -1145,16 +1143,16 @@ var require_OptionsBuilder = __commonJS({
|
|
|
1145
1143
|
leadingZeros: true,
|
|
1146
1144
|
eNotation: true
|
|
1147
1145
|
},
|
|
1148
|
-
tagValueProcessor: function(tagName, val2) {
|
|
1146
|
+
tagValueProcessor: /* @__PURE__ */ __name(function(tagName, val2) {
|
|
1149
1147
|
return val2;
|
|
1150
|
-
},
|
|
1151
|
-
attributeValueProcessor: function(attrName, val2) {
|
|
1148
|
+
}, "tagValueProcessor"),
|
|
1149
|
+
attributeValueProcessor: /* @__PURE__ */ __name(function(attrName, val2) {
|
|
1152
1150
|
return val2;
|
|
1153
|
-
},
|
|
1151
|
+
}, "attributeValueProcessor"),
|
|
1154
1152
|
stopNodes: [],
|
|
1155
1153
|
//nested tags will not be parsed even for errors
|
|
1156
1154
|
alwaysCreateTextNode: false,
|
|
1157
|
-
isArray: () => false,
|
|
1155
|
+
isArray: /* @__PURE__ */ __name(() => false, "isArray"),
|
|
1158
1156
|
commentPropName: false,
|
|
1159
1157
|
unpairedTags: [],
|
|
1160
1158
|
processEntities: true,
|
|
@@ -1163,9 +1161,9 @@ var require_OptionsBuilder = __commonJS({
|
|
|
1163
1161
|
ignorePiTags: false,
|
|
1164
1162
|
transformTagName: false,
|
|
1165
1163
|
transformAttributeName: false,
|
|
1166
|
-
updateTag: function(tagName, jPath, attrs) {
|
|
1164
|
+
updateTag: /* @__PURE__ */ __name(function(tagName, jPath, attrs) {
|
|
1167
1165
|
return tagName;
|
|
1168
|
-
}
|
|
1166
|
+
}, "updateTag")
|
|
1169
1167
|
// skipEmptyListItem: false
|
|
1170
1168
|
};
|
|
1171
1169
|
var buildOptions = /* @__PURE__ */ __name(function(options) {
|
|
@@ -1187,13 +1185,11 @@ var require_xmlNode = __commonJS({
|
|
|
1187
1185
|
this[":@"] = {};
|
|
1188
1186
|
}
|
|
1189
1187
|
add(key, val2) {
|
|
1190
|
-
if (key === "__proto__")
|
|
1191
|
-
key = "#__proto__";
|
|
1188
|
+
if (key === "__proto__") key = "#__proto__";
|
|
1192
1189
|
this.child.push({ [key]: val2 });
|
|
1193
1190
|
}
|
|
1194
1191
|
addChild(node) {
|
|
1195
|
-
if (node.tagname === "__proto__")
|
|
1196
|
-
node.tagname = "#__proto__";
|
|
1192
|
+
if (node.tagname === "__proto__") node.tagname = "#__proto__";
|
|
1197
1193
|
if (node[":@"] && Object.keys(node[":@"]).length > 0) {
|
|
1198
1194
|
this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
|
|
1199
1195
|
} else {
|
|
@@ -1228,16 +1224,11 @@ var require_DocTypeReader = __commonJS({
|
|
|
1228
1224
|
regx: RegExp(`&${entityName};`, "g"),
|
|
1229
1225
|
val
|
|
1230
1226
|
};
|
|
1231
|
-
} else if (hasBody && isElement(xmlData, i))
|
|
1232
|
-
|
|
1233
|
-
else if (hasBody &&
|
|
1234
|
-
|
|
1235
|
-
else
|
|
1236
|
-
i += 9;
|
|
1237
|
-
else if (isComment)
|
|
1238
|
-
comment = true;
|
|
1239
|
-
else
|
|
1240
|
-
throw new Error("Invalid DOCTYPE");
|
|
1227
|
+
} else if (hasBody && isElement(xmlData, i)) i += 8;
|
|
1228
|
+
else if (hasBody && isAttlist(xmlData, i)) i += 8;
|
|
1229
|
+
else if (hasBody && isNotation(xmlData, i)) i += 9;
|
|
1230
|
+
else if (isComment) comment = true;
|
|
1231
|
+
else throw new Error("Invalid DOCTYPE");
|
|
1241
1232
|
angleBracketsCount++;
|
|
1242
1233
|
exp = "";
|
|
1243
1234
|
} else if (xmlData[i] === ">") {
|
|
@@ -1273,8 +1264,7 @@ var require_DocTypeReader = __commonJS({
|
|
|
1273
1264
|
entityName2 += xmlData[i];
|
|
1274
1265
|
}
|
|
1275
1266
|
entityName2 = entityName2.trim();
|
|
1276
|
-
if (entityName2.indexOf(" ") !== -1)
|
|
1277
|
-
throw new Error("External entites are not supported");
|
|
1267
|
+
if (entityName2.indexOf(" ") !== -1) throw new Error("External entites are not supported");
|
|
1278
1268
|
const startChar = xmlData[i++];
|
|
1279
1269
|
let val2 = "";
|
|
1280
1270
|
for (; i < xmlData.length && xmlData[i] !== startChar; i++) {
|
|
@@ -1284,32 +1274,27 @@ var require_DocTypeReader = __commonJS({
|
|
|
1284
1274
|
}
|
|
1285
1275
|
__name(readEntityExp, "readEntityExp");
|
|
1286
1276
|
function isComment(xmlData, i) {
|
|
1287
|
-
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-")
|
|
1288
|
-
return true;
|
|
1277
|
+
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-") return true;
|
|
1289
1278
|
return false;
|
|
1290
1279
|
}
|
|
1291
1280
|
__name(isComment, "isComment");
|
|
1292
1281
|
function isEntity(xmlData, i) {
|
|
1293
|
-
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y")
|
|
1294
|
-
return true;
|
|
1282
|
+
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") return true;
|
|
1295
1283
|
return false;
|
|
1296
1284
|
}
|
|
1297
1285
|
__name(isEntity, "isEntity");
|
|
1298
1286
|
function isElement(xmlData, i) {
|
|
1299
|
-
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T")
|
|
1300
|
-
return true;
|
|
1287
|
+
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") return true;
|
|
1301
1288
|
return false;
|
|
1302
1289
|
}
|
|
1303
1290
|
__name(isElement, "isElement");
|
|
1304
1291
|
function isAttlist(xmlData, i) {
|
|
1305
|
-
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T")
|
|
1306
|
-
return true;
|
|
1292
|
+
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") return true;
|
|
1307
1293
|
return false;
|
|
1308
1294
|
}
|
|
1309
1295
|
__name(isAttlist, "isAttlist");
|
|
1310
1296
|
function isNotation(xmlData, i) {
|
|
1311
|
-
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N")
|
|
1312
|
-
return true;
|
|
1297
|
+
if (xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") return true;
|
|
1313
1298
|
return false;
|
|
1314
1299
|
}
|
|
1315
1300
|
__name(isNotation, "isNotation");
|
|
@@ -1344,11 +1329,9 @@ var require_strnum = __commonJS({
|
|
|
1344
1329
|
};
|
|
1345
1330
|
function toNumber(str, options = {}) {
|
|
1346
1331
|
options = Object.assign({}, consider, options);
|
|
1347
|
-
if (!str || typeof str !== "string")
|
|
1348
|
-
return str;
|
|
1332
|
+
if (!str || typeof str !== "string") return str;
|
|
1349
1333
|
let trimmedStr = str.trim();
|
|
1350
|
-
if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr))
|
|
1351
|
-
return str;
|
|
1334
|
+
if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
|
|
1352
1335
|
else if (options.hex && hexRegex.test(trimmedStr)) {
|
|
1353
1336
|
return Number.parseInt(trimmedStr, 16);
|
|
1354
1337
|
} else {
|
|
@@ -1358,45 +1341,30 @@ var require_strnum = __commonJS({
|
|
|
1358
1341
|
const leadingZeros = match[2];
|
|
1359
1342
|
let numTrimmedByZeros = trimZeros(match[3]);
|
|
1360
1343
|
const eNotation = match[4] || match[6];
|
|
1361
|
-
if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== ".")
|
|
1362
|
-
|
|
1363
|
-
else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== ".")
|
|
1364
|
-
return str;
|
|
1344
|
+
if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== ".") return str;
|
|
1345
|
+
else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== ".") return str;
|
|
1365
1346
|
else {
|
|
1366
1347
|
const num = Number(trimmedStr);
|
|
1367
1348
|
const numStr = "" + num;
|
|
1368
1349
|
if (numStr.search(/[eE]/) !== -1) {
|
|
1369
|
-
if (options.eNotation)
|
|
1370
|
-
|
|
1371
|
-
else
|
|
1372
|
-
return str;
|
|
1350
|
+
if (options.eNotation) return num;
|
|
1351
|
+
else return str;
|
|
1373
1352
|
} else if (eNotation) {
|
|
1374
|
-
if (options.eNotation)
|
|
1375
|
-
|
|
1376
|
-
else
|
|
1377
|
-
return str;
|
|
1353
|
+
if (options.eNotation) return num;
|
|
1354
|
+
else return str;
|
|
1378
1355
|
} else if (trimmedStr.indexOf(".") !== -1) {
|
|
1379
|
-
if (numStr === "0" && numTrimmedByZeros === "")
|
|
1380
|
-
|
|
1381
|
-
else if (numStr === numTrimmedByZeros)
|
|
1382
|
-
|
|
1383
|
-
else if (sign && numStr === "-" + numTrimmedByZeros)
|
|
1384
|
-
return num;
|
|
1385
|
-
else
|
|
1386
|
-
return str;
|
|
1356
|
+
if (numStr === "0" && numTrimmedByZeros === "") return num;
|
|
1357
|
+
else if (numStr === numTrimmedByZeros) return num;
|
|
1358
|
+
else if (sign && numStr === "-" + numTrimmedByZeros) return num;
|
|
1359
|
+
else return str;
|
|
1387
1360
|
}
|
|
1388
1361
|
if (leadingZeros) {
|
|
1389
|
-
if (numTrimmedByZeros === numStr)
|
|
1390
|
-
|
|
1391
|
-
else
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
}
|
|
1396
|
-
if (trimmedStr === numStr)
|
|
1397
|
-
return num;
|
|
1398
|
-
else if (trimmedStr === sign + numStr)
|
|
1399
|
-
return num;
|
|
1362
|
+
if (numTrimmedByZeros === numStr) return num;
|
|
1363
|
+
else if (sign + numTrimmedByZeros === numStr) return num;
|
|
1364
|
+
else return str;
|
|
1365
|
+
}
|
|
1366
|
+
if (trimmedStr === numStr) return num;
|
|
1367
|
+
else if (trimmedStr === sign + numStr) return num;
|
|
1400
1368
|
return str;
|
|
1401
1369
|
}
|
|
1402
1370
|
} else {
|
|
@@ -1408,12 +1376,9 @@ var require_strnum = __commonJS({
|
|
|
1408
1376
|
function trimZeros(numStr) {
|
|
1409
1377
|
if (numStr && numStr.indexOf(".") !== -1) {
|
|
1410
1378
|
numStr = numStr.replace(/0+$/, "");
|
|
1411
|
-
if (numStr === ".")
|
|
1412
|
-
|
|
1413
|
-
else if (numStr[
|
|
1414
|
-
numStr = "0" + numStr;
|
|
1415
|
-
else if (numStr[numStr.length - 1] === ".")
|
|
1416
|
-
numStr = numStr.substr(0, numStr.length - 1);
|
|
1379
|
+
if (numStr === ".") numStr = "0";
|
|
1380
|
+
else if (numStr[0] === ".") numStr = "0" + numStr;
|
|
1381
|
+
else if (numStr[numStr.length - 1] === ".") numStr = numStr.substr(0, numStr.length - 1);
|
|
1417
1382
|
return numStr;
|
|
1418
1383
|
}
|
|
1419
1384
|
return numStr;
|
|
@@ -1458,8 +1423,8 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1458
1423
|
"copyright": { regex: /&(copy|#169);/g, val: "\xA9" },
|
|
1459
1424
|
"reg": { regex: /&(reg|#174);/g, val: "\xAE" },
|
|
1460
1425
|
"inr": { regex: /&(inr|#8377);/g, val: "\u20B9" },
|
|
1461
|
-
"num_dec": { regex: /&#([0-9]{1,7});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },
|
|
1462
|
-
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 16)) }
|
|
1426
|
+
"num_dec": { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((_, str) => String.fromCharCode(Number.parseInt(str, 10)), "val") },
|
|
1427
|
+
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((_, str) => String.fromCharCode(Number.parseInt(str, 16)), "val") }
|
|
1463
1428
|
};
|
|
1464
1429
|
this.addExternalEntities = addExternalEntities;
|
|
1465
1430
|
this.parseXml = parseXml;
|
|
@@ -1492,8 +1457,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1492
1457
|
val2 = val2.trim();
|
|
1493
1458
|
}
|
|
1494
1459
|
if (val2.length > 0) {
|
|
1495
|
-
if (!escapeEntities)
|
|
1496
|
-
val2 = this.replaceEntitiesValue(val2);
|
|
1460
|
+
if (!escapeEntities) val2 = this.replaceEntitiesValue(val2);
|
|
1497
1461
|
const newval = this.options.tagValueProcessor(tagName, val2, jPath, hasAttributes, isLeafNode);
|
|
1498
1462
|
if (newval === null || newval === void 0) {
|
|
1499
1463
|
return val2;
|
|
@@ -1541,8 +1505,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1541
1505
|
if (this.options.transformAttributeName) {
|
|
1542
1506
|
aName = this.options.transformAttributeName(aName);
|
|
1543
1507
|
}
|
|
1544
|
-
if (aName === "__proto__")
|
|
1545
|
-
aName = "#__proto__";
|
|
1508
|
+
if (aName === "__proto__") aName = "#__proto__";
|
|
1546
1509
|
if (oldVal !== void 0) {
|
|
1547
1510
|
if (this.options.trimValues) {
|
|
1548
1511
|
oldVal = oldVal.trim();
|
|
@@ -1618,8 +1581,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1618
1581
|
i = closeIndex;
|
|
1619
1582
|
} else if (xmlData[i + 1] === "?") {
|
|
1620
1583
|
let tagData = readTagExp(xmlData, i, false, "?>");
|
|
1621
|
-
if (!tagData)
|
|
1622
|
-
throw new Error("Pi Tag is not closed.");
|
|
1584
|
+
if (!tagData) throw new Error("Pi Tag is not closed.");
|
|
1623
1585
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1624
1586
|
if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {
|
|
1625
1587
|
} else {
|
|
@@ -1648,8 +1610,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1648
1610
|
const tagExp = xmlData.substring(i + 9, closeIndex);
|
|
1649
1611
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1650
1612
|
let val2 = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
|
1651
|
-
if (val2 == void 0)
|
|
1652
|
-
val2 = "";
|
|
1613
|
+
if (val2 == void 0) val2 = "";
|
|
1653
1614
|
if (this.options.cdataPropName) {
|
|
1654
1615
|
currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
|
|
1655
1616
|
} else {
|
|
@@ -1694,8 +1655,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1694
1655
|
i = result.closeIndex;
|
|
1695
1656
|
} else {
|
|
1696
1657
|
const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
|
1697
|
-
if (!result2)
|
|
1698
|
-
throw new Error(`Unexpected end of ${rawTagName}`);
|
|
1658
|
+
if (!result2) throw new Error(`Unexpected end of ${rawTagName}`);
|
|
1699
1659
|
i = result2.i;
|
|
1700
1660
|
tagContent = result2.tagContent;
|
|
1701
1661
|
}
|
|
@@ -1779,8 +1739,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1779
1739
|
}, "replaceEntitiesValue");
|
|
1780
1740
|
function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
|
|
1781
1741
|
if (textData) {
|
|
1782
|
-
if (isLeafNode === void 0)
|
|
1783
|
-
isLeafNode = Object.keys(currentNode.child).length === 0;
|
|
1742
|
+
if (isLeafNode === void 0) isLeafNode = Object.keys(currentNode.child).length === 0;
|
|
1784
1743
|
textData = this.parseTextData(
|
|
1785
1744
|
textData,
|
|
1786
1745
|
currentNode.tagname,
|
|
@@ -1800,8 +1759,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1800
1759
|
const allNodesExp = "*." + currentTagName;
|
|
1801
1760
|
for (const stopNodePath in stopNodes) {
|
|
1802
1761
|
const stopNodeExp = stopNodes[stopNodePath];
|
|
1803
|
-
if (allNodesExp === stopNodeExp || jPath === stopNodeExp)
|
|
1804
|
-
return true;
|
|
1762
|
+
if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;
|
|
1805
1763
|
}
|
|
1806
1764
|
return false;
|
|
1807
1765
|
}
|
|
@@ -1812,8 +1770,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1812
1770
|
for (let index = i; index < xmlData.length; index++) {
|
|
1813
1771
|
let ch = xmlData[index];
|
|
1814
1772
|
if (attrBoundary) {
|
|
1815
|
-
if (ch === attrBoundary)
|
|
1816
|
-
attrBoundary = "";
|
|
1773
|
+
if (ch === attrBoundary) attrBoundary = "";
|
|
1817
1774
|
} else if (ch === '"' || ch === "'") {
|
|
1818
1775
|
attrBoundary = ch;
|
|
1819
1776
|
} else if (ch === closingChar[0]) {
|
|
@@ -1848,8 +1805,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1848
1805
|
__name(findClosingIndex, "findClosingIndex");
|
|
1849
1806
|
function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
|
|
1850
1807
|
const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
|
|
1851
|
-
if (!result)
|
|
1852
|
-
return;
|
|
1808
|
+
if (!result) return;
|
|
1853
1809
|
let tagExp = result.data;
|
|
1854
1810
|
const closeIndex = result.index;
|
|
1855
1811
|
const separatorIndex = tagExp.search(/\s/);
|
|
@@ -1920,12 +1876,9 @@ var require_OrderedObjParser = __commonJS({
|
|
|
1920
1876
|
function parseValue(val2, shouldParse, options) {
|
|
1921
1877
|
if (shouldParse && typeof val2 === "string") {
|
|
1922
1878
|
const newval = val2.trim();
|
|
1923
|
-
if (newval === "true")
|
|
1924
|
-
|
|
1925
|
-
else
|
|
1926
|
-
return false;
|
|
1927
|
-
else
|
|
1928
|
-
return toNumber(val2, options);
|
|
1879
|
+
if (newval === "true") return true;
|
|
1880
|
+
else if (newval === "false") return false;
|
|
1881
|
+
else return toNumber(val2, options);
|
|
1929
1882
|
} else {
|
|
1930
1883
|
if (util.isExist(val2)) {
|
|
1931
1884
|
return val2;
|
|
@@ -1954,15 +1907,11 @@ var require_node2json = __commonJS({
|
|
|
1954
1907
|
const tagObj = arr[i];
|
|
1955
1908
|
const property = propName(tagObj);
|
|
1956
1909
|
let newJpath = "";
|
|
1957
|
-
if (jPath === void 0)
|
|
1958
|
-
|
|
1959
|
-
else
|
|
1960
|
-
newJpath = jPath + "." + property;
|
|
1910
|
+
if (jPath === void 0) newJpath = property;
|
|
1911
|
+
else newJpath = jPath + "." + property;
|
|
1961
1912
|
if (property === options.textNodeName) {
|
|
1962
|
-
if (text === void 0)
|
|
1963
|
-
|
|
1964
|
-
else
|
|
1965
|
-
text += "" + tagObj[property];
|
|
1913
|
+
if (text === void 0) text = tagObj[property];
|
|
1914
|
+
else text += "" + tagObj[property];
|
|
1966
1915
|
} else if (property === void 0) {
|
|
1967
1916
|
continue;
|
|
1968
1917
|
} else if (tagObj[property]) {
|
|
@@ -1973,10 +1922,8 @@ var require_node2json = __commonJS({
|
|
|
1973
1922
|
} else if (Object.keys(val2).length === 1 && val2[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
|
|
1974
1923
|
val2 = val2[options.textNodeName];
|
|
1975
1924
|
} else if (Object.keys(val2).length === 0) {
|
|
1976
|
-
if (options.alwaysCreateTextNode)
|
|
1977
|
-
|
|
1978
|
-
else
|
|
1979
|
-
val2 = "";
|
|
1925
|
+
if (options.alwaysCreateTextNode) val2[options.textNodeName] = "";
|
|
1926
|
+
else val2 = "";
|
|
1980
1927
|
}
|
|
1981
1928
|
if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
|
|
1982
1929
|
if (!Array.isArray(compressedObj[property])) {
|
|
@@ -1993,10 +1940,8 @@ var require_node2json = __commonJS({
|
|
|
1993
1940
|
}
|
|
1994
1941
|
}
|
|
1995
1942
|
if (typeof text === "string") {
|
|
1996
|
-
if (text.length > 0)
|
|
1997
|
-
|
|
1998
|
-
} else if (text !== void 0)
|
|
1999
|
-
compressedObj[options.textNodeName] = text;
|
|
1943
|
+
if (text.length > 0) compressedObj[options.textNodeName] = text;
|
|
1944
|
+
} else if (text !== void 0) compressedObj[options.textNodeName] = text;
|
|
2000
1945
|
return compressedObj;
|
|
2001
1946
|
}
|
|
2002
1947
|
__name(compress, "compress");
|
|
@@ -2004,8 +1949,7 @@ var require_node2json = __commonJS({
|
|
|
2004
1949
|
const keys = Object.keys(obj);
|
|
2005
1950
|
for (let i = 0; i < keys.length; i++) {
|
|
2006
1951
|
const key = keys[i];
|
|
2007
|
-
if (key !== ":@")
|
|
2008
|
-
return key;
|
|
1952
|
+
if (key !== ":@") return key;
|
|
2009
1953
|
}
|
|
2010
1954
|
}
|
|
2011
1955
|
__name(propName, "propName");
|
|
@@ -2065,8 +2009,7 @@ var require_XMLParser = __commonJS({
|
|
|
2065
2009
|
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
2066
2010
|
}
|
|
2067
2011
|
if (validationOption) {
|
|
2068
|
-
if (validationOption === true)
|
|
2069
|
-
validationOption = {};
|
|
2012
|
+
if (validationOption === true) validationOption = {};
|
|
2070
2013
|
const result = validator.validate(xmlData, validationOption);
|
|
2071
2014
|
if (result !== true) {
|
|
2072
2015
|
throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);
|
|
@@ -2075,10 +2018,8 @@ var require_XMLParser = __commonJS({
|
|
|
2075
2018
|
const orderedObjParser = new OrderedObjParser(this.options);
|
|
2076
2019
|
orderedObjParser.addExternalEntities(this.externalEntities);
|
|
2077
2020
|
const orderedResult = orderedObjParser.parseXml(xmlData);
|
|
2078
|
-
if (this.options.preserveOrder || orderedResult === void 0)
|
|
2079
|
-
|
|
2080
|
-
else
|
|
2081
|
-
return prettify(orderedResult, this.options);
|
|
2021
|
+
if (this.options.preserveOrder || orderedResult === void 0) return orderedResult;
|
|
2022
|
+
else return prettify(orderedResult, this.options);
|
|
2082
2023
|
}
|
|
2083
2024
|
/**
|
|
2084
2025
|
* Add Entity which is not by default supported by this library
|
|
@@ -2121,13 +2062,10 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2121
2062
|
for (let i = 0; i < arr.length; i++) {
|
|
2122
2063
|
const tagObj = arr[i];
|
|
2123
2064
|
const tagName = propName(tagObj);
|
|
2124
|
-
if (tagName === void 0)
|
|
2125
|
-
continue;
|
|
2065
|
+
if (tagName === void 0) continue;
|
|
2126
2066
|
let newJPath = "";
|
|
2127
|
-
if (jPath.length === 0)
|
|
2128
|
-
|
|
2129
|
-
else
|
|
2130
|
-
newJPath = `${jPath}.${tagName}`;
|
|
2067
|
+
if (jPath.length === 0) newJPath = tagName;
|
|
2068
|
+
else newJPath = `${jPath}.${tagName}`;
|
|
2131
2069
|
if (tagName === options.textNodeName) {
|
|
2132
2070
|
let tagText = tagObj[tagName];
|
|
2133
2071
|
if (!isStopNode(newJPath, options)) {
|
|
@@ -2168,10 +2106,8 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2168
2106
|
const tagStart = indentation + `<${tagName}${attStr}`;
|
|
2169
2107
|
const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);
|
|
2170
2108
|
if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
2171
|
-
if (options.suppressUnpairedNode)
|
|
2172
|
-
|
|
2173
|
-
else
|
|
2174
|
-
xmlStr += tagStart + "/>";
|
|
2109
|
+
if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
|
|
2110
|
+
else xmlStr += tagStart + "/>";
|
|
2175
2111
|
} else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
|
|
2176
2112
|
xmlStr += tagStart + "/>";
|
|
2177
2113
|
} else if (tagValue && tagValue.endsWith(">")) {
|
|
@@ -2194,10 +2130,8 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2194
2130
|
const keys = Object.keys(obj);
|
|
2195
2131
|
for (let i = 0; i < keys.length; i++) {
|
|
2196
2132
|
const key = keys[i];
|
|
2197
|
-
if (!obj.hasOwnProperty(key))
|
|
2198
|
-
|
|
2199
|
-
if (key !== ":@")
|
|
2200
|
-
return key;
|
|
2133
|
+
if (!obj.hasOwnProperty(key)) continue;
|
|
2134
|
+
if (key !== ":@") return key;
|
|
2201
2135
|
}
|
|
2202
2136
|
}
|
|
2203
2137
|
__name(propName, "propName");
|
|
@@ -2205,8 +2139,7 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2205
2139
|
let attrStr = "";
|
|
2206
2140
|
if (attrMap && !options.ignoreAttributes) {
|
|
2207
2141
|
for (let attr in attrMap) {
|
|
2208
|
-
if (!attrMap.hasOwnProperty(attr))
|
|
2209
|
-
continue;
|
|
2142
|
+
if (!attrMap.hasOwnProperty(attr)) continue;
|
|
2210
2143
|
let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
|
|
2211
2144
|
attrVal = replaceEntitiesValue(attrVal, options);
|
|
2212
2145
|
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
@@ -2223,8 +2156,7 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
2223
2156
|
jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);
|
|
2224
2157
|
let tagName = jPath.substr(jPath.lastIndexOf(".") + 1);
|
|
2225
2158
|
for (let index in options.stopNodes) {
|
|
2226
|
-
if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName)
|
|
2227
|
-
return true;
|
|
2159
|
+
if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName) return true;
|
|
2228
2160
|
}
|
|
2229
2161
|
return false;
|
|
2230
2162
|
}
|
|
@@ -2259,12 +2191,12 @@ var require_json2xml = __commonJS({
|
|
|
2259
2191
|
suppressEmptyNode: false,
|
|
2260
2192
|
suppressUnpairedNode: true,
|
|
2261
2193
|
suppressBooleanAttributes: true,
|
|
2262
|
-
tagValueProcessor: function(key, a) {
|
|
2194
|
+
tagValueProcessor: /* @__PURE__ */ __name(function(key, a) {
|
|
2263
2195
|
return a;
|
|
2264
|
-
},
|
|
2265
|
-
attributeValueProcessor: function(attrName, a) {
|
|
2196
|
+
}, "tagValueProcessor"),
|
|
2197
|
+
attributeValueProcessor: /* @__PURE__ */ __name(function(attrName, a) {
|
|
2266
2198
|
return a;
|
|
2267
|
-
},
|
|
2199
|
+
}, "attributeValueProcessor"),
|
|
2268
2200
|
preserveOrder: false,
|
|
2269
2201
|
commentPropName: false,
|
|
2270
2202
|
unpairedTags: [],
|
|
@@ -2322,8 +2254,7 @@ var require_json2xml = __commonJS({
|
|
|
2322
2254
|
let attrStr = "";
|
|
2323
2255
|
let val2 = "";
|
|
2324
2256
|
for (let key in jObj) {
|
|
2325
|
-
if (!Object.prototype.hasOwnProperty.call(jObj, key))
|
|
2326
|
-
continue;
|
|
2257
|
+
if (!Object.prototype.hasOwnProperty.call(jObj, key)) continue;
|
|
2327
2258
|
if (typeof jObj[key] === "undefined") {
|
|
2328
2259
|
if (this.isAttribute(key)) {
|
|
2329
2260
|
val2 += "";
|
|
@@ -2357,10 +2288,8 @@ var require_json2xml = __commonJS({
|
|
|
2357
2288
|
const item = jObj[key][j];
|
|
2358
2289
|
if (typeof item === "undefined") {
|
|
2359
2290
|
} else if (item === null) {
|
|
2360
|
-
if (key[0] === "?")
|
|
2361
|
-
|
|
2362
|
-
else
|
|
2363
|
-
val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
2291
|
+
if (key[0] === "?") val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
2292
|
+
else val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
2364
2293
|
} else if (typeof item === "object") {
|
|
2365
2294
|
if (this.options.oneListGroup) {
|
|
2366
2295
|
listTagVal += this.j2x(item, level + 1).val;
|
|
@@ -2394,8 +2323,7 @@ var require_json2xml = __commonJS({
|
|
|
2394
2323
|
val2 = this.replaceEntitiesValue(val2);
|
|
2395
2324
|
if (this.options.suppressBooleanAttributes && val2 === "true") {
|
|
2396
2325
|
return " " + attrName;
|
|
2397
|
-
} else
|
|
2398
|
-
return " " + attrName + '="' + val2 + '"';
|
|
2326
|
+
} else return " " + attrName + '="' + val2 + '"';
|
|
2399
2327
|
};
|
|
2400
2328
|
function processTextOrObjNode(object, key, level) {
|
|
2401
2329
|
const result = this.j2x(object, level + 1);
|
|
@@ -2408,8 +2336,7 @@ var require_json2xml = __commonJS({
|
|
|
2408
2336
|
__name(processTextOrObjNode, "processTextOrObjNode");
|
|
2409
2337
|
Builder.prototype.buildObjectNode = function(val2, key, attrStr, level) {
|
|
2410
2338
|
if (val2 === "") {
|
|
2411
|
-
if (key[0] === "?")
|
|
2412
|
-
return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
|
|
2339
|
+
if (key[0] === "?") return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
|
|
2413
2340
|
else {
|
|
2414
2341
|
return this.indentate(level) + "<" + key + attrStr + this.closeTag(key) + this.tagEndChar;
|
|
2415
2342
|
}
|
|
@@ -2432,8 +2359,7 @@ var require_json2xml = __commonJS({
|
|
|
2432
2359
|
Builder.prototype.closeTag = function(key) {
|
|
2433
2360
|
let closeTag = "";
|
|
2434
2361
|
if (this.options.unpairedTags.indexOf(key) !== -1) {
|
|
2435
|
-
if (!this.options.suppressUnpairedNode)
|
|
2436
|
-
closeTag = "/";
|
|
2362
|
+
if (!this.options.suppressUnpairedNode) closeTag = "/";
|
|
2437
2363
|
} else if (this.options.suppressEmptyNode) {
|
|
2438
2364
|
closeTag = "/";
|
|
2439
2365
|
} else {
|
|
@@ -2578,19 +2504,19 @@ var require_commonjs8 = __commonJS({
|
|
|
2578
2504
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2579
2505
|
exports.XML_CHARKEY = exports.XML_ATTRKEY = exports.parseXML = exports.stringifyXML = void 0;
|
|
2580
2506
|
var xml_js_1 = require_xml();
|
|
2581
|
-
Object.defineProperty(exports, "stringifyXML", { enumerable: true, get: function() {
|
|
2507
|
+
Object.defineProperty(exports, "stringifyXML", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2582
2508
|
return xml_js_1.stringifyXML;
|
|
2583
|
-
} });
|
|
2584
|
-
Object.defineProperty(exports, "parseXML", { enumerable: true, get: function() {
|
|
2509
|
+
}, "get") });
|
|
2510
|
+
Object.defineProperty(exports, "parseXML", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2585
2511
|
return xml_js_1.parseXML;
|
|
2586
|
-
} });
|
|
2512
|
+
}, "get") });
|
|
2587
2513
|
var xml_common_js_1 = require_xml_common();
|
|
2588
|
-
Object.defineProperty(exports, "XML_ATTRKEY", { enumerable: true, get: function() {
|
|
2514
|
+
Object.defineProperty(exports, "XML_ATTRKEY", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2589
2515
|
return xml_common_js_1.XML_ATTRKEY;
|
|
2590
|
-
} });
|
|
2591
|
-
Object.defineProperty(exports, "XML_CHARKEY", { enumerable: true, get: function() {
|
|
2516
|
+
}, "get") });
|
|
2517
|
+
Object.defineProperty(exports, "XML_CHARKEY", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2592
2518
|
return xml_common_js_1.XML_CHARKEY;
|
|
2593
|
-
} });
|
|
2519
|
+
}, "get") });
|
|
2594
2520
|
}
|
|
2595
2521
|
});
|
|
2596
2522
|
|
|
@@ -2992,7 +2918,7 @@ var require_operation2 = __commonJS({
|
|
|
2992
2918
|
async function initHttpOperation(inputs) {
|
|
2993
2919
|
const { stateProxy, resourceLocationConfig, processResult, lro, setErrorAsResult } = inputs;
|
|
2994
2920
|
return (0, operation_js_1.initOperation)({
|
|
2995
|
-
init: async () => {
|
|
2921
|
+
init: /* @__PURE__ */ __name(async () => {
|
|
2996
2922
|
const response = await lro.sendInitialRequest();
|
|
2997
2923
|
const config = inferLroMode({
|
|
2998
2924
|
rawResponse: response.rawResponse,
|
|
@@ -3001,7 +2927,7 @@ var require_operation2 = __commonJS({
|
|
|
3001
2927
|
resourceLocationConfig
|
|
3002
2928
|
});
|
|
3003
2929
|
return Object.assign({ response, operationLocation: config === null || config === void 0 ? void 0 : config.operationLocation, resourceLocation: config === null || config === void 0 ? void 0 : config.resourceLocation }, (config === null || config === void 0 ? void 0 : config.mode) ? { metadata: { mode: config.mode } } : {});
|
|
3004
|
-
},
|
|
2930
|
+
}, "init"),
|
|
3005
2931
|
stateProxy,
|
|
3006
2932
|
processResult: processResult ? ({ flatResponse }, state) => processResult(flatResponse, state) : ({ flatResponse }) => flatResponse,
|
|
3007
2933
|
getOperationStatus: getStatusFromInitialResponse,
|
|
@@ -3088,7 +3014,7 @@ var require_operation2 = __commonJS({
|
|
|
3088
3014
|
* The expansion here is intentional because `lro` could be an object that
|
|
3089
3015
|
* references an inner this, so we need to preserve a reference to it.
|
|
3090
3016
|
*/
|
|
3091
|
-
poll: async (location, inputOptions) => lro.sendPollRequest(location, inputOptions),
|
|
3017
|
+
poll: /* @__PURE__ */ __name(async (location, inputOptions) => lro.sendPollRequest(location, inputOptions), "poll"),
|
|
3092
3018
|
setErrorAsResult
|
|
3093
3019
|
});
|
|
3094
3020
|
}
|
|
@@ -3112,19 +3038,19 @@ var require_poller = __commonJS({
|
|
|
3112
3038
|
* It will be updated later to be of type TState when the
|
|
3113
3039
|
* customer-provided callback, `updateState`, is called during polling.
|
|
3114
3040
|
*/
|
|
3115
|
-
initState: (config) => ({ status: "running", config }),
|
|
3116
|
-
setCanceled: (state) => state.status = "canceled",
|
|
3117
|
-
setError: (state, error) => state.error = error,
|
|
3118
|
-
setResult: (state, result) => state.result = result,
|
|
3119
|
-
setRunning: (state) => state.status = "running",
|
|
3120
|
-
setSucceeded: (state) => state.status = "succeeded",
|
|
3121
|
-
setFailed: (state) => state.status = "failed",
|
|
3122
|
-
getError: (state) => state.error,
|
|
3123
|
-
getResult: (state) => state.result,
|
|
3124
|
-
isCanceled: (state) => state.status === "canceled",
|
|
3125
|
-
isFailed: (state) => state.status === "failed",
|
|
3126
|
-
isRunning: (state) => state.status === "running",
|
|
3127
|
-
isSucceeded: (state) => state.status === "succeeded"
|
|
3041
|
+
initState: /* @__PURE__ */ __name((config) => ({ status: "running", config }), "initState"),
|
|
3042
|
+
setCanceled: /* @__PURE__ */ __name((state) => state.status = "canceled", "setCanceled"),
|
|
3043
|
+
setError: /* @__PURE__ */ __name((state, error) => state.error = error, "setError"),
|
|
3044
|
+
setResult: /* @__PURE__ */ __name((state, result) => state.result = result, "setResult"),
|
|
3045
|
+
setRunning: /* @__PURE__ */ __name((state) => state.status = "running", "setRunning"),
|
|
3046
|
+
setSucceeded: /* @__PURE__ */ __name((state) => state.status = "succeeded", "setSucceeded"),
|
|
3047
|
+
setFailed: /* @__PURE__ */ __name((state) => state.status = "failed", "setFailed"),
|
|
3048
|
+
getError: /* @__PURE__ */ __name((state) => state.error, "getError"),
|
|
3049
|
+
getResult: /* @__PURE__ */ __name((state) => state.result, "getResult"),
|
|
3050
|
+
isCanceled: /* @__PURE__ */ __name((state) => state.status === "canceled", "isCanceled"),
|
|
3051
|
+
isFailed: /* @__PURE__ */ __name((state) => state.status === "failed", "isFailed"),
|
|
3052
|
+
isRunning: /* @__PURE__ */ __name((state) => state.status === "running", "isRunning"),
|
|
3053
|
+
isSucceeded: /* @__PURE__ */ __name((state) => state.status === "succeeded", "isSucceeded")
|
|
3128
3054
|
}), "createStateProxy");
|
|
3129
3055
|
function buildCreatePoller(inputs) {
|
|
3130
3056
|
const { getOperationLocation, getStatusFromInitialResponse, getStatusFromPollResponse, isOperationError, getResourceLocation, getPollingInterval, getError, resolveOnUnsuccessful } = inputs;
|
|
@@ -3156,22 +3082,22 @@ var require_poller = __commonJS({
|
|
|
3156
3082
|
const cancelErrMsg = "Operation was canceled";
|
|
3157
3083
|
let currentPollIntervalInMs = intervalInMs;
|
|
3158
3084
|
const poller = {
|
|
3159
|
-
getOperationState: () => state,
|
|
3160
|
-
getResult: () => state.result,
|
|
3161
|
-
isDone: () => ["succeeded", "failed", "canceled"].includes(state.status),
|
|
3162
|
-
isStopped: () => resultPromise === void 0,
|
|
3163
|
-
stopPolling: () => {
|
|
3085
|
+
getOperationState: /* @__PURE__ */ __name(() => state, "getOperationState"),
|
|
3086
|
+
getResult: /* @__PURE__ */ __name(() => state.result, "getResult"),
|
|
3087
|
+
isDone: /* @__PURE__ */ __name(() => ["succeeded", "failed", "canceled"].includes(state.status), "isDone"),
|
|
3088
|
+
isStopped: /* @__PURE__ */ __name(() => resultPromise === void 0, "isStopped"),
|
|
3089
|
+
stopPolling: /* @__PURE__ */ __name(() => {
|
|
3164
3090
|
abortController.abort();
|
|
3165
|
-
},
|
|
3166
|
-
toString: () => JSON.stringify({
|
|
3091
|
+
}, "stopPolling"),
|
|
3092
|
+
toString: /* @__PURE__ */ __name(() => JSON.stringify({
|
|
3167
3093
|
state
|
|
3168
|
-
}),
|
|
3169
|
-
onProgress: (callback) => {
|
|
3094
|
+
}), "toString"),
|
|
3095
|
+
onProgress: /* @__PURE__ */ __name((callback) => {
|
|
3170
3096
|
const s = Symbol();
|
|
3171
3097
|
handlers.set(s, callback);
|
|
3172
3098
|
return () => handlers.delete(s);
|
|
3173
|
-
},
|
|
3174
|
-
pollUntilDone: (pollOptions) => resultPromise !== null && resultPromise !== void 0 ? resultPromise : resultPromise = (async () => {
|
|
3099
|
+
}, "onProgress"),
|
|
3100
|
+
pollUntilDone: /* @__PURE__ */ __name((pollOptions) => resultPromise !== null && resultPromise !== void 0 ? resultPromise : resultPromise = (async () => {
|
|
3175
3101
|
const { abortSignal: inputAbortSignal } = pollOptions || {};
|
|
3176
3102
|
function abortListener() {
|
|
3177
3103
|
abortController.abort();
|
|
@@ -3211,7 +3137,7 @@ var require_poller = __commonJS({
|
|
|
3211
3137
|
}
|
|
3212
3138
|
})().finally(() => {
|
|
3213
3139
|
resultPromise = void 0;
|
|
3214
|
-
}),
|
|
3140
|
+
}), "pollUntilDone"),
|
|
3215
3141
|
async poll(pollOptions) {
|
|
3216
3142
|
if (resolveOnUnsuccessful) {
|
|
3217
3143
|
if (poller.isDone())
|
|
@@ -3240,9 +3166,9 @@ var require_poller = __commonJS({
|
|
|
3240
3166
|
getError,
|
|
3241
3167
|
updateState,
|
|
3242
3168
|
options: pollOptions,
|
|
3243
|
-
setDelay: (pollIntervalInMs) => {
|
|
3169
|
+
setDelay: /* @__PURE__ */ __name((pollIntervalInMs) => {
|
|
3244
3170
|
currentPollIntervalInMs = pollIntervalInMs;
|
|
3245
|
-
},
|
|
3171
|
+
}, "setDelay"),
|
|
3246
3172
|
setErrorAsResult: !resolveOnUnsuccessful
|
|
3247
3173
|
});
|
|
3248
3174
|
await handleProgressEvents();
|
|
@@ -3284,7 +3210,7 @@ var require_poller2 = __commonJS({
|
|
|
3284
3210
|
getError: operation_js_1.getErrorFromResponse,
|
|
3285
3211
|
resolveOnUnsuccessful
|
|
3286
3212
|
})({
|
|
3287
|
-
init: async () => {
|
|
3213
|
+
init: /* @__PURE__ */ __name(async () => {
|
|
3288
3214
|
const response = await lro.sendInitialRequest();
|
|
3289
3215
|
const config = (0, operation_js_1.inferLroMode)({
|
|
3290
3216
|
rawResponse: response.rawResponse,
|
|
@@ -3293,7 +3219,7 @@ var require_poller2 = __commonJS({
|
|
|
3293
3219
|
resourceLocationConfig
|
|
3294
3220
|
});
|
|
3295
3221
|
return Object.assign({ response, operationLocation: config === null || config === void 0 ? void 0 : config.operationLocation, resourceLocation: config === null || config === void 0 ? void 0 : config.resourceLocation }, (config === null || config === void 0 ? void 0 : config.mode) ? { metadata: { mode: config.mode } } : {});
|
|
3296
|
-
},
|
|
3222
|
+
}, "init"),
|
|
3297
3223
|
poll: lro.sendPollRequest
|
|
3298
3224
|
}, {
|
|
3299
3225
|
intervalInMs,
|
|
@@ -3317,20 +3243,20 @@ var require_operation3 = __commonJS({
|
|
|
3317
3243
|
var operation_js_1 = require_operation2();
|
|
3318
3244
|
var logger_js_1 = require_logger();
|
|
3319
3245
|
var createStateProxy = /* @__PURE__ */ __name(() => ({
|
|
3320
|
-
initState: (config) => ({ config, isStarted: true }),
|
|
3321
|
-
setCanceled: (state) => state.isCancelled = true,
|
|
3322
|
-
setError: (state, error) => state.error = error,
|
|
3323
|
-
setResult: (state, result) => state.result = result,
|
|
3324
|
-
setRunning: (state) => state.isStarted = true,
|
|
3325
|
-
setSucceeded: (state) => state.isCompleted = true,
|
|
3326
|
-
setFailed: () => {
|
|
3327
|
-
},
|
|
3328
|
-
getError: (state) => state.error,
|
|
3329
|
-
getResult: (state) => state.result,
|
|
3330
|
-
isCanceled: (state) => !!state.isCancelled,
|
|
3331
|
-
isFailed: (state) => !!state.error,
|
|
3332
|
-
isRunning: (state) => !!state.isStarted,
|
|
3333
|
-
isSucceeded: (state) => Boolean(state.isCompleted && !state.isCancelled && !state.error)
|
|
3246
|
+
initState: /* @__PURE__ */ __name((config) => ({ config, isStarted: true }), "initState"),
|
|
3247
|
+
setCanceled: /* @__PURE__ */ __name((state) => state.isCancelled = true, "setCanceled"),
|
|
3248
|
+
setError: /* @__PURE__ */ __name((state, error) => state.error = error, "setError"),
|
|
3249
|
+
setResult: /* @__PURE__ */ __name((state, result) => state.result = result, "setResult"),
|
|
3250
|
+
setRunning: /* @__PURE__ */ __name((state) => state.isStarted = true, "setRunning"),
|
|
3251
|
+
setSucceeded: /* @__PURE__ */ __name((state) => state.isCompleted = true, "setSucceeded"),
|
|
3252
|
+
setFailed: /* @__PURE__ */ __name(() => {
|
|
3253
|
+
}, "setFailed"),
|
|
3254
|
+
getError: /* @__PURE__ */ __name((state) => state.error, "getError"),
|
|
3255
|
+
getResult: /* @__PURE__ */ __name((state) => state.result, "getResult"),
|
|
3256
|
+
isCanceled: /* @__PURE__ */ __name((state) => !!state.isCancelled, "isCanceled"),
|
|
3257
|
+
isFailed: /* @__PURE__ */ __name((state) => !!state.error, "isFailed"),
|
|
3258
|
+
isRunning: /* @__PURE__ */ __name((state) => !!state.isStarted, "isRunning"),
|
|
3259
|
+
isSucceeded: /* @__PURE__ */ __name((state) => Boolean(state.isCompleted && !state.isCancelled && !state.error), "isSucceeded")
|
|
3334
3260
|
}), "createStateProxy");
|
|
3335
3261
|
var _GenericPollOperation = class _GenericPollOperation {
|
|
3336
3262
|
constructor(state, lro, setErrorAsResult, lroResourceLocationConfig, processResult, updateState, isDone) {
|
|
@@ -3368,9 +3294,9 @@ var require_operation3 = __commonJS({
|
|
|
3368
3294
|
updateState: updateState ? (state, { rawResponse }) => updateState(state, rawResponse) : void 0,
|
|
3369
3295
|
isDone: isDone ? ({ flatResponse }, state) => isDone(flatResponse, state) : void 0,
|
|
3370
3296
|
options,
|
|
3371
|
-
setDelay: (intervalInMs) => {
|
|
3297
|
+
setDelay: /* @__PURE__ */ __name((intervalInMs) => {
|
|
3372
3298
|
this.pollerConfig.intervalInMs = intervalInMs;
|
|
3373
|
-
},
|
|
3299
|
+
}, "setDelay"),
|
|
3374
3300
|
setErrorAsResult: this.setErrorAsResult
|
|
3375
3301
|
});
|
|
3376
3302
|
}
|
|
@@ -3765,9 +3691,9 @@ var require_lroEngine2 = __commonJS({
|
|
|
3765
3691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3766
3692
|
exports.LroEngine = void 0;
|
|
3767
3693
|
var lroEngine_js_1 = require_lroEngine();
|
|
3768
|
-
Object.defineProperty(exports, "LroEngine", { enumerable: true, get: function() {
|
|
3694
|
+
Object.defineProperty(exports, "LroEngine", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
3769
3695
|
return lroEngine_js_1.LroEngine;
|
|
3770
|
-
} });
|
|
3696
|
+
}, "get") });
|
|
3771
3697
|
}
|
|
3772
3698
|
});
|
|
3773
3699
|
|
|
@@ -3787,9 +3713,9 @@ var require_commonjs9 = __commonJS({
|
|
|
3787
3713
|
exports.createHttpPoller = void 0;
|
|
3788
3714
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
3789
3715
|
var poller_js_1 = require_poller2();
|
|
3790
|
-
Object.defineProperty(exports, "createHttpPoller", { enumerable: true, get: function() {
|
|
3716
|
+
Object.defineProperty(exports, "createHttpPoller", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
3791
3717
|
return poller_js_1.createHttpPoller;
|
|
3792
|
-
} });
|
|
3718
|
+
}, "get") });
|
|
3793
3719
|
tslib_1.__exportStar(require_lroEngine2(), exports);
|
|
3794
3720
|
tslib_1.__exportStar(require_poller3(), exports);
|
|
3795
3721
|
tslib_1.__exportStar(require_pollOperation(), exports);
|
|
@@ -3826,9 +3752,9 @@ var require_dist2 = __commonJS({
|
|
|
3826
3752
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
3827
3753
|
Object.defineProperty(n, k, d.get ? d : {
|
|
3828
3754
|
enumerable: true,
|
|
3829
|
-
get: function() {
|
|
3755
|
+
get: /* @__PURE__ */ __name(function() {
|
|
3830
3756
|
return e[k];
|
|
3831
|
-
}
|
|
3757
|
+
}, "get")
|
|
3832
3758
|
});
|
|
3833
3759
|
}
|
|
3834
3760
|
});
|
|
@@ -5460,13 +5386,13 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
5460
5386
|
"DeserializationPolicy"
|
|
5461
5387
|
];
|
|
5462
5388
|
const mockHttpClient = {
|
|
5463
|
-
sendRequest: async (request) => {
|
|
5389
|
+
sendRequest: /* @__PURE__ */ __name(async (request) => {
|
|
5464
5390
|
return {
|
|
5465
5391
|
request,
|
|
5466
5392
|
headers: request.headers.clone(),
|
|
5467
5393
|
status: 500
|
|
5468
5394
|
};
|
|
5469
|
-
}
|
|
5395
|
+
}, "sendRequest")
|
|
5470
5396
|
};
|
|
5471
5397
|
const mockRequestPolicyOptions = {
|
|
5472
5398
|
log(_logLevel, _message) {
|
|
@@ -22356,9 +22282,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
22356
22282
|
*/
|
|
22357
22283
|
async beginCopyFromURL(copySource2, options = {}) {
|
|
22358
22284
|
const client = {
|
|
22359
|
-
abortCopyFromURL: (...args) => this.abortCopyFromURL(...args),
|
|
22360
|
-
getProperties: (...args) => this.getProperties(...args),
|
|
22361
|
-
startCopyFromURL: (...args) => this.startCopyFromURL(...args)
|
|
22285
|
+
abortCopyFromURL: /* @__PURE__ */ __name((...args) => this.abortCopyFromURL(...args), "abortCopyFromURL"),
|
|
22286
|
+
getProperties: /* @__PURE__ */ __name((...args) => this.getProperties(...args), "getProperties"),
|
|
22287
|
+
startCopyFromURL: /* @__PURE__ */ __name((...args) => this.startCopyFromURL(...args), "startCopyFromURL")
|
|
22362
22288
|
};
|
|
22363
22289
|
const poller = new BlobBeginCopyFromUrlPoller({
|
|
22364
22290
|
blobClient: client,
|
|
@@ -23746,11 +23672,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
23746
23672
|
e_1 = { error: e_1_1 };
|
|
23747
23673
|
} finally {
|
|
23748
23674
|
try {
|
|
23749
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
23750
|
-
yield tslib.__await(_b.call(_e));
|
|
23675
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
23751
23676
|
} finally {
|
|
23752
|
-
if (e_1)
|
|
23753
|
-
throw e_1.error;
|
|
23677
|
+
if (e_1) throw e_1.error;
|
|
23754
23678
|
}
|
|
23755
23679
|
}
|
|
23756
23680
|
}, "listPageRangeItems_1"));
|
|
@@ -23845,9 +23769,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
23845
23769
|
/**
|
|
23846
23770
|
* Return an AsyncIterableIterator that works a page at a time
|
|
23847
23771
|
*/
|
|
23848
|
-
byPage: (settings = {}) => {
|
|
23772
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
23849
23773
|
return this.listPageRangeItemSegments(offset, count, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
|
|
23850
|
-
}
|
|
23774
|
+
}, "byPage")
|
|
23851
23775
|
};
|
|
23852
23776
|
}
|
|
23853
23777
|
/**
|
|
@@ -23958,11 +23882,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
23958
23882
|
e_2 = { error: e_2_1 };
|
|
23959
23883
|
} finally {
|
|
23960
23884
|
try {
|
|
23961
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
23962
|
-
yield tslib.__await(_b.call(_e));
|
|
23885
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
23963
23886
|
} finally {
|
|
23964
|
-
if (e_2)
|
|
23965
|
-
throw e_2.error;
|
|
23887
|
+
if (e_2) throw e_2.error;
|
|
23966
23888
|
}
|
|
23967
23889
|
}
|
|
23968
23890
|
}, "listPageRangeDiffItems_1"));
|
|
@@ -24058,9 +23980,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
24058
23980
|
/**
|
|
24059
23981
|
* Return an AsyncIterableIterator that works a page at a time
|
|
24060
23982
|
*/
|
|
24061
|
-
byPage: (settings = {}) => {
|
|
23983
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
24062
23984
|
return this.listPageRangeDiffItemSegments(offset, count, prevSnapshot, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
|
|
24063
|
-
}
|
|
23985
|
+
}, "byPage")
|
|
24064
23986
|
};
|
|
24065
23987
|
}
|
|
24066
23988
|
/**
|
|
@@ -25149,11 +25071,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25149
25071
|
e_1 = { error: e_1_1 };
|
|
25150
25072
|
} finally {
|
|
25151
25073
|
try {
|
|
25152
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
25153
|
-
yield tslib.__await(_b.call(_e));
|
|
25074
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
25154
25075
|
} finally {
|
|
25155
|
-
if (e_1)
|
|
25156
|
-
throw e_1.error;
|
|
25076
|
+
if (e_1) throw e_1.error;
|
|
25157
25077
|
}
|
|
25158
25078
|
}
|
|
25159
25079
|
}, "listItems_1"));
|
|
@@ -25281,9 +25201,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25281
25201
|
/**
|
|
25282
25202
|
* Return an AsyncIterableIterator that works a page at a time
|
|
25283
25203
|
*/
|
|
25284
|
-
byPage: (settings = {}) => {
|
|
25204
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
25285
25205
|
return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));
|
|
25286
|
-
}
|
|
25206
|
+
}, "byPage")
|
|
25287
25207
|
};
|
|
25288
25208
|
}
|
|
25289
25209
|
/**
|
|
@@ -25340,11 +25260,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25340
25260
|
e_2 = { error: e_2_1 };
|
|
25341
25261
|
} finally {
|
|
25342
25262
|
try {
|
|
25343
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
25344
|
-
yield tslib.__await(_b.call(_e));
|
|
25263
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
25345
25264
|
} finally {
|
|
25346
|
-
if (e_2)
|
|
25347
|
-
throw e_2.error;
|
|
25265
|
+
if (e_2) throw e_2.error;
|
|
25348
25266
|
}
|
|
25349
25267
|
}
|
|
25350
25268
|
}, "listItemsByHierarchy_1"));
|
|
@@ -25483,9 +25401,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25483
25401
|
/**
|
|
25484
25402
|
* Return an AsyncIterableIterator that works a page at a time
|
|
25485
25403
|
*/
|
|
25486
|
-
byPage: (settings = {}) => {
|
|
25404
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
25487
25405
|
return this.listHierarchySegments(delimiter2, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));
|
|
25488
|
-
}
|
|
25406
|
+
}, "byPage")
|
|
25489
25407
|
};
|
|
25490
25408
|
}
|
|
25491
25409
|
/**
|
|
@@ -25578,11 +25496,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25578
25496
|
e_3 = { error: e_3_1 };
|
|
25579
25497
|
} finally {
|
|
25580
25498
|
try {
|
|
25581
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
25582
|
-
yield tslib.__await(_b.call(_e));
|
|
25499
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
25583
25500
|
} finally {
|
|
25584
|
-
if (e_3)
|
|
25585
|
-
throw e_3.error;
|
|
25501
|
+
if (e_3) throw e_3.error;
|
|
25586
25502
|
}
|
|
25587
25503
|
}
|
|
25588
25504
|
}, "findBlobsByTagsItems_1"));
|
|
@@ -25683,9 +25599,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
25683
25599
|
/**
|
|
25684
25600
|
* Return an AsyncIterableIterator that works a page at a time
|
|
25685
25601
|
*/
|
|
25686
|
-
byPage: (settings = {}) => {
|
|
25602
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
25687
25603
|
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
|
|
25688
|
-
}
|
|
25604
|
+
}, "byPage")
|
|
25689
25605
|
};
|
|
25690
25606
|
}
|
|
25691
25607
|
getContainerNameFromUrl() {
|
|
@@ -26393,11 +26309,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26393
26309
|
e_1 = { error: e_1_1 };
|
|
26394
26310
|
} finally {
|
|
26395
26311
|
try {
|
|
26396
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
26397
|
-
yield tslib.__await(_b.call(_e));
|
|
26312
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
26398
26313
|
} finally {
|
|
26399
|
-
if (e_1)
|
|
26400
|
-
throw e_1.error;
|
|
26314
|
+
if (e_1) throw e_1.error;
|
|
26401
26315
|
}
|
|
26402
26316
|
}
|
|
26403
26317
|
}, "findBlobsByTagsItems_1"));
|
|
@@ -26500,9 +26414,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26500
26414
|
/**
|
|
26501
26415
|
* Return an AsyncIterableIterator that works a page at a time
|
|
26502
26416
|
*/
|
|
26503
|
-
byPage: (settings = {}) => {
|
|
26417
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
26504
26418
|
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
|
|
26505
|
-
}
|
|
26419
|
+
}, "byPage")
|
|
26506
26420
|
};
|
|
26507
26421
|
}
|
|
26508
26422
|
/**
|
|
@@ -26550,11 +26464,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26550
26464
|
e_2 = { error: e_2_1 };
|
|
26551
26465
|
} finally {
|
|
26552
26466
|
try {
|
|
26553
|
-
if (!_d && !_a2 && (_b = _e.return))
|
|
26554
|
-
yield tslib.__await(_b.call(_e));
|
|
26467
|
+
if (!_d && !_a2 && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
26555
26468
|
} finally {
|
|
26556
|
-
if (e_2)
|
|
26557
|
-
throw e_2.error;
|
|
26469
|
+
if (e_2) throw e_2.error;
|
|
26558
26470
|
}
|
|
26559
26471
|
}
|
|
26560
26472
|
}, "listItems_1"));
|
|
@@ -26665,9 +26577,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26665
26577
|
/**
|
|
26666
26578
|
* Return an AsyncIterableIterator that works a page at a time
|
|
26667
26579
|
*/
|
|
26668
|
-
byPage: (settings = {}) => {
|
|
26580
|
+
byPage: /* @__PURE__ */ __name((settings = {}) => {
|
|
26669
26581
|
return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
|
|
26670
|
-
}
|
|
26582
|
+
}, "byPage")
|
|
26671
26583
|
};
|
|
26672
26584
|
}
|
|
26673
26585
|
/**
|
|
@@ -26752,9 +26664,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26752
26664
|
})(exports.KnownEncryptionAlgorithmType || (exports.KnownEncryptionAlgorithmType = {}));
|
|
26753
26665
|
Object.defineProperty(exports, "RestError", {
|
|
26754
26666
|
enumerable: true,
|
|
26755
|
-
get: function() {
|
|
26667
|
+
get: /* @__PURE__ */ __name(function() {
|
|
26756
26668
|
return coreRestPipeline.RestError;
|
|
26757
|
-
}
|
|
26669
|
+
}, "get")
|
|
26758
26670
|
});
|
|
26759
26671
|
exports.AccountSASPermissions = AccountSASPermissions;
|
|
26760
26672
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|