@nocobase/plugin-ai-gigachat 2.2.17 → 2.2.18
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/externalVersion.js +5 -5
- package/dist/node_modules/gigachat/index.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/dist/axios.js +2165 -1269
- package/dist/node_modules/gigachat/node_modules/axios/dist/axios.min.js +3 -3
- package/dist/node_modules/gigachat/node_modules/axios/dist/browser/axios.cjs +2771 -1604
- package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.js +2784 -1619
- package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/dist/node_modules/gigachat/node_modules/axios/dist/node/axios.cjs +3201 -2520
- package/dist/node_modules/gigachat/node_modules/axios/index.d.cts +270 -123
- package/dist/node_modules/gigachat/node_modules/axios/index.d.ts +176 -231
- package/dist/node_modules/gigachat/node_modules/axios/index.js +5 -3
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/adapters.js +23 -17
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/fetch.js +467 -112
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/http.js +1158 -639
- package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/xhr.js +192 -164
- package/dist/node_modules/gigachat/node_modules/axios/lib/axios.js +6 -6
- package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CancelToken.js +4 -4
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/Axios.js +84 -50
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosError.js +161 -46
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosHeaders.js +65 -28
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/buildFullPath.js +30 -2
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/dispatchRequest.js +37 -29
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/mergeConfig.js +65 -25
- package/dist/node_modules/gigachat/node_modules/axios/lib/core/settle.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/index.js +92 -76
- package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/transitional.js +3 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/env/data.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosTransformStream.js +37 -24
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +10 -9
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/Http2Sessions.js +119 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +5 -4
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/buildURL.js +24 -19
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/callbackify.js +13 -11
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/composeSignals.js +42 -33
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/cookies.js +55 -44
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/deprecatedMethod.js +9 -4
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +37 -5
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToJSON.js +29 -5
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToStream.js +34 -27
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/fromDataURI.js +22 -7
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAxiosError.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isURLSameOrigin.js +13 -11
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseHeaders.js +34 -20
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseProtocol.js +2 -2
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/progressEventReducer.js +30 -20
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/readBlob.js +4 -4
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/resolveConfig.js +87 -29
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/shouldBypassProxy.js +210 -0
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/speedometer.js +1 -1
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/throttle.js +4 -4
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toFormData.js +94 -32
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toURLEncodedForm.js +2 -2
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/trackStream.js +33 -31
- package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/validator.js +20 -7
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/Blob.js +2 -2
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/index.js +5 -5
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/common/utils.js +6 -5
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/index.js +2 -2
- package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/index.js +9 -10
- package/dist/node_modules/gigachat/node_modules/axios/lib/utils.js +270 -116
- package/dist/node_modules/gigachat/node_modules/axios/package.json +113 -132
- package/dist/node_modules/gigachat/node_modules/follow-redirects/index.js +24 -1
- package/dist/node_modules/gigachat/node_modules/follow-redirects/package.json +1 -1
- package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.cjs +105 -0
- package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.js +103 -0
- package/dist/node_modules/gigachat/node_modules/proxy-from-env/package.json +43 -0
- package/dist/node_modules/gigachat/package.json +1 -1
- package/dist/node_modules/langchain-gigachat/index.cjs +2 -2
- package/dist/node_modules/langchain-gigachat/package.json +1 -1
- package/package.json +2 -2
- package/dist/node_modules/gigachat/node_modules/es-define-property/.eslintrc +0 -13
- package/dist/node_modules/gigachat/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/es-define-property/.nycrc +0 -9
- package/dist/node_modules/gigachat/node_modules/es-define-property/index.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/es-define-property/index.js +0 -14
- package/dist/node_modules/gigachat/node_modules/es-define-property/package.json +0 -81
- package/dist/node_modules/gigachat/node_modules/es-define-property/test/index.js +0 -56
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/.eslintrc +0 -16
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.js +0 -10
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.js +0 -4
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.js +0 -6
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/package.json +0 -80
- package/dist/node_modules/gigachat/node_modules/es-object-atoms/test/index.js +0 -38
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.eslintrc +0 -13
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.nycrc +0 -9
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.d.ts +0 -10
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.js +0 -35
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/package.json +0 -78
- package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/test/index.js +0 -85
- package/dist/node_modules/gigachat/node_modules/form-data/License +0 -19
- package/dist/node_modules/gigachat/node_modules/form-data/index.d.ts +0 -62
- package/dist/node_modules/gigachat/node_modules/form-data/lib/browser.js +0 -4
- package/dist/node_modules/gigachat/node_modules/form-data/lib/form_data.js +0 -494
- package/dist/node_modules/gigachat/node_modules/form-data/lib/populate.js +0 -10
- package/dist/node_modules/gigachat/node_modules/form-data/package.json +0 -82
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.eslintrc +0 -42
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/.nycrc +0 -9
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/index.js +0 -378
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.eslintrc +0 -11
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.nycrc +0 -9
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.js +0 -14
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/package.json +0 -111
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.js +0 -45
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/index.js +0 -22
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/tests.js +0 -58
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/package.json +0 -97
- package/dist/node_modules/gigachat/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/dist/node_modules/gigachat/node_modules/gopd/.eslintrc +0 -16
- package/dist/node_modules/gigachat/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/gopd/gOPD.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/gopd/gOPD.js +0 -4
- package/dist/node_modules/gigachat/node_modules/gopd/index.d.ts +0 -5
- package/dist/node_modules/gigachat/node_modules/gopd/index.js +0 -15
- package/dist/node_modules/gigachat/node_modules/gopd/package.json +0 -77
- package/dist/node_modules/gigachat/node_modules/gopd/test/index.js +0 -36
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.eslintrc +0 -5
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/.nycrc +0 -13
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.js +0 -8
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/package.json +0 -108
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.js +0 -8
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/index.js +0 -21
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/tests.js +0 -15
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.js +0 -31
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.js +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/package.json +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.js +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.js +0 -44
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.js +0 -22
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.js +0 -44
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.js +0 -22
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.js +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.js +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.js +0 -83
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.js +0 -39
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.js +0 -27
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.js +0 -20
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.js +0 -65
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.js +0 -5
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.js +0 -8
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.js +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.js +0 -39
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.js +0 -20
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/dist/node_modules/gigachat/node_modules/uuid/package.json +0 -132
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.js +0 -31
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.js +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/package.json +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.js +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.js +0 -44
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.js +0 -22
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.js +0 -44
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.js +0 -22
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.js +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.js +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.js +0 -83
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.js +0 -39
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.js +0 -27
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.js +0 -20
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.js +0 -65
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.js +0 -5
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.js +0 -8
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.js +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.js +0 -39
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.js +0 -20
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/dist/node_modules/langchain-gigachat/node_modules/uuid/package.json +0 -132
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
import bind from
|
|
3
|
+
import bind from './helpers/bind.js';
|
|
4
4
|
|
|
5
5
|
// utils is a library of generic helper functions non-specific to axios
|
|
6
6
|
|
|
@@ -8,6 +8,57 @@ const { toString } = Object.prototype;
|
|
|
8
8
|
const { getPrototypeOf } = Object;
|
|
9
9
|
const { iterator, toStringTag } = Symbol;
|
|
10
10
|
|
|
11
|
+
/* Creating a function that will check if an object has a property. */
|
|
12
|
+
const hasOwnProperty = (
|
|
13
|
+
({ hasOwnProperty }) =>
|
|
14
|
+
(obj, prop) =>
|
|
15
|
+
hasOwnProperty.call(obj, prop)
|
|
16
|
+
)(Object.prototype);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Walk the prototype chain (excluding the shared Object.prototype) looking for
|
|
20
|
+
* an own `prop`. This distinguishes genuine own/inherited members — including
|
|
21
|
+
* class accessors and template prototypes — from members injected via
|
|
22
|
+
* Object.prototype pollution (e.g. `Object.prototype.username = '...'`), which
|
|
23
|
+
* live on Object.prototype itself and are therefore never matched.
|
|
24
|
+
*
|
|
25
|
+
* @param {*} thing The value whose chain to inspect
|
|
26
|
+
* @param {string|symbol} prop The property key to look for
|
|
27
|
+
*
|
|
28
|
+
* @returns {boolean} True when `prop` is owned below Object.prototype
|
|
29
|
+
*/
|
|
30
|
+
const hasOwnInPrototypeChain = (thing, prop) => {
|
|
31
|
+
let obj = thing;
|
|
32
|
+
const seen = [];
|
|
33
|
+
|
|
34
|
+
while (obj != null && obj !== Object.prototype) {
|
|
35
|
+
if (seen.indexOf(obj) !== -1) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
seen.push(obj);
|
|
39
|
+
|
|
40
|
+
if (hasOwnProperty(obj, prop)) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
obj = getPrototypeOf(obj);
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Read `obj[prop]` only when it is safe from Object.prototype pollution. Own
|
|
50
|
+
* properties and members inherited from a non-Object.prototype source (a class
|
|
51
|
+
* instance or template object) are honored; a value reachable only through a
|
|
52
|
+
* polluted Object.prototype is ignored and `undefined` is returned.
|
|
53
|
+
*
|
|
54
|
+
* @param {*} obj The source object
|
|
55
|
+
* @param {string|symbol} prop The property key to read
|
|
56
|
+
*
|
|
57
|
+
* @returns {*} The resolved value, or undefined when unsafe/absent
|
|
58
|
+
*/
|
|
59
|
+
const getSafeProp = (obj, prop) =>
|
|
60
|
+
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
61
|
+
|
|
11
62
|
const kindOf = ((cache) => (thing) => {
|
|
12
63
|
const str = toString.call(thing);
|
|
13
64
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -36,7 +87,7 @@ const { isArray } = Array;
|
|
|
36
87
|
*
|
|
37
88
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
38
89
|
*/
|
|
39
|
-
const isUndefined = typeOfTest(
|
|
90
|
+
const isUndefined = typeOfTest('undefined');
|
|
40
91
|
|
|
41
92
|
/**
|
|
42
93
|
* Determine if a value is a Buffer
|
|
@@ -63,7 +114,7 @@ function isBuffer(val) {
|
|
|
63
114
|
*
|
|
64
115
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
65
116
|
*/
|
|
66
|
-
const isArrayBuffer = kindOfTest(
|
|
117
|
+
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
67
118
|
|
|
68
119
|
/**
|
|
69
120
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -74,7 +125,7 @@ const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
|
74
125
|
*/
|
|
75
126
|
function isArrayBufferView(val) {
|
|
76
127
|
let result;
|
|
77
|
-
if (typeof ArrayBuffer !==
|
|
128
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
78
129
|
result = ArrayBuffer.isView(val);
|
|
79
130
|
} else {
|
|
80
131
|
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
@@ -89,7 +140,7 @@ function isArrayBufferView(val) {
|
|
|
89
140
|
*
|
|
90
141
|
* @returns {boolean} True if value is a String, otherwise false
|
|
91
142
|
*/
|
|
92
|
-
const isString = typeOfTest(
|
|
143
|
+
const isString = typeOfTest('string');
|
|
93
144
|
|
|
94
145
|
/**
|
|
95
146
|
* Determine if a value is a Function
|
|
@@ -97,7 +148,7 @@ const isString = typeOfTest("string");
|
|
|
97
148
|
* @param {*} val The value to test
|
|
98
149
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
99
150
|
*/
|
|
100
|
-
const isFunction = typeOfTest(
|
|
151
|
+
const isFunction = typeOfTest('function');
|
|
101
152
|
|
|
102
153
|
/**
|
|
103
154
|
* Determine if a value is a Number
|
|
@@ -106,7 +157,7 @@ const isFunction = typeOfTest("function");
|
|
|
106
157
|
*
|
|
107
158
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
108
159
|
*/
|
|
109
|
-
const isNumber = typeOfTest(
|
|
160
|
+
const isNumber = typeOfTest('number');
|
|
110
161
|
|
|
111
162
|
/**
|
|
112
163
|
* Determine if a value is an Object
|
|
@@ -115,7 +166,7 @@ const isNumber = typeOfTest("number");
|
|
|
115
166
|
*
|
|
116
167
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
117
168
|
*/
|
|
118
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
169
|
+
const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
119
170
|
|
|
120
171
|
/**
|
|
121
172
|
* Determine if a value is a Boolean
|
|
@@ -133,7 +184,7 @@ const isBoolean = (thing) => thing === true || thing === false;
|
|
|
133
184
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
134
185
|
*/
|
|
135
186
|
const isPlainObject = (val) => {
|
|
136
|
-
if (
|
|
187
|
+
if (!isObject(val)) {
|
|
137
188
|
return false;
|
|
138
189
|
}
|
|
139
190
|
|
|
@@ -141,9 +192,12 @@ const isPlainObject = (val) => {
|
|
|
141
192
|
return (
|
|
142
193
|
(prototype === null ||
|
|
143
194
|
prototype === Object.prototype ||
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
195
|
+
getPrototypeOf(prototype) === null) &&
|
|
196
|
+
// Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
|
|
197
|
+
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
198
|
+
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
199
|
+
!hasOwnInPrototypeChain(val, toStringTag) &&
|
|
200
|
+
!hasOwnInPrototypeChain(val, iterator)
|
|
147
201
|
);
|
|
148
202
|
};
|
|
149
203
|
|
|
@@ -161,10 +215,7 @@ const isEmptyObject = (val) => {
|
|
|
161
215
|
}
|
|
162
216
|
|
|
163
217
|
try {
|
|
164
|
-
return (
|
|
165
|
-
Object.keys(val).length === 0 &&
|
|
166
|
-
Object.getPrototypeOf(val) === Object.prototype
|
|
167
|
-
);
|
|
218
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
168
219
|
} catch (e) {
|
|
169
220
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
170
221
|
return false;
|
|
@@ -178,7 +229,7 @@ const isEmptyObject = (val) => {
|
|
|
178
229
|
*
|
|
179
230
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
180
231
|
*/
|
|
181
|
-
const isDate = kindOfTest(
|
|
232
|
+
const isDate = kindOfTest('Date');
|
|
182
233
|
|
|
183
234
|
/**
|
|
184
235
|
* Determine if a value is a File
|
|
@@ -187,7 +238,32 @@ const isDate = kindOfTest("Date");
|
|
|
187
238
|
*
|
|
188
239
|
* @returns {boolean} True if value is a File, otherwise false
|
|
189
240
|
*/
|
|
190
|
-
const isFile = kindOfTest(
|
|
241
|
+
const isFile = kindOfTest('File');
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Determine if a value is a React Native Blob
|
|
245
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
246
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
247
|
+
*
|
|
248
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
249
|
+
*
|
|
250
|
+
* @param {*} value The value to test
|
|
251
|
+
*
|
|
252
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
253
|
+
*/
|
|
254
|
+
const isReactNativeBlob = (value) => {
|
|
255
|
+
return !!(value && typeof value.uri !== 'undefined');
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Determine if environment is React Native
|
|
260
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
261
|
+
*
|
|
262
|
+
* @param {*} formData The formData to test
|
|
263
|
+
*
|
|
264
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
265
|
+
*/
|
|
266
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
|
|
191
267
|
|
|
192
268
|
/**
|
|
193
269
|
* Determine if a value is a Blob
|
|
@@ -196,16 +272,16 @@ const isFile = kindOfTest("File");
|
|
|
196
272
|
*
|
|
197
273
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
198
274
|
*/
|
|
199
|
-
const isBlob = kindOfTest(
|
|
275
|
+
const isBlob = kindOfTest('Blob');
|
|
200
276
|
|
|
201
277
|
/**
|
|
202
278
|
* Determine if a value is a FileList
|
|
203
279
|
*
|
|
204
280
|
* @param {*} val The value to test
|
|
205
281
|
*
|
|
206
|
-
* @returns {boolean} True if value is a
|
|
282
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
207
283
|
*/
|
|
208
|
-
const isFileList = kindOfTest(
|
|
284
|
+
const isFileList = kindOfTest('FileList');
|
|
209
285
|
|
|
210
286
|
/**
|
|
211
287
|
* Determine if a value is a Stream
|
|
@@ -223,17 +299,29 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
|
223
299
|
*
|
|
224
300
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
225
301
|
*/
|
|
302
|
+
function getGlobal() {
|
|
303
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
304
|
+
if (typeof self !== 'undefined') return self;
|
|
305
|
+
if (typeof window !== 'undefined') return window;
|
|
306
|
+
if (typeof global !== 'undefined') return global;
|
|
307
|
+
return {};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const G = getGlobal();
|
|
311
|
+
const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
|
312
|
+
|
|
226
313
|
const isFormData = (thing) => {
|
|
227
|
-
|
|
314
|
+
if (!thing) return false;
|
|
315
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
316
|
+
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
|
|
317
|
+
const proto = getPrototypeOf(thing);
|
|
318
|
+
if (!proto || proto === Object.prototype) return false;
|
|
319
|
+
if (!isFunction(thing.append)) return false;
|
|
320
|
+
const kind = kindOf(thing);
|
|
228
321
|
return (
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
((kind = kindOf(thing)) === "formdata" ||
|
|
233
|
-
// detect form-data instance
|
|
234
|
-
(kind === "object" &&
|
|
235
|
-
isFunction(thing.toString) &&
|
|
236
|
-
thing.toString() === "[object FormData]"))))
|
|
322
|
+
kind === 'formdata' ||
|
|
323
|
+
// detect form-data instance
|
|
324
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
237
325
|
);
|
|
238
326
|
};
|
|
239
327
|
|
|
@@ -244,13 +332,13 @@ const isFormData = (thing) => {
|
|
|
244
332
|
*
|
|
245
333
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
246
334
|
*/
|
|
247
|
-
const isURLSearchParams = kindOfTest(
|
|
335
|
+
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
248
336
|
|
|
249
337
|
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
338
|
+
'ReadableStream',
|
|
339
|
+
'Request',
|
|
340
|
+
'Response',
|
|
341
|
+
'Headers',
|
|
254
342
|
].map(kindOfTest);
|
|
255
343
|
|
|
256
344
|
/**
|
|
@@ -260,9 +348,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
|
260
348
|
*
|
|
261
349
|
* @returns {String} The String freed of excess whitespace
|
|
262
350
|
*/
|
|
263
|
-
const trim = (str) =>
|
|
264
|
-
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
265
|
-
|
|
351
|
+
const trim = (str) => {
|
|
352
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
353
|
+
};
|
|
266
354
|
/**
|
|
267
355
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
268
356
|
*
|
|
@@ -281,7 +369,7 @@ const trim = (str) =>
|
|
|
281
369
|
*/
|
|
282
370
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
283
371
|
// Don't bother if no value provided
|
|
284
|
-
if (obj === null || typeof obj ===
|
|
372
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
285
373
|
return;
|
|
286
374
|
}
|
|
287
375
|
|
|
@@ -289,7 +377,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
289
377
|
let l;
|
|
290
378
|
|
|
291
379
|
// Force an array if not already something iterable
|
|
292
|
-
if (typeof obj !==
|
|
380
|
+
if (typeof obj !== 'object') {
|
|
293
381
|
/*eslint no-param-reassign:0*/
|
|
294
382
|
obj = [obj];
|
|
295
383
|
}
|
|
@@ -306,9 +394,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
306
394
|
}
|
|
307
395
|
|
|
308
396
|
// Iterate over object keys
|
|
309
|
-
const keys = allOwnKeys
|
|
310
|
-
? Object.getOwnPropertyNames(obj)
|
|
311
|
-
: Object.keys(obj);
|
|
397
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
312
398
|
const len = keys.length;
|
|
313
399
|
let key;
|
|
314
400
|
|
|
@@ -319,6 +405,14 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
319
405
|
}
|
|
320
406
|
}
|
|
321
407
|
|
|
408
|
+
/**
|
|
409
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
410
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
411
|
+
*
|
|
412
|
+
* @param {Object} obj - The object to search.
|
|
413
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
414
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
415
|
+
*/
|
|
322
416
|
function findKey(obj, key) {
|
|
323
417
|
if (isBuffer(obj)) {
|
|
324
418
|
return null;
|
|
@@ -339,16 +433,11 @@ function findKey(obj, key) {
|
|
|
339
433
|
|
|
340
434
|
const _global = (() => {
|
|
341
435
|
/*eslint no-undef:0*/
|
|
342
|
-
if (typeof globalThis !==
|
|
343
|
-
return typeof self !==
|
|
344
|
-
? self
|
|
345
|
-
: typeof window !== "undefined"
|
|
346
|
-
? window
|
|
347
|
-
: global;
|
|
436
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
437
|
+
return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
|
|
348
438
|
})();
|
|
349
439
|
|
|
350
|
-
const isContextDefined = (context) =>
|
|
351
|
-
!isUndefined(context) && context !== _global;
|
|
440
|
+
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
352
441
|
|
|
353
442
|
/**
|
|
354
443
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -368,18 +457,24 @@ const isContextDefined = (context) =>
|
|
|
368
457
|
*
|
|
369
458
|
* @returns {Object} Result of all merge properties
|
|
370
459
|
*/
|
|
371
|
-
function merge(
|
|
460
|
+
function merge(...objs) {
|
|
372
461
|
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
373
462
|
const result = {};
|
|
374
463
|
const assignValue = (val, key) => {
|
|
375
464
|
// Skip dangerous property names to prevent prototype pollution
|
|
376
|
-
if (key ===
|
|
465
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
377
466
|
return;
|
|
378
467
|
}
|
|
379
468
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
469
|
+
// findKey lowercases the key, so caseless lookup only applies to strings —
|
|
470
|
+
// symbol keys are identity-matched.
|
|
471
|
+
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
472
|
+
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
473
|
+
// chain, so a polluted Object.prototype value could surface here and get
|
|
474
|
+
// copied into the merged result.
|
|
475
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
|
|
476
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
477
|
+
result[targetKey] = merge(existing, val);
|
|
383
478
|
} else if (isPlainObject(val)) {
|
|
384
479
|
result[targetKey] = merge({}, val);
|
|
385
480
|
} else if (isArray(val)) {
|
|
@@ -389,8 +484,25 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
389
484
|
}
|
|
390
485
|
};
|
|
391
486
|
|
|
392
|
-
for (let i = 0, l =
|
|
393
|
-
|
|
487
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
488
|
+
const source = objs[i];
|
|
489
|
+
if (!source || isBuffer(source)) {
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
forEach(source, assignValue);
|
|
494
|
+
|
|
495
|
+
if (typeof source !== 'object' || isArray(source)) {
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
500
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
501
|
+
const symbol = symbols[j];
|
|
502
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
503
|
+
assignValue(source[symbol], symbol);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
394
506
|
}
|
|
395
507
|
return result;
|
|
396
508
|
}
|
|
@@ -412,6 +524,9 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
412
524
|
(val, key) => {
|
|
413
525
|
if (thisArg && isFunction(val)) {
|
|
414
526
|
Object.defineProperty(a, key, {
|
|
527
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
528
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
529
|
+
__proto__: null,
|
|
415
530
|
value: bind(val, thisArg),
|
|
416
531
|
writable: true,
|
|
417
532
|
enumerable: true,
|
|
@@ -419,6 +534,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
419
534
|
});
|
|
420
535
|
} else {
|
|
421
536
|
Object.defineProperty(a, key, {
|
|
537
|
+
__proto__: null,
|
|
422
538
|
value: val,
|
|
423
539
|
writable: true,
|
|
424
540
|
enumerable: true,
|
|
@@ -426,7 +542,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
426
542
|
});
|
|
427
543
|
}
|
|
428
544
|
},
|
|
429
|
-
{ allOwnKeys }
|
|
545
|
+
{ allOwnKeys }
|
|
430
546
|
);
|
|
431
547
|
return a;
|
|
432
548
|
};
|
|
@@ -455,17 +571,16 @@ const stripBOM = (content) => {
|
|
|
455
571
|
* @returns {void}
|
|
456
572
|
*/
|
|
457
573
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
458
|
-
constructor.prototype = Object.create(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
);
|
|
462
|
-
Object.defineProperty(constructor.prototype, "constructor", {
|
|
574
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
575
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
576
|
+
__proto__: null,
|
|
463
577
|
value: constructor,
|
|
464
578
|
writable: true,
|
|
465
579
|
enumerable: false,
|
|
466
580
|
configurable: true,
|
|
467
581
|
});
|
|
468
|
-
Object.defineProperty(constructor,
|
|
582
|
+
Object.defineProperty(constructor, 'super', {
|
|
583
|
+
__proto__: null,
|
|
469
584
|
value: superConstructor.prototype,
|
|
470
585
|
});
|
|
471
586
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -495,20 +610,13 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
495
610
|
i = props.length;
|
|
496
611
|
while (i-- > 0) {
|
|
497
612
|
prop = props[i];
|
|
498
|
-
if (
|
|
499
|
-
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
500
|
-
!merged[prop]
|
|
501
|
-
) {
|
|
613
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
502
614
|
destObj[prop] = sourceObj[prop];
|
|
503
615
|
merged[prop] = true;
|
|
504
616
|
}
|
|
505
617
|
}
|
|
506
618
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
507
|
-
} while (
|
|
508
|
-
sourceObj &&
|
|
509
|
-
(!filter || filter(sourceObj, destObj)) &&
|
|
510
|
-
sourceObj !== Object.prototype
|
|
511
|
-
);
|
|
619
|
+
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
512
620
|
|
|
513
621
|
return destObj;
|
|
514
622
|
};
|
|
@@ -565,7 +673,7 @@ const isTypedArray = ((TypedArray) => {
|
|
|
565
673
|
return (thing) => {
|
|
566
674
|
return TypedArray && thing instanceof TypedArray;
|
|
567
675
|
};
|
|
568
|
-
})(typeof Uint8Array !==
|
|
676
|
+
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
|
569
677
|
|
|
570
678
|
/**
|
|
571
679
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -608,22 +716,15 @@ const matchAll = (regExp, str) => {
|
|
|
608
716
|
};
|
|
609
717
|
|
|
610
718
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
611
|
-
const isHTMLForm = kindOfTest(
|
|
719
|
+
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
612
720
|
|
|
613
721
|
const toCamelCase = (str) => {
|
|
614
|
-
return str
|
|
615
|
-
.
|
|
616
|
-
|
|
617
|
-
return p1.toUpperCase() + p2;
|
|
618
|
-
});
|
|
722
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
723
|
+
return p1.toUpperCase() + p2;
|
|
724
|
+
});
|
|
619
725
|
};
|
|
620
726
|
|
|
621
|
-
|
|
622
|
-
const hasOwnProperty = (
|
|
623
|
-
({ hasOwnProperty }) =>
|
|
624
|
-
(obj, prop) =>
|
|
625
|
-
hasOwnProperty.call(obj, prop)
|
|
626
|
-
)(Object.prototype);
|
|
727
|
+
const { propertyIsEnumerable } = Object.prototype;
|
|
627
728
|
|
|
628
729
|
/**
|
|
629
730
|
* Determine if a value is a RegExp object
|
|
@@ -632,7 +733,7 @@ const hasOwnProperty = (
|
|
|
632
733
|
*
|
|
633
734
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
634
735
|
*/
|
|
635
|
-
const isRegExp = kindOfTest(
|
|
736
|
+
const isRegExp = kindOfTest('RegExp');
|
|
636
737
|
|
|
637
738
|
const reduceDescriptors = (obj, reducer) => {
|
|
638
739
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -656,10 +757,7 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
656
757
|
const freezeMethods = (obj) => {
|
|
657
758
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
658
759
|
// skip restricted props in strict mode
|
|
659
|
-
if (
|
|
660
|
-
isFunction(obj) &&
|
|
661
|
-
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
662
|
-
) {
|
|
760
|
+
if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
|
|
663
761
|
return false;
|
|
664
762
|
}
|
|
665
763
|
|
|
@@ -669,7 +767,7 @@ const freezeMethods = (obj) => {
|
|
|
669
767
|
|
|
670
768
|
descriptor.enumerable = false;
|
|
671
769
|
|
|
672
|
-
if (
|
|
770
|
+
if ('writable' in descriptor) {
|
|
673
771
|
descriptor.writable = false;
|
|
674
772
|
return;
|
|
675
773
|
}
|
|
@@ -682,6 +780,14 @@ const freezeMethods = (obj) => {
|
|
|
682
780
|
});
|
|
683
781
|
};
|
|
684
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
785
|
+
* Useful for fast membership checks.
|
|
786
|
+
*
|
|
787
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
788
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
789
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
790
|
+
*/
|
|
685
791
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
686
792
|
const obj = {};
|
|
687
793
|
|
|
@@ -691,9 +797,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
691
797
|
});
|
|
692
798
|
};
|
|
693
799
|
|
|
694
|
-
isArray(arrayOrString)
|
|
695
|
-
? define(arrayOrString)
|
|
696
|
-
: define(String(arrayOrString).split(delimiter));
|
|
800
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
697
801
|
|
|
698
802
|
return obj;
|
|
699
803
|
};
|
|
@@ -701,9 +805,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
701
805
|
const noop = () => {};
|
|
702
806
|
|
|
703
807
|
const toFiniteNumber = (value, defaultValue) => {
|
|
704
|
-
return value != null && Number.isFinite((value = +value))
|
|
705
|
-
? value
|
|
706
|
-
: defaultValue;
|
|
808
|
+
return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
|
|
707
809
|
};
|
|
708
810
|
|
|
709
811
|
/**
|
|
@@ -717,17 +819,23 @@ function isSpecCompliantForm(thing) {
|
|
|
717
819
|
return !!(
|
|
718
820
|
thing &&
|
|
719
821
|
isFunction(thing.append) &&
|
|
720
|
-
thing[toStringTag] ===
|
|
822
|
+
thing[toStringTag] === 'FormData' &&
|
|
721
823
|
thing[iterator]
|
|
722
824
|
);
|
|
723
825
|
}
|
|
724
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
829
|
+
*
|
|
830
|
+
* @param {Object} obj - The object to convert.
|
|
831
|
+
* @returns {Object} The JSON-compatible object.
|
|
832
|
+
*/
|
|
725
833
|
const toJSONObject = (obj) => {
|
|
726
|
-
const
|
|
834
|
+
const visited = new WeakSet();
|
|
727
835
|
|
|
728
|
-
const visit = (source
|
|
836
|
+
const visit = (source) => {
|
|
729
837
|
if (isObject(source)) {
|
|
730
|
-
if (
|
|
838
|
+
if (visited.has(source)) {
|
|
731
839
|
return;
|
|
732
840
|
}
|
|
733
841
|
|
|
@@ -736,16 +844,17 @@ const toJSONObject = (obj) => {
|
|
|
736
844
|
return source;
|
|
737
845
|
}
|
|
738
846
|
|
|
739
|
-
if (!(
|
|
740
|
-
|
|
847
|
+
if (!('toJSON' in source)) {
|
|
848
|
+
// add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
|
|
849
|
+
visited.add(source);
|
|
741
850
|
const target = isArray(source) ? [] : {};
|
|
742
851
|
|
|
743
852
|
forEach(source, (value, key) => {
|
|
744
|
-
const reducedValue = visit(value
|
|
853
|
+
const reducedValue = visit(value);
|
|
745
854
|
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
746
855
|
});
|
|
747
856
|
|
|
748
|
-
|
|
857
|
+
visited.delete(source);
|
|
749
858
|
|
|
750
859
|
return target;
|
|
751
860
|
}
|
|
@@ -754,11 +863,23 @@ const toJSONObject = (obj) => {
|
|
|
754
863
|
return source;
|
|
755
864
|
};
|
|
756
865
|
|
|
757
|
-
return visit(obj
|
|
866
|
+
return visit(obj);
|
|
758
867
|
};
|
|
759
868
|
|
|
760
|
-
|
|
869
|
+
/**
|
|
870
|
+
* Determines if a value is an async function.
|
|
871
|
+
*
|
|
872
|
+
* @param {*} thing - The value to test.
|
|
873
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
874
|
+
*/
|
|
875
|
+
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
761
876
|
|
|
877
|
+
/**
|
|
878
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
879
|
+
*
|
|
880
|
+
* @param {*} thing - The value to test.
|
|
881
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
882
|
+
*/
|
|
762
883
|
const isThenable = (thing) =>
|
|
763
884
|
thing &&
|
|
764
885
|
(isObject(thing) || isFunction(thing)) &&
|
|
@@ -768,6 +889,14 @@ const isThenable = (thing) =>
|
|
|
768
889
|
// original code
|
|
769
890
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
770
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Provides a cross-platform setImmediate implementation.
|
|
894
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
895
|
+
*
|
|
896
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
897
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
898
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
899
|
+
*/
|
|
771
900
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
772
901
|
if (setImmediateSupported) {
|
|
773
902
|
return setImmediate;
|
|
@@ -776,32 +905,52 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
776
905
|
return postMessageSupported
|
|
777
906
|
? ((token, callbacks) => {
|
|
778
907
|
_global.addEventListener(
|
|
779
|
-
|
|
908
|
+
'message',
|
|
780
909
|
({ source, data }) => {
|
|
781
910
|
if (source === _global && data === token) {
|
|
782
911
|
callbacks.length && callbacks.shift()();
|
|
783
912
|
}
|
|
784
913
|
},
|
|
785
|
-
false
|
|
914
|
+
false
|
|
786
915
|
);
|
|
787
916
|
|
|
788
917
|
return (cb) => {
|
|
789
918
|
callbacks.push(cb);
|
|
790
|
-
_global.postMessage(token,
|
|
919
|
+
_global.postMessage(token, '*');
|
|
791
920
|
};
|
|
792
921
|
})(`axios@${Math.random()}`, [])
|
|
793
922
|
: (cb) => setTimeout(cb);
|
|
794
|
-
})(typeof setImmediate ===
|
|
923
|
+
})(typeof setImmediate === 'function', isFunction(_global.postMessage));
|
|
795
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
927
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
928
|
+
*
|
|
929
|
+
* @type {Function}
|
|
930
|
+
*/
|
|
796
931
|
const asap =
|
|
797
|
-
typeof queueMicrotask !==
|
|
932
|
+
typeof queueMicrotask !== 'undefined'
|
|
798
933
|
? queueMicrotask.bind(_global)
|
|
799
|
-
: (typeof process !==
|
|
934
|
+
: (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
|
|
800
935
|
|
|
801
936
|
// *********************
|
|
802
937
|
|
|
803
938
|
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
804
939
|
|
|
940
|
+
/**
|
|
941
|
+
* Determine if a value is iterable via an iterator that is NOT sourced solely
|
|
942
|
+
* from a polluted Object.prototype. Use this instead of `isIterable` whenever
|
|
943
|
+
* the iterable comes from untrusted input (e.g. user-supplied header sources),
|
|
944
|
+
* so `Object.prototype[Symbol.iterator] = ...` cannot turn an ordinary object
|
|
945
|
+
* into an attacker-controlled entries iterator.
|
|
946
|
+
*
|
|
947
|
+
* @param {*} thing The value to test
|
|
948
|
+
*
|
|
949
|
+
* @returns {boolean} True if value has a non-polluted iterator
|
|
950
|
+
*/
|
|
951
|
+
const isSafeIterable = (thing) =>
|
|
952
|
+
thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
953
|
+
|
|
805
954
|
export default {
|
|
806
955
|
isArray,
|
|
807
956
|
isArrayBuffer,
|
|
@@ -821,6 +970,8 @@ export default {
|
|
|
821
970
|
isUndefined,
|
|
822
971
|
isDate,
|
|
823
972
|
isFile,
|
|
973
|
+
isReactNativeBlob,
|
|
974
|
+
isReactNative,
|
|
824
975
|
isBlob,
|
|
825
976
|
isRegExp,
|
|
826
977
|
isFunction,
|
|
@@ -844,6 +995,8 @@ export default {
|
|
|
844
995
|
isHTMLForm,
|
|
845
996
|
hasOwnProperty,
|
|
846
997
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
998
|
+
hasOwnInPrototypeChain,
|
|
999
|
+
getSafeProp,
|
|
847
1000
|
reduceDescriptors,
|
|
848
1001
|
freezeMethods,
|
|
849
1002
|
toObjectSet,
|
|
@@ -860,4 +1013,5 @@ export default {
|
|
|
860
1013
|
setImmediate: _setImmediate,
|
|
861
1014
|
asap,
|
|
862
1015
|
isIterable,
|
|
1016
|
+
isSafeIterable,
|
|
863
1017
|
};
|