@st-gr/sail-proxy 0.9.2 → 0.9.3
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/bundled/gateway/node_modules/.package-lock.json +132 -83
- package/bundled/gateway/node_modules/axios/CHANGELOG.md +0 -42
- package/bundled/gateway/node_modules/axios/README.md +237 -237
- package/bundled/gateway/node_modules/axios/dist/axios.js +21 -113
- package/bundled/gateway/node_modules/axios/dist/axios.js.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/axios.min.js +2 -2
- package/bundled/gateway/node_modules/axios/dist/axios.min.js.map +1 -1
- package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs +15 -121
- package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/esm/axios.js +15 -121
- package/bundled/gateway/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/bundled/gateway/node_modules/axios/dist/node/axios.cjs +107 -249
- package/bundled/gateway/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/bundled/gateway/node_modules/axios/index.d.cts +3 -8
- package/bundled/gateway/node_modules/axios/index.d.ts +1 -4
- package/bundled/gateway/node_modules/axios/lib/adapters/fetch.js +0 -79
- package/bundled/gateway/node_modules/axios/lib/adapters/http.js +118 -62
- package/bundled/gateway/node_modules/axios/lib/core/Axios.js +0 -1
- package/bundled/gateway/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
- package/bundled/gateway/node_modules/axios/lib/defaults/transitional.js +0 -1
- package/bundled/gateway/node_modules/axios/lib/env/data.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/bundled/gateway/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
- package/bundled/gateway/node_modules/axios/lib/helpers/toFormData.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/utils.js +2 -23
- package/bundled/gateway/node_modules/axios/package.json +13 -29
- package/bundled/gateway/node_modules/body-parser/HISTORY.md +0 -14
- package/bundled/gateway/node_modules/body-parser/SECURITY.md +25 -0
- package/bundled/gateway/node_modules/body-parser/lib/types/json.js +5 -1
- package/bundled/gateway/node_modules/body-parser/lib/types/urlencoded.js +15 -7
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.editorconfig +46 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.eslintrc +38 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.github/FUNDING.yml +12 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.nycrc +13 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/CHANGELOG.md +600 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/LICENSE.md +29 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/README.md +709 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/dist/qs.js +90 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/formats.js +23 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/index.js +11 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/parse.js +296 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/stringify.js +351 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/utils.js +265 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/package.json +91 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/parse.js +1170 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/stringify.js +1298 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/utils.js +136 -0
- package/bundled/gateway/node_modules/body-parser/package.json +10 -9
- package/bundled/gateway/node_modules/cookie/index.js +35 -24
- package/bundled/gateway/node_modules/cookie/package.json +1 -1
- package/bundled/gateway/node_modules/cookie-signature/History.md +1 -5
- package/bundled/gateway/node_modules/cookie-signature/index.js +6 -6
- package/bundled/gateway/node_modules/cookie-signature/package.json +2 -2
- package/bundled/gateway/node_modules/express/History.md +0 -43
- package/bundled/gateway/node_modules/express/lib/response.js +0 -1
- package/bundled/gateway/node_modules/express/lib/utils.js +1 -2
- package/bundled/gateway/node_modules/express/node_modules/qs/.editorconfig +43 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.eslintrc +38 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.github/FUNDING.yml +12 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.nycrc +13 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/CHANGELOG.md +546 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/LICENSE.md +29 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/README.md +625 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/dist/qs.js +2054 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/formats.js +23 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/index.js +11 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/parse.js +263 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/stringify.js +326 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/utils.js +252 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/package.json +77 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/parse.js +855 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/stringify.js +909 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/utils.js +136 -0
- package/bundled/gateway/node_modules/express/package.json +17 -21
- package/bundled/gateway/node_modules/finalhandler/HISTORY.md +0 -21
- package/bundled/gateway/node_modules/finalhandler/README.md +2 -2
- package/bundled/gateway/node_modules/finalhandler/index.js +2 -7
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/finalhandler/package.json +9 -10
- package/bundled/gateway/node_modules/http-errors/HISTORY.md +0 -6
- package/bundled/gateway/node_modules/http-errors/index.js +3 -4
- package/bundled/gateway/node_modules/http-errors/package.json +8 -12
- package/bundled/gateway/node_modules/qs/CHANGELOG.md +0 -16
- package/bundled/gateway/node_modules/qs/README.md +1 -1
- package/bundled/gateway/node_modules/qs/dist/qs.js +15 -15
- package/bundled/gateway/node_modules/qs/eslint.config.mjs +0 -1
- package/bundled/gateway/node_modules/qs/lib/parse.js +24 -54
- package/bundled/gateway/node_modules/qs/lib/stringify.js +4 -11
- package/bundled/gateway/node_modules/qs/package.json +3 -3
- package/bundled/gateway/node_modules/qs/test/parse.js +0 -135
- package/bundled/gateway/node_modules/qs/test/stringify.js +0 -138
- package/bundled/gateway/node_modules/qs/test/utils.js +3 -31
- package/bundled/gateway/node_modules/raw-body/HISTORY.md +308 -0
- package/bundled/gateway/node_modules/raw-body/SECURITY.md +24 -0
- package/bundled/gateway/node_modules/raw-body/package.json +7 -5
- package/bundled/gateway/node_modules/send/HISTORY.md +7 -19
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/send/package.json +6 -6
- package/bundled/gateway/node_modules/serve-static/HISTORY.md +0 -16
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/serve-static/package.json +3 -3
- package/bundled/gateway/node_modules/statuses/HISTORY.md +0 -5
- package/bundled/gateway/node_modules/statuses/README.md +0 -3
- package/bundled/gateway/node_modules/statuses/package.json +7 -7
- package/bundled/gateway/package-lock.json +137 -88
- package/bundled/gateway/package.json +23 -5
- package/bundled/ollama/node_modules/.package-lock.json +104 -85
- package/bundled/ollama/node_modules/axios/CHANGELOG.md +0 -42
- package/bundled/ollama/node_modules/axios/README.md +237 -237
- package/bundled/ollama/node_modules/axios/dist/axios.js +21 -113
- package/bundled/ollama/node_modules/axios/dist/axios.js.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/axios.min.js +2 -2
- package/bundled/ollama/node_modules/axios/dist/axios.min.js.map +1 -1
- package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs +15 -121
- package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/esm/axios.js +15 -121
- package/bundled/ollama/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/bundled/ollama/node_modules/axios/dist/node/axios.cjs +107 -249
- package/bundled/ollama/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/bundled/ollama/node_modules/axios/index.d.cts +3 -8
- package/bundled/ollama/node_modules/axios/index.d.ts +1 -4
- package/bundled/ollama/node_modules/axios/lib/adapters/fetch.js +0 -79
- package/bundled/ollama/node_modules/axios/lib/adapters/http.js +118 -62
- package/bundled/ollama/node_modules/axios/lib/core/Axios.js +0 -1
- package/bundled/ollama/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
- package/bundled/ollama/node_modules/axios/lib/defaults/transitional.js +0 -1
- package/bundled/ollama/node_modules/axios/lib/env/data.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/bundled/ollama/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
- package/bundled/ollama/node_modules/axios/lib/helpers/toFormData.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/utils.js +2 -23
- package/bundled/ollama/node_modules/axios/package.json +13 -29
- package/bundled/ollama/node_modules/body-parser/HISTORY.md +0 -14
- package/bundled/ollama/node_modules/body-parser/SECURITY.md +25 -0
- package/bundled/ollama/node_modules/body-parser/lib/types/json.js +5 -1
- package/bundled/ollama/node_modules/body-parser/lib/types/urlencoded.js +15 -7
- package/bundled/ollama/node_modules/body-parser/package.json +10 -9
- package/bundled/ollama/node_modules/cookie/index.js +35 -24
- package/bundled/ollama/node_modules/cookie/package.json +1 -1
- package/bundled/ollama/node_modules/cookie-signature/History.md +1 -5
- package/bundled/ollama/node_modules/cookie-signature/index.js +6 -6
- package/bundled/ollama/node_modules/cookie-signature/package.json +2 -2
- package/bundled/ollama/node_modules/express/History.md +0 -43
- package/bundled/ollama/node_modules/express/lib/response.js +0 -1
- package/bundled/ollama/node_modules/express/lib/utils.js +1 -2
- package/bundled/ollama/node_modules/express/package.json +17 -21
- package/bundled/ollama/node_modules/finalhandler/HISTORY.md +0 -21
- package/bundled/ollama/node_modules/finalhandler/README.md +2 -2
- package/bundled/ollama/node_modules/finalhandler/index.js +2 -7
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/finalhandler/package.json +9 -10
- package/bundled/ollama/node_modules/http-errors/HISTORY.md +0 -6
- package/bundled/ollama/node_modules/http-errors/index.js +3 -4
- package/bundled/ollama/node_modules/http-errors/package.json +8 -12
- package/bundled/ollama/node_modules/qs/CHANGELOG.md +0 -16
- package/bundled/ollama/node_modules/qs/README.md +1 -1
- package/bundled/ollama/node_modules/qs/dist/qs.js +15 -15
- package/bundled/ollama/node_modules/qs/eslint.config.mjs +0 -1
- package/bundled/ollama/node_modules/qs/lib/parse.js +24 -54
- package/bundled/ollama/node_modules/qs/lib/stringify.js +4 -11
- package/bundled/ollama/node_modules/qs/package.json +3 -3
- package/bundled/ollama/node_modules/qs/test/parse.js +0 -135
- package/bundled/ollama/node_modules/qs/test/stringify.js +0 -138
- package/bundled/ollama/node_modules/qs/test/utils.js +3 -31
- package/bundled/ollama/node_modules/raw-body/HISTORY.md +308 -0
- package/bundled/ollama/node_modules/raw-body/SECURITY.md +24 -0
- package/bundled/ollama/node_modules/raw-body/package.json +7 -5
- package/bundled/ollama/node_modules/send/HISTORY.md +7 -19
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/send/package.json +6 -6
- package/bundled/ollama/node_modules/serve-static/HISTORY.md +0 -16
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/serve-static/package.json +3 -3
- package/bundled/ollama/node_modules/statuses/HISTORY.md +0 -5
- package/bundled/ollama/node_modules/statuses/README.md +0 -3
- package/bundled/ollama/node_modules/statuses/package.json +7 -7
- package/bundled/ollama/package-lock.json +107 -88
- package/bundled/ollama/package.json +24 -4
- package/node_modules/@sap-llm-gateway/service-key-parser/package.json +1 -1
- package/package.json +2 -2
- package/bundled/gateway/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/bundled/ollama/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
|
@@ -66,9 +66,7 @@ declare class AxiosHeaders {
|
|
|
66
66
|
...targets: Array<AxiosHeaders | axios.RawAxiosHeaders | string | undefined | null>
|
|
67
67
|
): AxiosHeaders;
|
|
68
68
|
|
|
69
|
-
toJSON(asStrings
|
|
70
|
-
toJSON(asStrings?: false): Record<string, string | string[]>;
|
|
71
|
-
toJSON(asStrings?: boolean): Record<string, string | string[]>;
|
|
69
|
+
toJSON(asStrings?: boolean): axios.RawAxiosHeaders;
|
|
72
70
|
|
|
73
71
|
static from(thing?: AxiosHeaders | axios.RawAxiosHeaders | string): AxiosHeaders;
|
|
74
72
|
|
|
@@ -164,9 +162,7 @@ declare class AxiosError<T = unknown, D = any> extends Error {
|
|
|
164
162
|
static readonly ETIMEDOUT = 'ETIMEDOUT';
|
|
165
163
|
}
|
|
166
164
|
|
|
167
|
-
declare class CanceledError<T> extends AxiosError<T> {
|
|
168
|
-
readonly name: 'CanceledError';
|
|
169
|
-
}
|
|
165
|
+
declare class CanceledError<T> extends AxiosError<T> {}
|
|
170
166
|
|
|
171
167
|
declare class Axios {
|
|
172
168
|
constructor(config?: axios.AxiosRequestConfig);
|
|
@@ -396,7 +392,6 @@ declare namespace axios {
|
|
|
396
392
|
forcedJSONParsing?: boolean;
|
|
397
393
|
clarifyTimeoutError?: boolean;
|
|
398
394
|
legacyInterceptorReqResOrdering?: boolean;
|
|
399
|
-
advertiseZstdAcceptEncoding?: boolean;
|
|
400
395
|
}
|
|
401
396
|
|
|
402
397
|
interface GenericAbortSignal {
|
|
@@ -696,7 +691,7 @@ declare namespace axios {
|
|
|
696
691
|
CanceledError: typeof CanceledError;
|
|
697
692
|
HttpStatusCode: typeof HttpStatusCode;
|
|
698
693
|
readonly VERSION: string;
|
|
699
|
-
isCancel
|
|
694
|
+
isCancel(value: any): value is Cancel;
|
|
700
695
|
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
|
701
696
|
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
|
|
702
697
|
isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
|
|
@@ -47,9 +47,7 @@ export class AxiosHeaders {
|
|
|
47
47
|
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
48
48
|
): AxiosHeaders;
|
|
49
49
|
|
|
50
|
-
toJSON(asStrings
|
|
51
|
-
toJSON(asStrings?: false): Record<string, string | string[]>;
|
|
52
|
-
toJSON(asStrings?: boolean): Record<string, string | string[]>;
|
|
50
|
+
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
53
51
|
|
|
54
52
|
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
55
53
|
|
|
@@ -283,7 +281,6 @@ export interface TransitionalOptions {
|
|
|
283
281
|
forcedJSONParsing?: boolean;
|
|
284
282
|
clarifyTimeoutError?: boolean;
|
|
285
283
|
legacyInterceptorReqResOrdering?: boolean;
|
|
286
|
-
advertiseZstdAcceptEncoding?: boolean;
|
|
287
284
|
}
|
|
288
285
|
|
|
289
286
|
export interface GenericAbortSignal {
|
|
@@ -19,35 +19,6 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
|
19
19
|
|
|
20
20
|
const { isFunction } = utils;
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
24
|
-
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
25
|
-
*
|
|
26
|
-
* @param {string} str The string to encode
|
|
27
|
-
*
|
|
28
|
-
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
29
|
-
*/
|
|
30
|
-
const encodeUTF8 = (str) =>
|
|
31
|
-
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
32
|
-
String.fromCharCode(parseInt(hex, 16))
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
// Node's WHATWG URL parser returns `username` and `password` percent-encoded.
|
|
36
|
-
// Decode before composing the `auth` option so credentials such as
|
|
37
|
-
// `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the
|
|
38
|
-
// original value for malformed input so a bad encoding never throws.
|
|
39
|
-
const decodeURIComponentSafe = (value) => {
|
|
40
|
-
if (!utils.isString(value)) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
try {
|
|
45
|
-
return decodeURIComponent(value);
|
|
46
|
-
} catch (error) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
22
|
const test = (fn, ...args) => {
|
|
52
23
|
try {
|
|
53
24
|
return !!fn(...args);
|
|
@@ -56,15 +27,6 @@ const test = (fn, ...args) => {
|
|
|
56
27
|
}
|
|
57
28
|
};
|
|
58
29
|
|
|
59
|
-
const maybeWithAuthCredentials = (url) => {
|
|
60
|
-
const protocolIndex = url.indexOf('://');
|
|
61
|
-
let urlToCheck = url;
|
|
62
|
-
if (protocolIndex !== -1) {
|
|
63
|
-
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
64
|
-
}
|
|
65
|
-
return urlToCheck.includes('@') || urlToCheck.includes(':');
|
|
66
|
-
};
|
|
67
|
-
|
|
68
30
|
const factory = (env) => {
|
|
69
31
|
const globalObject =
|
|
70
32
|
utils.global !== undefined && utils.global !== null
|
|
@@ -212,7 +174,6 @@ const factory = (env) => {
|
|
|
212
174
|
|
|
213
175
|
const hasMaxContentLength = utils.isNumber(maxContentLength) && maxContentLength > -1;
|
|
214
176
|
const hasMaxBodyLength = utils.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
215
|
-
const own = (key) => (utils.hasOwnProp(config, key) ? config[key] : undefined);
|
|
216
177
|
|
|
217
178
|
let _fetch = envFetch || fetch;
|
|
218
179
|
|
|
@@ -235,46 +196,6 @@ const factory = (env) => {
|
|
|
235
196
|
let requestContentLength;
|
|
236
197
|
|
|
237
198
|
try {
|
|
238
|
-
// HTTP basic authentication
|
|
239
|
-
let auth = undefined;
|
|
240
|
-
const configAuth = own('auth');
|
|
241
|
-
|
|
242
|
-
if (configAuth) {
|
|
243
|
-
const username = configAuth.username || '';
|
|
244
|
-
const password = configAuth.password || '';
|
|
245
|
-
auth = {
|
|
246
|
-
username,
|
|
247
|
-
password
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (maybeWithAuthCredentials(url)) {
|
|
252
|
-
const parsedURL = new URL(url, platform.origin);
|
|
253
|
-
|
|
254
|
-
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
255
|
-
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
256
|
-
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
257
|
-
auth = {
|
|
258
|
-
username: urlUsername,
|
|
259
|
-
password: urlPassword
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
if (parsedURL.username || parsedURL.password) {
|
|
264
|
-
parsedURL.username = '';
|
|
265
|
-
parsedURL.password = '';
|
|
266
|
-
url = parsedURL.href;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
if (auth) {
|
|
271
|
-
headers.delete('authorization');
|
|
272
|
-
headers.set(
|
|
273
|
-
'Authorization',
|
|
274
|
-
'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))
|
|
275
|
-
);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
199
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
279
200
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
280
201
|
// "if (protocol === 'data:')" branch).
|
|
@@ -24,7 +24,6 @@ import { EventEmitter } from 'events';
|
|
|
24
24
|
import formDataToStream from '../helpers/formDataToStream.js';
|
|
25
25
|
import readBlob from '../helpers/readBlob.js';
|
|
26
26
|
import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';
|
|
27
|
-
import Http2Sessions from '../helpers/Http2Sessions.js';
|
|
28
27
|
import callbackify from '../helpers/callbackify.js';
|
|
29
28
|
import shouldBypassProxy from '../helpers/shouldBypassProxy.js';
|
|
30
29
|
import { toByteStringHeaderObject } from '../helpers/sanitizeHeaderValue.js';
|
|
@@ -45,15 +44,7 @@ const brotliOptions = {
|
|
|
45
44
|
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
46
45
|
};
|
|
47
46
|
|
|
48
|
-
const zstdOptions = {
|
|
49
|
-
flush: zlib.constants.ZSTD_e_flush,
|
|
50
|
-
finishFlush: zlib.constants.ZSTD_e_flush,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
47
|
const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);
|
|
54
|
-
const isZstdSupported = utils.isFunction(zlib.createZstdDecompress);
|
|
55
|
-
const ACCEPT_ENCODING = 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : '');
|
|
56
|
-
const ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ', zstd' : '');
|
|
57
48
|
|
|
58
49
|
const { http: httpFollow, https: httpsFollow } = followRedirects;
|
|
59
50
|
|
|
@@ -112,14 +103,6 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
|
112
103
|
? { ...userHttpsAgent.options, ...agentOptions }
|
|
113
104
|
: agentOptions;
|
|
114
105
|
agent = new HttpsProxyAgent(merged);
|
|
115
|
-
if (userHttpsAgent && userHttpsAgent.options) {
|
|
116
|
-
const originTLSOptions = { ...userHttpsAgent.options };
|
|
117
|
-
const callback = agent.callback;
|
|
118
|
-
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
119
|
-
// HttpsProxyAgent v5 reads callback opts for the post-CONNECT origin TLS upgrade.
|
|
120
|
-
return callback.call(this, req, { ...originTLSOptions, ...opts });
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
106
|
agent[kAxiosInstalledTunnel] = true;
|
|
124
107
|
cache.set(key, agent);
|
|
125
108
|
return agent;
|
|
@@ -151,11 +134,114 @@ const flushOnFinish = (stream, [throttled, flush]) => {
|
|
|
151
134
|
return throttled;
|
|
152
135
|
};
|
|
153
136
|
|
|
137
|
+
class Http2Sessions {
|
|
138
|
+
constructor() {
|
|
139
|
+
this.sessions = Object.create(null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
getSession(authority, options) {
|
|
143
|
+
options = Object.assign(
|
|
144
|
+
{
|
|
145
|
+
sessionTimeout: 1000,
|
|
146
|
+
},
|
|
147
|
+
options
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
let authoritySessions = this.sessions[authority];
|
|
151
|
+
|
|
152
|
+
if (authoritySessions) {
|
|
153
|
+
let len = authoritySessions.length;
|
|
154
|
+
|
|
155
|
+
for (let i = 0; i < len; i++) {
|
|
156
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
157
|
+
if (
|
|
158
|
+
!sessionHandle.destroyed &&
|
|
159
|
+
!sessionHandle.closed &&
|
|
160
|
+
util.isDeepStrictEqual(sessionOptions, options)
|
|
161
|
+
) {
|
|
162
|
+
return sessionHandle;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const session = http2.connect(authority, options);
|
|
168
|
+
|
|
169
|
+
let removed;
|
|
170
|
+
|
|
171
|
+
const removeSession = () => {
|
|
172
|
+
if (removed) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
removed = true;
|
|
177
|
+
|
|
178
|
+
let entries = authoritySessions,
|
|
179
|
+
len = entries.length,
|
|
180
|
+
i = len;
|
|
181
|
+
|
|
182
|
+
while (i--) {
|
|
183
|
+
if (entries[i][0] === session) {
|
|
184
|
+
if (len === 1) {
|
|
185
|
+
delete this.sessions[authority];
|
|
186
|
+
} else {
|
|
187
|
+
entries.splice(i, 1);
|
|
188
|
+
}
|
|
189
|
+
if (!session.closed) {
|
|
190
|
+
session.close();
|
|
191
|
+
}
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
const originalRequestFn = session.request;
|
|
198
|
+
|
|
199
|
+
const { sessionTimeout } = options;
|
|
200
|
+
|
|
201
|
+
if (sessionTimeout != null) {
|
|
202
|
+
let timer;
|
|
203
|
+
let streamsCount = 0;
|
|
204
|
+
|
|
205
|
+
session.request = function () {
|
|
206
|
+
const stream = originalRequestFn.apply(this, arguments);
|
|
207
|
+
|
|
208
|
+
streamsCount++;
|
|
209
|
+
|
|
210
|
+
if (timer) {
|
|
211
|
+
clearTimeout(timer);
|
|
212
|
+
timer = null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
stream.once('close', () => {
|
|
216
|
+
if (!--streamsCount) {
|
|
217
|
+
timer = setTimeout(() => {
|
|
218
|
+
timer = null;
|
|
219
|
+
removeSession();
|
|
220
|
+
}, sessionTimeout);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
return stream;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
session.once('close', removeSession);
|
|
229
|
+
|
|
230
|
+
let entry = [session, options];
|
|
231
|
+
|
|
232
|
+
authoritySessions
|
|
233
|
+
? authoritySessions.push(entry)
|
|
234
|
+
: (authoritySessions = this.sessions[authority] = [entry]);
|
|
235
|
+
|
|
236
|
+
return session;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
154
240
|
const http2Sessions = new Http2Sessions();
|
|
155
241
|
|
|
156
242
|
/**
|
|
157
|
-
* If the proxy
|
|
158
|
-
*
|
|
243
|
+
* If the proxy or config beforeRedirects functions are defined, call them with the options
|
|
244
|
+
* object.
|
|
159
245
|
*
|
|
160
246
|
* @param {Object<string, any>} options - The options object that was passed to the request.
|
|
161
247
|
*
|
|
@@ -165,9 +251,6 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
|
165
251
|
if (options.beforeRedirects.proxy) {
|
|
166
252
|
options.beforeRedirects.proxy(options);
|
|
167
253
|
}
|
|
168
|
-
if (options.beforeRedirects.auth) {
|
|
169
|
-
options.beforeRedirects.auth(options);
|
|
170
|
-
}
|
|
171
254
|
if (options.beforeRedirects.config) {
|
|
172
255
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
173
256
|
}
|
|
@@ -435,7 +518,6 @@ export default isHttpAdapterSupported &&
|
|
|
435
518
|
function httpAdapter(config) {
|
|
436
519
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
437
520
|
const own = (key) => (utils.hasOwnProp(config, key) ? config[key] : undefined);
|
|
438
|
-
const transitional = own('transitional') || transitionalDefaults;
|
|
439
521
|
let data = own('data');
|
|
440
522
|
let lookup = own('lookup');
|
|
441
523
|
let family = own('family');
|
|
@@ -489,7 +571,7 @@ export default isHttpAdapterSupported &&
|
|
|
489
571
|
!reason || reason.type ? new CanceledError(null, config, req) : reason
|
|
490
572
|
);
|
|
491
573
|
} catch (err) {
|
|
492
|
-
|
|
574
|
+
console.warn('emit error', err);
|
|
493
575
|
}
|
|
494
576
|
}
|
|
495
577
|
|
|
@@ -504,6 +586,7 @@ export default isHttpAdapterSupported &&
|
|
|
504
586
|
let timeoutErrorMessage = config.timeout
|
|
505
587
|
? 'timeout of ' + config.timeout + 'ms exceeded'
|
|
506
588
|
: 'timeout exceeded';
|
|
589
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
507
590
|
if (config.timeoutErrorMessage) {
|
|
508
591
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
509
592
|
}
|
|
@@ -752,7 +835,7 @@ export default isHttpAdapterSupported &&
|
|
|
752
835
|
auth = username + ':' + password;
|
|
753
836
|
}
|
|
754
837
|
|
|
755
|
-
if (!auth &&
|
|
838
|
+
if (!auth && parsed.username) {
|
|
756
839
|
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
757
840
|
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
758
841
|
auth = urlUsername + ':' + urlPassword;
|
|
@@ -778,8 +861,7 @@ export default isHttpAdapterSupported &&
|
|
|
778
861
|
|
|
779
862
|
headers.set(
|
|
780
863
|
'Accept-Encoding',
|
|
781
|
-
|
|
782
|
-
transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
|
|
864
|
+
'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''),
|
|
783
865
|
false
|
|
784
866
|
);
|
|
785
867
|
|
|
@@ -801,21 +883,19 @@ export default isHttpAdapterSupported &&
|
|
|
801
883
|
// cacheable-lookup integration hotfix
|
|
802
884
|
!utils.isUndefined(lookup) && (options.lookup = lookup);
|
|
803
885
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
if (typeof socketPath !== 'string') {
|
|
886
|
+
if (config.socketPath) {
|
|
887
|
+
if (typeof config.socketPath !== 'string') {
|
|
807
888
|
return reject(
|
|
808
889
|
new AxiosError('socketPath must be a string', AxiosError.ERR_BAD_OPTION_VALUE, config)
|
|
809
890
|
);
|
|
810
891
|
}
|
|
811
892
|
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
: [allowedSocketPaths];
|
|
893
|
+
if (config.allowedSocketPaths != null) {
|
|
894
|
+
const allowed = Array.isArray(config.allowedSocketPaths)
|
|
895
|
+
? config.allowedSocketPaths
|
|
896
|
+
: [config.allowedSocketPaths];
|
|
817
897
|
|
|
818
|
-
const resolvedSocket = resolvePath(socketPath);
|
|
898
|
+
const resolvedSocket = resolvePath(config.socketPath);
|
|
819
899
|
const isAllowed = allowed.some(
|
|
820
900
|
(entry) => typeof entry === 'string' && resolvePath(entry) === resolvedSocket
|
|
821
901
|
);
|
|
@@ -823,7 +903,7 @@ export default isHttpAdapterSupported &&
|
|
|
823
903
|
if (!isAllowed) {
|
|
824
904
|
return reject(
|
|
825
905
|
new AxiosError(
|
|
826
|
-
`socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
|
|
906
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
827
907
|
AxiosError.ERR_BAD_OPTION_VALUE,
|
|
828
908
|
config
|
|
829
909
|
)
|
|
@@ -831,7 +911,7 @@ export default isHttpAdapterSupported &&
|
|
|
831
911
|
}
|
|
832
912
|
}
|
|
833
913
|
|
|
834
|
-
options.socketPath = socketPath;
|
|
914
|
+
options.socketPath = config.socketPath;
|
|
835
915
|
} else {
|
|
836
916
|
options.hostname = parsed.hostname.startsWith('[')
|
|
837
917
|
? parsed.hostname.slice(1, -1)
|
|
@@ -871,23 +951,6 @@ export default isHttpAdapterSupported &&
|
|
|
871
951
|
if (configBeforeRedirect) {
|
|
872
952
|
options.beforeRedirects.config = configBeforeRedirect;
|
|
873
953
|
}
|
|
874
|
-
if (auth) {
|
|
875
|
-
// Restore HTTP Basic credentials on same-origin redirects only.
|
|
876
|
-
// follow-redirects >= 1.15.8 strips Authorization on every redirect (see #6929);
|
|
877
|
-
// cross-origin stripping is the documented mitigation for T-R2 in THREATMODEL.md
|
|
878
|
-
// and is preserved by deliberately not restoring on origin change.
|
|
879
|
-
const requestOrigin = parsed.origin;
|
|
880
|
-
const authToRestore = auth;
|
|
881
|
-
options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
|
|
882
|
-
try {
|
|
883
|
-
if (new URL(redirectOptions.href).origin === requestOrigin) {
|
|
884
|
-
redirectOptions.auth = authToRestore;
|
|
885
|
-
}
|
|
886
|
-
} catch (e) {
|
|
887
|
-
// ignore malformed URL: leaving auth stripped is fail-safe
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
}
|
|
891
954
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
892
955
|
}
|
|
893
956
|
}
|
|
@@ -974,13 +1037,6 @@ export default isHttpAdapterSupported &&
|
|
|
974
1037
|
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
975
1038
|
delete res.headers['content-encoding'];
|
|
976
1039
|
}
|
|
977
|
-
break;
|
|
978
|
-
case 'zstd':
|
|
979
|
-
if (isZstdSupported) {
|
|
980
|
-
streams.push(zlib.createZstdDecompress(zstdOptions));
|
|
981
|
-
delete res.headers['content-encoding'];
|
|
982
|
-
}
|
|
983
|
-
break;
|
|
984
1040
|
}
|
|
985
1041
|
}
|
|
986
1042
|
|
|
@@ -101,7 +101,6 @@ class Axios {
|
|
|
101
101
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
102
102
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
103
103
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
104
|
-
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
105
104
|
},
|
|
106
105
|
false
|
|
107
106
|
);
|
|
@@ -89,7 +89,7 @@ class AxiosHeaders {
|
|
|
89
89
|
const lHeader = normalizeHeader(_header);
|
|
90
90
|
|
|
91
91
|
if (!lHeader) {
|
|
92
|
-
|
|
92
|
+
throw new Error('header name must be a non-empty string');
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const key = utils.findKey(self, lHeader);
|
|
@@ -117,7 +117,7 @@ class AxiosHeaders {
|
|
|
117
117
|
key;
|
|
118
118
|
for (const entry of header) {
|
|
119
119
|
if (!utils.isArray(entry)) {
|
|
120
|
-
throw
|
|
120
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
obj[(key = entry[0])] = (dest = obj[key])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.16.1";
|
|
@@ -73,11 +73,11 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
73
73
|
} = options || {};
|
|
74
74
|
|
|
75
75
|
if (!utils.isFormData(form)) {
|
|
76
|
-
throw
|
|
76
|
+
throw TypeError('FormData instance required');
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
80
|
-
throw
|
|
80
|
+
throw Error('boundary must be 1-70 characters long');
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
|
@@ -35,7 +35,7 @@ const encodeUTF8 = (str) =>
|
|
|
35
35
|
String.fromCharCode(parseInt(hex, 16))
|
|
36
36
|
);
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
export default (config) => {
|
|
39
39
|
const newConfig = mergeConfig({}, config);
|
|
40
40
|
|
|
41
41
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -56,8 +56,8 @@ function resolveConfig(config) {
|
|
|
56
56
|
|
|
57
57
|
newConfig.url = buildURL(
|
|
58
58
|
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
config.params,
|
|
60
|
+
config.paramsSerializer
|
|
61
61
|
);
|
|
62
62
|
|
|
63
63
|
// HTTP basic authentication
|
|
@@ -70,12 +70,8 @@ function resolveConfig(config) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
if (utils.isFormData(data)) {
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
platform.hasStandardBrowserWebWorkerEnv ||
|
|
76
|
-
utils.isReactNative(data)
|
|
77
|
-
) {
|
|
78
|
-
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
73
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
74
|
+
headers.setContentType(undefined); // browser handles it
|
|
79
75
|
} else if (utils.isFunction(data.getHeaders)) {
|
|
80
76
|
// Node.js FormData (like form-data package)
|
|
81
77
|
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
@@ -107,6 +103,4 @@ function resolveConfig(config) {
|
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
return newConfig;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export default resolveConfig;
|
|
106
|
+
};
|
|
@@ -219,7 +219,7 @@ function toFormData(obj, formData, options) {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
if (stack.indexOf(value) !== -1) {
|
|
222
|
-
throw
|
|
222
|
+
throw Error('Circular reference detected in ' + path.join('.'));
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
stack.push(value);
|
|
@@ -412,9 +412,7 @@ function merge(...objs) {
|
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
|
|
416
|
-
// symbol keys are identity-matched.
|
|
417
|
-
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
415
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
418
416
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
419
417
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
420
418
|
// copied into the merged result.
|
|
@@ -431,24 +429,7 @@ function merge(...objs) {
|
|
|
431
429
|
};
|
|
432
430
|
|
|
433
431
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
434
|
-
|
|
435
|
-
if (!source || isBuffer(source)) {
|
|
436
|
-
continue;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
forEach(source, assignValue);
|
|
440
|
-
|
|
441
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
442
|
-
continue;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
const symbols = Object.getOwnPropertySymbols(source);
|
|
446
|
-
for (let j = 0; j < symbols.length; j++) {
|
|
447
|
-
const symbol = symbols[j];
|
|
448
|
-
if (propertyIsEnumerable.call(source, symbol)) {
|
|
449
|
-
assignValue(source[symbol], symbol);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
432
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
452
433
|
}
|
|
453
434
|
return result;
|
|
454
435
|
}
|
|
@@ -677,8 +658,6 @@ const hasOwnProperty = (
|
|
|
677
658
|
hasOwnProperty.call(obj, prop)
|
|
678
659
|
)(Object.prototype);
|
|
679
660
|
|
|
680
|
-
const { propertyIsEnumerable } = Object.prototype;
|
|
681
|
-
|
|
682
661
|
/**
|
|
683
662
|
* Determine if a value is a RegExp object
|
|
684
663
|
*
|