@azure/storage-queue 12.20.0-alpha.20230616.2 → 12.20.0-alpha.20230620.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
@@ -464,7 +464,7 @@ function extractConnectionStringParts(connectionString) {
464
464
  }
465
465
  else {
466
466
  // SAS connection string
467
- let accountSas = getValueInConnString(connectionString, "SharedAccessSignature");
467
+ const accountSas = getValueInConnString(connectionString, "SharedAccessSignature");
468
468
  const accountName = getAccountNameFromUrl(queueEndpoint);
469
469
  if (!queueEndpoint) {
470
470
  throw new Error("Invalid QueueEndpoint in the provided SAS Connection String");
@@ -472,10 +472,6 @@ function extractConnectionStringParts(connectionString) {
472
472
  else if (!accountSas) {
473
473
  throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");
474
474
  }
475
- // remove test SAS
476
- if (accountSas === "fakeSasToken") {
477
- accountSas = "";
478
- }
479
475
  return { kind: "SASConnString", url: queueEndpoint, accountName, accountSas };
480
476
  }
481
477
  }
@@ -5033,8 +5029,7 @@ function getStorageClientContext(url, pipeline) {
5033
5029
  else if (pipelineOptions.retryOptions.tryTimeoutInMs === undefined) {
5034
5030
  pipelineOptions.retryOptions.tryTimeoutInMs = 30 * 1000;
5035
5031
  }
5036
- const coreOptions = getCoreClientOptions(pipeline);
5037
- return new StorageContextClient(url, coreOptions);
5032
+ return new StorageContextClient(url, getCoreClientOptions(pipeline));
5038
5033
  }
5039
5034
 
5040
5035
  // Copyright (c) Microsoft Corporation.