@azure/storage-blob 12.25.0-beta.1 → 12.25.0

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 +7 -7
  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;YACzF,WAAW,EAA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,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,EAAE,OAAO,CA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C,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.0",
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",
@@ -46,8 +46,8 @@
46
46
  "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
47
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
48
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",
49
+ "lint:fix": "eslint package.json api-extractor.json README.md src test --fix",
50
+ "lint": "eslint package.json api-extractor.json README.md src test",
51
51
  "pack": "npm pack 2>&1",
52
52
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
53
53
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
@@ -133,7 +133,7 @@
133
133
  "@azure/core-rest-pipeline": "^1.10.1",
134
134
  "@azure/core-tracing": "^1.1.2",
135
135
  "@azure/core-util": "^1.6.1",
136
- "@azure/core-xml": "^1.3.2",
136
+ "@azure/core-xml": "^1.4.3",
137
137
  "@azure/logger": "^1.0.0",
138
138
  "events": "^3.0.0",
139
139
  "tslib": "^2.2.0"
@@ -154,7 +154,7 @@
154
154
  "cross-env": "^7.0.2",
155
155
  "dotenv": "^16.0.0",
156
156
  "es6-promise": "^4.2.5",
157
- "eslint": "^8.0.0",
157
+ "eslint": "^9.9.0",
158
158
  "inherits": "^2.0.3",
159
159
  "karma": "^6.2.0",
160
160
  "karma-chrome-launcher": "^3.0.0",
@@ -167,11 +167,11 @@
167
167
  "karma-sourcemap-loader": "^0.3.8",
168
168
  "mocha": "^10.0.0",
169
169
  "nyc": "^17.0.0",
170
- "puppeteer": "^22.2.0",
170
+ "puppeteer": "^23.0.2",
171
171
  "rimraf": "^5.0.5",
172
172
  "source-map-support": "^0.5.9",
173
173
  "ts-node": "^10.0.0",
174
- "typescript": "~5.5.3",
174
+ "typescript": "~5.6.2",
175
175
  "util": "^0.12.1"
176
176
  }
177
177
  }
@@ -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
  */