@nocobase/plugin-ai-gigachat 2.2.19 → 2.2.20

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.
Files changed (88) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/gigachat/package.json +1 -1
  3. package/dist/node_modules/langchain-gigachat/index.cjs +2 -2
  4. package/dist/node_modules/langchain-gigachat/package.json +1 -1
  5. package/package.json +2 -2
  6. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.js +0 -5249
  7. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.min.js +0 -5
  8. package/dist/node_modules/gigachat/node_modules/axios/dist/browser/axios.cjs +0 -5146
  9. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.js +0 -5167
  10. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.min.js +0 -3
  11. package/dist/node_modules/gigachat/node_modules/axios/dist/node/axios.cjs +0 -5996
  12. package/dist/node_modules/gigachat/node_modules/axios/index.d.cts +0 -738
  13. package/dist/node_modules/gigachat/node_modules/axios/index.d.ts +0 -755
  14. package/dist/node_modules/gigachat/node_modules/axios/index.js +0 -45
  15. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/adapters.js +0 -132
  16. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/fetch.js +0 -643
  17. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/http.js +0 -1417
  18. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/xhr.js +0 -228
  19. package/dist/node_modules/gigachat/node_modules/axios/lib/axios.js +0 -89
  20. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  21. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  22. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/isCancel.js +0 -5
  23. package/dist/node_modules/gigachat/node_modules/axios/lib/core/Axios.js +0 -283
  24. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosError.js +0 -188
  25. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosHeaders.js +0 -351
  26. package/dist/node_modules/gigachat/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  27. package/dist/node_modules/gigachat/node_modules/axios/lib/core/buildFullPath.js +0 -50
  28. package/dist/node_modules/gigachat/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  29. package/dist/node_modules/gigachat/node_modules/axios/lib/core/mergeConfig.js +0 -159
  30. package/dist/node_modules/gigachat/node_modules/axios/lib/core/settle.js +0 -27
  31. package/dist/node_modules/gigachat/node_modules/axios/lib/core/transformData.js +0 -28
  32. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/index.js +0 -177
  33. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/transitional.js +0 -10
  34. package/dist/node_modules/gigachat/node_modules/axios/lib/env/classes/FormData.js +0 -2
  35. package/dist/node_modules/gigachat/node_modules/axios/lib/env/data.js +0 -1
  36. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  37. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  38. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  39. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  40. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  41. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/bind.js +0 -14
  42. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/buildURL.js +0 -69
  43. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/callbackify.js +0 -18
  44. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/combineURLs.js +0 -15
  45. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/composeSignals.js +0 -57
  46. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/cookies.js +0 -64
  47. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  48. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -105
  49. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToJSON.js +0 -119
  50. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  51. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  52. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  53. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  54. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  55. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/null.js +0 -2
  56. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseHeaders.js +0 -69
  57. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  58. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  59. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/readBlob.js +0 -15
  60. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/resolveConfig.js +0 -119
  61. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  62. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -210
  63. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/speedometer.js +0 -55
  64. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/spread.js +0 -28
  65. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/throttle.js +0 -44
  66. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toFormData.js +0 -285
  67. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  68. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/trackStream.js +0 -89
  69. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/validator.js +0 -112
  70. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  71. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  72. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  73. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/index.js +0 -13
  74. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/common/utils.js +0 -52
  75. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/index.js +0 -7
  76. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  77. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  78. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/index.js +0 -37
  79. package/dist/node_modules/gigachat/node_modules/axios/lib/utils.js +0 -1017
  80. package/dist/node_modules/gigachat/node_modules/axios/package.json +0 -201
  81. package/dist/node_modules/gigachat/node_modules/follow-redirects/debug.js +0 -15
  82. package/dist/node_modules/gigachat/node_modules/follow-redirects/http.js +0 -1
  83. package/dist/node_modules/gigachat/node_modules/follow-redirects/https.js +0 -1
  84. package/dist/node_modules/gigachat/node_modules/follow-redirects/index.js +0 -709
  85. package/dist/node_modules/gigachat/node_modules/follow-redirects/package.json +0 -58
  86. package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.cjs +0 -105
  87. package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.js +0 -103
  88. package/dist/node_modules/gigachat/node_modules/proxy-from-env/package.json +0 -43
@@ -1,283 +0,0 @@
1
- 'use strict';
2
-
3
- import utils from '../utils.js';
4
- import buildURL from '../helpers/buildURL.js';
5
- import InterceptorManager from './InterceptorManager.js';
6
- import dispatchRequest from './dispatchRequest.js';
7
- import mergeConfig from './mergeConfig.js';
8
- import buildFullPath from './buildFullPath.js';
9
- import validator from '../helpers/validator.js';
10
- import AxiosHeaders from './AxiosHeaders.js';
11
- import transitionalDefaults from '../defaults/transitional.js';
12
-
13
- const validators = validator.validators;
14
-
15
- /**
16
- * Create a new instance of Axios
17
- *
18
- * @param {Object} instanceConfig The default config for the instance
19
- *
20
- * @return {Axios} A new instance of Axios
21
- */
22
- class Axios {
23
- constructor(instanceConfig) {
24
- this.defaults = instanceConfig || {};
25
- this.interceptors = {
26
- request: new InterceptorManager(),
27
- response: new InterceptorManager(),
28
- };
29
- }
30
-
31
- /**
32
- * Dispatch a request
33
- *
34
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
35
- * @param {?Object} config
36
- *
37
- * @returns {Promise} The Promise to be fulfilled
38
- */
39
- async request(configOrUrl, config) {
40
- try {
41
- return await this._request(configOrUrl, config);
42
- } catch (err) {
43
- if (err instanceof Error) {
44
- let dummy = {};
45
-
46
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
47
-
48
- // slice off the Error: ... line
49
- const stack = (() => {
50
- if (!dummy.stack) {
51
- return '';
52
- }
53
-
54
- const firstNewlineIndex = dummy.stack.indexOf('\n');
55
-
56
- return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
57
- })();
58
- try {
59
- if (!err.stack) {
60
- err.stack = stack;
61
- // match without the 2 top stack lines
62
- } else if (stack) {
63
- const firstNewlineIndex = stack.indexOf('\n');
64
- const secondNewlineIndex =
65
- firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
66
- const stackWithoutTwoTopLines =
67
- secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
68
-
69
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
70
- err.stack += '\n' + stack;
71
- }
72
- }
73
- } catch (e) {
74
- // ignore the case where "stack" is an un-writable property
75
- }
76
- }
77
-
78
- throw err;
79
- }
80
- }
81
-
82
- _request(configOrUrl, config) {
83
- /*eslint no-param-reassign:0*/
84
- // Allow for axios('example/url'[, config]) a la fetch API
85
- if (typeof configOrUrl === 'string') {
86
- config = config || {};
87
- config.url = configOrUrl;
88
- } else {
89
- config = configOrUrl || {};
90
- }
91
-
92
- config = mergeConfig(this.defaults, config);
93
-
94
- const { transitional, paramsSerializer, headers } = config;
95
-
96
- if (transitional !== undefined) {
97
- validator.assertOptions(
98
- transitional,
99
- {
100
- silentJSONParsing: validators.transitional(validators.boolean),
101
- forcedJSONParsing: validators.transitional(validators.boolean),
102
- clarifyTimeoutError: validators.transitional(validators.boolean),
103
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
104
- advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
105
- validateStatusUndefinedResolves: validators.transitional(validators.boolean),
106
- },
107
- false
108
- );
109
- }
110
-
111
- if (paramsSerializer != null) {
112
- if (utils.isFunction(paramsSerializer)) {
113
- config.paramsSerializer = {
114
- serialize: paramsSerializer,
115
- };
116
- } else {
117
- validator.assertOptions(
118
- paramsSerializer,
119
- {
120
- encode: validators.function,
121
- serialize: validators.function,
122
- },
123
- true
124
- );
125
- }
126
- }
127
-
128
- // Set config.allowAbsoluteUrls
129
- if (config.allowAbsoluteUrls !== undefined) {
130
- // do nothing
131
- } else if (this.defaults.allowAbsoluteUrls !== undefined) {
132
- config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
133
- } else {
134
- config.allowAbsoluteUrls = true;
135
- }
136
-
137
- validator.assertOptions(
138
- config,
139
- {
140
- baseUrl: validators.spelling('baseURL'),
141
- withXsrfToken: validators.spelling('withXSRFToken'),
142
- },
143
- true
144
- );
145
-
146
- // Set config.method
147
- config.method = (config.method || this.defaults.method || 'get').toLowerCase();
148
-
149
- // Flatten headers
150
- let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);
151
-
152
- headers &&
153
- utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], (method) => {
154
- delete headers[method];
155
- });
156
-
157
- config.headers = AxiosHeaders.concat(contextHeaders, headers);
158
-
159
- // filter out skipped interceptors
160
- const requestInterceptorChain = [];
161
- let synchronousRequestInterceptors = true;
162
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
163
- if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
164
- return;
165
- }
166
-
167
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
168
-
169
- const transitional = config.transitional || transitionalDefaults;
170
- const legacyInterceptorReqResOrdering =
171
- transitional && transitional.legacyInterceptorReqResOrdering;
172
-
173
- if (legacyInterceptorReqResOrdering) {
174
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
175
- } else {
176
- requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
177
- }
178
- });
179
-
180
- const responseInterceptorChain = [];
181
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
182
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
183
- });
184
-
185
- let promise;
186
- let i = 0;
187
- let len;
188
-
189
- if (!synchronousRequestInterceptors) {
190
- const chain = [dispatchRequest.bind(this), undefined];
191
- chain.unshift(...requestInterceptorChain);
192
- chain.push(...responseInterceptorChain);
193
- len = chain.length;
194
-
195
- promise = Promise.resolve(config);
196
-
197
- while (i < len) {
198
- promise = promise.then(chain[i++], chain[i++]);
199
- }
200
-
201
- return promise;
202
- }
203
-
204
- len = requestInterceptorChain.length;
205
-
206
- let newConfig = config;
207
-
208
- while (i < len) {
209
- const onFulfilled = requestInterceptorChain[i++];
210
- const onRejected = requestInterceptorChain[i++];
211
- try {
212
- newConfig = onFulfilled(newConfig);
213
- } catch (error) {
214
- onRejected.call(this, error);
215
- break;
216
- }
217
- }
218
-
219
- try {
220
- promise = dispatchRequest.call(this, newConfig);
221
- } catch (error) {
222
- return Promise.reject(error);
223
- }
224
-
225
- i = 0;
226
- len = responseInterceptorChain.length;
227
-
228
- while (i < len) {
229
- promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
230
- }
231
-
232
- return promise;
233
- }
234
-
235
- getUri(config) {
236
- config = mergeConfig(this.defaults, config);
237
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
238
- return buildURL(fullPath, config.params, config.paramsSerializer);
239
- }
240
- }
241
-
242
- // Provide aliases for supported request methods
243
- utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
244
- /*eslint func-names:0*/
245
- Axios.prototype[method] = function (url, config) {
246
- return this.request(
247
- mergeConfig(config || {}, {
248
- method,
249
- url,
250
- data: config && utils.hasOwnProp(config, 'data') ? config.data : undefined,
251
- })
252
- );
253
- };
254
- });
255
-
256
- utils.forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
257
- function generateHTTPMethod(isForm) {
258
- return function httpMethod(url, data, config) {
259
- return this.request(
260
- mergeConfig(config || {}, {
261
- method,
262
- headers: isForm
263
- ? {
264
- 'Content-Type': 'multipart/form-data',
265
- }
266
- : {},
267
- url,
268
- data,
269
- })
270
- );
271
- };
272
- }
273
-
274
- Axios.prototype[method] = generateHTTPMethod();
275
-
276
- // QUERY is a safe/idempotent read method; multipart form bodies don't fit
277
- // its semantics, so no queryForm shorthand is generated.
278
- if (method !== 'query') {
279
- Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
280
- }
281
- });
282
-
283
- export default Axios;
@@ -1,188 +0,0 @@
1
- 'use strict';
2
-
3
- import utils from '../utils.js';
4
- import AxiosHeaders from './AxiosHeaders.js';
5
-
6
- const REDACTED = '[REDACTED ****]';
7
-
8
- function hasOwnOrPrototypeToJSON(source) {
9
- if (utils.hasOwnProp(source, 'toJSON')) {
10
- return true;
11
- }
12
-
13
- let prototype = Object.getPrototypeOf(source);
14
-
15
- while (prototype && prototype !== Object.prototype) {
16
- if (utils.hasOwnProp(prototype, 'toJSON')) {
17
- return true;
18
- }
19
-
20
- prototype = Object.getPrototypeOf(prototype);
21
- }
22
-
23
- return false;
24
- }
25
-
26
- // Build a plain-object snapshot of `config` and replace the value of any key
27
- // (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays
28
- // and AxiosHeaders, and short-circuits on circular references.
29
- function redactConfig(config, redactKeys) {
30
- const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
31
- const seen = [];
32
-
33
- const visit = (source) => {
34
- if (source === null || typeof source !== 'object') return source;
35
- if (utils.isBuffer(source)) return source;
36
- if (seen.indexOf(source) !== -1) return undefined;
37
-
38
- if (source instanceof AxiosHeaders) {
39
- source = source.toJSON();
40
- }
41
-
42
- seen.push(source);
43
-
44
- let result;
45
- if (utils.isArray(source)) {
46
- result = [];
47
- source.forEach((v, i) => {
48
- const reducedValue = visit(v);
49
- if (!utils.isUndefined(reducedValue)) {
50
- result[i] = reducedValue;
51
- }
52
- });
53
- } else {
54
- if (!utils.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
55
- seen.pop();
56
- return source;
57
- }
58
-
59
- result = Object.create(null);
60
- for (const [key, value] of Object.entries(source)) {
61
- const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
62
- if (!utils.isUndefined(reducedValue)) {
63
- result[key] = reducedValue;
64
- }
65
- }
66
- }
67
-
68
- seen.pop();
69
- return result;
70
- };
71
-
72
- return visit(config);
73
- }
74
-
75
- class AxiosError extends Error {
76
- static from(error, code, config, request, response, customProps) {
77
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
78
- // Match native `Error` `cause` semantics: non-enumerable. The wrapped
79
- // error often carries circular internals (sockets, requests, agents), so
80
- // an enumerable `cause` makes structured loggers (pino/winston) and any
81
- // own-property walk throw "Converting circular structure to JSON".
82
- // Regression from #6982; see #7205. `__proto__: null` mirrors the
83
- // `message` descriptor below (prototype-pollution-safe descriptor).
84
- Object.defineProperty(axiosError, 'cause', {
85
- __proto__: null,
86
- value: error,
87
- writable: true,
88
- enumerable: false,
89
- configurable: true,
90
- });
91
- axiosError.name = error.name;
92
-
93
- // Preserve status from the original error if not already set from response
94
- if (error.status != null && axiosError.status == null) {
95
- axiosError.status = error.status;
96
- }
97
-
98
- customProps && Object.assign(axiosError, customProps);
99
- return axiosError;
100
- }
101
-
102
- /**
103
- * Create an Error with the specified message, config, error code, request and response.
104
- *
105
- * @param {string} message The error message.
106
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
107
- * @param {Object} [config] The config.
108
- * @param {Object} [request] The request.
109
- * @param {Object} [response] The response.
110
- *
111
- * @returns {Error} The created error.
112
- */
113
- constructor(message, code, config, request, response) {
114
- super(message);
115
-
116
- // Make message enumerable to maintain backward compatibility
117
- // The native Error constructor sets message as non-enumerable,
118
- // but axios < v1.13.3 had it as enumerable
119
- Object.defineProperty(this, 'message', {
120
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
121
- // this data descriptor into an accessor descriptor on the way in.
122
- __proto__: null,
123
- value: message,
124
- enumerable: true,
125
- writable: true,
126
- configurable: true,
127
- });
128
-
129
- this.name = 'AxiosError';
130
- this.isAxiosError = true;
131
- code && (this.code = code);
132
- config && (this.config = config);
133
- request && (this.request = request);
134
- if (response) {
135
- this.response = response;
136
- this.status = response.status;
137
- }
138
- }
139
-
140
- toJSON() {
141
- // Opt-in redaction: when the request config carries a `redact` array, the
142
- // value of any matching key (case-insensitive, at any depth) is replaced
143
- // with REDACTED in the serialized snapshot. Undefined or empty leaves the
144
- // existing serialization behavior unchanged.
145
- const config = this.config;
146
- const redactKeys = config && utils.hasOwnProp(config, 'redact') ? config.redact : undefined;
147
- const serializedConfig =
148
- utils.isArray(redactKeys) && redactKeys.length > 0
149
- ? redactConfig(config, redactKeys)
150
- : utils.toJSONObject(config);
151
-
152
- return {
153
- // Standard
154
- message: this.message,
155
- name: this.name,
156
- // Microsoft
157
- description: this.description,
158
- number: this.number,
159
- // Mozilla
160
- fileName: this.fileName,
161
- lineNumber: this.lineNumber,
162
- columnNumber: this.columnNumber,
163
- stack: this.stack,
164
- // Axios
165
- config: serializedConfig,
166
- code: this.code,
167
- status: this.status,
168
- };
169
- }
170
- }
171
-
172
- // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
173
- AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
174
- AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
175
- AxiosError.ECONNABORTED = 'ECONNABORTED';
176
- AxiosError.ETIMEDOUT = 'ETIMEDOUT';
177
- AxiosError.ECONNREFUSED = 'ECONNREFUSED';
178
- AxiosError.ERR_NETWORK = 'ERR_NETWORK';
179
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
180
- AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
181
- AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
182
- AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
183
- AxiosError.ERR_CANCELED = 'ERR_CANCELED';
184
- AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
185
- AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
186
- AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
187
-
188
- export default AxiosError;