@azure/storage-blob 12.14.0-beta.1 → 12.15.0-beta.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.
@@ -50,6 +50,9 @@ export class BlobClient extends StorageClient {
50
50
  // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
51
51
  // The second parameter is undefined. Use anonymous credential.
52
52
  url = urlOrConnectionString;
53
+ if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
54
+ options = blobNameOrOptions;
55
+ }
53
56
  pipeline = newPipeline(new AnonymousCredential(), options);
54
57
  }
55
58
  else if (credentialOrPipelineOrContainerName &&
@@ -1353,6 +1356,9 @@ export class BlockBlobClient extends BlobClient {
1353
1356
  // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
1354
1357
  // The second parameter is undefined. Use anonymous credential.
1355
1358
  url = urlOrConnectionString;
1359
+ if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
1360
+ options = blobNameOrOptions;
1361
+ }
1356
1362
  pipeline = newPipeline(new AnonymousCredential(), options);
1357
1363
  }
1358
1364
  else if (credentialOrPipelineOrContainerName &&