@azure/storage-common 12.2.0 → 12.3.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/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/browser/StorageRetryPolicyFactory.d.ts.map +1 -1
- package/dist/browser/StorageRetryPolicyFactory.js +2 -2
- package/dist/browser/StorageRetryPolicyFactory.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 +0 -4
- package/dist/browser/index.js +0 -4
- package/dist/browser/interfaces.d.ts +12 -0
- package/dist/browser/interfaces.d.ts.map +1 -0
- package/dist/browser/interfaces.js +4 -0
- package/dist/browser/interfaces.js.map +1 -0
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts.map +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js +2 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -4
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/interfaces.d.ts +12 -0
- package/dist/commonjs/interfaces.d.ts.map +1 -0
- package/dist/commonjs/interfaces.js +5 -0
- package/dist/commonjs/interfaces.js.map +1 -0
- package/dist/esm/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/esm/StorageRetryPolicyFactory.d.ts.map +1 -1
- package/dist/esm/StorageRetryPolicyFactory.js +2 -2
- package/dist/esm/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/esm/index.d.ts +1 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces.d.ts +12 -0
- package/dist/esm/interfaces.d.ts.map +1 -0
- package/dist/esm/interfaces.js +4 -0
- package/dist/esm/interfaces.js.map +1 -0
- package/dist/react-native/BufferScheduler-react-native.d.mts.map +1 -0
- package/dist/react-native/BufferScheduler-react-native.mjs.map +1 -0
- package/dist/react-native/BufferScheduler.d.ts +1 -155
- package/dist/react-native/BufferScheduler.js +4 -274
- package/dist/react-native/StorageRetryPolicyFactory.d.ts +2 -2
- package/dist/react-native/StorageRetryPolicyFactory.d.ts.map +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.js +2 -2
- package/dist/react-native/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +2 -37
- package/dist/react-native/credentials/StorageSharedKeyCredential.js +2 -45
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.d.mts.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential-react-native.mjs.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +1 -64
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +1 -39
- package/dist/react-native/index.d.ts +1 -4
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -4
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/interfaces.d.ts +12 -0
- package/dist/react-native/interfaces.d.ts.map +1 -0
- package/dist/react-native/interfaces.js +4 -0
- package/dist/react-native/interfaces.js.map +1 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +1 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +1 -0
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts +2 -2
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js +2 -116
- package/package.json +1 -1
- package/dist/react-native/BufferScheduler.d.ts.map +0 -1
- package/dist/react-native/BufferScheduler.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/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
- package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, RequestPolicyFactory } from "@azure/core-http-compat";
|
|
2
|
-
import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
|
|
2
|
+
import { StorageRetryPolicy, NewRetryPolicyFactory } from "./policies/StorageRetryPolicy.js";
|
|
3
3
|
import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
|
|
4
|
-
export { StorageRetryPolicyType, StorageRetryPolicy };
|
|
4
|
+
export { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };
|
|
5
5
|
/**
|
|
6
6
|
* Storage Blob retry options interface.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,oBAAoB;IACpE,OAAO,CAAC,YAAY,CAAC,CAAsB;IAE3C;;;OAGG;gBACS,YAAY,CAAC,EAAE,mBAAmB;IAI9C;;;;;OAKG;IACI,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,GAAG,kBAAkB;CAG5F"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
|
|
3
|
+
import { StorageRetryPolicy, NewRetryPolicyFactory } from "./policies/StorageRetryPolicy.js";
|
|
4
4
|
import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
|
|
5
|
-
export { StorageRetryPolicyType, StorageRetryPolicy };
|
|
5
|
+
export { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };
|
|
6
6
|
/**
|
|
7
7
|
* StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;AAmD7E;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,YAAY,CAAuB;IAE3C;;;OAGG;IACH,YAAY,YAAkC;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAyB,EAAE,OAA6B;QACpE,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACxE,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n} from \"@azure/core-http-compat\";\nimport { StorageRetryPolicy, NewRetryPolicyFactory } from \"./policies/StorageRetryPolicy.js\";\nimport { StorageRetryPolicyType } from \"./policies/StorageRetryPolicyType.js\";\n\nexport { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };\n\n/**\n * Storage Blob retry options interface.\n */\nexport interface StorageRetryOptions {\n /**\n * Optional. StorageRetryPolicyType, default is exponential retry policy.\n */\n readonly retryPolicyType?: StorageRetryPolicyType;\n\n /**\n * Optional. Max try number of attempts, default is 4.\n * A value of 1 means 1 try and no retries.\n * A value smaller than 1 means default retry number of attempts.\n */\n readonly maxTries?: number;\n\n /**\n * Optional. Indicates the maximum time in ms allowed for any single try of an HTTP request.\n * A value of zero or undefined means no default timeout on SDK client, Azure\n * Storage server's default timeout policy will be used.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations\n */\n readonly tryTimeoutInMs?: number;\n\n /**\n * Optional. Specifies the amount of delay to use before retrying an operation (default is 4s or 4 * 1000ms).\n * The delay increases (exponentially or linearly) with each retry up to a maximum specified by\n * maxRetryDelayInMs. If you specify 0, then you must also specify 0 for maxRetryDelayInMs.\n */\n readonly retryDelayInMs?: number;\n\n /**\n * Optional. Specifies the maximum delay allowed before retrying an operation (default is 120s or 120 * 1000ms).\n * If you specify 0, then you must also specify 0 for retryDelayInMs.\n */\n readonly maxRetryDelayInMs?: number;\n\n /**\n * If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined\n * (the default) then operations are not retried against another host.\n *\n * NOTE: Before setting this field, make sure you understand the issues around\n * reading stale and potentially-inconsistent data at\n * {@link https://learn.microsoft.com/azure/storage/common/storage-designing-ha-apps-with-ragrs}\n */\n readonly secondaryHost?: string;\n}\n\n/**\n * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.\n */\nexport class StorageRetryPolicyFactory implements RequestPolicyFactory {\n private retryOptions?: StorageRetryOptions;\n\n /**\n * Creates an instance of StorageRetryPolicyFactory.\n * @param retryOptions -\n */\n constructor(retryOptions?: StorageRetryOptions) {\n this.retryOptions = retryOptions;\n }\n\n /**\n * Creates a StorageRetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy {\n return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,
|
|
1
|
+
{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,
|
|
1
|
+
{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -8,14 +8,10 @@ export * from "./StorageRetryPolicyFactory.js";
|
|
|
8
8
|
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
9
9
|
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
10
10
|
export * from "./policies/CredentialPolicy.js";
|
|
11
|
-
export * from "./policies/StorageBrowserPolicy.js";
|
|
12
11
|
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
13
12
|
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
14
|
-
export * from "./policies/StorageRetryPolicyType.js";
|
|
15
|
-
export * from "./policies/StorageRetryPolicy.js";
|
|
16
13
|
export * from "./policies/StorageRetryPolicyV2.js";
|
|
17
14
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
18
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
19
15
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
20
16
|
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
21
17
|
//# sourceMappingURL=index-browser.d.mts.map
|
package/dist/browser/index.js
CHANGED
|
@@ -10,14 +10,10 @@ export * from "./StorageRetryPolicyFactory.js";
|
|
|
10
10
|
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
11
11
|
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
12
12
|
export * from "./policies/CredentialPolicy.js";
|
|
13
|
-
export * from "./policies/StorageBrowserPolicy.js";
|
|
14
13
|
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
15
14
|
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
16
|
-
export * from "./policies/StorageRetryPolicyType.js";
|
|
17
|
-
export * from "./policies/StorageRetryPolicy.js";
|
|
18
15
|
export * from "./policies/StorageRetryPolicyV2.js";
|
|
19
16
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
20
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
21
17
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
22
18
|
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
23
19
|
//# sourceMappingURL=index-browser.mjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Node.js Readable stream that also has a `destroy` method.
|
|
3
|
+
*/
|
|
4
|
+
export interface NodeJSReadableStream extends NodeJS.ReadableStream {
|
|
5
|
+
/**
|
|
6
|
+
* Destroy the stream. Optionally emit an 'error' event, and emit a
|
|
7
|
+
* 'close' event (unless emitClose is set to false). After this call,
|
|
8
|
+
* internal resources will be released.
|
|
9
|
+
*/
|
|
10
|
+
destroy(error?: Error): this;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A Node.js Readable stream that also has a `destroy` method.\n */\nexport interface NodeJSReadableStream extends NodeJS.ReadableStream {\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): this;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, RequestPolicyFactory } from "@azure/core-http-compat";
|
|
2
|
-
import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
|
|
2
|
+
import { StorageRetryPolicy, NewRetryPolicyFactory } from "./policies/StorageRetryPolicy.js";
|
|
3
3
|
import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
|
|
4
|
-
export { StorageRetryPolicyType, StorageRetryPolicy };
|
|
4
|
+
export { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };
|
|
5
5
|
/**
|
|
6
6
|
* Storage Blob retry options interface.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,oBAAoB;IACpE,OAAO,CAAC,YAAY,CAAC,CAAsB;IAE3C;;;OAGG;gBACS,YAAY,CAAC,EAAE,mBAAmB;IAI9C;;;;;OAKG;IACI,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,GAAG,kBAAkB;CAG5F"}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.StorageRetryPolicyFactory = exports.StorageRetryPolicy = exports.StorageRetryPolicyType = void 0;
|
|
5
|
+
exports.StorageRetryPolicyFactory = exports.NewRetryPolicyFactory = exports.StorageRetryPolicy = exports.StorageRetryPolicyType = void 0;
|
|
6
6
|
const StorageRetryPolicy_js_1 = require("./policies/StorageRetryPolicy.js");
|
|
7
7
|
Object.defineProperty(exports, "StorageRetryPolicy", { enumerable: true, get: function () { return StorageRetryPolicy_js_1.StorageRetryPolicy; } });
|
|
8
|
+
Object.defineProperty(exports, "NewRetryPolicyFactory", { enumerable: true, get: function () { return StorageRetryPolicy_js_1.NewRetryPolicyFactory; } });
|
|
8
9
|
const StorageRetryPolicyType_js_1 = require("./policies/StorageRetryPolicyType.js");
|
|
9
10
|
Object.defineProperty(exports, "StorageRetryPolicyType", { enumerable: true, get: function () { return StorageRetryPolicyType_js_1.StorageRetryPolicyType; } });
|
|
10
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAOlC,
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAOlC,4EAA6F;AAG5D,mGAHxB,0CAAkB,OAGwB;AAAE,sGAHxB,6CAAqB,OAGwB;AAF1E,oFAA8E;AAErE,uGAFA,kDAAsB,OAEA;AAmD/B;;GAEG;AACH,MAAa,yBAAyB;IAC5B,YAAY,CAAuB;IAE3C;;;OAGG;IACH,YAAY,YAAkC;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAyB,EAAE,OAA6B;QACpE,OAAO,IAAI,0CAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACxE,CAAC;CACF;AApBD,8DAoBC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n} from \"@azure/core-http-compat\";\nimport { StorageRetryPolicy, NewRetryPolicyFactory } from \"./policies/StorageRetryPolicy.js\";\nimport { StorageRetryPolicyType } from \"./policies/StorageRetryPolicyType.js\";\n\nexport { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };\n\n/**\n * Storage Blob retry options interface.\n */\nexport interface StorageRetryOptions {\n /**\n * Optional. StorageRetryPolicyType, default is exponential retry policy.\n */\n readonly retryPolicyType?: StorageRetryPolicyType;\n\n /**\n * Optional. Max try number of attempts, default is 4.\n * A value of 1 means 1 try and no retries.\n * A value smaller than 1 means default retry number of attempts.\n */\n readonly maxTries?: number;\n\n /**\n * Optional. Indicates the maximum time in ms allowed for any single try of an HTTP request.\n * A value of zero or undefined means no default timeout on SDK client, Azure\n * Storage server's default timeout policy will be used.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations\n */\n readonly tryTimeoutInMs?: number;\n\n /**\n * Optional. Specifies the amount of delay to use before retrying an operation (default is 4s or 4 * 1000ms).\n * The delay increases (exponentially or linearly) with each retry up to a maximum specified by\n * maxRetryDelayInMs. If you specify 0, then you must also specify 0 for maxRetryDelayInMs.\n */\n readonly retryDelayInMs?: number;\n\n /**\n * Optional. Specifies the maximum delay allowed before retrying an operation (default is 120s or 120 * 1000ms).\n * If you specify 0, then you must also specify 0 for retryDelayInMs.\n */\n readonly maxRetryDelayInMs?: number;\n\n /**\n * If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined\n * (the default) then operations are not retried against another host.\n *\n * NOTE: Before setting this field, make sure you understand the issues around\n * reading stale and potentially-inconsistent data at\n * {@link https://learn.microsoft.com/azure/storage/common/storage-designing-ha-apps-with-ragrs}\n */\n readonly secondaryHost?: string;\n}\n\n/**\n * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.\n */\nexport class StorageRetryPolicyFactory implements RequestPolicyFactory {\n private retryOptions?: StorageRetryOptions;\n\n /**\n * Creates an instance of StorageRetryPolicyFactory.\n * @param retryOptions -\n */\n constructor(retryOptions?: StorageRetryOptions) {\n this.retryOptions = retryOptions;\n }\n\n /**\n * Creates a StorageRetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy {\n return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);\n }\n}\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./BufferScheduler.js";
|
|
2
2
|
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
3
|
+
export * from "./interfaces.js";
|
|
3
4
|
export * from "./StorageBrowserPolicyFactory.js";
|
|
4
5
|
export * from "./credentials/AnonymousCredential.js";
|
|
5
6
|
export * from "./credentials/Credential.js";
|
|
@@ -8,15 +9,11 @@ export * from "./StorageRetryPolicyFactory.js";
|
|
|
8
9
|
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
9
10
|
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
10
11
|
export * from "./policies/CredentialPolicy.js";
|
|
11
|
-
export * from "./policies/StorageBrowserPolicy.js";
|
|
12
12
|
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
13
13
|
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
14
|
-
export * from "./policies/StorageRetryPolicyType.js";
|
|
15
|
-
export * from "./policies/StorageRetryPolicy.js";
|
|
16
14
|
export * from "./policies/StorageRetryPolicyV2.js";
|
|
17
15
|
export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
18
16
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
19
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
20
17
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
18
|
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
22
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
tslib_1.__exportStar(require("./BufferScheduler.js"), exports);
|
|
8
8
|
var cache_js_1 = require("./cache.js");
|
|
9
9
|
Object.defineProperty(exports, "getCachedDefaultHttpClient", { enumerable: true, get: function () { return cache_js_1.getCachedDefaultHttpClient; } });
|
|
10
|
+
tslib_1.__exportStar(require("./interfaces.js"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./StorageBrowserPolicyFactory.js"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./credentials/AnonymousCredential.js"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./credentials/Credential.js"), exports);
|
|
@@ -16,15 +17,11 @@ var RequestPolicy_js_1 = require("./policies/RequestPolicy.js");
|
|
|
16
17
|
Object.defineProperty(exports, "BaseRequestPolicy", { enumerable: true, get: function () { return RequestPolicy_js_1.BaseRequestPolicy; } });
|
|
17
18
|
tslib_1.__exportStar(require("./policies/AnonymousCredentialPolicy.js"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./policies/CredentialPolicy.js"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./policies/StorageBrowserPolicy.js"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./policies/StorageBrowserPolicyV2.js"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./policies/StorageCorrectContentLengthPolicy.js"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./policies/StorageRetryPolicyType.js"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./policies/StorageRetryPolicy.js"), exports);
|
|
24
22
|
tslib_1.__exportStar(require("./policies/StorageRetryPolicyV2.js"), exports);
|
|
25
23
|
tslib_1.__exportStar(require("./policies/StorageSharedKeyCredentialPolicy.js"), exports);
|
|
26
24
|
tslib_1.__exportStar(require("./policies/StorageSharedKeyCredentialPolicyV2.js"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./StorageRetryPolicyFactory.js"), exports);
|
|
28
25
|
tslib_1.__exportStar(require("./policies/StorageRequestFailureDetailsParserPolicy.js"), exports);
|
|
29
26
|
tslib_1.__exportStar(require("./credentials/UserDelegationKeyCredential.js"), exports);
|
|
30
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+DAAqC;AACrC,uCAAwD;AAA/C,sHAAA,0BAA0B,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+DAAqC;AACrC,uCAAwD;AAA/C,sHAAA,0BAA0B,OAAA;AACnC,0DAAgC;AAEhC,2EAAiD;AACjD,+EAAqD;AACrD,sEAA4C;AAC5C,sFAA4D;AAE5D,yEAA+C;AAC/C,gEAAgE;AAAvD,qHAAA,iBAAiB,OAAA;AAC1B,kFAAwD;AACxD,yEAA+C;AAC/C,+EAAqD;AACrD,0FAAgE;AAChE,6EAAmD;AACnD,yFAA+D;AAC/D,2FAAiE;AACjE,iGAAuE;AACvE,uFAA6D","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\nexport * from \"./interfaces.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Node.js Readable stream that also has a `destroy` method.
|
|
3
|
+
*/
|
|
4
|
+
export interface NodeJSReadableStream extends NodeJS.ReadableStream {
|
|
5
|
+
/**
|
|
6
|
+
* Destroy the stream. Optionally emit an 'error' event, and emit a
|
|
7
|
+
* 'close' event (unless emitClose is set to false). After this call,
|
|
8
|
+
* internal resources will be released.
|
|
9
|
+
*/
|
|
10
|
+
destroy(error?: Error): this;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A Node.js Readable stream that also has a `destroy` method.\n */\nexport interface NodeJSReadableStream extends NodeJS.ReadableStream {\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): this;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, RequestPolicyFactory } from "@azure/core-http-compat";
|
|
2
|
-
import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
|
|
2
|
+
import { StorageRetryPolicy, NewRetryPolicyFactory } from "./policies/StorageRetryPolicy.js";
|
|
3
3
|
import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
|
|
4
|
-
export { StorageRetryPolicyType, StorageRetryPolicy };
|
|
4
|
+
export { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };
|
|
5
5
|
/**
|
|
6
6
|
* Storage Blob retry options interface.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,oBAAoB;IACpE,OAAO,CAAC,YAAY,CAAC,CAAsB;IAE3C;;;OAGG;gBACS,YAAY,CAAC,EAAE,mBAAmB;IAI9C;;;;;OAKG;IACI,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,GAAG,kBAAkB;CAG5F"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
|
|
3
|
+
import { StorageRetryPolicy, NewRetryPolicyFactory } from "./policies/StorageRetryPolicy.js";
|
|
4
4
|
import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
|
|
5
|
-
export { StorageRetryPolicyType, StorageRetryPolicy };
|
|
5
|
+
export { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };
|
|
6
6
|
/**
|
|
7
7
|
* StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;AAmD7E;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,YAAY,CAAuB;IAE3C;;;OAGG;IACH,YAAY,YAAkC;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAyB,EAAE,OAA6B;QACpE,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACxE,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n} from \"@azure/core-http-compat\";\nimport { StorageRetryPolicy, NewRetryPolicyFactory } from \"./policies/StorageRetryPolicy.js\";\nimport { StorageRetryPolicyType } from \"./policies/StorageRetryPolicyType.js\";\n\nexport { StorageRetryPolicyType, StorageRetryPolicy, NewRetryPolicyFactory };\n\n/**\n * Storage Blob retry options interface.\n */\nexport interface StorageRetryOptions {\n /**\n * Optional. StorageRetryPolicyType, default is exponential retry policy.\n */\n readonly retryPolicyType?: StorageRetryPolicyType;\n\n /**\n * Optional. Max try number of attempts, default is 4.\n * A value of 1 means 1 try and no retries.\n * A value smaller than 1 means default retry number of attempts.\n */\n readonly maxTries?: number;\n\n /**\n * Optional. Indicates the maximum time in ms allowed for any single try of an HTTP request.\n * A value of zero or undefined means no default timeout on SDK client, Azure\n * Storage server's default timeout policy will be used.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations\n */\n readonly tryTimeoutInMs?: number;\n\n /**\n * Optional. Specifies the amount of delay to use before retrying an operation (default is 4s or 4 * 1000ms).\n * The delay increases (exponentially or linearly) with each retry up to a maximum specified by\n * maxRetryDelayInMs. If you specify 0, then you must also specify 0 for maxRetryDelayInMs.\n */\n readonly retryDelayInMs?: number;\n\n /**\n * Optional. Specifies the maximum delay allowed before retrying an operation (default is 120s or 120 * 1000ms).\n * If you specify 0, then you must also specify 0 for retryDelayInMs.\n */\n readonly maxRetryDelayInMs?: number;\n\n /**\n * If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined\n * (the default) then operations are not retried against another host.\n *\n * NOTE: Before setting this field, make sure you understand the issues around\n * reading stale and potentially-inconsistent data at\n * {@link https://learn.microsoft.com/azure/storage/common/storage-designing-ha-apps-with-ragrs}\n */\n readonly secondaryHost?: string;\n}\n\n/**\n * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.\n */\nexport class StorageRetryPolicyFactory implements RequestPolicyFactory {\n private retryOptions?: StorageRetryOptions;\n\n /**\n * Creates an instance of StorageRetryPolicyFactory.\n * @param retryOptions -\n */\n constructor(retryOptions?: StorageRetryOptions) {\n this.retryOptions = retryOptions;\n }\n\n /**\n * Creates a StorageRetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy {\n return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);\n }\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./BufferScheduler.js";
|
|
2
2
|
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
3
|
+
export * from "./interfaces.js";
|
|
3
4
|
export * from "./StorageBrowserPolicyFactory.js";
|
|
4
5
|
export * from "./credentials/AnonymousCredential.js";
|
|
5
6
|
export * from "./credentials/Credential.js";
|
|
@@ -8,15 +9,11 @@ export * from "./StorageRetryPolicyFactory.js";
|
|
|
8
9
|
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
9
10
|
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
10
11
|
export * from "./policies/CredentialPolicy.js";
|
|
11
|
-
export * from "./policies/StorageBrowserPolicy.js";
|
|
12
12
|
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
13
13
|
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
14
|
-
export * from "./policies/StorageRetryPolicyType.js";
|
|
15
|
-
export * from "./policies/StorageRetryPolicy.js";
|
|
16
14
|
export * from "./policies/StorageRetryPolicyV2.js";
|
|
17
15
|
export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
18
16
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
19
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
20
17
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
18
|
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
22
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
export * from "./BufferScheduler.js";
|
|
4
4
|
export { getCachedDefaultHttpClient } from "./cache.js";
|
|
5
|
+
export * from "./interfaces.js";
|
|
5
6
|
export * from "./StorageBrowserPolicyFactory.js";
|
|
6
7
|
export * from "./credentials/AnonymousCredential.js";
|
|
7
8
|
export * from "./credentials/Credential.js";
|
|
@@ -10,15 +11,11 @@ export * from "./StorageRetryPolicyFactory.js";
|
|
|
10
11
|
export { BaseRequestPolicy } from "./policies/RequestPolicy.js";
|
|
11
12
|
export * from "./policies/AnonymousCredentialPolicy.js";
|
|
12
13
|
export * from "./policies/CredentialPolicy.js";
|
|
13
|
-
export * from "./policies/StorageBrowserPolicy.js";
|
|
14
14
|
export * from "./policies/StorageBrowserPolicyV2.js";
|
|
15
15
|
export * from "./policies/StorageCorrectContentLengthPolicy.js";
|
|
16
|
-
export * from "./policies/StorageRetryPolicyType.js";
|
|
17
|
-
export * from "./policies/StorageRetryPolicy.js";
|
|
18
16
|
export * from "./policies/StorageRetryPolicyV2.js";
|
|
19
17
|
export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
20
18
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
21
|
-
export * from "./StorageRetryPolicyFactory.js";
|
|
22
19
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
23
20
|
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
24
21
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\nexport * from \"./interfaces.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Node.js Readable stream that also has a `destroy` method.
|
|
3
|
+
*/
|
|
4
|
+
export interface NodeJSReadableStream extends NodeJS.ReadableStream {
|
|
5
|
+
/**
|
|
6
|
+
* Destroy the stream. Optionally emit an 'error' event, and emit a
|
|
7
|
+
* 'close' event (unless emitClose is set to false). After this call,
|
|
8
|
+
* internal resources will be released.
|
|
9
|
+
*/
|
|
10
|
+
destroy(error?: Error): this;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A Node.js Readable stream that also has a `destroy` method.\n */\nexport interface NodeJSReadableStream extends NodeJS.ReadableStream {\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): this;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BufferScheduler-react-native.d.mts","sourceRoot":"","sources":["../../src/BufferScheduler-react-native.mts"],"names":[],"mappings":"AAMA,qBAAa,eAAe;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BufferScheduler-react-native.mjs","sourceRoot":"","sources":["../../src/BufferScheduler-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,gEAAgE;AAChE,0CAA0C;AAC1C,+DAA+D;AAC/D,MAAM,OAAO,eAAe;CAAG","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// This file is used as a shim of \"BufferScheduler\" for bundlers\n// when trying to bundle \"BufferScheduler\"\n// \"BufferScheduler\" class is only available in Node.js runtime\nexport class BufferScheduler {}\n"]}
|
|
@@ -1,157 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OutgoingHandler is an async function triggered by BufferScheduler.
|
|
3
|
-
*/
|
|
4
|
-
export declare type OutgoingHandler = (body: () => NodeJS.ReadableStream, length: number, offset?: number) => Promise<any>;
|
|
5
|
-
/**
|
|
6
|
-
* This class accepts a Node.js Readable stream as input, and keeps reading data
|
|
7
|
-
* from the stream into the internal buffer structure, until it reaches maxBuffers.
|
|
8
|
-
* Every available buffer will try to trigger outgoingHandler.
|
|
9
|
-
*
|
|
10
|
-
* The internal buffer structure includes an incoming buffer array, and a outgoing
|
|
11
|
-
* buffer array. The incoming buffer array includes the "empty" buffers can be filled
|
|
12
|
-
* with new incoming data. The outgoing array includes the filled buffers to be
|
|
13
|
-
* handled by outgoingHandler. Every above buffer size is defined by parameter bufferSize.
|
|
14
|
-
*
|
|
15
|
-
* NUM_OF_ALL_BUFFERS = BUFFERS_IN_INCOMING + BUFFERS_IN_OUTGOING + BUFFERS_UNDER_HANDLING
|
|
16
|
-
*
|
|
17
|
-
* NUM_OF_ALL_BUFFERS lesser than or equal to maxBuffers
|
|
18
|
-
*
|
|
19
|
-
* PERFORMANCE IMPROVEMENT TIPS:
|
|
20
|
-
* 1. Input stream highWaterMark is better to set a same value with bufferSize
|
|
21
|
-
* parameter, which will avoid Buffer.concat() operations.
|
|
22
|
-
* 2. concurrency should set a smaller value than maxBuffers, which is helpful to
|
|
23
|
-
* reduce the possibility when a outgoing handler waits for the stream data.
|
|
24
|
-
* in this situation, outgoing handlers are blocked.
|
|
25
|
-
* Outgoing queue shouldn't be empty.
|
|
26
|
-
*/
|
|
27
1
|
export declare class BufferScheduler {
|
|
28
|
-
/**
|
|
29
|
-
* Size of buffers in incoming and outgoing queues. This class will try to align
|
|
30
|
-
* data read from Readable stream into buffer chunks with bufferSize defined.
|
|
31
|
-
*/
|
|
32
|
-
private readonly bufferSize;
|
|
33
|
-
/**
|
|
34
|
-
* How many buffers can be created or maintained.
|
|
35
|
-
*/
|
|
36
|
-
private readonly maxBuffers;
|
|
37
|
-
/**
|
|
38
|
-
* A Node.js Readable stream.
|
|
39
|
-
*/
|
|
40
|
-
private readonly readable;
|
|
41
|
-
/**
|
|
42
|
-
* OutgoingHandler is an async function triggered by BufferScheduler when there
|
|
43
|
-
* are available buffers in outgoing array.
|
|
44
|
-
*/
|
|
45
|
-
private readonly outgoingHandler;
|
|
46
|
-
/**
|
|
47
|
-
* An internal event emitter.
|
|
48
|
-
*/
|
|
49
|
-
private readonly emitter;
|
|
50
|
-
/**
|
|
51
|
-
* Concurrency of executing outgoingHandlers. (0 lesser than concurrency lesser than or equal to maxBuffers)
|
|
52
|
-
*/
|
|
53
|
-
private readonly concurrency;
|
|
54
|
-
/**
|
|
55
|
-
* An internal offset marker to track data offset in bytes of next outgoingHandler.
|
|
56
|
-
*/
|
|
57
|
-
private offset;
|
|
58
|
-
/**
|
|
59
|
-
* An internal marker to track whether stream is end.
|
|
60
|
-
*/
|
|
61
|
-
private isStreamEnd;
|
|
62
|
-
/**
|
|
63
|
-
* An internal marker to track whether stream or outgoingHandler returns error.
|
|
64
|
-
*/
|
|
65
|
-
private isError;
|
|
66
|
-
/**
|
|
67
|
-
* How many handlers are executing.
|
|
68
|
-
*/
|
|
69
|
-
private executingOutgoingHandlers;
|
|
70
|
-
/**
|
|
71
|
-
* Encoding of the input Readable stream which has string data type instead of Buffer.
|
|
72
|
-
*/
|
|
73
|
-
private encoding?;
|
|
74
|
-
/**
|
|
75
|
-
* How many buffers have been allocated.
|
|
76
|
-
*/
|
|
77
|
-
private numBuffers;
|
|
78
|
-
/**
|
|
79
|
-
* Because this class doesn't know how much data every time stream pops, which
|
|
80
|
-
* is defined by highWaterMarker of the stream. So BufferScheduler will cache
|
|
81
|
-
* data received from the stream, when data in unresolvedDataArray exceeds the
|
|
82
|
-
* blockSize defined, it will try to concat a blockSize of buffer, fill into available
|
|
83
|
-
* buffers from incoming and push to outgoing array.
|
|
84
|
-
*/
|
|
85
|
-
private unresolvedDataArray;
|
|
86
|
-
/**
|
|
87
|
-
* How much data consisted in unresolvedDataArray.
|
|
88
|
-
*/
|
|
89
|
-
private unresolvedLength;
|
|
90
|
-
/**
|
|
91
|
-
* The array includes all the available buffers can be used to fill data from stream.
|
|
92
|
-
*/
|
|
93
|
-
private incoming;
|
|
94
|
-
/**
|
|
95
|
-
* The array (queue) includes all the buffers filled from stream data.
|
|
96
|
-
*/
|
|
97
|
-
private outgoing;
|
|
98
|
-
/**
|
|
99
|
-
* Creates an instance of BufferScheduler.
|
|
100
|
-
*
|
|
101
|
-
* @param readable - A Node.js Readable stream
|
|
102
|
-
* @param bufferSize - Buffer size of every maintained buffer
|
|
103
|
-
* @param maxBuffers - How many buffers can be allocated
|
|
104
|
-
* @param outgoingHandler - An async function scheduled to be
|
|
105
|
-
* triggered when a buffer fully filled
|
|
106
|
-
* with stream data
|
|
107
|
-
* @param concurrency - Concurrency of executing outgoingHandlers (>0)
|
|
108
|
-
* @param encoding - [Optional] Encoding of Readable stream when it's a string stream
|
|
109
|
-
*/
|
|
110
|
-
constructor(readable: NodeJS.ReadableStream, bufferSize: number, maxBuffers: number, outgoingHandler: OutgoingHandler, concurrency: number, encoding?: BufferEncoding);
|
|
111
|
-
/**
|
|
112
|
-
* Start the scheduler, will return error when stream of any of the outgoingHandlers
|
|
113
|
-
* returns error.
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
do(): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Insert a new data into unresolved array.
|
|
119
|
-
*
|
|
120
|
-
* @param data -
|
|
121
|
-
*/
|
|
122
|
-
private appendUnresolvedData;
|
|
123
|
-
/**
|
|
124
|
-
* Try to shift a buffer with size in blockSize. The buffer returned may be less
|
|
125
|
-
* than blockSize when data in unresolvedDataArray is less than bufferSize.
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
128
|
-
private shiftBufferFromUnresolvedDataArray;
|
|
129
|
-
/**
|
|
130
|
-
* Resolve data in unresolvedDataArray. For every buffer with size in blockSize
|
|
131
|
-
* shifted, it will try to get (or allocate a buffer) from incoming, and fill it,
|
|
132
|
-
* then push it into outgoing to be handled by outgoing handler.
|
|
133
|
-
*
|
|
134
|
-
* Return false when available buffers in incoming are not enough, else true.
|
|
135
|
-
*
|
|
136
|
-
* @returns Return false when buffers in incoming are not enough, else true.
|
|
137
|
-
*/
|
|
138
|
-
private resolveData;
|
|
139
|
-
/**
|
|
140
|
-
* Try to trigger a outgoing handler for every buffer in outgoing. Stop when
|
|
141
|
-
* concurrency reaches.
|
|
142
|
-
*/
|
|
143
|
-
private triggerOutgoingHandlers;
|
|
144
|
-
/**
|
|
145
|
-
* Trigger a outgoing handler for a buffer shifted from outgoing.
|
|
146
|
-
*
|
|
147
|
-
* @param buffer -
|
|
148
|
-
*/
|
|
149
|
-
private triggerOutgoingHandler;
|
|
150
|
-
/**
|
|
151
|
-
* Return buffer used by outgoing handler into incoming.
|
|
152
|
-
*
|
|
153
|
-
* @param buffer -
|
|
154
|
-
*/
|
|
155
|
-
private reuseBuffer;
|
|
156
2
|
}
|
|
157
|
-
//# sourceMappingURL=BufferScheduler.d.
|
|
3
|
+
//# sourceMappingURL=BufferScheduler-react-native.d.mts.map
|