@azure/storage-blob 12.20.0-alpha.20230622.3 → 12.20.0-alpha.20230720.6

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
@@ -93,7 +93,7 @@ class BaseRequestPolicy {
93
93
  // Copyright (c) Microsoft Corporation.
94
94
  // Licensed under the MIT license.
95
95
  const SDK_VERSION = "12.20.0";
96
- const SERVICE_VERSION = "2021-10-04";
96
+ const SERVICE_VERSION = "2023-01-03";
97
97
  const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
98
98
  const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
99
99
  const BLOCK_BLOB_MAX_BLOCKS = 50000;
@@ -947,9 +947,7 @@ function ConvertInternalResponseOfListBlobHierarchy(internalResponse) {
947
947
  var _a;
948
948
  return Object.assign(Object.assign({}, internalResponse), { segment: {
949
949
  blobPrefixes: (_a = internalResponse.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {
950
- const blobPrefix = {
951
- name: BlobNameToString(blobPrefixInternal.name),
952
- };
950
+ const blobPrefix = Object.assign(Object.assign({}, blobPrefixInternal), { name: BlobNameToString(blobPrefixInternal.name) });
953
951
  return blobPrefix;
954
952
  }),
955
953
  blobItems: internalResponse.segment.blobItems.map((blobItemInteral) => {
@@ -10583,7 +10581,7 @@ const timeoutInSeconds = {
10583
10581
  const version = {
10584
10582
  parameterPath: "version",
10585
10583
  mapper: {
10586
- defaultValue: "2021-12-02",
10584
+ defaultValue: "2023-01-03",
10587
10585
  isConstant: true,
10588
10586
  serializedName: "x-ms-version",
10589
10587
  type: {
@@ -15187,7 +15185,7 @@ class StorageClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
15187
15185
  // Parameter assignments
15188
15186
  this.url = url;
15189
15187
  // Assigning values to Constant parameters
15190
- this.version = options.version || "2021-12-02";
15188
+ this.version = options.version || "2023-01-03";
15191
15189
  this.service = new ServiceImpl(this);
15192
15190
  this.container = new ContainerImpl(this);
15193
15191
  this.blob = new BlobImpl(this);
@@ -19201,6 +19199,9 @@ class BlobClient extends StorageClient {
19201
19199
  // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
19202
19200
  // The second parameter is undefined. Use anonymous credential.
19203
19201
  url = urlOrConnectionString;
19202
+ if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
19203
+ options = blobNameOrOptions;
19204
+ }
19204
19205
  pipeline = newPipeline(new AnonymousCredential(), options);
19205
19206
  }
19206
19207
  else if (credentialOrPipelineOrContainerName &&
@@ -20374,6 +20375,9 @@ class BlockBlobClient extends BlobClient {
20374
20375
  // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
20375
20376
  // The second parameter is undefined. Use anonymous credential.
20376
20377
  url = urlOrConnectionString;
20378
+ if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
20379
+ options = blobNameOrOptions;
20380
+ }
20377
20381
  pipeline = newPipeline(new AnonymousCredential(), options);
20378
20382
  }
20379
20383
  else if (credentialOrPipelineOrContainerName &&
@@ -22731,9 +22735,7 @@ class ContainerClient extends StorageClient {
22731
22735
  const blobItem = Object.assign(Object.assign({}, blobItemInternal), { name: BlobNameToString(blobItemInternal.name), tags: toTags(blobItemInternal.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInternal.objectReplicationMetadata) });
22732
22736
  return blobItem;
22733
22737
  }), blobPrefixes: (_a = response.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {
22734
- const blobPrefix = {
22735
- name: BlobNameToString(blobPrefixInternal.name),
22736
- };
22738
+ const blobPrefix = Object.assign(Object.assign({}, blobPrefixInternal), { name: BlobNameToString(blobPrefixInternal.name) });
22737
22739
  return blobPrefix;
22738
22740
  }) }) });
22739
22741
  return wrappedResponse;