@azure/storage-blob 12.13.0-alpha.20230124.2 → 12.13.0-alpha.20230202.2
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/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/cache.js +4 -7
- package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +0 -8
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/package.json +7 -8
package/dist/index.js
CHANGED
@@ -367,10 +367,6 @@ const PathStylePorts = [
|
|
367
367
|
* @param url -
|
368
368
|
*/
|
369
369
|
function escapeURLPath(url) {
|
370
|
-
// workaround an issue with the v1 test recorder
|
371
|
-
if (url.endsWith("?")) {
|
372
|
-
url = url.substring(0, url.length - 1);
|
373
|
-
}
|
374
370
|
const urlParsed = new URL(url);
|
375
371
|
let path = urlParsed.pathname;
|
376
372
|
path = path || "/";
|
@@ -468,10 +464,6 @@ function extractConnectionStringParts(connectionString) {
|
|
468
464
|
else if (!accountSas) {
|
469
465
|
throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");
|
470
466
|
}
|
471
|
-
// remove test SAS
|
472
|
-
if (accountSas === "fakeSasToken") {
|
473
|
-
accountSas = "";
|
474
|
-
}
|
475
467
|
// client constructors assume accountSas does *not* start with ?
|
476
468
|
if (accountSas.startsWith("?")) {
|
477
469
|
accountSas = accountSas.substring(1);
|
@@ -1505,8 +1497,11 @@ class AnonymousCredential extends Credential {
|
|
1505
1497
|
}
|
1506
1498
|
|
1507
1499
|
// Copyright (c) Microsoft Corporation.
|
1508
|
-
let _defaultHttpClient
|
1500
|
+
let _defaultHttpClient;
|
1509
1501
|
function getCachedDefaultHttpClient() {
|
1502
|
+
if (!_defaultHttpClient) {
|
1503
|
+
_defaultHttpClient = coreRestPipeline.createDefaultHttpClient();
|
1504
|
+
}
|
1510
1505
|
return _defaultHttpClient;
|
1511
1506
|
}
|
1512
1507
|
|
@@ -21930,7 +21925,7 @@ class BlobBatch {
|
|
21930
21925
|
if (!options) {
|
21931
21926
|
options = {};
|
21932
21927
|
}
|
21933
|
-
tracingClient.withSpan("BatchDeleteRequest-addSubRequest", options, async (updatedOptions) => {
|
21928
|
+
return tracingClient.withSpan("BatchDeleteRequest-addSubRequest", options, async (updatedOptions) => {
|
21934
21929
|
this.setBatchType("delete");
|
21935
21930
|
await this.addSubRequestInternal({
|
21936
21931
|
url: url,
|