@azure/storage-blob 12.29.1 → 12.30.0-alpha.20251111.1
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/BlobBatch.d.ts +1 -2
- package/dist/browser/BlobBatch.d.ts.map +1 -1
- package/dist/browser/BlobBatch.js +1 -3
- package/dist/browser/BlobBatch.js.map +1 -1
- package/dist/browser/BlobBatchClient.d.ts +1 -2
- package/dist/browser/BlobBatchClient.d.ts.map +1 -1
- package/dist/browser/BlobBatchClient.js +1 -1
- package/dist/browser/BlobBatchClient.js.map +1 -1
- package/dist/browser/BlobServiceClient.d.ts +1 -2
- package/dist/browser/BlobServiceClient.d.ts.map +1 -1
- package/dist/browser/BlobServiceClient.js +1 -2
- package/dist/browser/BlobServiceClient.js.map +1 -1
- package/dist/browser/Clients.d.ts +1 -2
- package/dist/browser/Clients.d.ts.map +1 -1
- package/dist/browser/Clients.js +1 -2
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/ContainerClient.d.ts +1 -2
- package/dist/browser/ContainerClient.d.ts.map +1 -1
- package/dist/browser/ContainerClient.js +1 -2
- package/dist/browser/ContainerClient.js.map +1 -1
- package/dist/browser/Pipeline.d.ts +2 -3
- package/dist/browser/Pipeline.d.ts.map +1 -1
- package/dist/browser/Pipeline.js +1 -9
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/StorageClient.d.ts +1 -2
- package/dist/browser/StorageClient.d.ts.map +1 -1
- package/dist/browser/StorageClient.js.map +1 -1
- package/dist/browser/index-browser.d.mts.map +1 -1
- package/dist/browser/index-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +1 -7
- package/dist/browser/index.js +2 -7
- package/dist/browser/sas/AccountSASSignatureValues.d.ts +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.d.ts.map +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.js +1 -1
- package/dist/browser/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/commonjs/BlobBatch.d.ts +1 -2
- package/dist/commonjs/BlobBatch.d.ts.map +1 -1
- package/dist/commonjs/BlobBatch.js +7 -9
- package/dist/commonjs/BlobBatch.js.map +1 -1
- package/dist/commonjs/BlobBatchClient.d.ts +1 -2
- package/dist/commonjs/BlobBatchClient.d.ts.map +1 -1
- package/dist/commonjs/BlobBatchClient.js +2 -2
- package/dist/commonjs/BlobBatchClient.js.map +1 -1
- package/dist/commonjs/BlobServiceClient.d.ts +1 -2
- package/dist/commonjs/BlobServiceClient.d.ts.map +1 -1
- package/dist/commonjs/BlobServiceClient.js +8 -9
- package/dist/commonjs/BlobServiceClient.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +1 -2
- package/dist/commonjs/Clients.d.ts.map +1 -1
- package/dist/commonjs/Clients.js +25 -26
- package/dist/commonjs/Clients.js.map +1 -1
- package/dist/commonjs/ContainerClient.d.ts +1 -2
- package/dist/commonjs/ContainerClient.d.ts.map +1 -1
- package/dist/commonjs/ContainerClient.js +8 -9
- package/dist/commonjs/ContainerClient.js.map +1 -1
- package/dist/commonjs/Pipeline.d.ts +2 -3
- package/dist/commonjs/Pipeline.d.ts.map +1 -1
- package/dist/commonjs/Pipeline.js +12 -20
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/StorageClient.d.ts +1 -2
- package/dist/commonjs/StorageClient.d.ts.map +1 -1
- package/dist/commonjs/StorageClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -10
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +14 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.d.ts.map +1 -1
- package/dist/commonjs/sas/BlobSASSignatureValues.js +2 -2
- package/dist/commonjs/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils/constants.js +1 -1
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/esm/BlobBatch.d.ts +1 -2
- package/dist/esm/BlobBatch.d.ts.map +1 -1
- package/dist/esm/BlobBatch.js +1 -3
- package/dist/esm/BlobBatch.js.map +1 -1
- package/dist/esm/BlobBatchClient.d.ts +1 -2
- package/dist/esm/BlobBatchClient.d.ts.map +1 -1
- package/dist/esm/BlobBatchClient.js +1 -1
- package/dist/esm/BlobBatchClient.js.map +1 -1
- package/dist/esm/BlobServiceClient.d.ts +1 -2
- package/dist/esm/BlobServiceClient.d.ts.map +1 -1
- package/dist/esm/BlobServiceClient.js +1 -2
- package/dist/esm/BlobServiceClient.js.map +1 -1
- package/dist/esm/Clients.d.ts +1 -2
- package/dist/esm/Clients.d.ts.map +1 -1
- package/dist/esm/Clients.js +1 -2
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/ContainerClient.d.ts +1 -2
- package/dist/esm/ContainerClient.d.ts.map +1 -1
- package/dist/esm/ContainerClient.js +1 -2
- package/dist/esm/ContainerClient.js.map +1 -1
- package/dist/esm/Pipeline.d.ts +2 -3
- package/dist/esm/Pipeline.d.ts.map +1 -1
- package/dist/esm/Pipeline.js +1 -9
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/StorageClient.d.ts +1 -2
- package/dist/esm/StorageClient.d.ts.map +1 -1
- package/dist/esm/StorageClient.js.map +1 -1
- package/dist/esm/index.d.ts +1 -10
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.d.ts +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.d.ts.map +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.js +1 -1
- package/dist/esm/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/react-native/BlobBatch.d.ts +1 -2
- package/dist/react-native/BlobBatch.d.ts.map +1 -1
- package/dist/react-native/BlobBatch.js +1 -3
- package/dist/react-native/BlobBatch.js.map +1 -1
- package/dist/react-native/BlobBatchClient.d.ts +1 -2
- package/dist/react-native/BlobBatchClient.d.ts.map +1 -1
- package/dist/react-native/BlobBatchClient.js +1 -1
- package/dist/react-native/BlobBatchClient.js.map +1 -1
- package/dist/react-native/BlobServiceClient.d.ts +1 -2
- package/dist/react-native/BlobServiceClient.d.ts.map +1 -1
- package/dist/react-native/BlobServiceClient.js +1 -2
- package/dist/react-native/BlobServiceClient.js.map +1 -1
- package/dist/react-native/Clients.d.ts +1 -2
- package/dist/react-native/Clients.d.ts.map +1 -1
- package/dist/react-native/Clients.js +1 -2
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/ContainerClient.d.ts +1 -2
- package/dist/react-native/ContainerClient.d.ts.map +1 -1
- package/dist/react-native/ContainerClient.js +1 -2
- package/dist/react-native/ContainerClient.js.map +1 -1
- package/dist/react-native/Pipeline.d.ts +2 -3
- package/dist/react-native/Pipeline.d.ts.map +1 -1
- package/dist/react-native/Pipeline.js +1 -9
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/StorageClient.d.ts +1 -2
- package/dist/react-native/StorageClient.d.ts.map +1 -1
- package/dist/react-native/StorageClient.js.map +1 -1
- package/dist/react-native/index.d.ts +1 -10
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -10
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.d.ts +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.d.ts.map +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.js +1 -1
- package/dist/react-native/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/package.json +18 -18
- package/dist/browser/StorageBrowserPolicyFactory.d.ts +0 -16
- package/dist/browser/StorageBrowserPolicyFactory.d.ts.map +0 -1
- package/dist/browser/StorageBrowserPolicyFactory.js +0 -19
- package/dist/browser/StorageBrowserPolicyFactory.js.map +0 -1
- package/dist/browser/StorageRetryPolicyFactory.d.ts +0 -66
- package/dist/browser/StorageRetryPolicyFactory.d.ts.map +0 -1
- package/dist/browser/StorageRetryPolicyFactory.js +0 -28
- package/dist/browser/StorageRetryPolicyFactory.js.map +0 -1
- package/dist/browser/credentials/AnonymousCredential.d.ts +0 -19
- package/dist/browser/credentials/AnonymousCredential.d.ts.map +0 -1
- package/dist/browser/credentials/AnonymousCredential.js +0 -22
- package/dist/browser/credentials/AnonymousCredential.js.map +0 -1
- package/dist/browser/credentials/Credential.d.ts +0 -20
- package/dist/browser/credentials/Credential.d.ts.map +0 -1
- package/dist/browser/credentials/Credential.js +0 -18
- package/dist/browser/credentials/Credential.js.map +0 -1
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/StorageSharedKeyCredential.d.ts +0 -3
- package/dist/browser/credentials/StorageSharedKeyCredential.js +0 -5
- package/dist/browser/policies/AnonymousCredentialPolicy.d.ts +0 -15
- package/dist/browser/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
- package/dist/browser/policies/AnonymousCredentialPolicy.js +0 -20
- package/dist/browser/policies/AnonymousCredentialPolicy.js.map +0 -1
- package/dist/browser/policies/CredentialPolicy.d.ts +0 -22
- package/dist/browser/policies/CredentialPolicy.d.ts.map +0 -1
- package/dist/browser/policies/CredentialPolicy.js +0 -29
- package/dist/browser/policies/CredentialPolicy.js.map +0 -1
- package/dist/browser/policies/RequestPolicy.d.ts +0 -45
- package/dist/browser/policies/RequestPolicy.d.ts.map +0 -1
- package/dist/browser/policies/RequestPolicy.js +0 -42
- package/dist/browser/policies/RequestPolicy.js.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicy.d.ts +0 -28
- package/dist/browser/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicy.js +0 -47
- package/dist/browser/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicyV2.d.ts +0 -11
- package/dist/browser/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/browser/policies/StorageBrowserPolicyV2.js +0 -31
- package/dist/browser/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.d.mts.map +0 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.mjs.map +0 -1
- package/dist/browser/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
- package/dist/browser/policies/StorageCorrectContentLengthPolicy.js +0 -18
- package/dist/browser/policies/StorageRetryPolicy.d.ts +0 -62
- package/dist/browser/policies/StorageRetryPolicy.d.ts.map +0 -1
- package/dist/browser/policies/StorageRetryPolicy.js +0 -219
- package/dist/browser/policies/StorageRetryPolicy.js.map +0 -1
- package/dist/browser/policies/StorageRetryPolicyType.d.ts +0 -14
- package/dist/browser/policies/StorageRetryPolicyType.d.ts.map +0 -1
- package/dist/browser/policies/StorageRetryPolicyType.js +0 -17
- package/dist/browser/policies/StorageRetryPolicyType.js.map +0 -1
- package/dist/browser/policies/StorageRetryPolicyV2.d.ts +0 -11
- package/dist/browser/policies/StorageRetryPolicyV2.d.ts.map +0 -1
- package/dist/browser/policies/StorageRetryPolicyV2.js +0 -164
- package/dist/browser/policies/StorageRetryPolicyV2.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-browser.d.mts.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.mjs.map +0 -1
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
- package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.js +0 -18
- package/dist/commonjs/StorageBrowserPolicyFactory.d.ts +0 -16
- package/dist/commonjs/StorageBrowserPolicyFactory.d.ts.map +0 -1
- package/dist/commonjs/StorageBrowserPolicyFactory.js +0 -23
- package/dist/commonjs/StorageBrowserPolicyFactory.js.map +0 -1
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts +0 -66
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts.map +0 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js +0 -33
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +0 -1
- package/dist/commonjs/credentials/AnonymousCredential.d.ts +0 -19
- package/dist/commonjs/credentials/AnonymousCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/AnonymousCredential.js +0 -26
- package/dist/commonjs/credentials/AnonymousCredential.js.map +0 -1
- package/dist/commonjs/credentials/Credential.d.ts +0 -20
- package/dist/commonjs/credentials/Credential.d.ts.map +0 -1
- package/dist/commonjs/credentials/Credential.js +0 -22
- package/dist/commonjs/credentials/Credential.js.map +0 -1
- package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts +0 -38
- package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js +0 -52
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts +0 -15
- package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/AnonymousCredentialPolicy.js +0 -24
- package/dist/commonjs/policies/AnonymousCredentialPolicy.js.map +0 -1
- package/dist/commonjs/policies/CredentialPolicy.d.ts +0 -22
- package/dist/commonjs/policies/CredentialPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/CredentialPolicy.js +0 -33
- package/dist/commonjs/policies/CredentialPolicy.js.map +0 -1
- package/dist/commonjs/policies/RequestPolicy.d.ts +0 -45
- package/dist/commonjs/policies/RequestPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/RequestPolicy.js +0 -46
- package/dist/commonjs/policies/RequestPolicy.js.map +0 -1
- package/dist/commonjs/policies/StorageBrowserPolicy.d.ts +0 -28
- package/dist/commonjs/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageBrowserPolicy.js +0 -51
- package/dist/commonjs/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts +0 -11
- package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageBrowserPolicyV2.js +0 -35
- package/dist/commonjs/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js +0 -31
- package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicy.d.ts +0 -62
- package/dist/commonjs/policies/StorageRetryPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js +0 -224
- package/dist/commonjs/policies/StorageRetryPolicy.js.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicyType.d.ts +0 -14
- package/dist/commonjs/policies/StorageRetryPolicyType.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicyType.js +0 -20
- package/dist/commonjs/policies/StorageRetryPolicyType.js.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts +0 -11
- package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.js +0 -168
- package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +0 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js +0 -149
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js +0 -136
- package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
- package/dist/esm/StorageBrowserPolicyFactory.d.ts +0 -16
- package/dist/esm/StorageBrowserPolicyFactory.d.ts.map +0 -1
- package/dist/esm/StorageBrowserPolicyFactory.js +0 -19
- package/dist/esm/StorageBrowserPolicyFactory.js.map +0 -1
- package/dist/esm/StorageRetryPolicyFactory.d.ts +0 -66
- package/dist/esm/StorageRetryPolicyFactory.d.ts.map +0 -1
- package/dist/esm/StorageRetryPolicyFactory.js +0 -28
- package/dist/esm/StorageRetryPolicyFactory.js.map +0 -1
- package/dist/esm/credentials/AnonymousCredential.d.ts +0 -19
- package/dist/esm/credentials/AnonymousCredential.d.ts.map +0 -1
- package/dist/esm/credentials/AnonymousCredential.js +0 -22
- package/dist/esm/credentials/AnonymousCredential.js.map +0 -1
- package/dist/esm/credentials/Credential.d.ts +0 -20
- package/dist/esm/credentials/Credential.d.ts.map +0 -1
- package/dist/esm/credentials/Credential.js +0 -18
- package/dist/esm/credentials/Credential.js.map +0 -1
- package/dist/esm/credentials/StorageSharedKeyCredential.d.ts +0 -38
- package/dist/esm/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
- package/dist/esm/credentials/StorageSharedKeyCredential.js +0 -48
- package/dist/esm/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist/esm/policies/AnonymousCredentialPolicy.d.ts +0 -15
- package/dist/esm/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
- package/dist/esm/policies/AnonymousCredentialPolicy.js +0 -20
- package/dist/esm/policies/AnonymousCredentialPolicy.js.map +0 -1
- package/dist/esm/policies/CredentialPolicy.d.ts +0 -22
- package/dist/esm/policies/CredentialPolicy.d.ts.map +0 -1
- package/dist/esm/policies/CredentialPolicy.js +0 -29
- package/dist/esm/policies/CredentialPolicy.js.map +0 -1
- package/dist/esm/policies/RequestPolicy.d.ts +0 -45
- package/dist/esm/policies/RequestPolicy.d.ts.map +0 -1
- package/dist/esm/policies/RequestPolicy.js +0 -42
- package/dist/esm/policies/RequestPolicy.js.map +0 -1
- package/dist/esm/policies/StorageBrowserPolicy.d.ts +0 -28
- package/dist/esm/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/esm/policies/StorageBrowserPolicy.js +0 -47
- package/dist/esm/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/esm/policies/StorageBrowserPolicyV2.d.ts +0 -11
- package/dist/esm/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/esm/policies/StorageBrowserPolicyV2.js +0 -31
- package/dist/esm/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
- package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
- package/dist/esm/policies/StorageCorrectContentLengthPolicy.js +0 -27
- package/dist/esm/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist/esm/policies/StorageRetryPolicy.d.ts +0 -62
- package/dist/esm/policies/StorageRetryPolicy.d.ts.map +0 -1
- package/dist/esm/policies/StorageRetryPolicy.js +0 -219
- package/dist/esm/policies/StorageRetryPolicy.js.map +0 -1
- package/dist/esm/policies/StorageRetryPolicyType.d.ts +0 -14
- package/dist/esm/policies/StorageRetryPolicyType.d.ts.map +0 -1
- package/dist/esm/policies/StorageRetryPolicyType.js +0 -17
- package/dist/esm/policies/StorageRetryPolicyType.js.map +0 -1
- package/dist/esm/policies/StorageRetryPolicyV2.d.ts +0 -11
- package/dist/esm/policies/StorageRetryPolicyV2.d.ts.map +0 -1
- package/dist/esm/policies/StorageRetryPolicyV2.js +0 -164
- package/dist/esm/policies/StorageRetryPolicyV2.js.map +0 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js +0 -145
- package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
- package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
- package/dist/react-native/StorageBrowserPolicyFactory.d.ts +0 -16
- package/dist/react-native/StorageBrowserPolicyFactory.d.ts.map +0 -1
- package/dist/react-native/StorageBrowserPolicyFactory.js +0 -19
- package/dist/react-native/StorageBrowserPolicyFactory.js.map +0 -1
- package/dist/react-native/StorageRetryPolicyFactory.d.ts +0 -66
- package/dist/react-native/StorageRetryPolicyFactory.d.ts.map +0 -1
- package/dist/react-native/StorageRetryPolicyFactory.js +0 -28
- package/dist/react-native/StorageRetryPolicyFactory.js.map +0 -1
- package/dist/react-native/credentials/AnonymousCredential.d.ts +0 -19
- package/dist/react-native/credentials/AnonymousCredential.d.ts.map +0 -1
- package/dist/react-native/credentials/AnonymousCredential.js +0 -22
- package/dist/react-native/credentials/AnonymousCredential.js.map +0 -1
- package/dist/react-native/credentials/Credential.d.ts +0 -20
- package/dist/react-native/credentials/Credential.d.ts.map +0 -1
- package/dist/react-native/credentials/Credential.js +0 -18
- package/dist/react-native/credentials/Credential.js.map +0 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +0 -38
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential.js +0 -48
- package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts +0 -15
- package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/AnonymousCredentialPolicy.js +0 -20
- package/dist/react-native/policies/AnonymousCredentialPolicy.js.map +0 -1
- package/dist/react-native/policies/CredentialPolicy.d.ts +0 -22
- package/dist/react-native/policies/CredentialPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/CredentialPolicy.js +0 -29
- package/dist/react-native/policies/CredentialPolicy.js.map +0 -1
- package/dist/react-native/policies/RequestPolicy.d.ts +0 -45
- package/dist/react-native/policies/RequestPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/RequestPolicy.js +0 -42
- package/dist/react-native/policies/RequestPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicy.d.ts +0 -28
- package/dist/react-native/policies/StorageBrowserPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicy.js +0 -47
- package/dist/react-native/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts +0 -11
- package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageBrowserPolicyV2.js +0 -31
- package/dist/react-native/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js +0 -27
- package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicy.d.ts +0 -62
- package/dist/react-native/policies/StorageRetryPolicy.d.ts.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicy.js +0 -219
- package/dist/react-native/policies/StorageRetryPolicy.js.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicyType.d.ts +0 -14
- package/dist/react-native/policies/StorageRetryPolicyType.d.ts.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicyType.js +0 -17
- package/dist/react-native/policies/StorageRetryPolicyType.js.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.d.ts +0 -11
- package/dist/react-native/policies/StorageRetryPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.js +0 -164
- package/dist/react-native/policies/StorageRetryPolicyV2.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 +0 -17
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions } from "@azure/core-http-compat";
|
|
2
|
-
import { StorageSharedKeyCredentialPolicy } from "../policies/StorageSharedKeyCredentialPolicy.js";
|
|
3
|
-
import { Credential } from "./Credential.js";
|
|
4
|
-
/**
|
|
5
|
-
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
6
|
-
*
|
|
7
|
-
* StorageSharedKeyCredential for account key authorization of Azure Storage service.
|
|
8
|
-
*/
|
|
9
|
-
export declare class StorageSharedKeyCredential extends Credential {
|
|
10
|
-
/**
|
|
11
|
-
* Azure Storage account name; readonly.
|
|
12
|
-
*/
|
|
13
|
-
readonly accountName: string;
|
|
14
|
-
/**
|
|
15
|
-
* Azure Storage account key; readonly.
|
|
16
|
-
*/
|
|
17
|
-
private readonly accountKey;
|
|
18
|
-
/**
|
|
19
|
-
* Creates an instance of StorageSharedKeyCredential.
|
|
20
|
-
* @param accountName -
|
|
21
|
-
* @param accountKey -
|
|
22
|
-
*/
|
|
23
|
-
constructor(accountName: string, accountKey: string);
|
|
24
|
-
/**
|
|
25
|
-
* Creates a StorageSharedKeyCredentialPolicy object.
|
|
26
|
-
*
|
|
27
|
-
* @param nextPolicy -
|
|
28
|
-
* @param options -
|
|
29
|
-
*/
|
|
30
|
-
create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy;
|
|
31
|
-
/**
|
|
32
|
-
* Generates a hash signature for an HTTP request or for a SAS.
|
|
33
|
-
*
|
|
34
|
-
* @param stringToSign -
|
|
35
|
-
*/
|
|
36
|
-
computeHMACSHA256(stringToSign: string): string;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=StorageSharedKeyCredential.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageSharedKeyCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACxD;;OAEG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IAEpC;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAMnD;;;;;OAKG;IACI,MAAM,CACX,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,oBAAoB,GAC5B,gCAAgC;IAInC;;;;OAIG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAGvD"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { createHmac } from "node:crypto";
|
|
4
|
-
import { StorageSharedKeyCredentialPolicy } from "../policies/StorageSharedKeyCredentialPolicy.js";
|
|
5
|
-
import { Credential } from "./Credential.js";
|
|
6
|
-
/**
|
|
7
|
-
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
8
|
-
*
|
|
9
|
-
* StorageSharedKeyCredential for account key authorization of Azure Storage service.
|
|
10
|
-
*/
|
|
11
|
-
export class StorageSharedKeyCredential extends Credential {
|
|
12
|
-
/**
|
|
13
|
-
* Azure Storage account name; readonly.
|
|
14
|
-
*/
|
|
15
|
-
accountName;
|
|
16
|
-
/**
|
|
17
|
-
* Azure Storage account key; readonly.
|
|
18
|
-
*/
|
|
19
|
-
accountKey;
|
|
20
|
-
/**
|
|
21
|
-
* Creates an instance of StorageSharedKeyCredential.
|
|
22
|
-
* @param accountName -
|
|
23
|
-
* @param accountKey -
|
|
24
|
-
*/
|
|
25
|
-
constructor(accountName, accountKey) {
|
|
26
|
-
super();
|
|
27
|
-
this.accountName = accountName;
|
|
28
|
-
this.accountKey = Buffer.from(accountKey, "base64");
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Creates a StorageSharedKeyCredentialPolicy object.
|
|
32
|
-
*
|
|
33
|
-
* @param nextPolicy -
|
|
34
|
-
* @param options -
|
|
35
|
-
*/
|
|
36
|
-
create(nextPolicy, options) {
|
|
37
|
-
return new StorageSharedKeyCredentialPolicy(nextPolicy, options, this);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Generates a hash signature for an HTTP request or for a SAS.
|
|
41
|
-
*
|
|
42
|
-
* @param stringToSign -
|
|
43
|
-
*/
|
|
44
|
-
computeHMACSHA256(stringToSign) {
|
|
45
|
-
return createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=StorageSharedKeyCredential.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageSharedKeyCredential.js","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,UAAU;IACxD;;OAEG;IACa,WAAW,CAAS;IAEpC;;OAEG;IACc,UAAU,CAAS;IAEpC;;;;OAIG;IACH,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CACX,UAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,gCAAgC,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,YAAoB;QAC3C,OAAO,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC7F,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createHmac } from \"node:crypto\";\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n} from \"@azure/core-http-compat\";\nimport { StorageSharedKeyCredentialPolicy } from \"../policies/StorageSharedKeyCredentialPolicy.js\";\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 * Azure Storage account key; readonly.\n */\n private readonly accountKey: Buffer;\n\n /**\n * Creates an instance of StorageSharedKeyCredential.\n * @param accountName -\n * @param accountKey -\n */\n constructor(accountName: string, accountKey: string) {\n super();\n this.accountName = accountName;\n this.accountKey = Buffer.from(accountKey, \"base64\");\n }\n\n /**\n * Creates a StorageSharedKeyCredentialPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(\n nextPolicy: RequestPolicy,\n options: RequestPolicyOptions,\n ): StorageSharedKeyCredentialPolicy {\n return new StorageSharedKeyCredentialPolicy(nextPolicy, options, this);\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 return createHmac(\"sha256\", this.accountKey).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions } from "@azure/core-http-compat";
|
|
2
|
-
import { CredentialPolicy } from "./CredentialPolicy.js";
|
|
3
|
-
/**
|
|
4
|
-
* AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
|
|
5
|
-
* or for use with Shared Access Signatures (SAS).
|
|
6
|
-
*/
|
|
7
|
-
export declare class AnonymousCredentialPolicy extends CredentialPolicy {
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of AnonymousCredentialPolicy.
|
|
10
|
-
* @param nextPolicy -
|
|
11
|
-
* @param options -
|
|
12
|
-
*/
|
|
13
|
-
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=AnonymousCredentialPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnonymousCredentialPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/AnonymousCredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D;;;;OAIG;gBAGS,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB;CAGrE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { CredentialPolicy } from "./CredentialPolicy.js";
|
|
4
|
-
/**
|
|
5
|
-
* AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
|
|
6
|
-
* or for use with Shared Access Signatures (SAS).
|
|
7
|
-
*/
|
|
8
|
-
export class AnonymousCredentialPolicy extends CredentialPolicy {
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of AnonymousCredentialPolicy.
|
|
11
|
-
* @param nextPolicy -
|
|
12
|
-
* @param options -
|
|
13
|
-
*/
|
|
14
|
-
// The base class has a protected constructor. Adding a public one to enable constructing of this class.
|
|
15
|
-
/* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/
|
|
16
|
-
constructor(nextPolicy, options) {
|
|
17
|
-
super(nextPolicy, options);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=AnonymousCredentialPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnonymousCredentialPolicy.js","sourceRoot":"","sources":["../../../src/policies/AnonymousCredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,yBAA0B,SAAQ,gBAAgB;IAC7D;;;;OAIG;IACH,wGAAwG;IACxG,uEAAuE;IACvE,YAAY,UAAyB,EAAE,OAA6B;QAClE,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7B,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 { CredentialPolicy } from \"./CredentialPolicy.js\";\n\n/**\n * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources\n * or for use with Shared Access Signatures (SAS).\n */\nexport class AnonymousCredentialPolicy extends CredentialPolicy {\n /**\n * Creates an instance of AnonymousCredentialPolicy.\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"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
2
|
-
import type { WebResourceLike as WebResource, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
|
|
3
|
-
/**
|
|
4
|
-
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
|
5
|
-
* abstract class.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class CredentialPolicy extends BaseRequestPolicy {
|
|
8
|
-
/**
|
|
9
|
-
* Sends out request.
|
|
10
|
-
*
|
|
11
|
-
* @param request -
|
|
12
|
-
*/
|
|
13
|
-
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Child classes must implement this method with request signing. This method
|
|
16
|
-
* will be executed in {@link sendRequest}.
|
|
17
|
-
*
|
|
18
|
-
* @param request -
|
|
19
|
-
*/
|
|
20
|
-
protected signRequest(request: WebResource): WebResource;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=CredentialPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/CredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,8BAAsB,gBAAiB,SAAQ,iBAAiB;IAC9D;;;;OAIG;IACI,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIxE;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW;CAKzD"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
4
|
-
/**
|
|
5
|
-
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
|
6
|
-
* abstract class.
|
|
7
|
-
*/
|
|
8
|
-
export class CredentialPolicy extends BaseRequestPolicy {
|
|
9
|
-
/**
|
|
10
|
-
* Sends out request.
|
|
11
|
-
*
|
|
12
|
-
* @param request -
|
|
13
|
-
*/
|
|
14
|
-
sendRequest(request) {
|
|
15
|
-
return this._nextPolicy.sendRequest(this.signRequest(request));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Child classes must implement this method with request signing. This method
|
|
19
|
-
* will be executed in {@link sendRequest}.
|
|
20
|
-
*
|
|
21
|
-
* @param request -
|
|
22
|
-
*/
|
|
23
|
-
signRequest(request) {
|
|
24
|
-
// Child classes must override this method with request signing. This method
|
|
25
|
-
// will be executed in sendRequest().
|
|
26
|
-
return request;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=CredentialPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialPolicy.js","sourceRoot":"","sources":["../../../src/policies/CredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAMvD;;;GAGG;AACH,MAAM,OAAgB,gBAAiB,SAAQ,iBAAiB;IAC9D;;;;OAIG;IACI,WAAW,CAAC,OAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACO,WAAW,CAAC,OAAoB;QACxC,4EAA4E;QAC5E,qCAAqC;QACrC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { BaseRequestPolicy } from \"./RequestPolicy.js\";\nimport type {\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\n\n/**\n * Credential policy used to sign HTTP(S) requests before sending. This is an\n * abstract class.\n */\nexport abstract class CredentialPolicy extends BaseRequestPolicy {\n /**\n * Sends out request.\n *\n * @param request -\n */\n public sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n return this._nextPolicy.sendRequest(this.signRequest(request));\n }\n\n /**\n * Child classes must implement this method with request signing. This method\n * will be executed in {@link sendRequest}.\n *\n * @param request -\n */\n protected signRequest(request: WebResource): WebResource {\n // Child classes must override this method with request signing. This method\n // will be executed in sendRequest().\n return request;\n }\n}\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { HttpPipelineLogLevel, RequestPolicy, RequestPolicyOptionsLike, WebResourceLike, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
|
|
2
|
-
/**
|
|
3
|
-
* The base class from which all request policies derive.
|
|
4
|
-
*/
|
|
5
|
-
export declare abstract class BaseRequestPolicy implements RequestPolicy {
|
|
6
|
-
/**
|
|
7
|
-
* The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
|
|
8
|
-
*/
|
|
9
|
-
readonly _nextPolicy: RequestPolicy;
|
|
10
|
-
/**
|
|
11
|
-
* The options that can be passed to a given request policy.
|
|
12
|
-
*/
|
|
13
|
-
readonly _options: RequestPolicyOptionsLike;
|
|
14
|
-
/**
|
|
15
|
-
* The main method to implement that manipulates a request/response.
|
|
16
|
-
*/
|
|
17
|
-
protected constructor(
|
|
18
|
-
/**
|
|
19
|
-
* The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
|
|
20
|
-
*/
|
|
21
|
-
_nextPolicy: RequestPolicy,
|
|
22
|
-
/**
|
|
23
|
-
* The options that can be passed to a given request policy.
|
|
24
|
-
*/
|
|
25
|
-
_options: RequestPolicyOptionsLike);
|
|
26
|
-
/**
|
|
27
|
-
* Sends a network request based on the given web resource.
|
|
28
|
-
* @param webResource - A {@link WebResourceLike} that describes a HTTP request to be made.
|
|
29
|
-
*/
|
|
30
|
-
abstract sendRequest(webResource: WebResourceLike): Promise<HttpOperationResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Get whether or not a log with the provided log level should be logged.
|
|
33
|
-
* @param logLevel - The log level of the log that will be logged.
|
|
34
|
-
* @returns Whether or not a log with the provided log level should be logged.
|
|
35
|
-
*/
|
|
36
|
-
shouldLog(logLevel: HttpPipelineLogLevel): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Attempt to log the provided message to the provided logger. If no logger was provided or if
|
|
39
|
-
* the log level does not meat the logger's threshold, then nothing will be logged.
|
|
40
|
-
* @param logLevel - The log level of this log.
|
|
41
|
-
* @param message - The message of this log.
|
|
42
|
-
*/
|
|
43
|
-
log(logLevel: HttpPipelineLogLevel, message: string): void;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=RequestPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/RequestPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,8BAAsB,iBAAkB,YAAW,aAAa;IAK5D;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,aAAa;IACnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,wBAAwB;IAX7C;;OAEG;IACH,SAAS;IACP;;OAEG;IACM,WAAW,EAAE,aAAa;IACnC;;OAEG;IACM,QAAQ,EAAE,wBAAwB;IAG7C;;;OAGG;aACa,WAAW,CAAC,WAAW,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAEzF;;;;OAIG;IACI,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,OAAO;IAIzD;;;;;OAKG;IACI,GAAG,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAGlE"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
/**
|
|
4
|
-
* The base class from which all request policies derive.
|
|
5
|
-
*/
|
|
6
|
-
export class BaseRequestPolicy {
|
|
7
|
-
_nextPolicy;
|
|
8
|
-
_options;
|
|
9
|
-
/**
|
|
10
|
-
* The main method to implement that manipulates a request/response.
|
|
11
|
-
*/
|
|
12
|
-
constructor(
|
|
13
|
-
/**
|
|
14
|
-
* The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
|
|
15
|
-
*/
|
|
16
|
-
_nextPolicy,
|
|
17
|
-
/**
|
|
18
|
-
* The options that can be passed to a given request policy.
|
|
19
|
-
*/
|
|
20
|
-
_options) {
|
|
21
|
-
this._nextPolicy = _nextPolicy;
|
|
22
|
-
this._options = _options;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Get whether or not a log with the provided log level should be logged.
|
|
26
|
-
* @param logLevel - The log level of the log that will be logged.
|
|
27
|
-
* @returns Whether or not a log with the provided log level should be logged.
|
|
28
|
-
*/
|
|
29
|
-
shouldLog(logLevel) {
|
|
30
|
-
return this._options.shouldLog(logLevel);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Attempt to log the provided message to the provided logger. If no logger was provided or if
|
|
34
|
-
* the log level does not meat the logger's threshold, then nothing will be logged.
|
|
35
|
-
* @param logLevel - The log level of this log.
|
|
36
|
-
* @param message - The message of this log.
|
|
37
|
-
*/
|
|
38
|
-
log(logLevel, message) {
|
|
39
|
-
this._options.log(logLevel, message);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=RequestPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestPolicy.js","sourceRoot":"","sources":["../../../src/policies/RequestPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC;;GAEG;AACH,MAAM,OAAgB,iBAAiB;IAQ1B;IAIA;IAXX;;OAEG;IACH;IACE;;OAEG;IACM,WAA0B;IACnC;;OAEG;IACM,QAAkC;QAJlC,gBAAW,GAAX,WAAW,CAAe;QAI1B,aAAQ,GAAR,QAAQ,CAA0B;IAC1C,CAAC;IAQJ;;;;OAIG;IACI,SAAS,CAAC,QAA8B;QAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,QAA8B,EAAE,OAAe;QACxD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpPipelineLogLevel,\n RequestPolicy,\n RequestPolicyOptionsLike,\n WebResourceLike,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\n\n/**\n * The base class from which all request policies derive.\n */\nexport abstract class BaseRequestPolicy implements RequestPolicy {\n /**\n * The main method to implement that manipulates a request/response.\n */\n protected constructor(\n /**\n * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.\n */\n readonly _nextPolicy: RequestPolicy,\n /**\n * The options that can be passed to a given request policy.\n */\n readonly _options: RequestPolicyOptionsLike,\n ) {}\n\n /**\n * Sends a network request based on the given web resource.\n * @param webResource - A {@link WebResourceLike} that describes a HTTP request to be made.\n */\n public abstract sendRequest(webResource: WebResourceLike): Promise<HttpOperationResponse>;\n\n /**\n * Get whether or not a log with the provided log level should be logged.\n * @param logLevel - The log level of the log that will be logged.\n * @returns Whether or not a log with the provided log level should be logged.\n */\n public shouldLog(logLevel: HttpPipelineLogLevel): boolean {\n return this._options.shouldLog(logLevel);\n }\n\n /**\n * Attempt to log the provided message to the provided logger. If no logger was provided or if\n * the log level does not meat the logger's threshold, then nothing will be logged.\n * @param logLevel - The log level of this log.\n * @param message - The message of this log.\n */\n public log(logLevel: HttpPipelineLogLevel, message: string): void {\n this._options.log(logLevel, message);\n }\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, WebResourceLike as WebResource, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
|
|
2
|
-
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
3
|
-
/**
|
|
4
|
-
* StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
|
|
5
|
-
*
|
|
6
|
-
* 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.
|
|
7
|
-
* StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL
|
|
8
|
-
* thus avoid the browser cache.
|
|
9
|
-
*
|
|
10
|
-
* 2. Remove cookie header for security
|
|
11
|
-
*
|
|
12
|
-
* 3. Remove content-length header to avoid browsers warning
|
|
13
|
-
*/
|
|
14
|
-
export declare class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
15
|
-
/**
|
|
16
|
-
* Creates an instance of StorageBrowserPolicy.
|
|
17
|
-
* @param nextPolicy -
|
|
18
|
-
* @param options -
|
|
19
|
-
*/
|
|
20
|
-
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Sends out request.
|
|
23
|
-
*
|
|
24
|
-
* @param request -
|
|
25
|
-
*/
|
|
26
|
-
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=StorageBrowserPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageBrowserPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy.ts"],"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;AAKvD;;;;;;;;;;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;CAoB/E"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
4
|
-
import { isNodeLike } from "@azure/core-util";
|
|
5
|
-
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
|
6
|
-
import { setURLParameter } from "../utils/utils.common.js";
|
|
7
|
-
/**
|
|
8
|
-
* StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
|
|
9
|
-
*
|
|
10
|
-
* 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.
|
|
11
|
-
* StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL
|
|
12
|
-
* thus avoid the browser cache.
|
|
13
|
-
*
|
|
14
|
-
* 2. Remove cookie header for security
|
|
15
|
-
*
|
|
16
|
-
* 3. Remove content-length header to avoid browsers warning
|
|
17
|
-
*/
|
|
18
|
-
export class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of StorageBrowserPolicy.
|
|
21
|
-
* @param nextPolicy -
|
|
22
|
-
* @param options -
|
|
23
|
-
*/
|
|
24
|
-
// The base class has a protected constructor. Adding a public one to enable constructing of this class.
|
|
25
|
-
/* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/
|
|
26
|
-
constructor(nextPolicy, options) {
|
|
27
|
-
super(nextPolicy, options);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Sends out request.
|
|
31
|
-
*
|
|
32
|
-
* @param request -
|
|
33
|
-
*/
|
|
34
|
-
async sendRequest(request) {
|
|
35
|
-
if (isNodeLike) {
|
|
36
|
-
return this._nextPolicy.sendRequest(request);
|
|
37
|
-
}
|
|
38
|
-
if (request.method.toUpperCase() === "GET" || request.method.toUpperCase() === "HEAD") {
|
|
39
|
-
request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
|
|
40
|
-
}
|
|
41
|
-
request.headers.remove(HeaderConstants.COOKIE);
|
|
42
|
-
// According to XHR standards, content-length should be fully controlled by browsers
|
|
43
|
-
request.headers.remove(HeaderConstants.CONTENT_LENGTH);
|
|
44
|
-
return this._nextPolicy.sendRequest(request);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=StorageBrowserPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageBrowserPolicy.js","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,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,UAAU,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,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 { isNodeLike } from \"@azure/core-util\";\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 (isNodeLike) {\n return this._nextPolicy.sendRequest(request);\n }\n\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"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PipelinePolicy } from "@azure/core-rest-pipeline";
|
|
2
|
-
/**
|
|
3
|
-
* The programmatic identifier of the StorageBrowserPolicy.
|
|
4
|
-
*/
|
|
5
|
-
export declare const storageBrowserPolicyName = "storageBrowserPolicy";
|
|
6
|
-
/**
|
|
7
|
-
* storageBrowserPolicy is a policy used to prevent browsers from caching requests
|
|
8
|
-
* and to remove cookies and explicit content-length headers.
|
|
9
|
-
*/
|
|
10
|
-
export declare function storageBrowserPolicy(): PipelinePolicy;
|
|
11
|
-
//# sourceMappingURL=StorageBrowserPolicyV2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageBrowserPolicyV2.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAKnC;;GAEG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,cAAc,CAuBrD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { isNodeLike } from "@azure/core-util";
|
|
4
|
-
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
|
5
|
-
import { setURLParameter } from "../utils/utils.common.js";
|
|
6
|
-
/**
|
|
7
|
-
* The programmatic identifier of the StorageBrowserPolicy.
|
|
8
|
-
*/
|
|
9
|
-
export const storageBrowserPolicyName = "storageBrowserPolicy";
|
|
10
|
-
/**
|
|
11
|
-
* storageBrowserPolicy is a policy used to prevent browsers from caching requests
|
|
12
|
-
* and to remove cookies and explicit content-length headers.
|
|
13
|
-
*/
|
|
14
|
-
export function storageBrowserPolicy() {
|
|
15
|
-
return {
|
|
16
|
-
name: storageBrowserPolicyName,
|
|
17
|
-
async sendRequest(request, next) {
|
|
18
|
-
if (isNodeLike) {
|
|
19
|
-
return next(request);
|
|
20
|
-
}
|
|
21
|
-
if (request.method === "GET" || request.method === "HEAD") {
|
|
22
|
-
request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
|
|
23
|
-
}
|
|
24
|
-
request.headers.delete(HeaderConstants.COOKIE);
|
|
25
|
-
// According to XHR standards, content-length should be fully controlled by browsers
|
|
26
|
-
request.headers.delete(HeaderConstants.CONTENT_LENGTH);
|
|
27
|
-
return next(request);
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=StorageBrowserPolicyV2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageBrowserPolicyV2.js","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,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,UAAU,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;YAED,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 { isNodeLike } from \"@azure/core-util\";\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 (isNodeLike) {\n return next(request);\n }\n\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"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PipelinePolicy } from "@azure/core-rest-pipeline";
|
|
2
|
-
/**
|
|
3
|
-
* The programmatic identifier of the storageCorrectContentLengthPolicy.
|
|
4
|
-
*/
|
|
5
|
-
export declare const storageCorrectContentLengthPolicyName = "StorageCorrectContentLengthPolicy";
|
|
6
|
-
/**
|
|
7
|
-
* storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.
|
|
8
|
-
*/
|
|
9
|
-
export declare function storageCorrectContentLengthPolicy(): PipelinePolicy;
|
|
10
|
-
//# sourceMappingURL=StorageCorrectContentLengthPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageCorrectContentLengthPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageCorrectContentLengthPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAGnC;;GAEG;AACH,eAAO,MAAM,qCAAqC,sCAAsC,CAAC;AAEzF;;GAEG;AACH,wBAAgB,iCAAiC,IAAI,cAAc,CAkBlE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { HeaderConstants } from "../utils/constants.js";
|
|
4
|
-
/**
|
|
5
|
-
* The programmatic identifier of the storageCorrectContentLengthPolicy.
|
|
6
|
-
*/
|
|
7
|
-
export const storageCorrectContentLengthPolicyName = "StorageCorrectContentLengthPolicy";
|
|
8
|
-
/**
|
|
9
|
-
* storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.
|
|
10
|
-
*/
|
|
11
|
-
export function storageCorrectContentLengthPolicy() {
|
|
12
|
-
function correctContentLength(request) {
|
|
13
|
-
if (request.body &&
|
|
14
|
-
(typeof request.body === "string" || Buffer.isBuffer(request.body)) &&
|
|
15
|
-
request.body.length > 0) {
|
|
16
|
-
request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
name: storageCorrectContentLengthPolicyName,
|
|
21
|
-
async sendRequest(request, next) {
|
|
22
|
-
correctContentLength(request);
|
|
23
|
-
return next(request);
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=StorageCorrectContentLengthPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageCorrectContentLengthPolicy.js","sourceRoot":"","sources":["../../../src/policies/StorageCorrectContentLengthPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,mCAAmC,CAAC;AAEzF;;GAEG;AACH,MAAM,UAAU,iCAAiC;IAC/C,SAAS,oBAAoB,CAAC,OAAwB;QACpD,IACE,OAAO,CAAC,IAAI;YACZ,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnE,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EACvB,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvF,CAAC;IACH,CAAC;IAED,OAAO;QACL,IAAI,EAAE,qCAAqC;QAC3C,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,oBAAoB,CAAC,OAAO,CAAC,CAAC;YAC9B,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 } from \"../utils/constants.js\";\n\n/**\n * The programmatic identifier of the storageCorrectContentLengthPolicy.\n */\nexport const storageCorrectContentLengthPolicyName = \"StorageCorrectContentLengthPolicy\";\n\n/**\n * storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.\n */\nexport function storageCorrectContentLengthPolicy(): PipelinePolicy {\n function correctContentLength(request: PipelineRequest): void {\n if (\n request.body &&\n (typeof request.body === \"string\" || Buffer.isBuffer(request.body)) &&\n request.body.length > 0\n ) {\n request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));\n }\n }\n\n return {\n name: storageCorrectContentLengthPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n correctContentLength(request);\n return next(request);\n },\n };\n}\n"]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, RequestPolicyFactory, WebResourceLike as WebResource, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
|
|
2
|
-
import { BaseRequestPolicy } from "./RequestPolicy.js";
|
|
3
|
-
import type { RestError } from "@azure/core-rest-pipeline";
|
|
4
|
-
import { type StorageRetryOptions } from "../StorageRetryPolicyFactory.js";
|
|
5
|
-
/**
|
|
6
|
-
* A factory method used to generated a RetryPolicy factory.
|
|
7
|
-
*
|
|
8
|
-
* @param retryOptions -
|
|
9
|
-
*/
|
|
10
|
-
export declare function NewRetryPolicyFactory(retryOptions?: StorageRetryOptions): RequestPolicyFactory;
|
|
11
|
-
/**
|
|
12
|
-
* Retry policy with exponential retry and linear retry implemented.
|
|
13
|
-
*/
|
|
14
|
-
export declare class StorageRetryPolicy extends BaseRequestPolicy {
|
|
15
|
-
/**
|
|
16
|
-
* RetryOptions.
|
|
17
|
-
*/
|
|
18
|
-
private readonly retryOptions;
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of RetryPolicy.
|
|
21
|
-
*
|
|
22
|
-
* @param nextPolicy -
|
|
23
|
-
* @param options -
|
|
24
|
-
* @param retryOptions -
|
|
25
|
-
*/
|
|
26
|
-
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions);
|
|
27
|
-
/**
|
|
28
|
-
* Sends request.
|
|
29
|
-
*
|
|
30
|
-
* @param request -
|
|
31
|
-
*/
|
|
32
|
-
sendRequest(request: WebResource): Promise<HttpOperationResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Decide and perform next retry. Won't mutate request parameter.
|
|
35
|
-
*
|
|
36
|
-
* @param request -
|
|
37
|
-
* @param secondaryHas404 - If attempt was against the secondary & it returned a StatusNotFound (404), then
|
|
38
|
-
* the resource was not found. This may be due to replication delay. So, in this
|
|
39
|
-
* case, we'll never try the secondary again for this operation.
|
|
40
|
-
* @param attempt - How many retries has been attempted to performed, starting from 1, which includes
|
|
41
|
-
* the attempt will be performed by this method call.
|
|
42
|
-
*/
|
|
43
|
-
protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise<HttpOperationResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* Decide whether to retry according to last HTTP response and retry counters.
|
|
46
|
-
*
|
|
47
|
-
* @param isPrimaryRetry -
|
|
48
|
-
* @param attempt -
|
|
49
|
-
* @param response -
|
|
50
|
-
* @param err -
|
|
51
|
-
*/
|
|
52
|
-
protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Delay a calculated time between retries.
|
|
55
|
-
*
|
|
56
|
-
* @param isPrimaryRetry -
|
|
57
|
-
* @param attempt -
|
|
58
|
-
* @param abortSignal -
|
|
59
|
-
*/
|
|
60
|
-
private delay;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=StorageRetryPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACpB,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAM3E;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAM9F;AAcD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,iBAAiB;IACvD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD;;;;;;OAMG;gBAED,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,oBAAoB,EAC7B,YAAY,GAAE,mBAA2C;IAyC3D;;;;OAIG;IACU,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI9E;;;;;;;;;OASG;cACa,kBAAkB,CAChC,OAAO,EAAE,WAAW,EACpB,eAAe,EAAE,OAAO,EACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC;IA0CjC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CACnB,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,qBAAqB,EAChC,GAAG,CAAC,EAAE,SAAS,GACd,OAAO;IA6EV;;;;;;OAMG;YACW,KAAK;CA0BpB"}
|