@azure/storage-blob 12.25.0-beta.1 → 12.25.1-alpha.20240930.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/README.md +3 -3
  2. package/dist/index.js +72 -66
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/storage-blob/src/BatchResponse.js +1 -1
  5. package/dist-esm/storage-blob/src/BatchResponse.js.map +1 -1
  6. package/dist-esm/storage-blob/src/BatchResponseParser.js +1 -1
  7. package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
  8. package/dist-esm/storage-blob/src/BatchUtils.browser.js +1 -1
  9. package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +1 -1
  10. package/dist-esm/storage-blob/src/BatchUtils.js +1 -1
  11. package/dist-esm/storage-blob/src/BatchUtils.js.map +1 -1
  12. package/dist-esm/storage-blob/src/BlobBatch.js +1 -1
  13. package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
  14. package/dist-esm/storage-blob/src/BlobBatchClient.js +1 -1
  15. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
  16. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +1 -1
  17. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +1 -1
  18. package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
  19. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
  20. package/dist-esm/storage-blob/src/BlobLeaseClient.js +1 -1
  21. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
  22. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +1 -1
  23. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +1 -1
  24. package/dist-esm/storage-blob/src/BlobQueryResponse.js +1 -1
  25. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
  26. package/dist-esm/storage-blob/src/BlobServiceClient.js +1 -1
  27. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  28. package/dist-esm/storage-blob/src/Clients.js +2 -1
  29. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  30. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  31. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js +1 -1
  32. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
  33. package/dist-esm/storage-blob/src/Pipeline.js +1 -1
  34. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  35. package/dist-esm/storage-blob/src/Range.js +1 -1
  36. package/dist-esm/storage-blob/src/Range.js.map +1 -1
  37. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js +1 -1
  38. package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +1 -1
  39. package/dist-esm/storage-blob/src/StorageClient.js +1 -1
  40. package/dist-esm/storage-blob/src/StorageClient.js.map +1 -1
  41. package/dist-esm/storage-blob/src/StorageContextClient.js +1 -1
  42. package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
  43. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js +1 -1
  44. package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +1 -1
  45. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js +1 -1
  46. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
  47. package/dist-esm/storage-blob/src/credentials/Credential.js +1 -1
  48. package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
  49. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js +1 -1
  50. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js.map +1 -1
  51. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js +1 -1
  52. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
  53. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js +1 -1
  54. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.browser.js.map +1 -1
  55. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -1
  56. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
  57. package/dist-esm/storage-blob/src/generated/src/storageClient.js +1 -1
  58. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  59. package/dist-esm/storage-blob/src/generatedModels.js +1 -1
  60. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  61. package/dist-esm/storage-blob/src/index.browser.js +1 -1
  62. package/dist-esm/storage-blob/src/index.browser.js.map +1 -1
  63. package/dist-esm/storage-blob/src/index.js +1 -1
  64. package/dist-esm/storage-blob/src/index.js.map +1 -1
  65. package/dist-esm/storage-blob/src/log.js +1 -1
  66. package/dist-esm/storage-blob/src/log.js.map +1 -1
  67. package/dist-esm/storage-blob/src/models.js +1 -1
  68. package/dist-esm/storage-blob/src/models.js.map +1 -1
  69. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +1 -1
  70. package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +1 -1
  71. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js +1 -1
  72. package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +1 -1
  73. package/dist-esm/storage-blob/src/policies/RequestPolicy.js +1 -1
  74. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
  75. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +1 -1
  76. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
  77. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js +1 -1
  78. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
  79. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js +1 -1
  80. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +1 -1
  81. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js +1 -1
  82. package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +1 -1
  83. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +1 -1
  84. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
  85. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +1 -1
  86. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
  87. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +1 -1
  88. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  89. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js +1 -1
  90. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
  91. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +1 -1
  92. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
  93. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js +1 -1
  94. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  95. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js +1 -1
  96. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +1 -1
  97. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js +1 -1
  98. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +1 -1
  99. package/dist-esm/storage-blob/src/sas/AccountSASServices.js +1 -1
  100. package/dist-esm/storage-blob/src/sas/AccountSASServices.js.map +1 -1
  101. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +1 -1
  102. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  103. package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js +1 -1
  104. package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js.map +1 -1
  105. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +1 -1
  106. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  107. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +1 -1
  108. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
  109. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +1 -1
  110. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
  111. package/dist-esm/storage-blob/src/sas/SasIPRange.js +1 -1
  112. package/dist-esm/storage-blob/src/sas/SasIPRange.js.map +1 -1
  113. package/dist-esm/storage-blob/src/utils/Batch.js +1 -1
  114. package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
  115. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +1 -1
  116. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
  117. package/dist-esm/storage-blob/src/utils/Mutex.js +1 -1
  118. package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
  119. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +1 -1
  120. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
  121. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +1 -1
  122. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +1 -1
  123. package/dist-esm/storage-blob/src/utils/cache.js +1 -1
  124. package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
  125. package/dist-esm/storage-blob/src/utils/constants.js +2 -2
  126. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  127. package/dist-esm/storage-blob/src/utils/tracing.js +1 -1
  128. package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
  129. package/dist-esm/storage-blob/src/utils/utils.browser.js +1 -1
  130. package/dist-esm/storage-blob/src/utils/utils.browser.js.map +1 -1
  131. package/dist-esm/storage-blob/src/utils/utils.common.js +1 -1
  132. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  133. package/dist-esm/storage-blob/src/utils/utils.node.js +1 -1
  134. package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
  135. package/dist-esm/storage-common/src/BufferScheduler.browser.js +1 -1
  136. package/dist-esm/storage-common/src/BufferScheduler.browser.js.map +1 -1
  137. package/dist-esm/storage-common/src/BufferScheduler.js +1 -1
  138. package/dist-esm/storage-common/src/BufferScheduler.js.map +1 -1
  139. package/dist-esm/storage-common/src/BuffersStream.js +1 -1
  140. package/dist-esm/storage-common/src/BuffersStream.js.map +1 -1
  141. package/dist-esm/storage-common/src/PooledBuffer.js +1 -1
  142. package/dist-esm/storage-common/src/PooledBuffer.js.map +1 -1
  143. package/dist-esm/storage-common/src/index.browser.js +1 -1
  144. package/dist-esm/storage-common/src/index.browser.js.map +1 -1
  145. package/dist-esm/storage-common/src/index.js +1 -1
  146. package/dist-esm/storage-common/src/index.js.map +1 -1
  147. package/dist-esm/storage-internal-avro/src/AvroConstants.js +1 -1
  148. package/dist-esm/storage-internal-avro/src/AvroConstants.js.map +1 -1
  149. package/dist-esm/storage-internal-avro/src/AvroParser.js +8 -3
  150. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
  151. package/dist-esm/storage-internal-avro/src/AvroReadable.js +1 -1
  152. package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +1 -1
  153. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js +1 -1
  154. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +1 -1
  155. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js +1 -1
  156. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +1 -1
  157. package/dist-esm/storage-internal-avro/src/AvroReader.js +2 -2
  158. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
  159. package/dist-esm/storage-internal-avro/src/index.browser.js +1 -1
  160. package/dist-esm/storage-internal-avro/src/index.browser.js.map +1 -1
  161. package/dist-esm/storage-internal-avro/src/index.js +1 -1
  162. package/dist-esm/storage-internal-avro/src/index.js.map +1 -1
  163. package/dist-esm/storage-internal-avro/src/utils/utils.common.js +1 -1
  164. package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +1 -1
  165. package/package.json +21 -20
  166. package/types/latest/storage-blob.d.ts +4 -0
package/README.md CHANGED
@@ -289,7 +289,7 @@ const blobServiceClient = new BlobServiceClient(
289
289
 
290
290
  async function main() {
291
291
  let i = 1;
292
- let containers = blobServiceClient.listContainers();
292
+ const containers = blobServiceClient.listContainers();
293
293
  for await (const container of containers) {
294
294
  console.log(`Container ${i++}: ${container.name}`);
295
295
  }
@@ -314,7 +314,7 @@ const blobServiceClient = new BlobServiceClient(
314
314
 
315
315
  async function main() {
316
316
  let i = 1;
317
- let iter = blobServiceClient.listContainers();
317
+ const iter = blobServiceClient.listContainers();
318
318
  let containerItem = await iter.next();
319
319
  while (!containerItem.done) {
320
320
  console.log(`Container ${i++}: ${containerItem.value.name}`);
@@ -406,7 +406,7 @@ async function main() {
406
406
  const containerClient = blobServiceClient.getContainerClient(containerName);
407
407
 
408
408
  let i = 1;
409
- let blobs = containerClient.listBlobsFlat();
409
+ const blobs = containerClient.listBlobsFlat();
410
410
  for await (const blob of blobs) {
411
411
  console.log(`Blob ${i++}: ${blob.name}`);
412
412
  }
package/dist/index.js CHANGED
@@ -43,14 +43,14 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
43
43
  var util__namespace = /*#__PURE__*/_interopNamespaceDefault(util);
44
44
 
45
45
  // Copyright (c) Microsoft Corporation.
46
- // Licensed under the MIT license.
46
+ // Licensed under the MIT License.
47
47
  /**
48
48
  * The `@azure/logger` configuration for this package.
49
49
  */
50
50
  const logger = logger$1.createClientLogger("storage-blob");
51
51
 
52
52
  // Copyright (c) Microsoft Corporation.
53
- // Licensed under the MIT license.
53
+ // Licensed under the MIT License.
54
54
  /**
55
55
  * The base class from which all request policies derive.
56
56
  */
@@ -90,8 +90,8 @@ class BaseRequestPolicy {
90
90
  }
91
91
 
92
92
  // Copyright (c) Microsoft Corporation.
93
- // Licensed under the MIT license.
94
- const SDK_VERSION = "12.25.0-beta.1";
93
+ // Licensed under the MIT License.
94
+ const SDK_VERSION = "12.25.1";
95
95
  const SERVICE_VERSION = "2024-11-04";
96
96
  const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
97
97
  const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
@@ -316,7 +316,7 @@ const PathStylePorts = [
316
316
  ];
317
317
 
318
318
  // Copyright (c) Microsoft Corporation.
319
- // Licensed under the MIT license.
319
+ // Licensed under the MIT License.
320
320
  /**
321
321
  * Reserved URL characters must be properly escaped for Storage services like Blob or File.
322
322
  *
@@ -1029,7 +1029,7 @@ function assertResponse(response) {
1029
1029
  }
1030
1030
 
1031
1031
  // Copyright (c) Microsoft Corporation.
1032
- // Licensed under the MIT license.
1032
+ // Licensed under the MIT License.
1033
1033
  /**
1034
1034
  * RetryPolicy types.
1035
1035
  */
@@ -1241,7 +1241,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
1241
1241
  }
1242
1242
 
1243
1243
  // Copyright (c) Microsoft Corporation.
1244
- // Licensed under the MIT license.
1244
+ // Licensed under the MIT License.
1245
1245
  /**
1246
1246
  * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
1247
1247
  */
@@ -1265,7 +1265,7 @@ class StorageRetryPolicyFactory {
1265
1265
  }
1266
1266
 
1267
1267
  // Copyright (c) Microsoft Corporation.
1268
- // Licensed under the MIT license.
1268
+ // Licensed under the MIT License.
1269
1269
  /**
1270
1270
  * Credential policy used to sign HTTP(S) requests before sending. This is an
1271
1271
  * abstract class.
@@ -1293,7 +1293,7 @@ class CredentialPolicy extends BaseRequestPolicy {
1293
1293
  }
1294
1294
 
1295
1295
  // Copyright (c) Microsoft Corporation.
1296
- // Licensed under the MIT license.
1296
+ // Licensed under the MIT License.
1297
1297
  /*
1298
1298
  * We need to imitate .Net culture-aware sorting, which is used in storage service.
1299
1299
  * Below tables contain sort-keys for en-US culture.
@@ -1366,7 +1366,7 @@ function isLessThan(lhs, rhs) {
1366
1366
  }
1367
1367
 
1368
1368
  // Copyright (c) Microsoft Corporation.
1369
- // Licensed under the MIT license.
1369
+ // Licensed under the MIT License.
1370
1370
  /**
1371
1371
  * StorageSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.
1372
1372
  */
@@ -1503,7 +1503,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
1503
1503
  }
1504
1504
 
1505
1505
  // Copyright (c) Microsoft Corporation.
1506
- // Licensed under the MIT license.
1506
+ // Licensed under the MIT License.
1507
1507
  /**
1508
1508
  * Credential is an abstract class for Azure Storage HTTP requests signing. This
1509
1509
  * class will host an credentialPolicyCreator factory which generates CredentialPolicy.
@@ -1521,7 +1521,7 @@ class Credential {
1521
1521
  }
1522
1522
 
1523
1523
  // Copyright (c) Microsoft Corporation.
1524
- // Licensed under the MIT license.
1524
+ // Licensed under the MIT License.
1525
1525
  /**
1526
1526
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
1527
1527
  *
@@ -1558,7 +1558,7 @@ class StorageSharedKeyCredential extends Credential {
1558
1558
  }
1559
1559
 
1560
1560
  // Copyright (c) Microsoft Corporation.
1561
- // Licensed under the MIT license.
1561
+ // Licensed under the MIT License.
1562
1562
  /**
1563
1563
  * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
1564
1564
  * or for use with Shared Access Signatures (SAS).
@@ -1577,7 +1577,7 @@ class AnonymousCredentialPolicy extends CredentialPolicy {
1577
1577
  }
1578
1578
 
1579
1579
  // Copyright (c) Microsoft Corporation.
1580
- // Licensed under the MIT license.
1580
+ // Licensed under the MIT License.
1581
1581
  /**
1582
1582
  * AnonymousCredential provides a credentialPolicyCreator member used to create
1583
1583
  * AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
@@ -1597,7 +1597,7 @@ class AnonymousCredential extends Credential {
1597
1597
  }
1598
1598
 
1599
1599
  // Copyright (c) Microsoft Corporation.
1600
- // Licensed under the MIT license.
1600
+ // Licensed under the MIT License.
1601
1601
  let _defaultHttpClient;
1602
1602
  function getCachedDefaultHttpClient() {
1603
1603
  if (!_defaultHttpClient) {
@@ -1607,7 +1607,7 @@ function getCachedDefaultHttpClient() {
1607
1607
  }
1608
1608
 
1609
1609
  // Copyright (c) Microsoft Corporation.
1610
- // Licensed under the MIT license.
1610
+ // Licensed under the MIT License.
1611
1611
  /**
1612
1612
  * The programmatic identifier of the StorageBrowserPolicy.
1613
1613
  */
@@ -1635,7 +1635,7 @@ function storageBrowserPolicy() {
1635
1635
  }
1636
1636
 
1637
1637
  // Copyright (c) Microsoft Corporation.
1638
- // Licensed under the MIT license.
1638
+ // Licensed under the MIT License.
1639
1639
  /**
1640
1640
  * Name of the {@link storageRetryPolicy}
1641
1641
  */
@@ -1809,7 +1809,7 @@ function storageRetryPolicy(options = {}) {
1809
1809
  }
1810
1810
 
1811
1811
  // Copyright (c) Microsoft Corporation.
1812
- // Licensed under the MIT license.
1812
+ // Licensed under the MIT License.
1813
1813
  /**
1814
1814
  * The programmatic identifier of the storageSharedKeyCredentialPolicy.
1815
1815
  */
@@ -1937,7 +1937,7 @@ function storageSharedKeyCredentialPolicy(options) {
1937
1937
  }
1938
1938
 
1939
1939
  // Copyright (c) Microsoft Corporation.
1940
- // Licensed under the MIT license.
1940
+ // Licensed under the MIT License.
1941
1941
  /**
1942
1942
  * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
1943
1943
  *
@@ -1980,7 +1980,7 @@ class StorageBrowserPolicy extends BaseRequestPolicy {
1980
1980
  }
1981
1981
 
1982
1982
  // Copyright (c) Microsoft Corporation.
1983
- // Licensed under the MIT license.
1983
+ // Licensed under the MIT License.
1984
1984
  /**
1985
1985
  * StorageBrowserPolicyFactory is a factory class helping generating StorageBrowserPolicy objects.
1986
1986
  */
@@ -1997,7 +1997,7 @@ class StorageBrowserPolicyFactory {
1997
1997
  }
1998
1998
 
1999
1999
  // Copyright (c) Microsoft Corporation.
2000
- // Licensed under the MIT license.
2000
+ // Licensed under the MIT License.
2001
2001
  /**
2002
2002
  * The programmatic identifier of the storageCorrectContentLengthPolicy.
2003
2003
  */
@@ -2023,7 +2023,7 @@ function storageCorrectContentLengthPolicy() {
2023
2023
  }
2024
2024
 
2025
2025
  // Copyright (c) Microsoft Corporation.
2026
- // Licensed under the MIT license.
2026
+ // Licensed under the MIT License.
2027
2027
  /**
2028
2028
  * A helper to decide if a given argument satisfies the Pipeline contract
2029
2029
  * @param pipeline - An argument that may be a Pipeline
@@ -15371,7 +15371,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
15371
15371
  const defaults = {
15372
15372
  requestContentType: "application/json; charset=utf-8",
15373
15373
  };
15374
- const packageDetails = `azsdk-js-azure-storage-blob/12.25.0-beta.1`;
15374
+ const packageDetails = `azsdk-js-azure-storage-blob/12.25.0`;
15375
15375
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
15376
15376
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
15377
15377
  : `${packageDetails}`;
@@ -15393,7 +15393,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
15393
15393
  };
15394
15394
 
15395
15395
  // Copyright (c) Microsoft Corporation.
15396
- // Licensed under the MIT license.
15396
+ // Licensed under the MIT License.
15397
15397
  /**
15398
15398
  * @internal
15399
15399
  */
@@ -15409,7 +15409,7 @@ class StorageContextClient extends StorageClient$1 {
15409
15409
  }
15410
15410
 
15411
15411
  // Copyright (c) Microsoft Corporation.
15412
- // Licensed under the MIT license.
15412
+ // Licensed under the MIT License.
15413
15413
  /**
15414
15414
  * A StorageClient represents a based URL class for {@link BlobServiceClient}, {@link ContainerClient}
15415
15415
  * and etc.
@@ -15435,7 +15435,7 @@ class StorageClient {
15435
15435
  }
15436
15436
 
15437
15437
  // Copyright (c) Microsoft Corporation.
15438
- // Licensed under the MIT license.
15438
+ // Licensed under the MIT License.
15439
15439
  /**
15440
15440
  * Creates a span using the global tracer.
15441
15441
  * @internal
@@ -15447,7 +15447,7 @@ const tracingClient = coreTracing.createTracingClient({
15447
15447
  });
15448
15448
 
15449
15449
  // Copyright (c) Microsoft Corporation.
15450
- // Licensed under the MIT license.
15450
+ // Licensed under the MIT License.
15451
15451
  /**
15452
15452
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
15453
15453
  *
@@ -15642,7 +15642,7 @@ class BlobSASPermissions {
15642
15642
  }
15643
15643
 
15644
15644
  // Copyright (c) Microsoft Corporation.
15645
- // Licensed under the MIT license.
15645
+ // Licensed under the MIT License.
15646
15646
  /**
15647
15647
  * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a container.
15648
15648
  * Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation.
@@ -15863,7 +15863,7 @@ class ContainerSASPermissions {
15863
15863
  }
15864
15864
 
15865
15865
  // Copyright (c) Microsoft Corporation.
15866
- // Licensed under the MIT license.
15866
+ // Licensed under the MIT License.
15867
15867
  /**
15868
15868
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
15869
15869
  *
@@ -15893,7 +15893,7 @@ class UserDelegationKeyCredential {
15893
15893
  }
15894
15894
 
15895
15895
  // Copyright (c) Microsoft Corporation.
15896
- // Licensed under the MIT license.
15896
+ // Licensed under the MIT License.
15897
15897
  /**
15898
15898
  * Generate SasIPRange format string. For example:
15899
15899
  *
@@ -15906,7 +15906,7 @@ function ipRangeToString(ipRange) {
15906
15906
  }
15907
15907
 
15908
15908
  // Copyright (c) Microsoft Corporation.
15909
- // Licensed under the MIT license.
15909
+ // Licensed under the MIT License.
15910
15910
  /**
15911
15911
  * Protocols for generated SAS.
15912
15912
  */
@@ -16138,7 +16138,7 @@ class SASQueryParameters {
16138
16138
  }
16139
16139
 
16140
16140
  // Copyright (c) Microsoft Corporation.
16141
- // Licensed under the MIT license.
16141
+ // Licensed under the MIT License.
16142
16142
  function generateBlobSASQueryParameters(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName) {
16143
16143
  return generateBlobSASQueryParametersInternal(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName).sasQueryParameters;
16144
16144
  }
@@ -16706,7 +16706,7 @@ function SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues) {
16706
16706
  }
16707
16707
 
16708
16708
  // Copyright (c) Microsoft Corporation.
16709
- // Licensed under the MIT license.
16709
+ // Licensed under the MIT License.
16710
16710
  /**
16711
16711
  * A client that manages leases for a {@link ContainerClient} or a {@link BlobClient}.
16712
16712
  */
@@ -16894,7 +16894,7 @@ class BlobLeaseClient {
16894
16894
  }
16895
16895
 
16896
16896
  // Copyright (c) Microsoft Corporation.
16897
- // Licensed under the MIT license.
16897
+ // Licensed under the MIT License.
16898
16898
  /**
16899
16899
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
16900
16900
  *
@@ -17011,7 +17011,7 @@ class RetriableReadableStream extends stream.Readable {
17011
17011
  }
17012
17012
 
17013
17013
  // Copyright (c) Microsoft Corporation.
17014
- // Licensed under the MIT license.
17014
+ // Licensed under the MIT License.
17015
17015
  /**
17016
17016
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
17017
17017
  *
@@ -17472,14 +17472,14 @@ class BlobDownloadResponse {
17472
17472
  }
17473
17473
 
17474
17474
  // Copyright (c) Microsoft Corporation.
17475
- // Licensed under the MIT license.
17475
+ // Licensed under the MIT License.
17476
17476
  const AVRO_SYNC_MARKER_SIZE = 16;
17477
17477
  const AVRO_INIT_BYTES = new Uint8Array([79, 98, 106, 1]);
17478
17478
  const AVRO_CODEC_KEY = "avro.codec";
17479
17479
  const AVRO_SCHEMA_KEY = "avro.schema";
17480
17480
 
17481
17481
  // Copyright (c) Microsoft Corporation.
17482
- // Licensed under the MIT license.
17482
+ // Licensed under the MIT License.
17483
17483
  class AvroParser {
17484
17484
  /**
17485
17485
  * Reads a fixed number of bytes from the stream.
@@ -17636,6 +17636,7 @@ class AvroType {
17636
17636
  /**
17637
17637
  * Determines the AvroType from the Avro Schema.
17638
17638
  */
17639
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17639
17640
  static fromSchema(schema) {
17640
17641
  if (typeof schema === "string") {
17641
17642
  return AvroType.fromStringSchema(schema);
@@ -17671,7 +17672,7 @@ class AvroType {
17671
17672
  try {
17672
17673
  return AvroType.fromStringSchema(type);
17673
17674
  }
17674
- catch (err) {
17675
+ catch (_a) {
17675
17676
  // eslint-disable-line no-empty
17676
17677
  }
17677
17678
  switch (type) {
@@ -17716,6 +17717,7 @@ class AvroPrimitiveType extends AvroType {
17716
17717
  super();
17717
17718
  this._primitive = primitive;
17718
17719
  }
17720
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17719
17721
  read(stream, options = {}) {
17720
17722
  switch (this._primitive) {
17721
17723
  case AvroPrimitive.NULL:
@@ -17744,6 +17746,7 @@ class AvroEnumType extends AvroType {
17744
17746
  super();
17745
17747
  this._symbols = symbols;
17746
17748
  }
17749
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17747
17750
  async read(stream, options = {}) {
17748
17751
  const value = await AvroParser.readInt(stream, options);
17749
17752
  return this._symbols[value];
@@ -17755,7 +17758,6 @@ class AvroUnionType extends AvroType {
17755
17758
  this._types = types;
17756
17759
  }
17757
17760
  async read(stream, options = {}) {
17758
- // eslint-disable-line @typescript-eslint/ban-types
17759
17761
  const typeIndex = await AvroParser.readInt(stream, options);
17760
17762
  return this._types[typeIndex].read(stream, options);
17761
17763
  }
@@ -17765,6 +17767,7 @@ class AvroMapType extends AvroType {
17765
17767
  super();
17766
17768
  this._itemType = itemType;
17767
17769
  }
17770
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17768
17771
  read(stream, options = {}) {
17769
17772
  const readItemMethod = (s, opts) => {
17770
17773
  return this._itemType.read(s, opts);
@@ -17778,7 +17781,9 @@ class AvroRecordType extends AvroType {
17778
17781
  this._fields = fields;
17779
17782
  this._name = name;
17780
17783
  }
17784
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17781
17785
  async read(stream, options = {}) {
17786
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17782
17787
  const record = {};
17783
17788
  record["$schema"] = this._name;
17784
17789
  for (const key in this._fields) {
@@ -17791,7 +17796,7 @@ class AvroRecordType extends AvroType {
17791
17796
  }
17792
17797
 
17793
17798
  // Copyright (c) Microsoft Corporation.
17794
- // Licensed under the MIT license.
17799
+ // Licensed under the MIT License.
17795
17800
  function arraysEqual(a, b) {
17796
17801
  if (a === b)
17797
17802
  return true;
@@ -17808,7 +17813,7 @@ function arraysEqual(a, b) {
17808
17813
  }
17809
17814
 
17810
17815
  // Copyright (c) Microsoft Corporation.
17811
- // Licensed under the MIT license.
17816
+ // Licensed under the MIT License.
17812
17817
  class AvroReader {
17813
17818
  get blockOffset() {
17814
17819
  return this._blockOffset;
@@ -17892,7 +17897,7 @@ class AvroReader {
17892
17897
  abortSignal: options.abortSignal,
17893
17898
  }));
17894
17899
  }
17895
- catch (err) {
17900
+ catch (_a) {
17896
17901
  // We hit the end of the stream.
17897
17902
  this._itemsRemainingInBlock = 0;
17898
17903
  }
@@ -17908,12 +17913,12 @@ class AvroReader {
17908
17913
  }
17909
17914
 
17910
17915
  // Copyright (c) Microsoft Corporation.
17911
- // Licensed under the MIT license.
17916
+ // Licensed under the MIT License.
17912
17917
  class AvroReadable {
17913
17918
  }
17914
17919
 
17915
17920
  // Copyright (c) Microsoft Corporation.
17916
- // Licensed under the MIT license.
17921
+ // Licensed under the MIT License.
17917
17922
  const ABORT_ERROR = new abortController.AbortError("Reading from the avro stream was aborted.");
17918
17923
  class AvroReadableFromStream extends AvroReadable {
17919
17924
  toUint8Array(data) {
@@ -17995,7 +18000,7 @@ class AvroReadableFromStream extends AvroReadable {
17995
18000
  }
17996
18001
 
17997
18002
  // Copyright (c) Microsoft Corporation.
17998
- // Licensed under the MIT license.
18003
+ // Licensed under the MIT License.
17999
18004
  /**
18000
18005
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
18001
18006
  *
@@ -18104,7 +18109,7 @@ class BlobQuickQueryStream extends stream.Readable {
18104
18109
  }
18105
18110
 
18106
18111
  // Copyright (c) Microsoft Corporation.
18107
- // Licensed under the MIT license.
18112
+ // Licensed under the MIT License.
18108
18113
  /**
18109
18114
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
18110
18115
  *
@@ -18469,7 +18474,7 @@ class BlobQueryResponse {
18469
18474
  }
18470
18475
 
18471
18476
  // Copyright (c) Microsoft Corporation.
18472
- // Licensed under the MIT license.
18477
+ // Licensed under the MIT License.
18473
18478
  /**
18474
18479
  * Represents the access tier on a blob.
18475
18480
  * For detailed information about block blob level tiering see {@link https://docs.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers|Hot, cool and archive storage tiers.}
@@ -18583,7 +18588,7 @@ function getBlobServiceAccountAudience(storageAccountName) {
18583
18588
  }
18584
18589
 
18585
18590
  // Copyright (c) Microsoft Corporation.
18586
- // Licensed under the MIT license.
18591
+ // Licensed under the MIT License.
18587
18592
  /**
18588
18593
  * Function that converts PageRange and ClearRange to a common Range object.
18589
18594
  * PageRange and ClearRange have start and end while Range offset and count
@@ -18607,7 +18612,7 @@ function rangeResponseFromModel(response) {
18607
18612
  }
18608
18613
 
18609
18614
  // Copyright (c) Microsoft Corporation.
18610
- // Licensed under the MIT license.
18615
+ // Licensed under the MIT License.
18611
18616
  /**
18612
18617
  * This is the poller returned by {@link BlobClient.beginCopyFromURL}.
18613
18618
  * This can not be instantiated directly outside of this package.
@@ -18735,7 +18740,7 @@ function makeBlobBeginCopyFromURLPollOperation(state) {
18735
18740
  }
18736
18741
 
18737
18742
  // Copyright (c) Microsoft Corporation.
18738
- // Licensed under the MIT license.
18743
+ // Licensed under the MIT License.
18739
18744
  /**
18740
18745
  * Generate a range string. For example:
18741
18746
  *
@@ -18756,7 +18761,7 @@ function rangeToString(iRange) {
18756
18761
  }
18757
18762
 
18758
18763
  // Copyright (c) Microsoft Corporation.
18759
- // Licensed under the MIT license.
18764
+ // Licensed under the MIT License.
18760
18765
  // In browser, during webpack or browserify bundling, this module will be replaced by 'events'
18761
18766
  // https://github.com/Gozala/events
18762
18767
  /**
@@ -18877,7 +18882,7 @@ class Batch {
18877
18882
  }
18878
18883
 
18879
18884
  // Copyright (c) Microsoft Corporation.
18880
- // Licensed under the MIT license.
18885
+ // Licensed under the MIT License.
18881
18886
  /**
18882
18887
  * This class generates a readable stream from the data in an array of buffers.
18883
18888
  */
@@ -18959,7 +18964,7 @@ class BuffersStream extends stream.Readable {
18959
18964
  }
18960
18965
 
18961
18966
  // Copyright (c) Microsoft Corporation.
18962
- // Licensed under the MIT license.
18967
+ // Licensed under the MIT License.
18963
18968
  const maxBufferLength = buffer.constants.MAX_LENGTH;
18964
18969
  /**
18965
18970
  * This class provides a buffer container which conceptually has no hard size limit.
@@ -19041,7 +19046,7 @@ class PooledBuffer {
19041
19046
  }
19042
19047
 
19043
19048
  // Copyright (c) Microsoft Corporation.
19044
- // Licensed under the MIT license.
19049
+ // Licensed under the MIT License.
19045
19050
  /**
19046
19051
  * This class accepts a Node.js Readable stream as input, and keeps reading data
19047
19052
  * from the stream into the internal buffer structure, until it reaches maxBuffers.
@@ -19291,7 +19296,7 @@ class BufferScheduler {
19291
19296
  }
19292
19297
 
19293
19298
  // Copyright (c) Microsoft Corporation.
19294
- // Licensed under the MIT license.
19299
+ // Licensed under the MIT License.
19295
19300
  /**
19296
19301
  * Reads a readable stream into buffer. Fill the buffer from offset to end.
19297
19302
  *
@@ -19401,7 +19406,7 @@ const fsStat = util__namespace.promisify(fs__namespace.stat);
19401
19406
  const fsCreateReadStream = fs__namespace.createReadStream;
19402
19407
 
19403
19408
  // Copyright (c) Microsoft Corporation.
19404
- // Licensed under the MIT license.
19409
+ // Licensed under the MIT License.
19405
19410
  /**
19406
19411
  * A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,
19407
19412
  * append blob, or page blob.
@@ -21182,6 +21187,7 @@ class BlockBlobClient extends BlobClient {
21182
21187
  blockList.push(blockID);
21183
21188
  blockNum++;
21184
21189
  await this.stageBlock(blockID, body, length, {
21190
+ customerProvidedKey: options.customerProvidedKey,
21185
21191
  conditions: options.conditions,
21186
21192
  encryptionScope: options.encryptionScope,
21187
21193
  tracingOptions: updatedOptions.tracingOptions,
@@ -21939,7 +21945,7 @@ class PageBlobClient extends BlobClient {
21939
21945
  }
21940
21946
 
21941
21947
  // Copyright (c) Microsoft Corporation.
21942
- // Licensed under the MIT license.
21948
+ // Licensed under the MIT License.
21943
21949
  async function getBodyAsText(batchResponse) {
21944
21950
  let buffer = Buffer.alloc(BATCH_MAX_PAYLOAD_IN_BYTES);
21945
21951
  const responseLength = await streamToBuffer2(batchResponse.readableStreamBody, buffer);
@@ -21952,7 +21958,7 @@ function utf8ByteLength(str) {
21952
21958
  }
21953
21959
 
21954
21960
  // Copyright (c) Microsoft Corporation.
21955
- // Licensed under the MIT license.
21961
+ // Licensed under the MIT License.
21956
21962
  const HTTP_HEADER_DELIMITER = ": ";
21957
21963
  const SPACE_DELIMITER = " ";
21958
21964
  const NOT_FOUND = -1;
@@ -22084,7 +22090,7 @@ class BatchResponseParser {
22084
22090
  }
22085
22091
 
22086
22092
  // Copyright (c) Microsoft Corporation.
22087
- // Licensed under the MIT license.
22093
+ // Licensed under the MIT License.
22088
22094
  var MutexLockStatus;
22089
22095
  (function (MutexLockStatus) {
22090
22096
  MutexLockStatus[MutexLockStatus["LOCKED"] = 0] = "LOCKED";
@@ -22149,7 +22155,7 @@ Mutex.keys = {};
22149
22155
  Mutex.listeners = {};
22150
22156
 
22151
22157
  // Copyright (c) Microsoft Corporation.
22152
- // Licensed under the MIT license.
22158
+ // Licensed under the MIT License.
22153
22159
  /**
22154
22160
  * A BlobBatch represents an aggregated set of operations on blobs.
22155
22161
  * Currently, only `delete` and `setAccessTier` are supported.
@@ -22401,7 +22407,7 @@ function batchHeaderFilterPolicy() {
22401
22407
  }
22402
22408
 
22403
22409
  // Copyright (c) Microsoft Corporation.
22404
- // Licensed under the MIT license.
22410
+ // Licensed under the MIT License.
22405
22411
  /**
22406
22412
  * A BlobBatchClient allows you to make batched requests to the Azure Storage Blob service.
22407
22413
  *
@@ -23699,7 +23705,7 @@ class ContainerClient extends StorageClient {
23699
23705
  }
23700
23706
 
23701
23707
  // Copyright (c) Microsoft Corporation.
23702
- // Licensed under the MIT license.
23708
+ // Licensed under the MIT License.
23703
23709
  /**
23704
23710
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
23705
23711
  *
@@ -23926,7 +23932,7 @@ class AccountSASPermissions {
23926
23932
  }
23927
23933
 
23928
23934
  // Copyright (c) Microsoft Corporation.
23929
- // Licensed under the MIT license.
23935
+ // Licensed under the MIT License.
23930
23936
  /**
23931
23937
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
23932
23938
  *
@@ -23998,7 +24004,7 @@ class AccountSASResourceTypes {
23998
24004
  }
23999
24005
 
24000
24006
  // Copyright (c) Microsoft Corporation.
24001
- // Licensed under the MIT license.
24007
+ // Licensed under the MIT License.
24002
24008
  /**
24003
24009
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
24004
24010
  *
@@ -24078,7 +24084,7 @@ class AccountSASServices {
24078
24084
  }
24079
24085
 
24080
24086
  // Copyright (c) Microsoft Corporation.
24081
- // Licensed under the MIT license.
24087
+ // Licensed under the MIT License.
24082
24088
  /**
24083
24089
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
24084
24090
  *
@@ -24871,7 +24877,7 @@ class BlobServiceClient extends StorageClient {
24871
24877
  }
24872
24878
 
24873
24879
  // Copyright (c) Microsoft Corporation.
24874
- // Licensed under the MIT license.
24880
+ // Licensed under the MIT License.
24875
24881
  /** Known values of {@link EncryptionAlgorithmType} that the service accepts. */
24876
24882
  exports.KnownEncryptionAlgorithmType = void 0;
24877
24883
  (function (KnownEncryptionAlgorithmType) {