@chatbotkit/fetch 1.21.7 → 1.26.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/cjs/index.cjs +1 -3
- package/dist/cjs/index.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -3
- package/package.json +12 -12
package/dist/cjs/index.cjs
CHANGED
|
@@ -128,9 +128,7 @@ async function getFetchError(response, meta) {
|
|
|
128
128
|
}
|
|
129
129
|
exports.ABORT_ERROR_NAME = 'AbortError';
|
|
130
130
|
exports.TIMEOUT_ERROR_NAME = 'TimeoutError';
|
|
131
|
-
exports.DEFAULT_TIMEOUT =
|
|
132
|
-
? parseInt(process.env.FETCH_DEFAULT_TIMEOUT, 10)
|
|
133
|
-
: 30000;
|
|
131
|
+
exports.DEFAULT_TIMEOUT = 30000;
|
|
134
132
|
exports.DEFAULT_RETRIES = 5;
|
|
135
133
|
exports.DEFAULT_RETRY_DELAY = 250;
|
|
136
134
|
exports.DEFAULT_RETRY_TIMEOUT = false;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class FetchError extends Error {
|
|
|
75
75
|
}
|
|
76
76
|
export const ABORT_ERROR_NAME: "AbortError";
|
|
77
77
|
export const TIMEOUT_ERROR_NAME: "TimeoutError";
|
|
78
|
-
export const DEFAULT_TIMEOUT:
|
|
78
|
+
export const DEFAULT_TIMEOUT: 30000;
|
|
79
79
|
export const DEFAULT_RETRIES: 5;
|
|
80
80
|
export const DEFAULT_RETRY_DELAY: 250;
|
|
81
81
|
export const DEFAULT_RETRY_TIMEOUT: false;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class FetchError extends Error {
|
|
|
75
75
|
}
|
|
76
76
|
export const ABORT_ERROR_NAME: "AbortError";
|
|
77
77
|
export const TIMEOUT_ERROR_NAME: "TimeoutError";
|
|
78
|
-
export const DEFAULT_TIMEOUT:
|
|
78
|
+
export const DEFAULT_TIMEOUT: 30000;
|
|
79
79
|
export const DEFAULT_RETRIES: 5;
|
|
80
80
|
export const DEFAULT_RETRY_DELAY: 250;
|
|
81
81
|
export const DEFAULT_RETRY_TIMEOUT: false;
|
package/dist/esm/index.js
CHANGED
|
@@ -117,9 +117,7 @@ export async function getFetchError(response, meta) {
|
|
|
117
117
|
}
|
|
118
118
|
export const ABORT_ERROR_NAME = 'AbortError';
|
|
119
119
|
export const TIMEOUT_ERROR_NAME = 'TimeoutError';
|
|
120
|
-
export const DEFAULT_TIMEOUT =
|
|
121
|
-
? parseInt(process.env.FETCH_DEFAULT_TIMEOUT, 10)
|
|
122
|
-
: 30000;
|
|
120
|
+
export const DEFAULT_TIMEOUT = 30000;
|
|
123
121
|
export const DEFAULT_RETRIES = 5;
|
|
124
122
|
export const DEFAULT_RETRY_DELAY = 250;
|
|
125
123
|
export const DEFAULT_RETRY_TIMEOUT = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/fetch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"description": "Isomorphic implenetation for fetch specifically designed for @chatbotkit/sdk.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"npm-run-all": "^4.1.5",
|
|
64
|
-
"typedoc": "^0.
|
|
65
|
-
"typedoc-plugin-markdown": "^
|
|
66
|
-
"typedoc-plugin-mdn-links": "^
|
|
64
|
+
"typedoc": "^0.28.14",
|
|
65
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
66
|
+
"typedoc-plugin-mdn-links": "^5.0.10",
|
|
67
67
|
"typescript": "^5.9"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
],
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "run-s build:*",
|
|
74
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
75
|
-
"build:cjs_rename": "node ../../scripts/rename-cjs.js",
|
|
76
|
-
"build:cjs_rewrite_cjs": "node ../../scripts/rewrite-cjs.js",
|
|
77
|
-
"build:cjs_rewrite_ts": "node ../../scripts/rewrite-ts.js",
|
|
78
|
-
"build:docs": "typedoc",
|
|
79
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
80
|
-
"build:exports": "node ../../scripts/create-standard-exports.js",
|
|
81
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
74
|
+
"build:01-cjs": "tsc -p tsconfig.cjs.json",
|
|
75
|
+
"build:01-cjs_rename": "node ../../scripts/rename-cjs.js",
|
|
76
|
+
"build:01-cjs_rewrite_cjs": "node ../../scripts/rewrite-cjs.js",
|
|
77
|
+
"build:01-cjs_rewrite_ts": "node ../../scripts/rewrite-ts.js",
|
|
78
|
+
"build:03-docs": "typedoc",
|
|
79
|
+
"build:02-esm": "tsc -p tsconfig.esm.json",
|
|
80
|
+
"build:00-exports": "node ../../scripts/create-standard-exports.js",
|
|
81
|
+
"build:00-types": "tsc -p tsconfig.types.json",
|
|
82
82
|
"check": "tsc -p tsconfig.check.json",
|
|
83
83
|
"clean": "run-p clean:*",
|
|
84
84
|
"clean:buildinfo": "rimraf *.tsbuildinfo",
|