@chatbotkit/fetch 1.21.6 → 1.23.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.
@@ -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 = process.env.FETCH_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;
@@ -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: number;
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;
@@ -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: number;
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 = process.env.FETCH_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.21.6",
3
+ "version": "1.23.0",
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.25.3",
65
- "typedoc-plugin-markdown": "^3.17.1",
66
- "typedoc-plugin-mdn-links": "^3.1.18",
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": [