@openclaw/feishu 2026.9.3 → 2026.9.5
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/assets/activity.svg +3 -0
- package/assets/icon.png +0 -0
- package/dist/{accounts-cCMNFBKg.js → .setup/accounts-DmU0xYPx.mjs} +1 -1
- package/dist/{app-registration-BI99e_JI.js → .setup/app-registration-Bv4mvauR.mjs} +1 -1
- package/dist/{channel-DrAqd5ED.js → .setup/channel-C1KrXXJa.mjs} +100 -99
- package/dist/{channel.runtime-BZzuDlOS.js → .setup/channel.runtime-Bizuv7WZ.mjs} +32 -18
- package/dist/{chat-BZSnEtgb.js → .setup/chat-dWJYS63b.mjs} +89 -88
- package/dist/{client-DMbIL3UH.js → .setup/client-DCwNVFZg.mjs} +128 -11
- package/dist/{conversation-id-VYgGQ-GX.js → .setup/conversation-id-H-lUayji.mjs} +49 -14
- package/dist/{monitor-DSGtOPio.js → .setup/monitor-C69OLzgO.mjs} +4 -4
- package/dist/{monitor.account-BRDUsS_q.js → .setup/monitor.account-zwHb3HKM.mjs} +76 -52
- package/dist/{probe-D_SatdZl.js → .setup/probe-bdidyhAn.mjs} +2 -2
- package/dist/{reply-delivery-result-BXEmtKpf.js → .setup/reply-delivery-result-DFjxGLgX.mjs} +162 -163
- package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
- package/dist/.setup/secret-contract-api-jmCkqVLc.mjs +3 -0
- package/dist/{security-audit-DKfR4Cv3.js → .setup/security-audit-CmiKKfU-.mjs} +1 -1
- package/dist/{session-conversation-DFCIvQK-.js → .setup/session-conversation-ZC6TC1zk.mjs} +1 -1
- package/dist/.setup/setup-api-CTRwX09n.mjs +3 -0
- package/dist/{subagent-hooks-Buadpie_.js → .setup/subagent-hooks-BBfF1hZk.mjs} +3 -19
- package/dist/api.js +125 -121
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +3 -3
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +4 -3
- package/dist/subagent-hooks-api.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +199 -35
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +199 -35
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +233 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +387 -89
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +458 -98
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +458 -98
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +568 -116
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +4 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +4 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +134 -50
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +19 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/buildFullPath.js +1 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +11 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +4 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +182 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/toFormData.js +14 -21
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +134 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/README.md +24 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js +124 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js +63 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js +133 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.generated.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.js +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.js +14 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.js +8 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.json +20 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.proto +14 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/index.d.ts +12 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/decoder.js +31 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/enum.js +10 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/object.js +5 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/parse.js +9 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader.js +61 -7
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/type.js +10 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/wrappers.js +5 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/README.md +19 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +3 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/stringify.js +23 -8
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +10 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +4 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +192 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/stringify.js +317 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +12 -0
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/types/index.d.ts +35 -0
- package/node_modules/typebox/build/compile/validator.d.mts +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
- package/node_modules/typebox/build/format/iri.mjs +5 -1
- package/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/node_modules/typebox/build/guard/string.mjs +16 -24
- package/node_modules/typebox/build/schema/build.mjs +2 -2
- package/node_modules/typebox/build/schema/check.mjs +1 -1
- package/node_modules/typebox/build/schema/compile.d.mts +3 -2
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.d.mts +6 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +23 -15
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/_refine.mjs +4 -7
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +34 -16
- package/node_modules/typebox/build/schema/engine/_stack.mjs +148 -104
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -8
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +26 -18
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/allOf.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/boolean.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/const.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/contains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +3 -6
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/enum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/format.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/if.mjs +7 -15
- package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/items.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/minItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -8
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +6 -11
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -7
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/properties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +4 -10
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/ref.mjs +19 -15
- package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/required.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +137 -133
- package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +2 -6
- package/node_modules/typebox/build/schema/errors.d.mts +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +8 -14
- package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.d.mts +11 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +293 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +288 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +300 -0
- package/node_modules/typebox/build/schema/meta/draft_3.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_3.mjs +143 -0
- package/node_modules/typebox/build/schema/meta/draft_4.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_4.mjs +149 -0
- package/node_modules/typebox/build/schema/meta/draft_6.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_6.mjs +155 -0
- package/node_modules/typebox/build/schema/meta/draft_7.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_7.mjs +172 -0
- package/node_modules/typebox/build/schema/meta/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/index.mjs +2 -0
- package/node_modules/typebox/build/schema/meta/meta.d.mts +9 -0
- package/node_modules/typebox/build/schema/meta/meta.mjs +15 -0
- package/node_modules/typebox/build/schema/meta/schema.d.mts +6 -0
- package/node_modules/typebox/build/schema/meta/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/parse.d.mts +1 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +8 -3
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +268 -139
- package/node_modules/typebox/build/schema/schema.d.mts +2 -0
- package/node_modules/typebox/build/schema/schema.mjs +2 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +59 -89
- package/node_modules/zod/README.md +27 -0
- package/node_modules/zod/compile.cjs +77 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +2 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/package.json +13 -2
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +12 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +140 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +452 -262
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +135 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +30 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +155 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +11 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +274 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +425 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +47 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +46 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +245 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +33 -2
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +127 -5
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +11 -2
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1585 -173
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +48 -12
- package/node_modules/zod/src/v4/core/checks.ts +57 -44
- package/node_modules/zod/src/v4/core/compile.ts +2188 -0
- package/node_modules/zod/src/v4/core/core.ts +98 -19
- package/node_modules/zod/src/v4/core/doc.ts +11 -7
- package/node_modules/zod/src/v4/core/errors.ts +115 -24
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +6 -1
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +257 -93
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
- package/node_modules/zod/src/v4/core/parse.ts +131 -38
- package/node_modules/zod/src/v4/core/regexes.ts +30 -13
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +759 -461
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +275 -42
- package/node_modules/zod/src/v4/core/util.ts +268 -42
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +3 -0
- package/node_modules/zod/src/v4/locales/az.ts +3 -0
- package/node_modules/zod/src/v4/locales/be.ts +10 -0
- package/node_modules/zod/src/v4/locales/bg.ts +3 -0
- package/node_modules/zod/src/v4/locales/bn.ts +121 -0
- package/node_modules/zod/src/v4/locales/ca.ts +3 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
- package/node_modules/zod/src/v4/locales/cs.ts +3 -0
- package/node_modules/zod/src/v4/locales/da.ts +5 -2
- package/node_modules/zod/src/v4/locales/de.ts +3 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +15 -4
- package/node_modules/zod/src/v4/locales/eo.ts +3 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +3 -0
- package/node_modules/zod/src/v4/locales/fi.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr.ts +19 -14
- package/node_modules/zod/src/v4/locales/gu.ts +121 -0
- package/node_modules/zod/src/v4/locales/he.ts +6 -1
- package/node_modules/zod/src/v4/locales/hi.ts +124 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +3 -0
- package/node_modules/zod/src/v4/locales/hy.ts +9 -0
- package/node_modules/zod/src/v4/locales/id.ts +3 -0
- package/node_modules/zod/src/v4/locales/index.ts +10 -0
- package/node_modules/zod/src/v4/locales/is.ts +3 -0
- package/node_modules/zod/src/v4/locales/it.ts +3 -0
- package/node_modules/zod/src/v4/locales/ja.ts +3 -0
- package/node_modules/zod/src/v4/locales/ka.ts +3 -0
- package/node_modules/zod/src/v4/locales/km.ts +3 -0
- package/node_modules/zod/src/v4/locales/kn.ts +124 -0
- package/node_modules/zod/src/v4/locales/ko.ts +3 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ms.ts +3 -0
- package/node_modules/zod/src/v4/locales/ne.ts +126 -0
- package/node_modules/zod/src/v4/locales/nl.ts +3 -0
- package/node_modules/zod/src/v4/locales/nn.ts +119 -0
- package/node_modules/zod/src/v4/locales/no.ts +5 -2
- package/node_modules/zod/src/v4/locales/ota.ts +3 -0
- package/node_modules/zod/src/v4/locales/pl.ts +3 -0
- package/node_modules/zod/src/v4/locales/ps.ts +3 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
- package/node_modules/zod/src/v4/locales/pt.ts +99 -58
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +10 -0
- package/node_modules/zod/src/v4/locales/sk.ts +121 -0
- package/node_modules/zod/src/v4/locales/sl.ts +3 -0
- package/node_modules/zod/src/v4/locales/sv.ts +5 -2
- package/node_modules/zod/src/v4/locales/ta.ts +3 -0
- package/node_modules/zod/src/v4/locales/th.ts +3 -0
- package/node_modules/zod/src/v4/locales/tk.ts +111 -0
- package/node_modules/zod/src/v4/locales/tr.ts +3 -0
- package/node_modules/zod/src/v4/locales/uk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ur.ts +3 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +3 -0
- package/node_modules/zod/src/v4/locales/yo.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +3 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +10 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +135 -56
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +72 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +21 -0
- package/node_modules/zod/v3/ZodError.cjs +22 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/types.cjs +7 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +43 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +30 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
- package/node_modules/zod/v4/classic/in-out.cjs +63 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +2 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +11 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +4 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +498 -398
- package/node_modules/zod/v4/classic/schemas.d.cts +53 -18
- package/node_modules/zod/v4/classic/schemas.d.ts +53 -18
- package/node_modules/zod/v4/classic/schemas.js +492 -396
- package/node_modules/zod/v4/core/api.cjs +23 -4
- package/node_modules/zod/v4/core/api.d.cts +13 -9
- package/node_modules/zod/v4/core/api.d.ts +13 -9
- package/node_modules/zod/v4/core/api.js +21 -4
- package/node_modules/zod/v4/core/checks.cjs +37 -31
- package/node_modules/zod/v4/core/checks.d.cts +13 -13
- package/node_modules/zod/v4/core/checks.d.ts +13 -13
- package/node_modules/zod/v4/core/checks.js +37 -31
- package/node_modules/zod/v4/core/compile.cjs +1813 -0
- package/node_modules/zod/v4/core/compile.d.cts +51 -0
- package/node_modules/zod/v4/core/compile.d.ts +51 -0
- package/node_modules/zod/v4/core/compile.js +1783 -0
- package/node_modules/zod/v4/core/core.cjs +81 -18
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +82 -19
- package/node_modules/zod/v4/core/doc.cjs +5 -7
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +5 -7
- package/node_modules/zod/v4/core/errors.cjs +110 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +110 -25
- package/node_modules/zod/v4/core/index.cjs +5 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
- package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +272 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +265 -0
- package/node_modules/zod/v4/core/parse.cjs +96 -34
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +94 -33
- package/node_modules/zod/v4/core/regexes.cjs +27 -15
- package/node_modules/zod/v4/core/regexes.d.cts +2 -0
- package/node_modules/zod/v4/core/regexes.d.ts +2 -0
- package/node_modules/zod/v4/core/regexes.js +24 -13
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +537 -326
- package/node_modules/zod/v4/core/schemas.d.cts +100 -31
- package/node_modules/zod/v4/core/schemas.d.ts +100 -31
- package/node_modules/zod/v4/core/schemas.js +526 -325
- package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
- package/node_modules/zod/v4/core/to-json-schema.d.cts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.js +241 -39
- package/node_modules/zod/v4/core/util.cjs +212 -31
- package/node_modules/zod/v4/core/util.d.cts +58 -1
- package/node_modules/zod/v4/core/util.d.ts +58 -1
- package/node_modules/zod/v4/core/util.js +202 -30
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +195 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +15 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +3 -0
- package/node_modules/zod/v4/locales/ar.js +3 -0
- package/node_modules/zod/v4/locales/az.cjs +3 -0
- package/node_modules/zod/v4/locales/az.js +3 -0
- package/node_modules/zod/v4/locales/be.cjs +10 -0
- package/node_modules/zod/v4/locales/be.js +10 -0
- package/node_modules/zod/v4/locales/bg.cjs +3 -0
- package/node_modules/zod/v4/locales/bg.js +3 -0
- package/node_modules/zod/v4/locales/bn.cjs +138 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +111 -0
- package/node_modules/zod/v4/locales/ca.cjs +3 -0
- package/node_modules/zod/v4/locales/ca.js +3 -0
- package/node_modules/zod/v4/locales/ckb.cjs +158 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +131 -0
- package/node_modules/zod/v4/locales/cs.cjs +3 -0
- package/node_modules/zod/v4/locales/cs.js +3 -0
- package/node_modules/zod/v4/locales/da.cjs +5 -2
- package/node_modules/zod/v4/locales/da.js +5 -2
- package/node_modules/zod/v4/locales/de.cjs +3 -0
- package/node_modules/zod/v4/locales/de.js +3 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +14 -4
- package/node_modules/zod/v4/locales/en.js +14 -4
- package/node_modules/zod/v4/locales/eo.cjs +3 -0
- package/node_modules/zod/v4/locales/eo.js +3 -0
- package/node_modules/zod/v4/locales/es.cjs +2 -0
- package/node_modules/zod/v4/locales/es.js +2 -0
- package/node_modules/zod/v4/locales/fa.cjs +3 -0
- package/node_modules/zod/v4/locales/fa.js +3 -0
- package/node_modules/zod/v4/locales/fi.cjs +3 -0
- package/node_modules/zod/v4/locales/fi.js +3 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
- package/node_modules/zod/v4/locales/fr-CA.js +3 -0
- package/node_modules/zod/v4/locales/fr.cjs +16 -14
- package/node_modules/zod/v4/locales/fr.js +16 -14
- package/node_modules/zod/v4/locales/gu.cjs +138 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +111 -0
- package/node_modules/zod/v4/locales/he.cjs +5 -0
- package/node_modules/zod/v4/locales/he.js +5 -0
- package/node_modules/zod/v4/locales/hi.cjs +136 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +109 -0
- package/node_modules/zod/v4/locales/hr.cjs +2 -0
- package/node_modules/zod/v4/locales/hr.js +2 -0
- package/node_modules/zod/v4/locales/hu.cjs +3 -0
- package/node_modules/zod/v4/locales/hu.js +3 -0
- package/node_modules/zod/v4/locales/hy.cjs +9 -0
- package/node_modules/zod/v4/locales/hy.js +9 -0
- package/node_modules/zod/v4/locales/id.cjs +3 -0
- package/node_modules/zod/v4/locales/id.js +3 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -2
- package/node_modules/zod/v4/locales/index.d.cts +10 -0
- package/node_modules/zod/v4/locales/index.d.ts +10 -0
- package/node_modules/zod/v4/locales/index.js +10 -0
- package/node_modules/zod/v4/locales/is.cjs +3 -0
- package/node_modules/zod/v4/locales/is.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +3 -0
- package/node_modules/zod/v4/locales/it.js +3 -0
- package/node_modules/zod/v4/locales/ja.cjs +3 -0
- package/node_modules/zod/v4/locales/ja.js +3 -0
- package/node_modules/zod/v4/locales/ka.cjs +3 -0
- package/node_modules/zod/v4/locales/ka.js +3 -0
- package/node_modules/zod/v4/locales/km.cjs +3 -0
- package/node_modules/zod/v4/locales/km.js +3 -0
- package/node_modules/zod/v4/locales/kn.cjs +141 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +114 -0
- package/node_modules/zod/v4/locales/ko.cjs +3 -0
- package/node_modules/zod/v4/locales/ko.js +3 -0
- package/node_modules/zod/v4/locales/lt.cjs +2 -0
- package/node_modules/zod/v4/locales/lt.js +2 -0
- package/node_modules/zod/v4/locales/mk.cjs +3 -0
- package/node_modules/zod/v4/locales/mk.js +3 -0
- package/node_modules/zod/v4/locales/ms.cjs +3 -0
- package/node_modules/zod/v4/locales/ms.js +3 -0
- package/node_modules/zod/v4/locales/ne.cjs +136 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +109 -0
- package/node_modules/zod/v4/locales/nl.cjs +3 -0
- package/node_modules/zod/v4/locales/nl.js +3 -0
- package/node_modules/zod/v4/locales/nn.cjs +138 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +111 -0
- package/node_modules/zod/v4/locales/no.cjs +5 -2
- package/node_modules/zod/v4/locales/no.js +5 -2
- package/node_modules/zod/v4/locales/ota.cjs +3 -0
- package/node_modules/zod/v4/locales/ota.js +3 -0
- package/node_modules/zod/v4/locales/pl.cjs +3 -0
- package/node_modules/zod/v4/locales/pl.js +3 -0
- package/node_modules/zod/v4/locales/ps.cjs +3 -0
- package/node_modules/zod/v4/locales/ps.js +3 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +141 -0
- package/node_modules/zod/v4/locales/pt.cjs +87 -55
- package/node_modules/zod/v4/locales/pt.js +87 -55
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +10 -0
- package/node_modules/zod/v4/locales/ru.js +10 -0
- package/node_modules/zod/v4/locales/sk.cjs +141 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +114 -0
- package/node_modules/zod/v4/locales/sl.cjs +3 -0
- package/node_modules/zod/v4/locales/sl.js +3 -0
- package/node_modules/zod/v4/locales/sv.cjs +5 -2
- package/node_modules/zod/v4/locales/sv.js +5 -2
- package/node_modules/zod/v4/locales/ta.cjs +3 -0
- package/node_modules/zod/v4/locales/ta.js +3 -0
- package/node_modules/zod/v4/locales/th.cjs +3 -0
- package/node_modules/zod/v4/locales/th.js +3 -0
- package/node_modules/zod/v4/locales/tk.cjs +132 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +105 -0
- package/node_modules/zod/v4/locales/tr.cjs +3 -0
- package/node_modules/zod/v4/locales/tr.js +3 -0
- package/node_modules/zod/v4/locales/uk.cjs +3 -0
- package/node_modules/zod/v4/locales/uk.js +3 -0
- package/node_modules/zod/v4/locales/ur.cjs +3 -0
- package/node_modules/zod/v4/locales/ur.js +3 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +3 -0
- package/node_modules/zod/v4/locales/vi.js +3 -0
- package/node_modules/zod/v4/locales/yo.cjs +3 -0
- package/node_modules/zod/v4/locales/yo.js +3 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-CN.js +3 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-TW.js +3 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +12 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +63 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/parse.cjs +3 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +75 -47
- package/node_modules/zod/v4/mini/schemas.d.cts +43 -13
- package/node_modules/zod/v4/mini/schemas.d.ts +43 -13
- package/node_modules/zod/v4/mini/schemas.js +71 -45
- package/openclaw.plugin.json +27 -56
- package/package.json +10 -7
- package/dist/targets-BTQCYRZQ.js +0 -48
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- /package/dist/{audio-preflight.runtime-BBfC9elv.js → .setup/audio-preflight.runtime-BBfC9elv.mjs} +0 -0
- /package/dist/{doctor-contract-w6FpMypv.js → .setup/doctor-contract-w6FpMypv.mjs} +0 -0
- /package/dist/{json-response-DXajw_FU.js → .setup/json-response-DXajw_FU.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{runtime-C5JxBWZp.js → .setup/runtime-C5JxBWZp.mjs} +0 -0
- /package/dist/{secret-contract-BCpDLdg9.js → .setup/secret-contract-BCpDLdg9.mjs} +0 -0
- /package/dist/{security-audit-shared-CK5rVR-1.js → .setup/security-audit-shared-CK5rVR-1.mjs} +0 -0
- /package/dist/{thread-bindings-BiL1wGqK.js → .setup/thread-bindings-BiL1wGqK.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.20.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -27,12 +27,65 @@ const hasOwnProperty = (
|
|
|
27
27
|
hasOwnProperty.call(obj, prop)
|
|
28
28
|
)(Object.prototype);
|
|
29
29
|
|
|
30
|
+
const isUnsafeObjectKey = (prop) =>
|
|
31
|
+
typeof prop === 'string' &&
|
|
32
|
+
(prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
36
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
37
|
+
* reliably from application-created null-prototype objects because their
|
|
38
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
39
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
40
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
41
|
+
*
|
|
42
|
+
* @param {*} obj The object to inspect
|
|
43
|
+
* @param {*} prototype The object's prototype
|
|
44
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
45
|
+
*
|
|
46
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
47
|
+
*/
|
|
48
|
+
const isPrototypeBoundary = (obj, prototype, source) =>
|
|
49
|
+
obj === Object.prototype || (!source && prototype === null);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Determine whether an object can retain its identity through code paths that
|
|
53
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
54
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
55
|
+
* accessor or restricted data properties must be materialized instead.
|
|
56
|
+
*
|
|
57
|
+
* @param {*} obj The object to inspect
|
|
58
|
+
*
|
|
59
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
60
|
+
*/
|
|
61
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
62
|
+
if (!Object.isExtensible(obj)) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
67
|
+
|
|
68
|
+
if (Object.getOwnPropertySymbols) {
|
|
69
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return props.every((prop) => {
|
|
73
|
+
if (isUnsafeObjectKey(prop)) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
78
|
+
|
|
79
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
30
83
|
/**
|
|
31
|
-
* Walk the prototype chain (excluding the
|
|
32
|
-
* an own `prop`. This distinguishes genuine own/inherited members
|
|
33
|
-
* class accessors and template prototypes — from members injected
|
|
34
|
-
* Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
35
|
-
* live on Object.prototype itself and are therefore never matched.
|
|
84
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
85
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
86
|
+
* — including class accessors and template prototypes — from members injected
|
|
87
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
88
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
36
89
|
*
|
|
37
90
|
* @param {*} thing The value whose chain to inspect
|
|
38
91
|
* @param {string|symbol} prop The property key to look for
|
|
@@ -43,16 +96,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
43
96
|
let obj = thing;
|
|
44
97
|
const seen = [];
|
|
45
98
|
|
|
46
|
-
while (obj != null
|
|
99
|
+
while (obj != null) {
|
|
47
100
|
if (seen.indexOf(obj) !== -1) {
|
|
48
101
|
return false;
|
|
49
102
|
}
|
|
50
103
|
seen.push(obj);
|
|
51
104
|
|
|
105
|
+
const prototype = getPrototypeOf(obj);
|
|
106
|
+
|
|
107
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
|
|
52
111
|
if (hasOwnProperty(obj, prop)) {
|
|
53
112
|
return true;
|
|
54
113
|
}
|
|
55
|
-
obj =
|
|
114
|
+
obj = prototype;
|
|
56
115
|
}
|
|
57
116
|
return false;
|
|
58
117
|
};
|
|
@@ -71,6 +130,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
71
130
|
const getSafeProp = (obj, prop) =>
|
|
72
131
|
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
73
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
135
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
136
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
137
|
+
* below that boundary are preserved.
|
|
138
|
+
*
|
|
139
|
+
* @param {*} thing The value to flatten
|
|
140
|
+
*
|
|
141
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
142
|
+
* structurally safe or is not an object
|
|
143
|
+
*/
|
|
144
|
+
const toSafeFlatObject = (thing) => {
|
|
145
|
+
if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
|
|
146
|
+
return thing;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
150
|
+
|
|
151
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
152
|
+
return thing;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const result = Object.create(null);
|
|
156
|
+
const merged = Object.create(null);
|
|
157
|
+
const seen = [];
|
|
158
|
+
let current = thing;
|
|
159
|
+
|
|
160
|
+
while (current != null) {
|
|
161
|
+
if (seen.indexOf(current) !== -1) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
seen.push(current);
|
|
166
|
+
|
|
167
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
168
|
+
|
|
169
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const props = Object.getOwnPropertyNames(current);
|
|
174
|
+
|
|
175
|
+
if (Object.getOwnPropertySymbols) {
|
|
176
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
for (const prop of props) {
|
|
180
|
+
if (isUnsafeObjectKey(prop)) {
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
185
|
+
result[prop] = thing[prop];
|
|
186
|
+
merged[prop] = true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
current = prototype;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return result;
|
|
194
|
+
};
|
|
195
|
+
|
|
74
196
|
const kindOf = ((cache) => (thing) => {
|
|
75
197
|
const str = toString.call(thing);
|
|
76
198
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -202,12 +324,10 @@ const isPlainObject = (val) => {
|
|
|
202
324
|
|
|
203
325
|
const prototype = getPrototypeOf(val);
|
|
204
326
|
return (
|
|
205
|
-
(prototype === null ||
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
//
|
|
209
|
-
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
210
|
-
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
327
|
+
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
328
|
+
// Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
329
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
330
|
+
// only through shared or terminal prototype boundaries.
|
|
211
331
|
!hasOwnInPrototypeChain(val, toStringTag) &&
|
|
212
332
|
!hasOwnInPrototypeChain(val, iterator)
|
|
213
333
|
);
|
|
@@ -1021,6 +1141,7 @@ var utils$1 = {
|
|
|
1021
1141
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
1022
1142
|
hasOwnInPrototypeChain,
|
|
1023
1143
|
getSafeProp,
|
|
1144
|
+
toSafeFlatObject,
|
|
1024
1145
|
reduceDescriptors,
|
|
1025
1146
|
freezeMethods,
|
|
1026
1147
|
toObjectSet,
|
|
@@ -1165,7 +1286,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
1165
1286
|
return byteStringHeaders;
|
|
1166
1287
|
}
|
|
1167
1288
|
|
|
1168
|
-
const $internals = Symbol('internals');
|
|
1289
|
+
const $internals$1 = Symbol('internals');
|
|
1169
1290
|
|
|
1170
1291
|
function normalizeHeader(header) {
|
|
1171
1292
|
return header && String(header).trim().toLowerCase();
|
|
@@ -1586,8 +1707,8 @@ class AxiosHeaders {
|
|
|
1586
1707
|
|
|
1587
1708
|
static accessor(header) {
|
|
1588
1709
|
const internals =
|
|
1589
|
-
(this[$internals] =
|
|
1590
|
-
this[$internals] =
|
|
1710
|
+
(this[$internals$1] =
|
|
1711
|
+
this[$internals$1] =
|
|
1591
1712
|
{
|
|
1592
1713
|
accessors: {},
|
|
1593
1714
|
});
|
|
@@ -1941,28 +2062,18 @@ function toFormData(obj, formData, options) {
|
|
|
1941
2062
|
// eslint-disable-next-line no-param-reassign
|
|
1942
2063
|
formData = formData || new (FormData)();
|
|
1943
2064
|
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
metaTokens: true,
|
|
1949
|
-
dots: false,
|
|
1950
|
-
indexes: false,
|
|
1951
|
-
},
|
|
1952
|
-
false,
|
|
1953
|
-
function defined(option, source) {
|
|
1954
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1955
|
-
return !utils$1.isUndefined(source[option]);
|
|
1956
|
-
}
|
|
1957
|
-
);
|
|
2065
|
+
const option = (name, fallback) => {
|
|
2066
|
+
const value = utils$1.getSafeProp(options, name);
|
|
2067
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
2068
|
+
};
|
|
1958
2069
|
|
|
1959
|
-
const metaTokens =
|
|
2070
|
+
const metaTokens = option('metaTokens', true);
|
|
1960
2071
|
// eslint-disable-next-line no-use-before-define
|
|
1961
|
-
const visitor =
|
|
1962
|
-
const dots =
|
|
1963
|
-
const indexes =
|
|
1964
|
-
const _Blob =
|
|
1965
|
-
const maxDepth =
|
|
2072
|
+
const visitor = option('visitor') || defaultVisitor;
|
|
2073
|
+
const dots = option('dots', false);
|
|
2074
|
+
const indexes = option('indexes', false);
|
|
2075
|
+
const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
|
|
2076
|
+
const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
1966
2077
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
1967
2078
|
const stack = [];
|
|
1968
2079
|
|
|
@@ -1989,7 +2100,10 @@ function toFormData(obj, formData, options) {
|
|
|
1989
2100
|
if (useBlob && typeof _Blob === 'function') {
|
|
1990
2101
|
return new _Blob([value]);
|
|
1991
2102
|
}
|
|
1992
|
-
throw new AxiosError(
|
|
2103
|
+
throw new AxiosError(
|
|
2104
|
+
'Blob is not supported. Use a Buffer instead.',
|
|
2105
|
+
AxiosError.ERR_NOT_SUPPORT
|
|
2106
|
+
);
|
|
1993
2107
|
}
|
|
1994
2108
|
|
|
1995
2109
|
return value;
|
|
@@ -2241,9 +2355,57 @@ function buildURL(url, params, options) {
|
|
|
2241
2355
|
return url;
|
|
2242
2356
|
}
|
|
2243
2357
|
|
|
2358
|
+
const $internals = Symbol('internals');
|
|
2359
|
+
|
|
2360
|
+
// `handlers` is public and may be replaced with a nullish value by user code;
|
|
2361
|
+
// `clear()` has always tolerated that. Treat it as an empty stack rather than
|
|
2362
|
+
// dereferencing it.
|
|
2363
|
+
function countHandlers(handlers) {
|
|
2364
|
+
return handlers ? handlers.length : 0;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
function trimHandlers(handlers) {
|
|
2368
|
+
if (!handlers) {
|
|
2369
|
+
return;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
2373
|
+
handlers.pop();
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
function syncHandlerEntries(manager, internals) {
|
|
2378
|
+
const handlers = manager.handlers;
|
|
2379
|
+
const length = countHandlers(handlers);
|
|
2380
|
+
|
|
2381
|
+
if (handlers !== internals.handlersRef) {
|
|
2382
|
+
internals.handlersRef = handlers;
|
|
2383
|
+
internals.handlerEntries.clear();
|
|
2384
|
+
} else if (length !== internals.handlersLength) {
|
|
2385
|
+
if (!length) {
|
|
2386
|
+
internals.handlerEntries.clear();
|
|
2387
|
+
} else {
|
|
2388
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
2389
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
2390
|
+
internals.handlerEntries.delete(id);
|
|
2391
|
+
}
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
internals.handlersLength = length;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2244
2399
|
class InterceptorManager {
|
|
2245
2400
|
constructor() {
|
|
2246
2401
|
this.handlers = [];
|
|
2402
|
+
this[$internals] = {
|
|
2403
|
+
handlersRef: this.handlers,
|
|
2404
|
+
handlersLength: this.handlers.length,
|
|
2405
|
+
handlerEntries: new Map(),
|
|
2406
|
+
iterationDepth: 0,
|
|
2407
|
+
nextId: 0,
|
|
2408
|
+
};
|
|
2247
2409
|
}
|
|
2248
2410
|
|
|
2249
2411
|
/**
|
|
@@ -2256,13 +2418,30 @@ class InterceptorManager {
|
|
|
2256
2418
|
* @return {Number} An ID used to remove interceptor later
|
|
2257
2419
|
*/
|
|
2258
2420
|
use(fulfilled, rejected, options) {
|
|
2259
|
-
|
|
2421
|
+
const handler = {
|
|
2260
2422
|
fulfilled,
|
|
2261
2423
|
rejected,
|
|
2262
2424
|
synchronous: options ? options.synchronous : false,
|
|
2263
2425
|
runWhen: options ? options.runWhen : null,
|
|
2426
|
+
};
|
|
2427
|
+
const internals = this[$internals];
|
|
2428
|
+
|
|
2429
|
+
if (this.handlers == null) {
|
|
2430
|
+
this.handlers = [];
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
syncHandlerEntries(this, internals);
|
|
2434
|
+
|
|
2435
|
+
const id = internals.nextId++;
|
|
2436
|
+
|
|
2437
|
+
this.handlers.push(handler);
|
|
2438
|
+
internals.handlerEntries.set(id, {
|
|
2439
|
+
handler,
|
|
2440
|
+
index: this.handlers.length - 1,
|
|
2264
2441
|
});
|
|
2265
|
-
|
|
2442
|
+
internals.handlersLength = this.handlers.length;
|
|
2443
|
+
|
|
2444
|
+
return id;
|
|
2266
2445
|
}
|
|
2267
2446
|
|
|
2268
2447
|
/**
|
|
@@ -2273,8 +2452,27 @@ class InterceptorManager {
|
|
|
2273
2452
|
* @returns {void}
|
|
2274
2453
|
*/
|
|
2275
2454
|
eject(id) {
|
|
2276
|
-
|
|
2277
|
-
|
|
2455
|
+
const internals = this[$internals];
|
|
2456
|
+
|
|
2457
|
+
syncHandlerEntries(this, internals);
|
|
2458
|
+
|
|
2459
|
+
const entry = internals.handlerEntries.get(id);
|
|
2460
|
+
|
|
2461
|
+
if (entry) {
|
|
2462
|
+
internals.handlerEntries.delete(id);
|
|
2463
|
+
|
|
2464
|
+
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
2465
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
2466
|
+
return;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
this.handlers[entry.index] = null;
|
|
2470
|
+
|
|
2471
|
+
// Do not reuse an index while forEach is walking its length snapshot.
|
|
2472
|
+
if (!internals.iterationDepth) {
|
|
2473
|
+
trimHandlers(this.handlers);
|
|
2474
|
+
internals.handlersLength = this.handlers.length;
|
|
2475
|
+
}
|
|
2278
2476
|
}
|
|
2279
2477
|
}
|
|
2280
2478
|
|
|
@@ -2286,6 +2484,7 @@ class InterceptorManager {
|
|
|
2286
2484
|
clear() {
|
|
2287
2485
|
if (this.handlers) {
|
|
2288
2486
|
this.handlers = [];
|
|
2487
|
+
syncHandlerEntries(this, this[$internals]);
|
|
2289
2488
|
}
|
|
2290
2489
|
}
|
|
2291
2490
|
|
|
@@ -2300,11 +2499,25 @@ class InterceptorManager {
|
|
|
2300
2499
|
* @returns {void}
|
|
2301
2500
|
*/
|
|
2302
2501
|
forEach(fn) {
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2502
|
+
const internals = this[$internals];
|
|
2503
|
+
|
|
2504
|
+
syncHandlerEntries(this, internals);
|
|
2505
|
+
|
|
2506
|
+
internals.iterationDepth++;
|
|
2507
|
+
|
|
2508
|
+
try {
|
|
2509
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
2510
|
+
if (h !== null) {
|
|
2511
|
+
fn(h);
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
} finally {
|
|
2515
|
+
if (!--internals.iterationDepth) {
|
|
2516
|
+
syncHandlerEntries(this, internals);
|
|
2517
|
+
trimHandlers(this.handlers);
|
|
2518
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
2306
2519
|
}
|
|
2307
|
-
}
|
|
2520
|
+
}
|
|
2308
2521
|
}
|
|
2309
2522
|
}
|
|
2310
2523
|
|
|
@@ -2524,6 +2737,20 @@ function formDataToJSON(formData) {
|
|
|
2524
2737
|
return null;
|
|
2525
2738
|
}
|
|
2526
2739
|
|
|
2740
|
+
const methodList = Object.freeze([
|
|
2741
|
+
'get',
|
|
2742
|
+
'delete',
|
|
2743
|
+
'head',
|
|
2744
|
+
'options',
|
|
2745
|
+
'post',
|
|
2746
|
+
'put',
|
|
2747
|
+
'patch',
|
|
2748
|
+
'purge',
|
|
2749
|
+
'link',
|
|
2750
|
+
'unlink',
|
|
2751
|
+
'query',
|
|
2752
|
+
]);
|
|
2753
|
+
|
|
2527
2754
|
const own = (obj, key) => (obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined);
|
|
2528
2755
|
|
|
2529
2756
|
/**
|
|
@@ -2686,7 +2913,7 @@ const defaults = {
|
|
|
2686
2913
|
},
|
|
2687
2914
|
};
|
|
2688
2915
|
|
|
2689
|
-
utils$1.forEach(
|
|
2916
|
+
utils$1.forEach(methodList, (method) => {
|
|
2690
2917
|
defaults.headers[method] = {};
|
|
2691
2918
|
});
|
|
2692
2919
|
|
|
@@ -2758,6 +2985,29 @@ function settle(resolve, reject, response) {
|
|
|
2758
2985
|
}
|
|
2759
2986
|
}
|
|
2760
2987
|
|
|
2988
|
+
const urlParserControlCharacters = /[\t\n\r]/g;
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
2992
|
+
*
|
|
2993
|
+
* @param {string} url
|
|
2994
|
+
*
|
|
2995
|
+
* @returns {string}
|
|
2996
|
+
*/
|
|
2997
|
+
function normalizeURLForProtocolCheck(url) {
|
|
2998
|
+
if (typeof url !== 'string') {
|
|
2999
|
+
return url;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
let start = 0;
|
|
3003
|
+
|
|
3004
|
+
while (start < url.length && url.charCodeAt(start) <= 0x20) {
|
|
3005
|
+
start++;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
return url.slice(start).replace(urlParserControlCharacters, '');
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2761
3011
|
function parseProtocol(url) {
|
|
2762
3012
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
2763
3013
|
return (match && match[1]) || '';
|
|
@@ -2819,7 +3069,7 @@ function speedometer(samplesCount, min) {
|
|
|
2819
3069
|
* Throttle decorator
|
|
2820
3070
|
* @param {Function} fn
|
|
2821
3071
|
* @param {Number} freq
|
|
2822
|
-
* @return {Function}
|
|
3072
|
+
* @return {Array<Function>}
|
|
2823
3073
|
*/
|
|
2824
3074
|
function throttle(fn, freq) {
|
|
2825
3075
|
let timestamp = 0;
|
|
@@ -2854,8 +3104,9 @@ function throttle(fn, freq) {
|
|
|
2854
3104
|
};
|
|
2855
3105
|
|
|
2856
3106
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
3107
|
+
const flushWith = (...args) => invoke(args);
|
|
2857
3108
|
|
|
2858
|
-
return [throttled, flush];
|
|
3109
|
+
return [throttled, flush, flushWith];
|
|
2859
3110
|
}
|
|
2860
3111
|
|
|
2861
3112
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
@@ -2863,7 +3114,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2863
3114
|
const _speedometer = speedometer(50, 250);
|
|
2864
3115
|
|
|
2865
3116
|
return throttle((e) => {
|
|
2866
|
-
if (!e ||
|
|
3117
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
2867
3118
|
return;
|
|
2868
3119
|
}
|
|
2869
3120
|
const rawLoaded = e.loaded;
|
|
@@ -3027,19 +3278,6 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
3027
3278
|
}
|
|
3028
3279
|
|
|
3029
3280
|
const malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
3030
|
-
const httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
3031
|
-
|
|
3032
|
-
function stripLeadingC0ControlOrSpace(url) {
|
|
3033
|
-
let i = 0;
|
|
3034
|
-
while (i < url.length && url.charCodeAt(i) <= 0x20) {
|
|
3035
|
-
i++;
|
|
3036
|
-
}
|
|
3037
|
-
return url.slice(i);
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
function normalizeURLForProtocolCheck(url) {
|
|
3041
|
-
return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, '');
|
|
3042
|
-
}
|
|
3043
3281
|
|
|
3044
3282
|
// Redact the parts of a URL that can carry secrets before it is embedded in an
|
|
3045
3283
|
// error message. AxiosError.toJSON() serializes `message` verbatim and errors
|
|
@@ -3230,7 +3468,7 @@ function mergeConfig(config1, config2) {
|
|
|
3230
3468
|
transformResponse: defaultToConfig2,
|
|
3231
3469
|
paramsSerializer: defaultToConfig2,
|
|
3232
3470
|
timeout: defaultToConfig2,
|
|
3233
|
-
|
|
3471
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
3234
3472
|
withCredentials: defaultToConfig2,
|
|
3235
3473
|
withXSRFToken: defaultToConfig2,
|
|
3236
3474
|
adapter: defaultToConfig2,
|
|
@@ -3359,15 +3597,17 @@ function resolveConfig(config) {
|
|
|
3359
3597
|
}
|
|
3360
3598
|
|
|
3361
3599
|
if (utils$1.isFormData(data)) {
|
|
3600
|
+
const getHeaders = utils$1.getSafeProp(data, 'getHeaders');
|
|
3601
|
+
|
|
3362
3602
|
if (
|
|
3363
3603
|
platform.hasStandardBrowserEnv ||
|
|
3364
3604
|
platform.hasStandardBrowserWebWorkerEnv ||
|
|
3365
3605
|
utils$1.isReactNative(data)
|
|
3366
3606
|
) {
|
|
3367
3607
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
3368
|
-
} else if (utils$1.isFunction(
|
|
3608
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
3369
3609
|
// Node.js FormData (like form-data package)
|
|
3370
|
-
setFormDataHeaders(headers,
|
|
3610
|
+
setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
3371
3611
|
}
|
|
3372
3612
|
}
|
|
3373
3613
|
|
|
@@ -3409,7 +3649,7 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3409
3649
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3410
3650
|
let onCanceled;
|
|
3411
3651
|
let uploadThrottled, downloadThrottled;
|
|
3412
|
-
let flushUpload, flushDownload;
|
|
3652
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
3413
3653
|
|
|
3414
3654
|
function done() {
|
|
3415
3655
|
flushUpload && flushUpload(); // flush events
|
|
@@ -3427,10 +3667,55 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3427
3667
|
// Set the request timeout in MS
|
|
3428
3668
|
request.timeout = _config.timeout;
|
|
3429
3669
|
|
|
3430
|
-
function onloadend() {
|
|
3670
|
+
function onloadend(event) {
|
|
3431
3671
|
if (!request) {
|
|
3432
3672
|
return;
|
|
3433
3673
|
}
|
|
3674
|
+
|
|
3675
|
+
// Status 0 means no response was received, which onerror and onabort normally
|
|
3676
|
+
// reject before this runs. Firefox 152 fires only readystatechange and loadend for
|
|
3677
|
+
// navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
|
|
3678
|
+
// leaving settle() to resolve them as an empty success. ECONNABORTED is the error
|
|
3679
|
+
// onabort raised on Firefox 151. Reads over file:, which some environments report as
|
|
3680
|
+
// status 0 on success, are excluded by the request URL's scheme after browser-style
|
|
3681
|
+
// preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
|
|
3682
|
+
// by responseURL where implemented.
|
|
3683
|
+
if (
|
|
3684
|
+
request.status === 0 &&
|
|
3685
|
+
(parseProtocol(normalizeURLForProtocolCheck(_config.url)) ||
|
|
3686
|
+
parseProtocol(platform.origin)) !== 'file' &&
|
|
3687
|
+
!(request.responseURL && request.responseURL.startsWith('file:'))
|
|
3688
|
+
) {
|
|
3689
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3690
|
+
done();
|
|
3691
|
+
|
|
3692
|
+
// Clean up request
|
|
3693
|
+
request = null;
|
|
3694
|
+
return;
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
// When loadend is still dispatching, flushing with it gives progress
|
|
3698
|
+
// listeners a final delivery whose event has a live target. The legacy
|
|
3699
|
+
// ready-state fallback has no event, so replay its pending progress.
|
|
3700
|
+
// A throwing listener must not block settlement; rethrow asynchronously,
|
|
3701
|
+
// matching how listener errors surface on the throttle timer path.
|
|
3702
|
+
try {
|
|
3703
|
+
if (event) {
|
|
3704
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
3705
|
+
} else {
|
|
3706
|
+
flushDownload && flushDownload();
|
|
3707
|
+
}
|
|
3708
|
+
} catch (err) {
|
|
3709
|
+
setTimeout(() => {
|
|
3710
|
+
throw err;
|
|
3711
|
+
});
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
// A final progress callback can cancel the request synchronously.
|
|
3715
|
+
if (!request) {
|
|
3716
|
+
return;
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3434
3719
|
// Prepare the response
|
|
3435
3720
|
const responseHeaders = AxiosHeaders.from(
|
|
3436
3721
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
@@ -3562,7 +3847,10 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3562
3847
|
|
|
3563
3848
|
// Handle progress if needed
|
|
3564
3849
|
if (onDownloadProgress) {
|
|
3565
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
3850
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
3851
|
+
onDownloadProgress,
|
|
3852
|
+
true
|
|
3853
|
+
);
|
|
3566
3854
|
request.addEventListener('progress', downloadThrottled);
|
|
3567
3855
|
}
|
|
3568
3856
|
|
|
@@ -3925,10 +4213,22 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
3925
4213
|
);
|
|
3926
4214
|
}
|
|
3927
4215
|
|
|
3928
|
-
const VERSION = "1.
|
|
4216
|
+
const VERSION = "1.20.0";
|
|
3929
4217
|
|
|
3930
4218
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3931
4219
|
|
|
4220
|
+
const DEFAULT_REQUEST_OPTIONS = {
|
|
4221
|
+
cache: 'default',
|
|
4222
|
+
redirect: 'follow',
|
|
4223
|
+
referrer: 'about:client',
|
|
4224
|
+
referrerPolicy: '',
|
|
4225
|
+
mode: 'cors',
|
|
4226
|
+
integrity: '',
|
|
4227
|
+
keepalive: false,
|
|
4228
|
+
priority: 'auto',
|
|
4229
|
+
window: null,
|
|
4230
|
+
};
|
|
4231
|
+
|
|
3932
4232
|
const { isFunction } = utils$1;
|
|
3933
4233
|
|
|
3934
4234
|
/**
|
|
@@ -3979,9 +4279,7 @@ const maybeWithAuthCredentials = (url) => {
|
|
|
3979
4279
|
|
|
3980
4280
|
const factory = (env) => {
|
|
3981
4281
|
const globalObject =
|
|
3982
|
-
utils$1.global !== undefined && utils$1.global !== null
|
|
3983
|
-
? utils$1.global
|
|
3984
|
-
: globalThis;
|
|
4282
|
+
utils$1.global !== undefined && utils$1.global !== null ? utils$1.global : globalThis;
|
|
3985
4283
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
3986
4284
|
|
|
3987
4285
|
env = utils$1.merge.call(
|
|
@@ -4120,6 +4418,7 @@ const factory = (env) => {
|
|
|
4120
4418
|
fetchOptions,
|
|
4121
4419
|
maxContentLength,
|
|
4122
4420
|
maxBodyLength,
|
|
4421
|
+
maxRedirects,
|
|
4123
4422
|
} = resolveConfig(config);
|
|
4124
4423
|
|
|
4125
4424
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
@@ -4170,7 +4469,7 @@ const factory = (env) => {
|
|
|
4170
4469
|
const password = utils$1.getSafeProp(configAuth, 'password') || '';
|
|
4171
4470
|
auth = {
|
|
4172
4471
|
username,
|
|
4173
|
-
password
|
|
4472
|
+
password,
|
|
4174
4473
|
};
|
|
4175
4474
|
}
|
|
4176
4475
|
|
|
@@ -4182,7 +4481,7 @@ const factory = (env) => {
|
|
|
4182
4481
|
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
4183
4482
|
auth = {
|
|
4184
4483
|
username: urlUsername,
|
|
4185
|
-
password: urlPassword
|
|
4484
|
+
password: urlPassword,
|
|
4186
4485
|
};
|
|
4187
4486
|
}
|
|
4188
4487
|
|
|
@@ -4256,7 +4555,9 @@ const factory = (env) => {
|
|
|
4256
4555
|
(onUploadProgress || mustEnforceStreamBody)
|
|
4257
4556
|
) {
|
|
4258
4557
|
requestContentLength =
|
|
4259
|
-
requestContentLength == null
|
|
4558
|
+
requestContentLength == null
|
|
4559
|
+
? await resolveBodyLength(headers, data)
|
|
4560
|
+
: requestContentLength;
|
|
4260
4561
|
|
|
4261
4562
|
// A declared length of 0 is only trusted to skip the wrap when we are
|
|
4262
4563
|
// not enforcing a stream limit (which must not rely on that header).
|
|
@@ -4269,7 +4570,10 @@ const factory = (env) => {
|
|
|
4269
4570
|
|
|
4270
4571
|
let contentTypeHeader;
|
|
4271
4572
|
|
|
4272
|
-
if (
|
|
4573
|
+
if (
|
|
4574
|
+
utils$1.isFormData(data) &&
|
|
4575
|
+
(contentTypeHeader = _request.headers.get('content-type'))
|
|
4576
|
+
) {
|
|
4273
4577
|
headers.setContentType(contentTypeHeader);
|
|
4274
4578
|
}
|
|
4275
4579
|
|
|
@@ -4332,20 +4636,57 @@ const factory = (env) => {
|
|
|
4332
4636
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
4333
4637
|
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
4334
4638
|
|
|
4335
|
-
const
|
|
4336
|
-
|
|
4639
|
+
const safeFetchOptions =
|
|
4640
|
+
fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
4641
|
+
|
|
4642
|
+
if (safeFetchOptions) {
|
|
4643
|
+
// These options are owned by Axios and are already reflected in the
|
|
4644
|
+
// resolved Request passed to fetch.
|
|
4645
|
+
delete safeFetchOptions.body;
|
|
4646
|
+
delete safeFetchOptions.headers;
|
|
4647
|
+
delete safeFetchOptions.method;
|
|
4648
|
+
delete safeFetchOptions.signal;
|
|
4649
|
+
delete safeFetchOptions.duplex;
|
|
4650
|
+
delete safeFetchOptions.credentials;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
4337
4654
|
signal: composedSignal,
|
|
4338
4655
|
method: method.toUpperCase(),
|
|
4339
4656
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
4340
4657
|
body: data,
|
|
4341
4658
|
duplex: 'half',
|
|
4342
4659
|
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
4343
|
-
};
|
|
4660
|
+
});
|
|
4661
|
+
|
|
4662
|
+
if (isRequestSupported) {
|
|
4663
|
+
utils$1.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
4664
|
+
if (resolvedOptions[key] === undefined) {
|
|
4665
|
+
resolvedOptions[key] = value;
|
|
4666
|
+
}
|
|
4667
|
+
});
|
|
4668
|
+
|
|
4669
|
+
if (resolvedOptions.signal === undefined) {
|
|
4670
|
+
resolvedOptions.signal = null;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
if (resolvedOptions.body === undefined) {
|
|
4674
|
+
resolvedOptions.body = null;
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4678
|
+
if (maxRedirects === 0) {
|
|
4679
|
+
resolvedOptions.redirect = 'manual';
|
|
4680
|
+
|
|
4681
|
+
if (safeFetchOptions) {
|
|
4682
|
+
safeFetchOptions.redirect = 'manual';
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4344
4685
|
|
|
4345
4686
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
4346
4687
|
|
|
4347
4688
|
let response = await (isRequestSupported
|
|
4348
|
-
? _fetch(request,
|
|
4689
|
+
? _fetch(request, safeFetchOptions)
|
|
4349
4690
|
: _fetch(url, resolvedOptions));
|
|
4350
4691
|
|
|
4351
4692
|
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
@@ -4703,10 +5044,15 @@ function throwIfCancellationRequested(config) {
|
|
|
4703
5044
|
*
|
|
4704
5045
|
* @returns {Promise} The Promise to be fulfilled
|
|
4705
5046
|
*/
|
|
4706
|
-
function dispatchRequest(
|
|
5047
|
+
function dispatchRequest(_config) {
|
|
5048
|
+
// Interceptors may replace the merged config with an ordinary object. Flatten
|
|
5049
|
+
// it at the dispatch boundary so shared prototype members cannot become
|
|
5050
|
+
// request behavior, while preserving intentional template/class members.
|
|
5051
|
+
const config = utils$1.toSafeFlatObject(_config);
|
|
5052
|
+
|
|
4707
5053
|
throwIfCancellationRequested(config);
|
|
4708
5054
|
|
|
4709
|
-
config.headers = AxiosHeaders.from(config
|
|
5055
|
+
config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, 'headers'));
|
|
4710
5056
|
|
|
4711
5057
|
// Transform request data
|
|
4712
5058
|
config.data = transformData.call(config, config.transformRequest);
|
|
@@ -4899,21 +5245,21 @@ class Axios {
|
|
|
4899
5245
|
return await this._request(configOrUrl, config);
|
|
4900
5246
|
} catch (err) {
|
|
4901
5247
|
if (err instanceof Error) {
|
|
4902
|
-
|
|
5248
|
+
try {
|
|
5249
|
+
let dummy = {};
|
|
4903
5250
|
|
|
4904
|
-
|
|
5251
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
4905
5252
|
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
if (!dummy.stack) {
|
|
4909
|
-
return '';
|
|
4910
|
-
}
|
|
5253
|
+
const dummyStack = dummy.stack;
|
|
5254
|
+
let stack = '';
|
|
4911
5255
|
|
|
4912
|
-
|
|
5256
|
+
// slice off the Error: ... line
|
|
5257
|
+
if (typeof dummyStack === 'string') {
|
|
5258
|
+
const firstNewlineIndex = dummyStack.indexOf('\n');
|
|
5259
|
+
|
|
5260
|
+
stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
|
|
5261
|
+
}
|
|
4913
5262
|
|
|
4914
|
-
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
4915
|
-
})();
|
|
4916
|
-
try {
|
|
4917
5263
|
if (!err.stack) {
|
|
4918
5264
|
err.stack = stack;
|
|
4919
5265
|
// match without the 2 top stack lines
|
|
@@ -4929,7 +5275,7 @@ class Axios {
|
|
|
4929
5275
|
}
|
|
4930
5276
|
}
|
|
4931
5277
|
} catch (e) {
|
|
4932
|
-
//
|
|
5278
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
4933
5279
|
}
|
|
4934
5280
|
}
|
|
4935
5281
|
|
|
@@ -5000,13 +5346,17 @@ class Axios {
|
|
|
5000
5346
|
);
|
|
5001
5347
|
|
|
5002
5348
|
// Set config.method
|
|
5003
|
-
config.method = (
|
|
5349
|
+
config.method = (
|
|
5350
|
+
utils$1.getSafeProp(config, 'method') ||
|
|
5351
|
+
utils$1.getSafeProp(this.defaults, 'method') ||
|
|
5352
|
+
'get'
|
|
5353
|
+
).toLowerCase();
|
|
5004
5354
|
|
|
5005
5355
|
// Flatten headers
|
|
5006
5356
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
5007
5357
|
|
|
5008
5358
|
headers &&
|
|
5009
|
-
utils$1.forEach(
|
|
5359
|
+
utils$1.forEach(methodList.concat('common'), (method) => {
|
|
5010
5360
|
delete headers[method];
|
|
5011
5361
|
});
|
|
5012
5362
|
|
|
@@ -5359,14 +5709,22 @@ const HttpStatusCode = {
|
|
|
5359
5709
|
Gone: 410,
|
|
5360
5710
|
LengthRequired: 411,
|
|
5361
5711
|
PreconditionFailed: 412,
|
|
5712
|
+
/**
|
|
5713
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
5714
|
+
*/
|
|
5362
5715
|
PayloadTooLarge: 413,
|
|
5716
|
+
ContentTooLarge: 413,
|
|
5363
5717
|
UriTooLong: 414,
|
|
5364
5718
|
UnsupportedMediaType: 415,
|
|
5365
5719
|
RangeNotSatisfiable: 416,
|
|
5366
5720
|
ExpectationFailed: 417,
|
|
5367
5721
|
ImATeapot: 418,
|
|
5368
5722
|
MisdirectedRequest: 421,
|
|
5723
|
+
/**
|
|
5724
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
5725
|
+
*/
|
|
5369
5726
|
UnprocessableEntity: 422,
|
|
5727
|
+
UnprocessableContent: 422,
|
|
5370
5728
|
Locked: 423,
|
|
5371
5729
|
FailedDependency: 424,
|
|
5372
5730
|
TooEarly: 425,
|
|
@@ -5396,7 +5754,9 @@ const HttpStatusCode = {
|
|
|
5396
5754
|
};
|
|
5397
5755
|
|
|
5398
5756
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
5399
|
-
HttpStatusCode[value]
|
|
5757
|
+
if (HttpStatusCode[value] === undefined) {
|
|
5758
|
+
HttpStatusCode[value] = key;
|
|
5759
|
+
}
|
|
5400
5760
|
});
|
|
5401
5761
|
|
|
5402
5762
|
/**
|