@azure/storage-file-share 12.20.0-alpha.20230607.3 → 12.20.0-alpha.20230608.4

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
@@ -502,7 +502,7 @@ function extractConnectionStringParts(connectionString) {
502
502
  }
503
503
  else {
504
504
  // SAS connection string
505
- let accountSas = getValueInConnString(connectionString, "SharedAccessSignature");
505
+ const accountSas = getValueInConnString(connectionString, "SharedAccessSignature");
506
506
  const accountName = getAccountNameFromUrl(fileEndpoint);
507
507
  if (!fileEndpoint) {
508
508
  throw new Error("Invalid FileEndpoint in the provided SAS Connection String");
@@ -510,10 +510,6 @@ function extractConnectionStringParts(connectionString) {
510
510
  else if (!accountSas) {
511
511
  throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");
512
512
  }
513
- // remove test SAS
514
- if (accountSas === "fakeSasToken") {
515
- accountSas = "";
516
- }
517
513
  return { kind: "SASConnString", url: fileEndpoint, accountName, accountSas };
518
514
  }
519
515
  }
@@ -10934,8 +10930,7 @@ class StorageClient {
10934
10930
  this.url = escapeURLPath(url);
10935
10931
  this.accountName = getAccountNameFromUrl(url);
10936
10932
  this.pipeline = pipeline;
10937
- const coreOptions = getCoreClientOptions(pipeline);
10938
- this.storageClientContext = new StorageContextClient(this.url, coreOptions);
10933
+ this.storageClientContext = new StorageContextClient(this.url, getCoreClientOptions(pipeline));
10939
10934
  // Remove the default content-type in generated code of StorageClientContext
10940
10935
  const storageClientContext = this.storageClientContext;
10941
10936
  if (storageClientContext.requestContentType) {