@devcycle/js-cloud-server-sdk
Advanced tools
Comparing version 1.12.1 to 1.13.0
@@ -7,2 +7,3 @@ import { RequestInitWithRetry } from 'fetch-retry'; | ||
export declare const exponentialBackoff: RequestInitWithRetry['retryDelay']; | ||
export type RequestInitConfig = RequestInit | RequestInitWithRetry; | ||
export declare function handleResponse(res: Response): Promise<Response>; | ||
@@ -9,0 +10,0 @@ export declare function getWithTimeout(url: string, requestConfig: RequestInit | RequestInitWithRetry, timeout: number): Promise<Response>; |
@@ -119,3 +119,4 @@ "use strict"; | ||
const newConfig = { ...requestConfig }; | ||
newConfig.retryOn = retryOnRequestError(requestConfig.retries); | ||
newConfig.retryOn = | ||
newConfig.retryOn || retryOnRequestError(requestConfig.retries); | ||
newConfig.retryDelay = exports.exponentialBackoff; | ||
@@ -122,0 +123,0 @@ return [await getFetchWithRetry(), newConfig]; |
{ | ||
"name": "@devcycle/js-cloud-server-sdk", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"description": "The DevCycle JS Cloud Bucketing Server SDK used for feature management.", | ||
@@ -22,3 +22,3 @@ "author": "DevCycle <support@devcycle.com>", | ||
"dependencies": { | ||
"@devcycle/types": "^1.13.1", | ||
"@devcycle/types": "^1.14.0", | ||
"cross-fetch": "^4.0.0", | ||
@@ -25,0 +25,0 @@ "fetch-retry": "^5.0.6", |
@@ -7,2 +7,3 @@ import { RequestInitWithRetry } from 'fetch-retry'; | ||
export declare const exponentialBackoff: RequestInitWithRetry['retryDelay']; | ||
export type RequestInitConfig = RequestInit | RequestInitWithRetry; | ||
export declare function handleResponse(res: Response): Promise<Response>; | ||
@@ -9,0 +10,0 @@ export declare function getWithTimeout(url: string, requestConfig: RequestInit | RequestInitWithRetry, timeout: number): Promise<Response>; |
@@ -119,3 +119,4 @@ "use strict"; | ||
const newConfig = { ...requestConfig }; | ||
newConfig.retryOn = retryOnRequestError(requestConfig.retries); | ||
newConfig.retryOn = | ||
newConfig.retryOn || retryOnRequestError(requestConfig.retries); | ||
newConfig.retryDelay = exports.exponentialBackoff; | ||
@@ -122,0 +123,0 @@ return [await getFetchWithRetry(), newConfig]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96888
990
Updated@devcycle/types@^1.14.0