@chatbotkit/fetch
Advanced tools
@@ -131,5 +131,3 @@ "use strict"; | ||
| exports.TIMEOUT_ERROR_NAME = 'TimeoutError'; | ||
| exports.DEFAULT_TIMEOUT = process.env.FETCH_DEFAULT_TIMEOUT | ||
| ? parseInt(process.env.FETCH_DEFAULT_TIMEOUT, 10) | ||
| : 30000; | ||
| exports.DEFAULT_TIMEOUT = 30000; | ||
| exports.DEFAULT_RETRIES = 5; | ||
@@ -136,0 +134,0 @@ exports.DEFAULT_RETRY_DELAY = 250; |
@@ -78,3 +78,3 @@ export function getFetchError(response: Response, meta?: Record<string, any>): Promise<FetchError>; | ||
| export const TIMEOUT_ERROR_NAME: "TimeoutError"; | ||
| export const DEFAULT_TIMEOUT: number; | ||
| export const DEFAULT_TIMEOUT: 30000; | ||
| export const DEFAULT_RETRIES: 5; | ||
@@ -81,0 +81,0 @@ export const DEFAULT_RETRY_DELAY: 250; |
@@ -78,3 +78,3 @@ export function getFetchError(response: Response, meta?: Record<string, any>): Promise<FetchError>; | ||
| export const TIMEOUT_ERROR_NAME: "TimeoutError"; | ||
| export const DEFAULT_TIMEOUT: number; | ||
| export const DEFAULT_TIMEOUT: 30000; | ||
| export const DEFAULT_RETRIES: 5; | ||
@@ -81,0 +81,0 @@ export const DEFAULT_RETRY_DELAY: 250; |
@@ -120,5 +120,3 @@ const globalObject = typeof global !== 'undefined' ? global : globalThis; | ||
| export const TIMEOUT_ERROR_NAME = 'TimeoutError'; | ||
| export const DEFAULT_TIMEOUT = process.env.FETCH_DEFAULT_TIMEOUT | ||
| ? parseInt(process.env.FETCH_DEFAULT_TIMEOUT, 10) | ||
| : 30000; | ||
| export const DEFAULT_TIMEOUT = 30000; | ||
| export const DEFAULT_RETRIES = 5; | ||
@@ -125,0 +123,0 @@ export const DEFAULT_RETRY_DELAY = 250; |
+4
-4
| { | ||
| "name": "@chatbotkit/fetch", | ||
| "version": "1.21.7", | ||
| "version": "1.23.0", | ||
| "description": "Isomorphic implenetation for fetch specifically designed for @chatbotkit/sdk.", | ||
@@ -64,5 +64,5 @@ "license": "ISC", | ||
| "npm-run-all": "^4.1.5", | ||
| "typedoc": "^0.25.3", | ||
| "typedoc-plugin-markdown": "^3.17.1", | ||
| "typedoc-plugin-mdn-links": "^3.1.18", | ||
| "typedoc": "^0.28.14", | ||
| "typedoc-plugin-markdown": "^4.9.0", | ||
| "typedoc-plugin-mdn-links": "^5.0.10", | ||
| "typescript": "^5.9" | ||
@@ -69,0 +69,0 @@ }, |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
-100%102936
-0.18%773
-0.51%