metro-cache
Advanced tools
+2
-2
| { | ||
| "name": "metro-cache", | ||
| "version": "0.85.0", | ||
| "version": "0.86.0", | ||
| "description": "🚇 Cache layers for Metro.", | ||
@@ -24,3 +24,3 @@ "main": "src/index.js", | ||
| "https-proxy-agent": "^7.0.5", | ||
| "metro-core": "0.85.0" | ||
| "metro-core": "0.86.0" | ||
| }, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
+1
-11
@@ -9,3 +9,3 @@ /** | ||
| * @oncall react_native | ||
| * @generated SignedSource<<2bb72546f80164eb8c0068f9de3a1487>> | ||
| * @generated SignedSource<<804f03bb7635d27850a096a40e46de0c>> | ||
| * | ||
@@ -45,11 +45,1 @@ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js | ||
| } | ||
| /** | ||
| * Backwards-compatibility with CommonJS consumers using interopRequireDefault. | ||
| * Do not add to this list. | ||
| * | ||
| * @deprecated Default import from 'metro-cache' is deprecated, use named exports. | ||
| */ | ||
| declare const $$EXPORT_DEFAULT_DECLARATION$$: MetroCache; | ||
| declare type $$EXPORT_DEFAULT_DECLARATION$$ = | ||
| typeof $$EXPORT_DEFAULT_DECLARATION$$; | ||
| export default $$EXPORT_DEFAULT_DECLARATION$$; |
+0
-9
@@ -36,3 +36,2 @@ "use strict"; | ||
| }); | ||
| exports.default = void 0; | ||
| Object.defineProperty(exports, "stableHash", { | ||
@@ -55,9 +54,1 @@ enumerable: true, | ||
| } | ||
| var _default = (exports.default = { | ||
| AutoCleanFileStore: _AutoCleanFileStore.default, | ||
| Cache: _Cache.default, | ||
| FileStore: _FileStore.default, | ||
| HttpGetStore: _HttpGetStore.default, | ||
| HttpStore: _HttpStore.default, | ||
| stableHash: _stableHash.default, | ||
| }); |
@@ -282,10 +282,9 @@ "use strict"; | ||
| maxDelay: 30000, | ||
| numOfAttempts: this.#getEndpoint.maxAttempts || Number.POSITIVE_INFINITY, | ||
| numOfAttempts: endpoint.maxAttempts || Number.POSITIVE_INFINITY, | ||
| retry: (e) => { | ||
| if (e instanceof _HttpError.default) { | ||
| return this.#getEndpoint.retryStatuses.has(e.code); | ||
| return endpoint.retryStatuses.has(e.code); | ||
| } | ||
| return ( | ||
| e instanceof _NetworkError.default && | ||
| this.#getEndpoint.retryNetworkErrors | ||
| e instanceof _NetworkError.default && endpoint.retryNetworkErrors | ||
| ); | ||
@@ -292,0 +291,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54444
-1.96%970
-2.02%+ Added
+ Added
- Removed
- Removed
Updated