@azure/storage-blob 12.13.0-alpha.20230126.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 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 = coreRestPipeline.createDefaultHttpClient();
1500
+ let _defaultHttpClient;
1509
1501
  function getCachedDefaultHttpClient() {
1502
+ if (!_defaultHttpClient) {
1503
+ _defaultHttpClient = coreRestPipeline.createDefaultHttpClient();
1504
+ }
1510
1505
  return _defaultHttpClient;
1511
1506
  }
1512
1507