@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
@@ -1 +1 @@
1
- {"version":3,"file":"AvroReader.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/AvroReader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,sCAAsC;AACtC,iEAAiE;AAEjE,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAanD,MAAM,OAAO,UAAU;IAmBrB,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAGD,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAaD,YACE,UAAwB,EACxB,YAA2B,EAC3B,kBAA2B,EAC3B,uBAAgC;QAEhC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,IAAI,UAAU,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,kBAAkB,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,uBAAuB,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,IAAI,CAAC,CAAC;IACrD,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,UAA4B,EAAE;QACrD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,EAAE;YACz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,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAqB,EAAE;wBACtF,WAAW,EAAE,OAAO,CAAC,WAAW;qBACjC,CAAC,CAAA,CAAC;oBAEH,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;oBACzE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;oBAEtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAY,EAAE,MAAM,CAAC,EAAE,CAAC;wBAC5C,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;oBACtD,CAAC;oBAED,IAAI,CAAC;wBACH,IAAI,CAAC,sBAAsB,GAAG,cAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE;4BACxE,WAAW,EAAE,OAAO,CAAC,WAAW;yBACjC,CAAC,CAAA,CAAC;oBACL,CAAC;oBAAC,OAAO,GAAQ,EAAE,CAAC;wBAClB,gCAAgC;wBAChC,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC;oBAClC,CAAC;oBAED,IAAI,IAAI,CAAC,sBAAuB,GAAG,CAAC,EAAE,CAAC;wBACrC,oBAAoB;wBACpB,cAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA,CAAC;oBACpF,CAAC;gBACH,CAAC;gBACD,oBAAM,MAAM,CAAA,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// TODO: Do a review of non-interfaces\n/* eslint-disable @azure/azure-sdk/ts-use-interface-parameters */\n\nimport {\n AVRO_CODEC_KEY,\n AVRO_INIT_BYTES,\n AVRO_SCHEMA_KEY,\n AVRO_SYNC_MARKER_SIZE,\n} from \"./AvroConstants\";\nimport { AvroParser, AvroType } from \"./AvroParser\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { AvroReadable } from \"./AvroReadable\";\nimport { arraysEqual } from \"./utils/utils.common\";\n\n/**\n * Options to configure the {@link AvroReader.parseObjects} operation.\n */\nexport interface AvroParseOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\nexport class AvroReader {\n private readonly _dataStream: AvroReadable;\n\n private readonly _headerStream: AvroReadable;\n\n private _syncMarker?: Uint8Array;\n\n private _metadata?: Record<string, string>;\n\n private _itemType?: AvroType;\n\n private _itemsRemainingInBlock?: number;\n\n // Remembers where we started if partial data stream was provided.\n private readonly _initialBlockOffset: number;\n\n /// The byte offset within the Avro file (both header and data)\n /// of the start of the current block.\n private _blockOffset: number;\n public get blockOffset(): number {\n return this._blockOffset;\n }\n\n private _objectIndex: number;\n public get objectIndex(): number {\n return this._objectIndex;\n }\n\n private _initialized: boolean;\n\n constructor(dataStream: AvroReadable);\n\n constructor(\n dataStream: AvroReadable,\n headerStream: AvroReadable,\n currentBlockOffset: number,\n indexWithinCurrentBlock: number,\n );\n\n constructor(\n dataStream: AvroReadable,\n headerStream?: AvroReadable,\n currentBlockOffset?: number,\n indexWithinCurrentBlock?: number,\n ) {\n this._dataStream = dataStream;\n this._headerStream = headerStream || dataStream;\n this._initialized = false;\n this._blockOffset = currentBlockOffset || 0;\n this._objectIndex = indexWithinCurrentBlock || 0;\n this._initialBlockOffset = currentBlockOffset || 0;\n }\n\n private async initialize(options: AvroParseOptions = {}): Promise<void> {\n const header = await AvroParser.readFixedBytes(this._headerStream, AVRO_INIT_BYTES.length, {\n abortSignal: options.abortSignal,\n });\n if (!arraysEqual(header, AVRO_INIT_BYTES)) {\n throw new Error(\"Stream is not an Avro file.\");\n }\n\n // File metadata is written as if defined by the following map schema:\n // { \"type\": \"map\", \"values\": \"bytes\"}\n this._metadata = await AvroParser.readMap(this._headerStream, AvroParser.readString, {\n abortSignal: options.abortSignal,\n });\n\n // Validate codec\n const codec = this._metadata![AVRO_CODEC_KEY];\n if (!(codec === undefined || codec === null || codec === \"null\")) {\n throw new Error(\"Codecs are not supported\");\n }\n\n // The 16-byte, randomly-generated sync marker for this file.\n this._syncMarker = await AvroParser.readFixedBytes(this._headerStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n });\n\n // Parse the schema\n const schema = JSON.parse(this._metadata![AVRO_SCHEMA_KEY]);\n this._itemType = AvroType.fromSchema(schema);\n\n if (this._blockOffset === 0) {\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n }\n\n this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n // skip block length\n await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });\n\n this._initialized = true;\n if (this._objectIndex && this._objectIndex > 0) {\n for (let i = 0; i < this._objectIndex; i++) {\n await this._itemType.read(this._dataStream, { abortSignal: options.abortSignal });\n this._itemsRemainingInBlock!--;\n }\n }\n }\n\n public hasNext(): boolean {\n return !this._initialized || this._itemsRemainingInBlock! > 0;\n }\n\n public async *parseObjects(\n options: AvroParseOptions = {},\n ): AsyncIterableIterator<Record<string, any> | null> {\n if (!this._initialized) {\n await this.initialize(options);\n }\n\n while (this.hasNext()) {\n const result = await this._itemType!.read(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n\n this._itemsRemainingInBlock!--;\n this._objectIndex!++;\n\n if (this._itemsRemainingInBlock === 0) {\n const marker = await AvroParser.readFixedBytes(this._dataStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n });\n\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n this._objectIndex = 0;\n\n if (!arraysEqual(this._syncMarker!, marker)) {\n throw new Error(\"Stream is not a valid Avro file.\");\n }\n\n try {\n this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n } catch (err: any) {\n // We hit the end of the stream.\n this._itemsRemainingInBlock = 0;\n }\n\n if (this._itemsRemainingInBlock! > 0) {\n // Ignore block size\n await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });\n }\n }\n yield result;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"AvroReader.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/AvroReader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,sCAAsC;AACtC,iEAAiE;AAEjE,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAanD,MAAM,OAAO,UAAU;IAmBrB,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAGD,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAaD,YACE,UAAwB,EACxB,YAA2B,EAC3B,kBAA2B,EAC3B,uBAAgC;QAEhC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,IAAI,UAAU,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,kBAAkB,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,uBAAuB,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,IAAI,CAAC,CAAC;IACrD,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,UAA4B,EAAE;QACrD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,EAAE;YACzF,WAAW,EA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C,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAqB,EAAE;wBACtF,WAAW,EAAE,OAAO,CAAC,WAAW;qBACjC,CAAC,CAAA,CAAC;oBAEH,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;oBACzE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;oBAEtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAY,EAAE,MAAM,CAAC,EAAE,CAAC;wBAC5C,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;oBACtD,CAAC;oBAED,IAAI,CAAC;wBACH,IAAI,CAAC,sBAAsB,GAAG,cAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE;4BACxE,WAAW,EAAE,OAAO,CAAC,WAAW;yBACjC,CAAC,CAAA,CAAC;oBACL,CAAC;oBAAC,WAAM,CAAC;wBACP,gCAAgC;wBAChC,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC;oBAClC,CAAC;oBAED,IAAI,IAAI,CAAC,sBAAuB,GAAG,CAAC,EAAE,CAAC;wBACrC,oBAAoB;wBACpB,cAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA,CAAC;oBACpF,CAAC;gBACH,CAAC;gBACD,oBAAM,MAAM,CAAA,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// TODO: Do a review of non-interfaces\n/* eslint-disable @azure/azure-sdk/ts-use-interface-parameters */\n\nimport {\n AVRO_CODEC_KEY,\n AVRO_INIT_BYTES,\n AVRO_SCHEMA_KEY,\n AVRO_SYNC_MARKER_SIZE,\n} from \"./AvroConstants\";\nimport { AvroParser, AvroType } from \"./AvroParser\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { AvroReadable } from \"./AvroReadable\";\nimport { arraysEqual } from \"./utils/utils.common\";\n\n/**\n * Options to configure the {@link AvroReader.parseObjects} operation.\n */\nexport interface AvroParseOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\nexport class AvroReader {\n private readonly _dataStream: AvroReadable;\n\n private readonly _headerStream: AvroReadable;\n\n private _syncMarker?: Uint8Array;\n\n private _metadata?: Record<string, string>;\n\n private _itemType?: AvroType;\n\n private _itemsRemainingInBlock?: number;\n\n // Remembers where we started if partial data stream was provided.\n private readonly _initialBlockOffset: number;\n\n /// The byte offset within the Avro file (both header and data)\n /// of the start of the current block.\n private _blockOffset: number;\n public get blockOffset(): number {\n return this._blockOffset;\n }\n\n private _objectIndex: number;\n public get objectIndex(): number {\n return this._objectIndex;\n }\n\n private _initialized: boolean;\n\n constructor(dataStream: AvroReadable);\n\n constructor(\n dataStream: AvroReadable,\n headerStream: AvroReadable,\n currentBlockOffset: number,\n indexWithinCurrentBlock: number,\n );\n\n constructor(\n dataStream: AvroReadable,\n headerStream?: AvroReadable,\n currentBlockOffset?: number,\n indexWithinCurrentBlock?: number,\n ) {\n this._dataStream = dataStream;\n this._headerStream = headerStream || dataStream;\n this._initialized = false;\n this._blockOffset = currentBlockOffset || 0;\n this._objectIndex = indexWithinCurrentBlock || 0;\n this._initialBlockOffset = currentBlockOffset || 0;\n }\n\n private async initialize(options: AvroParseOptions = {}): Promise<void> {\n const header = await AvroParser.readFixedBytes(this._headerStream, AVRO_INIT_BYTES.length, {\n abortSignal: options.abortSignal,\n });\n if (!arraysEqual(header, AVRO_INIT_BYTES)) {\n throw new Error(\"Stream is not an Avro file.\");\n }\n\n // File metadata is written as if defined by the following map schema:\n // { \"type\": \"map\", \"values\": \"bytes\"}\n this._metadata = await AvroParser.readMap(this._headerStream, AvroParser.readString, {\n abortSignal: options.abortSignal,\n });\n\n // Validate codec\n const codec = this._metadata![AVRO_CODEC_KEY];\n if (!(codec === undefined || codec === null || codec === \"null\")) {\n throw new Error(\"Codecs are not supported\");\n }\n\n // The 16-byte, randomly-generated sync marker for this file.\n this._syncMarker = await AvroParser.readFixedBytes(this._headerStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n });\n\n // Parse the schema\n const schema = JSON.parse(this._metadata![AVRO_SCHEMA_KEY]);\n this._itemType = AvroType.fromSchema(schema);\n\n if (this._blockOffset === 0) {\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n }\n\n this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n // skip block length\n await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });\n\n this._initialized = true;\n if (this._objectIndex && this._objectIndex > 0) {\n for (let i = 0; i < this._objectIndex; i++) {\n await this._itemType.read(this._dataStream, { abortSignal: options.abortSignal });\n this._itemsRemainingInBlock!--;\n }\n }\n }\n\n public hasNext(): boolean {\n return !this._initialized || this._itemsRemainingInBlock! > 0;\n }\n\n public async *parseObjects(\n options: AvroParseOptions = {},\n ): AsyncIterableIterator<Record<string, any> | null> {\n if (!this._initialized) {\n await this.initialize(options);\n }\n\n while (this.hasNext()) {\n const result = await this._itemType!.read(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n\n this._itemsRemainingInBlock!--;\n this._objectIndex!++;\n\n if (this._itemsRemainingInBlock === 0) {\n const marker = await AvroParser.readFixedBytes(this._dataStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n });\n\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n this._objectIndex = 0;\n\n if (!arraysEqual(this._syncMarker!, marker)) {\n throw new Error(\"Stream is not a valid Avro file.\");\n }\n\n try {\n this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n } catch {\n // We hit the end of the stream.\n this._itemsRemainingInBlock = 0;\n }\n\n if (this._itemsRemainingInBlock! > 0) {\n // Ignore block size\n await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });\n }\n }\n yield result;\n }\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export { AvroReader } from "./AvroReader";
4
4
  export { AvroReadable } from "./AvroReadable";
5
5
  export { AvroReadableFromBlob } from "./AvroReadableFromBlob";
@@ -1 +1 @@
1
- {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AvroReader } from \"./AvroReader\";\nexport { AvroReadable } from \"./AvroReadable\";\nexport { AvroReadableFromBlob } from \"./AvroReadableFromBlob\";\n"]}
1
+ {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AvroReader } from \"./AvroReader\";\nexport { AvroReadable } from \"./AvroReadable\";\nexport { AvroReadableFromBlob } from \"./AvroReadableFromBlob\";\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export { AvroReader } from "./AvroReader";
4
4
  export { AvroReadable } from "./AvroReadable";
5
5
  export { AvroReadableFromStream } from "./AvroReadableFromStream";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AvroReader } from \"./AvroReader\";\nexport { AvroReadable } from \"./AvroReadable\";\nexport { AvroReadableFromStream } from \"./AvroReadableFromStream\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AvroReader } from \"./AvroReader\";\nexport { AvroReadable } from \"./AvroReadable\";\nexport { AvroReadableFromStream } from \"./AvroReadableFromStream\";\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export function arraysEqual(a, b) {
4
4
  if (a === b)
5
5
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.common.js","sourceRoot":"","sources":["../../../../../storage-internal-avro/src/utils/utils.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,MAAM,UAAU,WAAW,CAAC,CAAa,EAAE,CAAa;IACtD,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACzB,kCAAkC;IAClC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI;QAAE,OAAO,KAAK,CAAC;IACzC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAExC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IAClC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport interface KeyValuePair<T> {\n key: string;\n value: T;\n}\n\nexport function arraysEqual(a: Uint8Array, b: Uint8Array): boolean {\n if (a === b) return true;\n // eslint-disable-next-line eqeqeq\n if (a == null || b == null) return false;\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n}\n"]}
1
+ {"version":3,"file":"utils.common.js","sourceRoot":"","sources":["../../../../../storage-internal-avro/src/utils/utils.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,MAAM,UAAU,WAAW,CAAC,CAAa,EAAE,CAAa;IACtD,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACzB,kCAAkC;IAClC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI;QAAE,OAAO,KAAK,CAAC;IACzC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAExC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IAClC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport interface KeyValuePair<T> {\n key: string;\n value: T;\n}\n\nexport function arraysEqual(a: Uint8Array, b: Uint8Array): boolean {\n if (a === b) return true;\n // eslint-disable-next-line eqeqeq\n if (a == null || b == null) return false;\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-blob",
3
3
  "sdk-type": "client",
4
- "version": "12.25.0-beta.1",
4
+ "version": "12.25.1-alpha.20240930.1",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - Blob",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/storage-blob/src/index.js",
@@ -31,31 +31,32 @@
31
31
  },
32
32
  "scripts": {
33
33
  "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
34
+ "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api",
34
35
  "build:browser": "tsc -p . && dev-tool run bundle",
35
36
  "build:node": "tsc -p . && dev-tool run bundle",
36
- "build:test": "tsc -p . && dev-tool run bundle",
37
- "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api",
38
37
  "build:samples": "echo Obsolete;",
38
+ "build:test": "tsc -p . && dev-tool run bundle",
39
39
  "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
40
40
  "clean": "rimraf --glob dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
41
41
  "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json",
42
- "extract-api": "tsc -p . && dev-tool run extract-api",
42
+ "emulator-tests": "cross-env STORAGE_CONNECTION_STRING=UseDevelopmentStorage=true && npm run test:node",
43
43
  "execute:samples": "dev-tool samples run samples-dev",
44
+ "extract-api": "tsc -p . && dev-tool run extract-api",
44
45
  "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
46
+ "generate:client": "autorest --typescript ./swagger/README.md",
47
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
45
48
  "integration-test:browser": "dev-tool run test:browser",
46
49
  "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-blob/test/*.spec.js' 'dist-esm/storage-blob/test/node/*.spec.js'",
47
- "integration-test": "npm run integration-test:node && npm run integration-test:browser",
48
- "generate:client": "autorest --typescript ./swagger/README.md",
49
- "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix",
50
- "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
50
+ "lint": "eslint package.json api-extractor.json README.md src test",
51
+ "lint:fix": "eslint package.json api-extractor.json README.md src test --fix",
51
52
  "pack": "npm pack 2>&1",
53
+ "test": "npm run clean && npm run build:test && npm run unit-test",
52
54
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
53
55
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
54
- "test": "npm run clean && npm run build:test && npm run unit-test",
56
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
55
57
  "unit-test:browser": "dev-tool run test:browser",
56
58
  "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
57
- "unit-test": "npm run unit-test:node && npm run unit-test:browser",
58
- "emulator-tests": "cross-env STORAGE_CONNECTION_STRING=UseDevelopmentStorage=true && npm run test:node"
59
+ "update-snippets": "echo skipped"
59
60
  },
60
61
  "files": [
61
62
  "BreakingChanges.md",
@@ -133,19 +134,19 @@
133
134
  "@azure/core-rest-pipeline": "^1.10.1",
134
135
  "@azure/core-tracing": "^1.1.2",
135
136
  "@azure/core-util": "^1.6.1",
136
- "@azure/core-xml": "^1.3.2",
137
+ "@azure/core-xml": "^1.4.3",
137
138
  "@azure/logger": "^1.0.0",
138
139
  "events": "^3.0.0",
139
140
  "tslib": "^2.2.0"
140
141
  },
141
142
  "devDependencies": {
142
- "@azure/dev-tool": "^1.0.0",
143
- "@azure/eslint-plugin-azure-sdk": "^3.0.0",
144
- "@azure/identity": "^4.0.1",
145
- "@azure-tools/test-utils": "^1.0.1",
146
143
  "@azure-tools/test-credential": "^1.0.0",
147
- "@azure-tools/test-recorder": "^3.0.0",
148
144
  "@azure-tools/test-perf": "^1.0.0",
145
+ "@azure-tools/test-recorder": "^3.0.0",
146
+ "@azure-tools/test-utils": "^1.0.1",
147
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
148
+ "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
149
+ "@azure/identity": "^4.0.1",
149
150
  "@microsoft/api-extractor": "^7.31.1",
150
151
  "@types/chai": "^4.1.6",
151
152
  "@types/mocha": "^10.0.0",
@@ -154,7 +155,7 @@
154
155
  "cross-env": "^7.0.2",
155
156
  "dotenv": "^16.0.0",
156
157
  "es6-promise": "^4.2.5",
157
- "eslint": "^8.0.0",
158
+ "eslint": "^9.9.0",
158
159
  "inherits": "^2.0.3",
159
160
  "karma": "^6.2.0",
160
161
  "karma-chrome-launcher": "^3.0.0",
@@ -167,11 +168,11 @@
167
168
  "karma-sourcemap-loader": "^0.3.8",
168
169
  "mocha": "^10.0.0",
169
170
  "nyc": "^17.0.0",
170
- "puppeteer": "^22.2.0",
171
+ "puppeteer": "^23.0.2",
171
172
  "rimraf": "^5.0.5",
172
173
  "source-map-support": "^0.5.9",
173
174
  "ts-node": "^10.0.0",
174
- "typescript": "~5.5.3",
175
+ "typescript": "~5.6.2",
175
176
  "util": "^0.12.1"
176
177
  }
177
178
  }
@@ -6138,6 +6138,10 @@ export declare interface BlockBlobUploadStreamOptions extends CommonOptions {
6138
6138
  *
6139
6139
  */
6140
6140
  blobHTTPHeaders?: BlobHTTPHeaders;
6141
+ /**
6142
+ * Customer Provided Key Info.
6143
+ */
6144
+ customerProvidedKey?: CpkInfo;
6141
6145
  /**
6142
6146
  * Metadata of block blob.
6143
6147
  */