@azure/storage-common 12.4.0-alpha.20260310.1 → 12.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/BufferScheduler-browser.d.mts +7 -0
- package/dist/browser/BufferScheduler-browser.d.mts.map +1 -0
- package/dist/browser/BufferScheduler-browser.mjs +11 -0
- package/dist/browser/BufferScheduler-browser.mjs.map +1 -0
- package/dist/browser/StorageBrowserPolicyFactory.d.ts +1 -1
- package/dist/browser/StorageBrowserPolicyFactory.d.ts.map +1 -1
- package/dist/browser/StorageBrowserPolicyFactory.js +1 -1
- package/dist/browser/StorageBrowserPolicyFactory.js.map +1 -1
- package/dist/browser/StructuredMessageDecoding.d.ts +1 -1
- package/dist/browser/StructuredMessageDecoding.d.ts.map +1 -1
- package/dist/browser/StructuredMessageDecoding.js +3 -22
- package/dist/browser/StructuredMessageDecoding.js.map +1 -1
- package/dist/browser/StructuredMessageDecodingStream-browser.d.mts +11 -0
- package/dist/browser/StructuredMessageDecodingStream-browser.d.mts.map +1 -0
- package/dist/browser/{StructuredMessageDecodingStream.js → StructuredMessageDecodingStream-browser.mjs} +4 -4
- package/dist/browser/StructuredMessageDecodingStream-browser.mjs.map +1 -0
- package/dist/browser/StructuredMessageEncoding.d.ts +1 -1
- package/dist/browser/StructuredMessageEncoding.d.ts.map +1 -1
- package/dist/browser/StructuredMessageEncoding.js +8 -28
- package/dist/browser/StructuredMessageEncoding.js.map +1 -1
- package/dist/browser/{StructuredMessageEncodingStream.d.ts → StructuredMessageEncodingStream-browser.d.mts} +2 -2
- package/dist/browser/StructuredMessageEncodingStream-browser.d.mts.map +1 -0
- package/dist/browser/{StructuredMessageEncodingStream.js → StructuredMessageEncodingStream-browser.mjs} +13 -11
- package/dist/browser/StructuredMessageEncodingStream-browser.mjs.map +1 -0
- package/dist/browser/bufferHelpers-browser.d.mts +18 -0
- package/dist/browser/bufferHelpers-browser.d.mts.map +1 -0
- package/dist/browser/bufferHelpers-browser.mjs +27 -0
- package/dist/browser/bufferHelpers-browser.mjs.map +1 -0
- package/dist/browser/bufferHelpers.common.d.ts +7 -0
- package/dist/browser/bufferHelpers.common.d.ts.map +1 -0
- package/dist/browser/bufferHelpers.common.js +22 -0
- package/dist/browser/bufferHelpers.common.js.map +1 -0
- package/dist/browser/crc64.js +5 -1
- package/dist/{react-native/credentials/StorageSharedKeyCredential.d.ts → browser/credentials/StorageSharedKeyCredential-browser.d.mts} +1 -1
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/{StorageSharedKeyCredential.js → StorageSharedKeyCredential-browser.mjs} +1 -1
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/UserDelegationKey.d.ts +38 -0
- package/dist/browser/credentials/UserDelegationKey.d.ts.map +1 -0
- package/dist/browser/{interfaces.js → credentials/UserDelegationKey.js} +1 -1
- package/dist/browser/credentials/UserDelegationKey.js.map +1 -0
- package/dist/{react-native/credentials/UserDelegationKeyCredential.d.ts → browser/credentials/UserDelegationKeyCredential-browser.d.mts} +2 -13
- package/dist/browser/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/{UserDelegationKeyCredential.js → UserDelegationKeyCredential-browser.mjs} +1 -1
- package/dist/browser/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
- package/dist/browser/index.d.ts +1 -19
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -19
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/indexPlatform-browser.d.mts +25 -0
- package/dist/browser/indexPlatform-browser.d.mts.map +1 -0
- package/dist/browser/indexPlatform-browser.mjs +24 -0
- package/dist/browser/indexPlatform-browser.mjs.map +1 -0
- package/dist/browser/interfaces-browser.d.mts +14 -0
- package/dist/browser/interfaces-browser.d.mts.map +1 -0
- package/dist/browser/interfaces-browser.mjs +4 -0
- package/dist/browser/interfaces-browser.mjs.map +1 -0
- package/dist/browser/policies/{StorageBrowserPolicy.d.ts → StorageBrowserPolicy-browser.d.mts} +1 -1
- package/dist/browser/policies/StorageBrowserPolicy-browser.d.mts.map +1 -0
- package/dist/browser/policies/{StorageBrowserPolicy.js → StorageBrowserPolicy-browser.mjs} +1 -5
- package/dist/browser/policies/StorageBrowserPolicy-browser.mjs.map +1 -0
- package/dist/browser/policies/{StorageBrowserPolicyV2.d.ts → StorageBrowserPolicyV2-browser.d.mts} +1 -1
- package/dist/browser/policies/StorageBrowserPolicyV2-browser.d.mts.map +1 -0
- package/dist/browser/policies/{StorageBrowserPolicyV2.js → StorageBrowserPolicyV2-browser.mjs} +1 -5
- package/dist/browser/policies/StorageBrowserPolicyV2-browser.mjs.map +1 -0
- package/dist/browser/policies/{StorageCorrectContentLengthPolicy.d.ts → StorageCorrectContentLengthPolicy-browser.d.mts} +1 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.d.mts.map +1 -0
- package/dist/browser/policies/{StorageCorrectContentLengthPolicy.js → StorageCorrectContentLengthPolicy-browser.mjs} +1 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.mjs.map +1 -0
- package/dist/browser/policies/{StorageSharedKeyCredentialPolicyV2.d.ts → StorageSharedKeyCredentialPolicyV2-browser.d.mts} +3 -3
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.d.mts.map +1 -0
- package/dist/browser/policies/{StorageSharedKeyCredentialPolicyV2.js → StorageSharedKeyCredentialPolicyV2-browser.mjs} +1 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.mjs.map +1 -0
- package/dist/browser/streamHelpers-browser.d.mts +6 -0
- package/dist/browser/streamHelpers-browser.d.mts.map +1 -0
- package/dist/browser/streamHelpers-browser.mjs +10 -0
- package/dist/browser/streamHelpers-browser.mjs.map +1 -0
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +0 -12
- package/dist/browser/utils/utils.common.d.ts.map +1 -1
- package/dist/browser/utils/utils.common.js +4 -20
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/BufferScheduler.js +1 -0
- package/dist/commonjs/BufferScheduler.js.map +1 -1
- package/dist/commonjs/BuffersStream.js +3 -0
- package/dist/commonjs/BuffersStream.js.map +2 -2
- package/dist/commonjs/PooledBuffer.js +1 -0
- package/dist/commonjs/PooledBuffer.js.map +1 -1
- package/dist/commonjs/StorageBrowserPolicyFactory.d.ts.map +1 -1
- package/dist/commonjs/StorageBrowserPolicyFactory.js +1 -0
- package/dist/commonjs/StorageBrowserPolicyFactory.js.map +2 -2
- package/dist/commonjs/StorageCRC64Calculator.js +1 -0
- package/dist/commonjs/StorageCRC64Calculator.js.map +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js +1 -0
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/commonjs/StructuredMessageDecoding.d.ts +1 -1
- package/dist/commonjs/StructuredMessageDecoding.d.ts.map +1 -1
- package/dist/commonjs/StructuredMessageDecoding.js +4 -20
- package/dist/commonjs/StructuredMessageDecoding.js.map +3 -3
- package/dist/commonjs/StructuredMessageDecodingStream.js +1 -0
- package/dist/commonjs/StructuredMessageDecodingStream.js.map +1 -1
- package/dist/commonjs/StructuredMessageEncoding.d.ts +1 -1
- package/dist/commonjs/StructuredMessageEncoding.d.ts.map +1 -1
- package/dist/commonjs/StructuredMessageEncoding.js +9 -26
- package/dist/commonjs/StructuredMessageEncoding.js.map +3 -3
- package/dist/commonjs/StructuredMessageEncodingStream.d.ts +1 -1
- package/dist/commonjs/StructuredMessageEncodingStream.d.ts.map +1 -1
- package/dist/commonjs/StructuredMessageEncodingStream.js +1 -0
- package/dist/commonjs/StructuredMessageEncodingStream.js.map +2 -2
- package/dist/commonjs/bufferHelpers.common.d.ts +7 -0
- package/dist/commonjs/bufferHelpers.common.d.ts.map +1 -0
- package/dist/commonjs/bufferHelpers.common.js +39 -0
- package/dist/commonjs/bufferHelpers.common.js.map +7 -0
- package/dist/commonjs/bufferHelpers.d.ts +18 -0
- package/dist/commonjs/bufferHelpers.d.ts.map +1 -0
- package/dist/commonjs/bufferHelpers.js +45 -0
- package/dist/commonjs/bufferHelpers.js.map +7 -0
- package/dist/commonjs/cache.js +1 -0
- package/dist/commonjs/cache.js.map +1 -1
- package/dist/commonjs/crc64.js +3 -1
- package/dist/commonjs/credentials/AnonymousCredential.js +1 -0
- package/dist/commonjs/credentials/AnonymousCredential.js.map +1 -1
- package/dist/commonjs/credentials/Credential.js +1 -0
- package/dist/commonjs/credentials/Credential.js.map +1 -1
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js +1 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +1 -1
- package/dist/commonjs/credentials/UserDelegationKey.d.ts +38 -0
- package/dist/commonjs/credentials/UserDelegationKey.d.ts.map +1 -0
- package/dist/commonjs/credentials/UserDelegationKey.js +16 -0
- package/dist/commonjs/credentials/UserDelegationKey.js.map +7 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +1 -37
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts.map +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +1 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +3 -3
- package/dist/commonjs/index.d.ts +1 -21
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -48
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/indexPlatform.d.ts +26 -0
- package/dist/commonjs/indexPlatform.d.ts.map +1 -0
- package/dist/commonjs/indexPlatform.js +73 -0
- package/dist/commonjs/indexPlatform.js.map +7 -0
- package/dist/commonjs/interfaces.js +1 -0
- package/dist/commonjs/interfaces.js.map +1 -1
- package/dist/commonjs/log.js +1 -0
- package/dist/commonjs/log.js.map +1 -1
- package/dist/commonjs/policies/AnonymousCredentialPolicy.js +1 -0
- package/dist/commonjs/policies/AnonymousCredentialPolicy.js.map +1 -1
- package/dist/commonjs/policies/CredentialPolicy.js +1 -0
- package/dist/commonjs/policies/CredentialPolicy.js.map +1 -1
- package/dist/commonjs/policies/RequestPolicy.js +3 -0
- package/dist/commonjs/policies/RequestPolicy.js.map +2 -2
- package/dist/commonjs/policies/StorageBrowserPolicy.d.ts +2 -0
- package/dist/commonjs/policies/StorageBrowserPolicy.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageBrowserPolicy.js +1 -15
- package/dist/commonjs/policies/StorageBrowserPolicy.js.map +3 -3
- package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts +2 -0
- package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageBrowserPolicyV2.js +1 -15
- package/dist/commonjs/policies/StorageBrowserPolicyV2.js.map +3 -3
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js +1 -0
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRequestFailureDetailsParserPolicy.js +1 -0
- package/dist/commonjs/policies/StorageRequestFailureDetailsParserPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js +1 -0
- package/dist/commonjs/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyType.js +1 -0
- package/dist/commonjs/policies/StorageRetryPolicyType.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.js +1 -0
- package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js +1 -0
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js.map +2 -2
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js +1 -0
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
- package/dist/commonjs/streamHelpers.d.ts +7 -0
- package/dist/commonjs/streamHelpers.d.ts.map +1 -0
- package/dist/commonjs/{utils/tracing.js → streamHelpers.js} +9 -12
- package/dist/commonjs/streamHelpers.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils/SharedKeyComparator.js +1 -0
- package/dist/commonjs/utils/SharedKeyComparator.js.map +1 -1
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +2 -1
- package/dist/commonjs/utils/constants.js.map +2 -2
- package/dist/commonjs/utils/utils.common.d.ts +0 -12
- package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.common.js +4 -13
- package/dist/commonjs/utils/utils.common.js.map +3 -3
- package/dist/esm/StorageBrowserPolicyFactory.d.ts.map +1 -1
- package/dist/esm/StorageBrowserPolicyFactory.js.map +1 -1
- package/dist/esm/StructuredMessageDecoding.d.ts +1 -1
- package/dist/esm/StructuredMessageDecoding.d.ts.map +1 -1
- package/dist/esm/StructuredMessageDecoding.js +3 -22
- package/dist/esm/StructuredMessageDecoding.js.map +1 -1
- package/dist/esm/StructuredMessageEncoding.d.ts +1 -1
- package/dist/esm/StructuredMessageEncoding.d.ts.map +1 -1
- package/dist/esm/StructuredMessageEncoding.js +8 -28
- package/dist/esm/StructuredMessageEncoding.js.map +1 -1
- package/dist/esm/StructuredMessageEncodingStream.d.ts +1 -1
- package/dist/esm/StructuredMessageEncodingStream.d.ts.map +1 -1
- package/dist/esm/StructuredMessageEncodingStream.js.map +1 -1
- package/dist/esm/bufferHelpers.common.d.ts +7 -0
- package/dist/esm/bufferHelpers.common.d.ts.map +1 -0
- package/dist/esm/bufferHelpers.common.js +22 -0
- package/dist/esm/bufferHelpers.common.js.map +1 -0
- package/dist/esm/bufferHelpers.d.ts +18 -0
- package/dist/esm/bufferHelpers.d.ts.map +1 -0
- package/dist/esm/bufferHelpers.js +27 -0
- package/dist/esm/bufferHelpers.js.map +1 -0
- package/dist/esm/crc64.js +27 -1
- package/dist/esm/credentials/UserDelegationKey.d.ts +38 -0
- package/dist/esm/credentials/UserDelegationKey.d.ts.map +1 -0
- package/dist/{react-native/interfaces.js → esm/credentials/UserDelegationKey.js} +1 -1
- package/dist/esm/credentials/UserDelegationKey.js.map +1 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +1 -37
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts.map +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js +0 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/esm/index.d.ts +1 -21
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/indexPlatform.d.ts +26 -0
- package/dist/esm/indexPlatform.d.ts.map +1 -0
- package/dist/esm/indexPlatform.js +25 -0
- package/dist/esm/indexPlatform.js.map +1 -0
- package/dist/esm/policies/StorageBrowserPolicy.d.ts +2 -0
- package/dist/esm/policies/StorageBrowserPolicy.d.ts.map +1 -1
- package/dist/esm/policies/StorageBrowserPolicy.js +2 -12
- package/dist/esm/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist/esm/policies/StorageBrowserPolicyV2.d.ts +2 -0
- package/dist/esm/policies/StorageBrowserPolicyV2.d.ts.map +1 -1
- package/dist/esm/policies/StorageBrowserPolicyV2.js +2 -12
- package/dist/esm/policies/StorageBrowserPolicyV2.js.map +1 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts.map +1 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist/esm/streamHelpers.d.ts +7 -0
- package/dist/esm/streamHelpers.d.ts.map +1 -0
- package/dist/esm/streamHelpers.js +11 -0
- package/dist/esm/streamHelpers.js.map +1 -0
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +0 -12
- package/dist/esm/utils/utils.common.d.ts.map +1 -1
- package/dist/esm/utils/utils.common.js +4 -20
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/BufferScheduler-browser.d.mts +7 -0
- package/dist/react-native/BufferScheduler-browser.d.mts.map +1 -0
- package/dist/react-native/BufferScheduler-browser.mjs +11 -0
- package/dist/react-native/BufferScheduler-browser.mjs.map +1 -0
- package/dist/react-native/BufferScheduler-react-native.d.mts +3 -0
- package/dist/react-native/BufferScheduler-react-native.d.mts.map +1 -0
- package/dist/react-native/BufferScheduler-react-native.mjs +4 -0
- package/dist/react-native/BufferScheduler-react-native.mjs.map +1 -0
- package/dist/react-native/StorageBrowserPolicyFactory.d.ts +1 -1
- package/dist/react-native/StorageBrowserPolicyFactory.d.ts.map +1 -1
- package/dist/react-native/StorageBrowserPolicyFactory.js +1 -1
- package/dist/react-native/StorageBrowserPolicyFactory.js.map +1 -1
- package/dist/react-native/StructuredMessageDecodingStream-react-native.d.mts +6 -0
- package/dist/react-native/StructuredMessageDecodingStream-react-native.d.mts.map +1 -0
- package/dist/react-native/StructuredMessageDecodingStream-react-native.mjs +7 -0
- package/dist/react-native/StructuredMessageDecodingStream-react-native.mjs.map +1 -0
- package/dist/react-native/StructuredMessageEncoding.d.ts +1 -1
- package/dist/react-native/StructuredMessageEncoding.d.ts.map +1 -1
- package/dist/react-native/StructuredMessageEncoding.js +8 -28
- package/dist/react-native/StructuredMessageEncoding.js.map +1 -1
- package/dist/react-native/StructuredMessageEncodingStream-react-native.d.mts +10 -0
- package/dist/react-native/StructuredMessageEncodingStream-react-native.d.mts.map +1 -0
- package/dist/react-native/StructuredMessageEncodingStream-react-native.mjs +56 -0
- package/dist/react-native/StructuredMessageEncodingStream-react-native.mjs.map +1 -0
- package/dist/react-native/bufferHelpers-browser.d.mts +18 -0
- package/dist/react-native/bufferHelpers-browser.d.mts.map +1 -0
- package/dist/react-native/bufferHelpers-browser.mjs +27 -0
- package/dist/react-native/bufferHelpers-browser.mjs.map +1 -0
- package/dist/react-native/bufferHelpers-react-native.d.mts +2 -0
- package/dist/react-native/bufferHelpers-react-native.d.mts.map +1 -0
- package/dist/react-native/bufferHelpers-react-native.mjs +5 -0
- package/dist/react-native/bufferHelpers-react-native.mjs.map +1 -0
- package/dist/react-native/bufferHelpers.common.d.ts +7 -0
- package/dist/react-native/bufferHelpers.common.d.ts.map +1 -0
- package/dist/react-native/bufferHelpers.common.js +22 -0
- package/dist/react-native/bufferHelpers.common.js.map +1 -0
- package/dist/react-native/crc64.js +5 -1
- package/dist/{browser/credentials/StorageSharedKeyCredential.d.ts → react-native/credentials/StorageSharedKeyCredential-browser.d.mts} +1 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential-browser.d.mts.map +1 -0
- package/dist/react-native/credentials/{StorageSharedKeyCredential.js → StorageSharedKeyCredential-browser.mjs} +4 -4
- package/dist/react-native/credentials/StorageSharedKeyCredential-browser.mjs.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts +2 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs +4 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs.map +1 -0
- package/dist/react-native/credentials/UserDelegationKey.d.ts +38 -0
- package/dist/react-native/credentials/UserDelegationKey.d.ts.map +1 -0
- package/dist/react-native/credentials/UserDelegationKey.js +4 -0
- package/dist/react-native/credentials/UserDelegationKey.js.map +1 -0
- package/dist/{browser/credentials/UserDelegationKeyCredential.d.ts → react-native/credentials/UserDelegationKeyCredential-browser.d.mts} +2 -13
- package/dist/react-native/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
- package/dist/react-native/credentials/{UserDelegationKeyCredential.js → UserDelegationKeyCredential-browser.mjs} +3 -3
- package/dist/react-native/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.d.mts +2 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.d.mts.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.mjs +4 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.mjs.map +1 -0
- package/dist/react-native/index.d.ts +1 -21
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -20
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/indexPlatform-browser.d.mts +25 -0
- package/dist/react-native/indexPlatform-browser.d.mts.map +1 -0
- package/dist/react-native/indexPlatform-browser.mjs +24 -0
- package/dist/react-native/indexPlatform-browser.mjs.map +1 -0
- package/dist/react-native/indexPlatform-react-native.d.mts +2 -0
- package/dist/react-native/indexPlatform-react-native.d.mts.map +1 -0
- package/dist/react-native/indexPlatform-react-native.mjs +4 -0
- package/dist/react-native/indexPlatform-react-native.mjs.map +1 -0
- package/dist/react-native/interfaces-browser.d.mts +14 -0
- package/dist/react-native/interfaces-browser.d.mts.map +1 -0
- package/dist/react-native/interfaces-browser.mjs +4 -0
- package/dist/react-native/interfaces-browser.mjs.map +1 -0
- package/dist/react-native/interfaces-react-native.d.mts +2 -0
- package/dist/react-native/interfaces-react-native.d.mts.map +1 -0
- package/dist/react-native/interfaces-react-native.mjs +4 -0
- package/dist/react-native/interfaces-react-native.mjs.map +1 -0
- package/dist/react-native/policies/{StorageBrowserPolicy.d.ts → StorageBrowserPolicy-browser.d.mts} +1 -1
- package/dist/react-native/policies/StorageBrowserPolicy-browser.d.mts.map +1 -0
- package/dist/react-native/policies/{StorageBrowserPolicy.js → StorageBrowserPolicy-browser.mjs} +1 -5
- package/dist/react-native/policies/StorageBrowserPolicy-browser.mjs.map +1 -0
- package/dist/react-native/policies/StorageBrowserPolicy-react-native.d.mts +2 -0
- package/dist/react-native/policies/StorageBrowserPolicy-react-native.d.mts.map +1 -0
- package/dist/react-native/policies/StorageBrowserPolicy-react-native.mjs +4 -0
- package/dist/react-native/policies/StorageBrowserPolicy-react-native.mjs.map +1 -0
- package/dist/react-native/policies/{StorageBrowserPolicyV2.d.ts → StorageBrowserPolicyV2-browser.d.mts} +1 -1
- package/dist/react-native/policies/StorageBrowserPolicyV2-browser.d.mts.map +1 -0
- package/dist/react-native/policies/{StorageBrowserPolicyV2.js → StorageBrowserPolicyV2-browser.mjs} +1 -5
- package/dist/react-native/policies/StorageBrowserPolicyV2-browser.mjs.map +1 -0
- package/dist/react-native/policies/StorageBrowserPolicyV2-react-native.d.mts +2 -0
- package/dist/react-native/policies/StorageBrowserPolicyV2-react-native.d.mts.map +1 -0
- package/dist/react-native/policies/StorageBrowserPolicyV2-react-native.mjs +4 -0
- package/dist/react-native/policies/StorageBrowserPolicyV2-react-native.mjs.map +1 -0
- package/dist/react-native/policies/{StorageCorrectContentLengthPolicy.d.ts → StorageCorrectContentLengthPolicy-browser.d.mts} +1 -1
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-browser.d.mts.map +1 -0
- package/dist/react-native/policies/{StorageCorrectContentLengthPolicy.js → StorageCorrectContentLengthPolicy-browser.mjs} +1 -10
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-browser.mjs.map +1 -0
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-react-native.d.mts +2 -0
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-react-native.d.mts.map +1 -0
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-react-native.mjs +4 -0
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy-react-native.mjs.map +1 -0
- package/dist/react-native/policies/{StorageSharedKeyCredentialPolicyV2.d.ts → StorageSharedKeyCredentialPolicyV2-browser.d.mts} +8 -2
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-browser.d.mts.map +1 -0
- package/dist/react-native/policies/{StorageSharedKeyCredentialPolicyV2.js → StorageSharedKeyCredentialPolicyV2-browser.mjs} +1 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-browser.mjs.map +1 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +2 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +1 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +4 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +1 -0
- package/dist/react-native/streamHelpers-browser.d.mts +6 -0
- package/dist/react-native/streamHelpers-browser.d.mts.map +1 -0
- package/dist/react-native/streamHelpers-browser.mjs +10 -0
- package/dist/react-native/streamHelpers-browser.mjs.map +1 -0
- package/dist/react-native/streamHelpers-react-native.d.mts +2 -0
- package/dist/react-native/streamHelpers-react-native.d.mts.map +1 -0
- package/dist/react-native/streamHelpers-react-native.mjs +4 -0
- package/dist/react-native/streamHelpers-react-native.mjs.map +1 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +0 -12
- package/dist/react-native/utils/utils.common.d.ts.map +1 -1
- package/dist/react-native/utils/utils.common.js +4 -20
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +32 -20
- package/dist/browser/BufferScheduler.d.ts +0 -3
- package/dist/browser/BufferScheduler.d.ts.map +0 -1
- package/dist/browser/BufferScheduler.js +0 -8
- package/dist/browser/BufferScheduler.js.map +0 -1
- package/dist/browser/BuffersStream.d.ts +0 -41
- package/dist/browser/BuffersStream.d.ts.map +0 -1
- package/dist/browser/BuffersStream.js +0 -97
- package/dist/browser/BuffersStream.js.map +0 -1
- package/dist/browser/PooledBuffer.d.ts +0 -63
- package/dist/browser/PooledBuffer.d.ts.map +0 -1
- package/dist/browser/PooledBuffer.js +0 -95
- package/dist/browser/PooledBuffer.js.map +0 -1
- package/dist/browser/StructuredMessageDecodingStream.d.ts +0 -8
- package/dist/browser/StructuredMessageDecodingStream.d.ts.map +0 -1
- package/dist/browser/StructuredMessageDecodingStream.js.map +0 -1
- package/dist/browser/StructuredMessageEncodingStream.d.ts.map +0 -1
- package/dist/browser/StructuredMessageEncodingStream.js.map +0 -1
- package/dist/browser/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
- package/dist/browser/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist/browser/credentials/UserDelegationKeyCredential.d.ts.map +0 -1
- package/dist/browser/credentials/UserDelegationKeyCredential.js.map +0 -1
- package/dist/browser/interfaces.d.ts +0 -12
- package/dist/browser/interfaces.d.ts.map +0 -1
- package/dist/browser/interfaces.js.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js +0 -145
- package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
- package/dist/browser/utils/SharedKeyComparator.d.ts +0 -2
- package/dist/browser/utils/SharedKeyComparator.d.ts.map +0 -1
- package/dist/browser/utils/SharedKeyComparator.js +0 -73
- package/dist/browser/utils/SharedKeyComparator.js.map +0 -1
- package/dist/browser/utils/tracing.d.ts +0 -6
- package/dist/browser/utils/tracing.d.ts.map +0 -1
- package/dist/browser/utils/tracing.js +0 -14
- package/dist/browser/utils/tracing.js.map +0 -1
- package/dist/commonjs/utils/tracing.d.ts +0 -6
- package/dist/commonjs/utils/tracing.d.ts.map +0 -1
- package/dist/commonjs/utils/tracing.js.map +0 -7
- package/dist/esm/utils/tracing.d.ts +0 -6
- package/dist/esm/utils/tracing.d.ts.map +0 -1
- package/dist/esm/utils/tracing.js +0 -14
- package/dist/esm/utils/tracing.js.map +0 -1
- package/dist/react-native/BufferScheduler.d.ts +0 -3
- package/dist/react-native/BufferScheduler.d.ts.map +0 -1
- package/dist/react-native/BufferScheduler.js +0 -8
- package/dist/react-native/BufferScheduler.js.map +0 -1
- package/dist/react-native/BuffersStream.d.ts +0 -41
- package/dist/react-native/BuffersStream.d.ts.map +0 -1
- package/dist/react-native/BuffersStream.js +0 -97
- package/dist/react-native/BuffersStream.js.map +0 -1
- package/dist/react-native/PooledBuffer.d.ts +0 -63
- package/dist/react-native/PooledBuffer.d.ts.map +0 -1
- package/dist/react-native/PooledBuffer.js +0 -95
- package/dist/react-native/PooledBuffer.js.map +0 -1
- package/dist/react-native/StructuredMessageDecoding.d.ts +0 -31
- package/dist/react-native/StructuredMessageDecoding.d.ts.map +0 -1
- package/dist/react-native/StructuredMessageDecoding.js +0 -201
- package/dist/react-native/StructuredMessageDecoding.js.map +0 -1
- package/dist/react-native/StructuredMessageDecodingStream.d.ts +0 -22
- package/dist/react-native/StructuredMessageDecodingStream.d.ts.map +0 -1
- package/dist/react-native/StructuredMessageDecodingStream.js +0 -79
- package/dist/react-native/StructuredMessageDecodingStream.js.map +0 -1
- package/dist/react-native/StructuredMessageEncodingStream.d.ts +0 -22
- package/dist/react-native/StructuredMessageEncodingStream.d.ts.map +0 -1
- package/dist/react-native/StructuredMessageEncodingStream.js +0 -180
- package/dist/react-native/StructuredMessageEncodingStream.js.map +0 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts.map +0 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +0 -1
- package/dist/react-native/interfaces.d.ts +0 -12
- package/dist/react-native/interfaces.d.ts.map +0 -1
- package/dist/react-native/interfaces.js.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js +0 -145
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
- package/dist/react-native/utils/SharedKeyComparator.d.ts +0 -2
- package/dist/react-native/utils/SharedKeyComparator.d.ts.map +0 -1
- package/dist/react-native/utils/SharedKeyComparator.js +0 -73
- package/dist/react-native/utils/SharedKeyComparator.js.map +0 -1
- package/dist/react-native/utils/tracing.d.ts +0 -6
- package/dist/react-native/utils/tracing.d.ts.map +0 -1
- package/dist/react-native/utils/tracing.js +0 -14
- package/dist/react-native/utils/tracing.js.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a Blob from the given data.
|
|
3
|
+
* Uses an indirect constructor reference to work around React Native's restrictive
|
|
4
|
+
* Blob type definitions (which only accept string | Blob, not ArrayBuffer).
|
|
5
|
+
*/
|
|
6
|
+
export declare function createBlobFromData(data: Blob | ArrayBuffer | ArrayBufferView): Blob;
|
|
7
|
+
//# sourceMappingURL=bufferHelpers.common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bufferHelpers.common.d.ts","sourceRoot":"","sources":["../../src/bufferHelpers.common.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,CAYnF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* Creates a Blob from the given data.
|
|
5
|
+
* Uses an indirect constructor reference to work around React Native's restrictive
|
|
6
|
+
* Blob type definitions (which only accept string | Blob, not ArrayBuffer).
|
|
7
|
+
*/
|
|
8
|
+
export function createBlobFromData(data) {
|
|
9
|
+
if (data instanceof Blob) {
|
|
10
|
+
return data;
|
|
11
|
+
}
|
|
12
|
+
// Use indirect constructor to bypass restrictive type definitions in some environments
|
|
13
|
+
const BlobCtor = Blob;
|
|
14
|
+
if (data instanceof ArrayBuffer) {
|
|
15
|
+
return new BlobCtor([data]);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const ab = data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
19
|
+
return new BlobCtor([ab]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=bufferHelpers.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bufferHelpers.common.js","sourceRoot":"","sources":["../../src/bufferHelpers.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAA0C;IAC3E,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,uFAAuF;IACvF,MAAM,QAAQ,GAAG,IAAwC,CAAC;IAC1D,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9B,CAAC;SAAM,CAAC;QACN,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QACjF,OAAO,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Creates a Blob from the given data.\n * Uses an indirect constructor reference to work around React Native's restrictive\n * Blob type definitions (which only accept string | Blob, not ArrayBuffer).\n */\nexport function createBlobFromData(data: Blob | ArrayBuffer | ArrayBufferView): Blob {\n if (data instanceof Blob) {\n return data;\n }\n // Use indirect constructor to bypass restrictive type definitions in some environments\n const BlobCtor = Blob as { new (parts: unknown[]): Blob };\n if (data instanceof ArrayBuffer) {\n return new BlobCtor([data]);\n } else {\n const ab = data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);\n return new BlobCtor([ab]);\n }\n}\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
+
// ESM compatibility block omitted in browsers build as it is NodeJS only.
|
|
5
|
+
|
|
4
6
|
var NativeCRC64 = (() => {
|
|
5
7
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
6
8
|
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
|
@@ -2925,4 +2927,6 @@ Crc64Hash.prototype['OnFinal'] = Crc64Hash.prototype.OnFinal = /** @suppress {un
|
|
|
2925
2927
|
// else if (typeof exports === 'object')
|
|
2926
2928
|
// exports["NativeCRC64"] = NativeCRC64;
|
|
2927
2929
|
|
|
2928
|
-
|
|
2930
|
+
// ESM-EXPORT-START (rewritten to `module.exports = NativeCRC64;` in dist/commonjs by copyJSFiles.cjs)
|
|
2931
|
+
export default NativeCRC64;
|
|
2932
|
+
// ESM-EXPORT-END
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageSharedKeyCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACxD;;OAEG;IACH,SAAgB,WAAW,EAAG,MAAM,CAAC;IAErC;;;;OAIG;gBACS,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAKrD;;;;;OAKG;IACI,MAAM,CAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,oBAAoB,GAAG,aAAa;IAIxF;;;;OAIG;IACI,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;CAGxD"}
|
|
@@ -18,7 +18,7 @@ export class StorageSharedKeyCredential extends Credential {
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(_accountName, _accountKey) {
|
|
20
20
|
super();
|
|
21
|
-
throw new Error("StorageSharedKeyCredential is not supported in
|
|
21
|
+
throw new Error("StorageSharedKeyCredential is not supported in the browser.");
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Creates a StorageSharedKeyCredentialPolicy object.
|
|
@@ -27,7 +27,7 @@ export class StorageSharedKeyCredential extends Credential {
|
|
|
27
27
|
* @param _options -
|
|
28
28
|
*/
|
|
29
29
|
create(_nextPolicy, _options) {
|
|
30
|
-
throw new Error("StorageSharedKeyCredential is not supported in
|
|
30
|
+
throw new Error("StorageSharedKeyCredential is not supported in the browser.");
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Generates a hash signature for an HTTP request or for a SAS.
|
|
@@ -35,7 +35,7 @@ export class StorageSharedKeyCredential extends Credential {
|
|
|
35
35
|
* @param _stringToSign -
|
|
36
36
|
*/
|
|
37
37
|
computeHMACSHA256(_stringToSign) {
|
|
38
|
-
throw new Error("StorageSharedKeyCredential is not supported in
|
|
38
|
+
throw new Error("StorageSharedKeyCredential is not supported in the browser.");
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
//# sourceMappingURL=StorageSharedKeyCredential.
|
|
41
|
+
//# sourceMappingURL=StorageSharedKeyCredential-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageSharedKeyCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,UAAU;IACxD;;OAEG;IACa,WAAW,CAAU;IAErC;;;;OAIG;IACH,YAAY,YAAoB,EAAE,WAAmB;QACnD,KAAK,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,WAA0B,EAAE,QAA8B;QACtE,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,aAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n} from \"@azure/core-http-compat\";\nimport { Credential } from \"./Credential.js\";\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * StorageSharedKeyCredential for account key authorization of Azure Storage service.\n */\nexport class StorageSharedKeyCredential extends Credential {\n /**\n * Azure Storage account name; readonly.\n */\n public readonly accountName!: string;\n\n /**\n * Creates an instance of StorageSharedKeyCredential.\n * @param accountName -\n * @param accountKey -\n */\n constructor(_accountName: string, _accountKey: string) {\n super();\n throw new Error(\"StorageSharedKeyCredential is not supported in the browser.\");\n }\n\n /**\n * Creates a StorageSharedKeyCredentialPolicy object.\n *\n * @param _nextPolicy -\n * @param _options -\n */\n public create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy {\n throw new Error(\"StorageSharedKeyCredential is not supported in the browser.\");\n }\n\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param _stringToSign -\n */\n public computeHMACSHA256(_stringToSign: string): string {\n throw new Error(\"StorageSharedKeyCredential is not supported in the browser.\");\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageSharedKeyCredential-react-native.d.mts","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-react-native.mts"],"names":[],"mappings":"AAGA,cAAc,0CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageSharedKeyCredential-react-native.mjs","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,0CAA0C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./StorageSharedKeyCredential-browser.mjs\";\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A user delegation key.
|
|
3
|
+
*/
|
|
4
|
+
export interface UserDelegationKey {
|
|
5
|
+
/**
|
|
6
|
+
* The Azure Active Directory object ID in GUID format.
|
|
7
|
+
*/
|
|
8
|
+
signedObjectId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Azure Active Directory tenant ID in GUID format.
|
|
11
|
+
*/
|
|
12
|
+
signedTenantId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The date-time the key is active.
|
|
15
|
+
*/
|
|
16
|
+
signedStartsOn: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The date-time the key expires.
|
|
19
|
+
*/
|
|
20
|
+
signedExpiresOn: Date;
|
|
21
|
+
/**
|
|
22
|
+
* Abbreviation of the Azure Storage service that accepts the key.
|
|
23
|
+
*/
|
|
24
|
+
signedService: string;
|
|
25
|
+
/**
|
|
26
|
+
* The service version that created the key.
|
|
27
|
+
*/
|
|
28
|
+
signedVersion: string;
|
|
29
|
+
/**
|
|
30
|
+
* The delegated user tenant id in Azure AD. Return if DelegatedUserTenantId is specified.
|
|
31
|
+
*/
|
|
32
|
+
signedDelegatedUserTenantId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The key as a base64 string.
|
|
35
|
+
*/
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=UserDelegationKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKey.d.ts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKey.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKey.js","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKey.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A user delegation key.\n */\nexport interface UserDelegationKey {\n /**\n * The Azure Active Directory object ID in GUID format.\n */\n signedObjectId: string;\n /**\n * The Azure Active Directory tenant ID in GUID format.\n */\n signedTenantId: string;\n /**\n * The date-time the key is active.\n */\n signedStartsOn: Date;\n /**\n * The date-time the key expires.\n */\n signedExpiresOn: Date;\n /**\n * Abbreviation of the Azure Storage service that accepts the key.\n */\n signedService: string;\n /**\n * The service version that created the key.\n */\n signedVersion: string;\n /**\n * The delegated user tenant id in Azure AD. Return if DelegatedUserTenantId is specified.\n */\n signedDelegatedUserTenantId?: string;\n /**\n * The key as a base64 string.\n */\n value: string;\n}\n"]}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* A user delegation key.
|
|
3
|
-
*/
|
|
4
|
-
export interface UserDelegationKey {
|
|
5
|
-
signedObjectId: string;
|
|
6
|
-
signedTenantId: string;
|
|
7
|
-
signedStartsOn: Date;
|
|
8
|
-
signedExpiresOn: Date;
|
|
9
|
-
signedService: string;
|
|
10
|
-
signedVersion: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}
|
|
1
|
+
import type { UserDelegationKey } from "./UserDelegationKey.js";
|
|
13
2
|
/**
|
|
14
3
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
15
4
|
*
|
|
@@ -21,4 +10,4 @@ export declare class UserDelegationKeyCredential {
|
|
|
21
10
|
constructor(accountName: string, userDelegationKey: UserDelegationKey);
|
|
22
11
|
computeHMACSHA256(_stringToSign: string): string;
|
|
23
12
|
}
|
|
24
|
-
//# sourceMappingURL=UserDelegationKeyCredential.d.
|
|
13
|
+
//# sourceMappingURL=UserDelegationKeyCredential-browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;GAIG;AACH,qBAAa,2BAA2B;IACtC,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC,SAAgB,iBAAiB,EAAE,iBAAiB,CAAC;gBAEzC,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB;IAM9D,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;CAGxD"}
|
|
@@ -11,10 +11,10 @@ export class UserDelegationKeyCredential {
|
|
|
11
11
|
constructor(accountName, userDelegationKey) {
|
|
12
12
|
this.accountName = accountName;
|
|
13
13
|
this.userDelegationKey = userDelegationKey;
|
|
14
|
-
throw new Error("UserDelegationKeyCredential is not supported in
|
|
14
|
+
throw new Error("UserDelegationKeyCredential is not supported in the browser.");
|
|
15
15
|
}
|
|
16
16
|
computeHMACSHA256(_stringToSign) {
|
|
17
|
-
throw new Error("UserDelegationKeyCredential is not supported in
|
|
17
|
+
throw new Error("UserDelegationKeyCredential is not supported in the browser.");
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=UserDelegationKeyCredential.
|
|
20
|
+
//# sourceMappingURL=UserDelegationKeyCredential-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;;GAIG;AACH,MAAM,OAAO,2BAA2B;IACtB,WAAW,CAAS;IACpB,iBAAiB,CAAoB;IAErD,YAAY,WAAmB,EAAE,iBAAoC;QACnE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;IAEM,iBAAiB,CAAC,aAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { UserDelegationKey } from \"./UserDelegationKey.js\";\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * UserDelegationKeyCredential is only used for generation of user delegation SAS.\n */\nexport class UserDelegationKeyCredential {\n public readonly accountName: string;\n public readonly userDelegationKey: UserDelegationKey;\n\n constructor(accountName: string, userDelegationKey: UserDelegationKey) {\n this.accountName = accountName;\n this.userDelegationKey = userDelegationKey;\n throw new Error(\"UserDelegationKeyCredential is not supported in the browser.\");\n }\n\n public computeHMACSHA256(_stringToSign: string): string {\n throw new Error(\"UserDelegationKeyCredential is not supported in the browser.\");\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-react-native.d.mts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-react-native.mts"],"names":[],"mappings":"AAGA,cAAc,2CAA2C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-react-native.mjs","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,2CAA2C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./UserDelegationKeyCredential-browser.mjs\";\n"]}
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./StructuredMessageEncodingStream.js";
|
|
3
|
-
export * from "./StructuredMessageDecodingStream.js";
|
|
4
|
-
export * from "./StorageCRC64Calculator.js";
|
|
5
|
-
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
6
|
-
export type * from "./interfaces.js";
|
|
7
|
-
export * from "./StorageBrowserPolicyFactory.js";
|
|
8
|
-
export * from "./credentials/AnonymousCredential.js";
|
|
9
|
-
export * from "./credentials/Credential.js";
|
|
10
|
-
export * from "./credentials/StorageSharedKeyCredential.js";
|
|
11
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
12
|
-
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
13
|
-
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
14
|
-
export * from "./policies/CredentialPolicy.js";
|
|
15
|
-
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
16
|
-
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
17
|
-
export * from "./policies/StorageRetryPolicyV2.js";
|
|
18
|
-
export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
19
|
-
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
20
|
-
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
|
-
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
1
|
+
export * from "./indexPlatform-react-native.mjs";
|
|
22
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./StructuredMessageEncodingStream.js";
|
|
5
|
-
export * from "./StructuredMessageDecodingStream.js";
|
|
6
|
-
export * from "./StorageCRC64Calculator.js";
|
|
7
|
-
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
8
|
-
export * from "./StorageBrowserPolicyFactory.js";
|
|
9
|
-
export * from "./credentials/AnonymousCredential.js";
|
|
10
|
-
export * from "./credentials/Credential.js";
|
|
11
|
-
export * from "./credentials/StorageSharedKeyCredential.js";
|
|
12
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
13
|
-
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
14
|
-
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
15
|
-
export * from "./policies/CredentialPolicy.js";
|
|
16
|
-
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
17
|
-
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
18
|
-
export * from "./policies/StorageRetryPolicyV2.js";
|
|
19
|
-
export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
20
|
-
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
21
|
-
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
22
|
-
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
3
|
+
export * from "./indexPlatform-react-native.mjs";
|
|
23
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,yBAAyB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"#platform/indexPlatform\";\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "./BufferScheduler-react-native.mjs";
|
|
2
|
+
export * from "./bufferHelpers-react-native.mjs";
|
|
3
|
+
export { createBlobFromData } from "./bufferHelpers.common.js";
|
|
4
|
+
export * from "./StructuredMessageEncodingStream-react-native.mjs";
|
|
5
|
+
export * from "./StructuredMessageDecodingStream-react-native.mjs";
|
|
6
|
+
export * from "./StorageCRC64Calculator.js";
|
|
7
|
+
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
8
|
+
export type * from "./interfaces-react-native.mjs";
|
|
9
|
+
export * from "./StorageBrowserPolicyFactory.js";
|
|
10
|
+
export * from "./credentials/AnonymousCredential.js";
|
|
11
|
+
export * from "./credentials/Credential.js";
|
|
12
|
+
export * from "./credentials/StorageSharedKeyCredential-react-native.mjs";
|
|
13
|
+
export * from "./StorageRetryPolicyFactory.js";
|
|
14
|
+
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
15
|
+
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
16
|
+
export * from "./policies/CredentialPolicy.js";
|
|
17
|
+
export * from "./policies/StorageBrowserPolicyV2-react-native.mjs";
|
|
18
|
+
export * from "./policies/StorageCorrectContentLengthPolicy-react-native.mjs";
|
|
19
|
+
export * from "./policies/StorageRetryPolicyV2.js";
|
|
20
|
+
export * from "./policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs";
|
|
21
|
+
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
22
|
+
export * from "./credentials/UserDelegationKeyCredential-react-native.mjs";
|
|
23
|
+
export type { UserDelegationKey } from "./credentials/UserDelegationKey.js";
|
|
24
|
+
export type Readable = never;
|
|
25
|
+
//# sourceMappingURL=indexPlatform-browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexPlatform-browser.d.mts","sourceRoot":"","sources":["../../src/indexPlatform-browser.mts"],"names":[],"mappings":"AAGA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,mBAAmB,sBAAsB,CAAC;AAE1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kDAAkD,CAAC;AAEjE,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sDAAsD,CAAC;AACrE,cAAc,oCAAoC,CAAC;AACnD,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export * from "./BufferScheduler-react-native.mjs";
|
|
4
|
+
export * from "./bufferHelpers-react-native.mjs";
|
|
5
|
+
export { createBlobFromData } from "./bufferHelpers.common.js";
|
|
6
|
+
export * from "./StructuredMessageEncodingStream-react-native.mjs";
|
|
7
|
+
export * from "./StructuredMessageDecodingStream-react-native.mjs";
|
|
8
|
+
export * from "./StorageCRC64Calculator.js";
|
|
9
|
+
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
10
|
+
export * from "./StorageBrowserPolicyFactory.js";
|
|
11
|
+
export * from "./credentials/AnonymousCredential.js";
|
|
12
|
+
export * from "./credentials/Credential.js";
|
|
13
|
+
export * from "./credentials/StorageSharedKeyCredential-react-native.mjs";
|
|
14
|
+
export * from "./StorageRetryPolicyFactory.js";
|
|
15
|
+
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
16
|
+
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
17
|
+
export * from "./policies/CredentialPolicy.js";
|
|
18
|
+
export * from "./policies/StorageBrowserPolicyV2-react-native.mjs";
|
|
19
|
+
export * from "./policies/StorageCorrectContentLengthPolicy-react-native.mjs";
|
|
20
|
+
export * from "./policies/StorageRetryPolicyV2.js";
|
|
21
|
+
export * from "./policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs";
|
|
22
|
+
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
23
|
+
export * from "./credentials/UserDelegationKeyCredential-react-native.mjs";
|
|
24
|
+
//# sourceMappingURL=indexPlatform-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexPlatform-browser.mjs","sourceRoot":"","sources":["../../src/indexPlatform-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAGxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kDAAkD,CAAC;AAEjE,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sDAAsD,CAAC;AACrE,cAAc,oCAAoC,CAAC;AACnD,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"#platform/BufferScheduler\";\nexport * from \"#platform/bufferHelpers\";\nexport { createBlobFromData } from \"./bufferHelpers.common.js\";\nexport * from \"#platform/StructuredMessageEncodingStream\";\nexport * from \"#platform/StructuredMessageDecodingStream\";\nexport * from \"./StorageCRC64Calculator.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\nexport type * from \"#platform/interfaces\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"#platform/credentials/StorageSharedKeyCredential\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"#platform/policies/StorageBrowserPolicyV2\";\nexport * from \"#platform/policies/StorageCorrectContentLengthPolicy\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"#platform/policies/StorageSharedKeyCredentialPolicyV2\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"#platform/credentials/UserDelegationKeyCredential\";\nexport type { UserDelegationKey } from \"./credentials/UserDelegationKey.js\";\n\n// Readable is Node.js only - export a never type for browser builds\nexport type Readable = never;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexPlatform-react-native.d.mts","sourceRoot":"","sources":["../../src/indexPlatform-react-native.mts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexPlatform-react-native.mjs","sourceRoot":"","sources":["../../src/indexPlatform-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./indexPlatform-browser.mjs\";\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NodeReadableStream } from "@azure/core-rest-pipeline";
|
|
2
|
+
/**
|
|
3
|
+
* A Node.js Readable stream that also has a `destroy` method.
|
|
4
|
+
* In browser environments, this type is `never` since Node streams are not available.
|
|
5
|
+
*/
|
|
6
|
+
export type NodeJSReadableStream = NodeReadableStream extends never ? never : NodeReadableStream & {
|
|
7
|
+
/**
|
|
8
|
+
* Destroy the stream. Optionally emit an 'error' event, and emit a
|
|
9
|
+
* 'close' event (unless emitClose is set to false). After this call,
|
|
10
|
+
* internal resources will be released.
|
|
11
|
+
*/
|
|
12
|
+
destroy(error?: Error): NodeJSReadableStream;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=interfaces-browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces-browser.d.mts","sourceRoot":"","sources":["../../src/interfaces-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,SAAS,KAAK,GAC/D,KAAK,GACL,kBAAkB,GAAG;IACnB;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,oBAAoB,CAAC;CAC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces-browser.mjs","sourceRoot":"","sources":["../../src/interfaces-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { NodeReadableStream } from \"@azure/core-rest-pipeline\";\n\n/**\n * A Node.js Readable stream that also has a `destroy` method.\n * In browser environments, this type is `never` since Node streams are not available.\n */\nexport type NodeJSReadableStream = NodeReadableStream extends never\n ? never\n : NodeReadableStream & {\n /**\n * Destroy the stream. Optionally emit an 'error' event, and emit a\n * 'close' event (unless emitClose is set to false). After this call,\n * internal resources will be released.\n */\n destroy(error?: Error): NodeJSReadableStream;\n };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces-react-native.d.mts","sourceRoot":"","sources":["../../src/interfaces-react-native.mts"],"names":[],"mappings":"AAGA,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces-react-native.mjs","sourceRoot":"","sources":["../../src/interfaces-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { NodeJSReadableStream } from \"./interfaces-browser.mjs\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicy-browser.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIvD;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB;IACzD;;;;OAIG;gBAGS,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB;IAIpE;;;;OAIG;IACU,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAgB/E"}
|
package/dist/react-native/policies/{StorageBrowserPolicy.js → StorageBrowserPolicy-browser.mjs}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
4
|
-
import { isNodeLike } from "@azure/core-util";
|
|
5
4
|
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
|
6
5
|
import { setURLParameter } from "../utils/utils.common.js";
|
|
7
6
|
/**
|
|
@@ -32,9 +31,6 @@ export class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
|
32
31
|
* @param request -
|
|
33
32
|
*/
|
|
34
33
|
async sendRequest(request) {
|
|
35
|
-
if (isNodeLike) {
|
|
36
|
-
return this._nextPolicy.sendRequest(request);
|
|
37
|
-
}
|
|
38
34
|
if (request.method.toUpperCase() === "GET" || request.method.toUpperCase() === "HEAD") {
|
|
39
35
|
request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
|
|
40
36
|
}
|
|
@@ -44,4 +40,4 @@ export class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
|
44
40
|
return this._nextPolicy.sendRequest(request);
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
|
-
//# sourceMappingURL=StorageBrowserPolicy.
|
|
43
|
+
//# sourceMappingURL=StorageBrowserPolicy-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicy-browser.mjs","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IACzD;;;;OAIG;IACH,wGAAwG;IACxG,uEAAuE;IACvE,YAAY,UAAyB,EAAE,OAA6B;QAClE,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,WAAW,CAAC,OAAoB;QAC3C,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;YACtF,OAAO,CAAC,GAAG,GAAG,eAAe,CAC3B,OAAO,CAAC,GAAG,EACX,YAAY,CAAC,UAAU,CAAC,sBAAsB,EAC9C,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAChC,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAE/C,oFAAoF;QACpF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;QAEvD,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\nimport { BaseRequestPolicy } from \"./RequestPolicy.js\";\nimport { HeaderConstants, URLConstants } from \"../utils/constants.js\";\nimport { setURLParameter } from \"../utils/utils.common.js\";\n\n/**\n * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:\n *\n * 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.\n * StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL\n * thus avoid the browser cache.\n *\n * 2. Remove cookie header for security\n *\n * 3. Remove content-length header to avoid browsers warning\n */\nexport class StorageBrowserPolicy extends BaseRequestPolicy {\n /**\n * Creates an instance of StorageBrowserPolicy.\n * @param nextPolicy -\n * @param options -\n */\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions) {\n super(nextPolicy, options);\n }\n\n /**\n * Sends out request.\n *\n * @param request -\n */\n public async sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n if (request.method.toUpperCase() === \"GET\" || request.method.toUpperCase() === \"HEAD\") {\n request.url = setURLParameter(\n request.url,\n URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,\n new Date().getTime().toString(),\n );\n }\n\n request.headers.remove(HeaderConstants.COOKIE);\n\n // According to XHR standards, content-length should be fully controlled by browsers\n request.headers.remove(HeaderConstants.CONTENT_LENGTH);\n\n return this._nextPolicy.sendRequest(request);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicy-react-native.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy-react-native.mts"],"names":[],"mappings":"AAGA,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicy-react-native.mjs","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,oCAAoC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./StorageBrowserPolicy-browser.mjs\";\n"]}
|
|
@@ -8,4 +8,4 @@ export declare const storageBrowserPolicyName = "storageBrowserPolicy";
|
|
|
8
8
|
* and to remove cookies and explicit content-length headers.
|
|
9
9
|
*/
|
|
10
10
|
export declare function storageBrowserPolicy(): PipelinePolicy;
|
|
11
|
-
//# sourceMappingURL=StorageBrowserPolicyV2.d.
|
|
11
|
+
//# sourceMappingURL=StorageBrowserPolicyV2-browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicyV2-browser.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,cAAc,CAmBrD"}
|
package/dist/react-native/policies/{StorageBrowserPolicyV2.js → StorageBrowserPolicyV2-browser.mjs}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { isNodeLike } from "@azure/core-util";
|
|
4
3
|
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
|
5
4
|
import { setURLParameter } from "../utils/utils.common.js";
|
|
6
5
|
/**
|
|
@@ -15,9 +14,6 @@ export function storageBrowserPolicy() {
|
|
|
15
14
|
return {
|
|
16
15
|
name: storageBrowserPolicyName,
|
|
17
16
|
async sendRequest(request, next) {
|
|
18
|
-
if (isNodeLike) {
|
|
19
|
-
return next(request);
|
|
20
|
-
}
|
|
21
17
|
if (request.method === "GET" || request.method === "HEAD") {
|
|
22
18
|
request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
|
|
23
19
|
}
|
|
@@ -28,4 +24,4 @@ export function storageBrowserPolicy() {
|
|
|
28
24
|
},
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
|
-
//# sourceMappingURL=StorageBrowserPolicyV2.
|
|
27
|
+
//# sourceMappingURL=StorageBrowserPolicyV2-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicyV2-browser.mjs","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAC1D,OAAO,CAAC,GAAG,GAAG,eAAe,CAC3B,OAAO,CAAC,GAAG,EACX,YAAY,CAAC,UAAU,CAAC,sBAAsB,EAC9C,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAChC,CAAC;YACJ,CAAC;YAED,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAE/C,oFAAoF;YACpF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n PipelinePolicy,\n} from \"@azure/core-rest-pipeline\";\nimport { HeaderConstants, URLConstants } from \"../utils/constants.js\";\nimport { setURLParameter } from \"../utils/utils.common.js\";\n\n/**\n * The programmatic identifier of the StorageBrowserPolicy.\n */\nexport const storageBrowserPolicyName = \"storageBrowserPolicy\";\n\n/**\n * storageBrowserPolicy is a policy used to prevent browsers from caching requests\n * and to remove cookies and explicit content-length headers.\n */\nexport function storageBrowserPolicy(): PipelinePolicy {\n return {\n name: storageBrowserPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n if (request.method === \"GET\" || request.method === \"HEAD\") {\n request.url = setURLParameter(\n request.url,\n URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,\n new Date().getTime().toString(),\n );\n }\n\n request.headers.delete(HeaderConstants.COOKIE);\n\n // According to XHR standards, content-length should be fully controlled by browsers\n request.headers.delete(HeaderConstants.CONTENT_LENGTH);\n return next(request);\n },\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicyV2-react-native.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2-react-native.mts"],"names":[],"mappings":"AAGA,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBrowserPolicyV2-react-native.mjs","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sCAAsC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./StorageBrowserPolicyV2-browser.mjs\";\n"]}
|
|
@@ -7,4 +7,4 @@ export declare const storageCorrectContentLengthPolicyName = "StorageCorrectCont
|
|
|
7
7
|
* storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.
|
|
8
8
|
*/
|
|
9
9
|
export declare function storageCorrectContentLengthPolicy(): PipelinePolicy;
|
|
10
|
-
//# sourceMappingURL=StorageCorrectContentLengthPolicy.d.
|
|
10
|
+
//# sourceMappingURL=StorageCorrectContentLengthPolicy-browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageCorrectContentLengthPolicy-browser.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageCorrectContentLengthPolicy-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,qCAAqC,sCAAsC,CAAC;AAEzF;;GAEG;AACH,wBAAgB,iCAAiC,IAAI,cAAc,CAOlE"}
|