@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
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -561,13 +561,61 @@
|
|
|
561
561
|
return hasOwnProperty.call(obj, prop);
|
|
562
562
|
};
|
|
563
563
|
}(Object.prototype);
|
|
564
|
+
var isUnsafeObjectKey = function isUnsafeObjectKey(prop) {
|
|
565
|
+
return typeof prop === 'string' && (prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
570
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
571
|
+
* reliably from application-created null-prototype objects because their
|
|
572
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
573
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
574
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
575
|
+
*
|
|
576
|
+
* @param {*} obj The object to inspect
|
|
577
|
+
* @param {*} prototype The object's prototype
|
|
578
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
579
|
+
*
|
|
580
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
581
|
+
*/
|
|
582
|
+
var isPrototypeBoundary = function isPrototypeBoundary(obj, prototype, source) {
|
|
583
|
+
return obj === Object.prototype || !source && prototype === null;
|
|
584
|
+
};
|
|
564
585
|
|
|
565
586
|
/**
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
587
|
+
* Determine whether an object can retain its identity through code paths that
|
|
588
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
589
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
590
|
+
* accessor or restricted data properties must be materialized instead.
|
|
591
|
+
*
|
|
592
|
+
* @param {*} obj The object to inspect
|
|
593
|
+
*
|
|
594
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
595
|
+
*/
|
|
596
|
+
var isSafeAndFullyMutable = function isSafeAndFullyMutable(obj) {
|
|
597
|
+
if (!Object.isExtensible(obj)) {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
var props = Object.getOwnPropertyNames(obj);
|
|
601
|
+
if (Object.getOwnPropertySymbols) {
|
|
602
|
+
props.push.apply(props, _toConsumableArray(Object.getOwnPropertySymbols(obj)));
|
|
603
|
+
}
|
|
604
|
+
return props.every(function (prop) {
|
|
605
|
+
if (isUnsafeObjectKey(prop)) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
609
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
615
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
616
|
+
* — including class accessors and template prototypes — from members injected
|
|
617
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
618
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
571
619
|
*
|
|
572
620
|
* @param {*} thing The value whose chain to inspect
|
|
573
621
|
* @param {string|symbol} prop The property key to look for
|
|
@@ -577,15 +625,19 @@
|
|
|
577
625
|
var hasOwnInPrototypeChain = function hasOwnInPrototypeChain(thing, prop) {
|
|
578
626
|
var obj = thing;
|
|
579
627
|
var seen = [];
|
|
580
|
-
while (obj != null
|
|
628
|
+
while (obj != null) {
|
|
581
629
|
if (seen.indexOf(obj) !== -1) {
|
|
582
630
|
return false;
|
|
583
631
|
}
|
|
584
632
|
seen.push(obj);
|
|
633
|
+
var prototype = getPrototypeOf(obj);
|
|
634
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
635
|
+
return false;
|
|
636
|
+
}
|
|
585
637
|
if (hasOwnProperty(obj, prop)) {
|
|
586
638
|
return true;
|
|
587
639
|
}
|
|
588
|
-
obj =
|
|
640
|
+
obj = prototype;
|
|
589
641
|
}
|
|
590
642
|
return false;
|
|
591
643
|
};
|
|
@@ -604,6 +656,65 @@
|
|
|
604
656
|
var getSafeProp = function getSafeProp(obj, prop) {
|
|
605
657
|
return obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
606
658
|
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
662
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
663
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
664
|
+
* below that boundary are preserved.
|
|
665
|
+
*
|
|
666
|
+
* @param {*} thing The value to flatten
|
|
667
|
+
*
|
|
668
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
669
|
+
* structurally safe or is not an object
|
|
670
|
+
*/
|
|
671
|
+
var toSafeFlatObject = function toSafeFlatObject(thing) {
|
|
672
|
+
if (thing == null || _typeof(thing) !== 'object' && typeof thing !== 'function') {
|
|
673
|
+
return thing;
|
|
674
|
+
}
|
|
675
|
+
var sourcePrototype = getPrototypeOf(thing);
|
|
676
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
677
|
+
return thing;
|
|
678
|
+
}
|
|
679
|
+
var result = Object.create(null);
|
|
680
|
+
var merged = Object.create(null);
|
|
681
|
+
var seen = [];
|
|
682
|
+
var current = thing;
|
|
683
|
+
while (current != null) {
|
|
684
|
+
if (seen.indexOf(current) !== -1) {
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
seen.push(current);
|
|
688
|
+
var prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
689
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
var props = Object.getOwnPropertyNames(current);
|
|
693
|
+
if (Object.getOwnPropertySymbols) {
|
|
694
|
+
props.push.apply(props, _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
695
|
+
}
|
|
696
|
+
var _iterator2 = _createForOfIteratorHelper(props),
|
|
697
|
+
_step;
|
|
698
|
+
try {
|
|
699
|
+
for (_iterator2.s(); !(_step = _iterator2.n()).done;) {
|
|
700
|
+
var prop = _step.value;
|
|
701
|
+
if (isUnsafeObjectKey(prop)) {
|
|
702
|
+
continue;
|
|
703
|
+
}
|
|
704
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
705
|
+
result[prop] = thing[prop];
|
|
706
|
+
merged[prop] = true;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
} catch (err) {
|
|
710
|
+
_iterator2.e(err);
|
|
711
|
+
} finally {
|
|
712
|
+
_iterator2.f();
|
|
713
|
+
}
|
|
714
|
+
current = prototype;
|
|
715
|
+
}
|
|
716
|
+
return result;
|
|
717
|
+
};
|
|
607
718
|
var kindOf = function (cache) {
|
|
608
719
|
return function (thing) {
|
|
609
720
|
var str = toString.call(thing);
|
|
@@ -737,9 +848,9 @@
|
|
|
737
848
|
}
|
|
738
849
|
var prototype = getPrototypeOf(val);
|
|
739
850
|
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
740
|
-
// Treat
|
|
741
|
-
//
|
|
742
|
-
//
|
|
851
|
+
// Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
852
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
853
|
+
// only through shared or terminal prototype boundaries.
|
|
743
854
|
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
744
855
|
};
|
|
745
856
|
|
|
@@ -1358,18 +1469,18 @@
|
|
|
1358
1469
|
var target;
|
|
1359
1470
|
if (isSet(source)) {
|
|
1360
1471
|
target = [];
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1472
|
+
var _iterator3 = _createForOfIteratorHelper(source),
|
|
1473
|
+
_step2;
|
|
1363
1474
|
try {
|
|
1364
|
-
for (
|
|
1365
|
-
var value =
|
|
1475
|
+
for (_iterator3.s(); !(_step2 = _iterator3.n()).done;) {
|
|
1476
|
+
var value = _step2.value;
|
|
1366
1477
|
var reducedValue = _visit(value);
|
|
1367
1478
|
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
1368
1479
|
}
|
|
1369
1480
|
} catch (err) {
|
|
1370
|
-
|
|
1481
|
+
_iterator3.e(err);
|
|
1371
1482
|
} finally {
|
|
1372
|
-
|
|
1483
|
+
_iterator3.f();
|
|
1373
1484
|
}
|
|
1374
1485
|
} else {
|
|
1375
1486
|
target = isArray(source) ? [] : {};
|
|
@@ -1512,6 +1623,7 @@
|
|
|
1512
1623
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1513
1624
|
hasOwnInPrototypeChain: hasOwnInPrototypeChain,
|
|
1514
1625
|
getSafeProp: getSafeProp,
|
|
1626
|
+
toSafeFlatObject: toSafeFlatObject,
|
|
1515
1627
|
reduceDescriptors: reduceDescriptors,
|
|
1516
1628
|
freezeMethods: freezeMethods,
|
|
1517
1629
|
toObjectSet: toObjectSet,
|
|
@@ -1622,7 +1734,7 @@
|
|
|
1622
1734
|
return byteStringHeaders;
|
|
1623
1735
|
}
|
|
1624
1736
|
|
|
1625
|
-
var $internals = Symbol('internals');
|
|
1737
|
+
var $internals$1 = Symbol('internals');
|
|
1626
1738
|
function normalizeHeader(header) {
|
|
1627
1739
|
return header && String(header).trim().toLowerCase();
|
|
1628
1740
|
}
|
|
@@ -1982,7 +2094,7 @@
|
|
|
1982
2094
|
}, {
|
|
1983
2095
|
key: "accessor",
|
|
1984
2096
|
value: function accessor(header) {
|
|
1985
|
-
var internals = this[$internals] = this[$internals] = {
|
|
2097
|
+
var internals = this[$internals$1] = this[$internals$1] = {
|
|
1986
2098
|
accessors: {}
|
|
1987
2099
|
};
|
|
1988
2100
|
var accessors = internals.accessors;
|
|
@@ -2304,23 +2416,17 @@
|
|
|
2304
2416
|
|
|
2305
2417
|
// eslint-disable-next-line no-param-reassign
|
|
2306
2418
|
formData = formData || new (FormData)();
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
indexes: false
|
|
2313
|
-
}, false, function defined(option, source) {
|
|
2314
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
2315
|
-
return !utils$1.isUndefined(source[option]);
|
|
2316
|
-
});
|
|
2317
|
-
var metaTokens = options.metaTokens;
|
|
2419
|
+
var option = function option(name, fallback) {
|
|
2420
|
+
var value = utils$1.getSafeProp(options, name);
|
|
2421
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
2422
|
+
};
|
|
2423
|
+
var metaTokens = option('metaTokens', true);
|
|
2318
2424
|
// eslint-disable-next-line no-use-before-define
|
|
2319
|
-
var visitor =
|
|
2320
|
-
var dots =
|
|
2321
|
-
var indexes =
|
|
2322
|
-
var _Blob =
|
|
2323
|
-
var maxDepth =
|
|
2425
|
+
var visitor = option('visitor') || defaultVisitor;
|
|
2426
|
+
var dots = option('dots', false);
|
|
2427
|
+
var indexes = option('indexes', false);
|
|
2428
|
+
var _Blob = option('Blob') || typeof Blob !== 'undefined' && Blob;
|
|
2429
|
+
var maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
2324
2430
|
var useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
2325
2431
|
var stack = [];
|
|
2326
2432
|
if (!utils$1.isFunction(visitor)) {
|
|
@@ -2534,10 +2640,52 @@
|
|
|
2534
2640
|
return url;
|
|
2535
2641
|
}
|
|
2536
2642
|
|
|
2643
|
+
var $internals = Symbol('internals');
|
|
2644
|
+
|
|
2645
|
+
// `handlers` is public and may be replaced with a nullish value by user code;
|
|
2646
|
+
// `clear()` has always tolerated that. Treat it as an empty stack rather than
|
|
2647
|
+
// dereferencing it.
|
|
2648
|
+
function countHandlers(handlers) {
|
|
2649
|
+
return handlers ? handlers.length : 0;
|
|
2650
|
+
}
|
|
2651
|
+
function trimHandlers(handlers) {
|
|
2652
|
+
if (!handlers) {
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
2656
|
+
handlers.pop();
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
function syncHandlerEntries(manager, internals) {
|
|
2660
|
+
var handlers = manager.handlers;
|
|
2661
|
+
var length = countHandlers(handlers);
|
|
2662
|
+
if (handlers !== internals.handlersRef) {
|
|
2663
|
+
internals.handlersRef = handlers;
|
|
2664
|
+
internals.handlerEntries.clear();
|
|
2665
|
+
} else if (length !== internals.handlersLength) {
|
|
2666
|
+
if (!length) {
|
|
2667
|
+
internals.handlerEntries.clear();
|
|
2668
|
+
} else {
|
|
2669
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
2670
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
2671
|
+
internals.handlerEntries["delete"](id);
|
|
2672
|
+
}
|
|
2673
|
+
});
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
internals.handlersLength = length;
|
|
2677
|
+
}
|
|
2537
2678
|
var InterceptorManager = /*#__PURE__*/function () {
|
|
2538
2679
|
function InterceptorManager() {
|
|
2539
2680
|
_classCallCheck(this, InterceptorManager);
|
|
2540
2681
|
this.handlers = [];
|
|
2682
|
+
this[$internals] = {
|
|
2683
|
+
handlersRef: this.handlers,
|
|
2684
|
+
handlersLength: this.handlers.length,
|
|
2685
|
+
handlerEntries: new Map(),
|
|
2686
|
+
iterationDepth: 0,
|
|
2687
|
+
nextId: 0
|
|
2688
|
+
};
|
|
2541
2689
|
}
|
|
2542
2690
|
|
|
2543
2691
|
/**
|
|
@@ -2552,13 +2700,25 @@
|
|
|
2552
2700
|
return _createClass(InterceptorManager, [{
|
|
2553
2701
|
key: "use",
|
|
2554
2702
|
value: function use(fulfilled, rejected, options) {
|
|
2555
|
-
|
|
2703
|
+
var handler = {
|
|
2556
2704
|
fulfilled: fulfilled,
|
|
2557
2705
|
rejected: rejected,
|
|
2558
2706
|
synchronous: options ? options.synchronous : false,
|
|
2559
2707
|
runWhen: options ? options.runWhen : null
|
|
2708
|
+
};
|
|
2709
|
+
var internals = this[$internals];
|
|
2710
|
+
if (this.handlers == null) {
|
|
2711
|
+
this.handlers = [];
|
|
2712
|
+
}
|
|
2713
|
+
syncHandlerEntries(this, internals);
|
|
2714
|
+
var id = internals.nextId++;
|
|
2715
|
+
this.handlers.push(handler);
|
|
2716
|
+
internals.handlerEntries.set(id, {
|
|
2717
|
+
handler: handler,
|
|
2718
|
+
index: this.handlers.length - 1
|
|
2560
2719
|
});
|
|
2561
|
-
|
|
2720
|
+
internals.handlersLength = this.handlers.length;
|
|
2721
|
+
return id;
|
|
2562
2722
|
}
|
|
2563
2723
|
|
|
2564
2724
|
/**
|
|
@@ -2571,8 +2731,23 @@
|
|
|
2571
2731
|
}, {
|
|
2572
2732
|
key: "eject",
|
|
2573
2733
|
value: function eject(id) {
|
|
2574
|
-
|
|
2575
|
-
|
|
2734
|
+
var internals = this[$internals];
|
|
2735
|
+
syncHandlerEntries(this, internals);
|
|
2736
|
+
var entry = internals.handlerEntries.get(id);
|
|
2737
|
+
if (entry) {
|
|
2738
|
+
internals.handlerEntries["delete"](id);
|
|
2739
|
+
|
|
2740
|
+
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
2741
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
2742
|
+
return;
|
|
2743
|
+
}
|
|
2744
|
+
this.handlers[entry.index] = null;
|
|
2745
|
+
|
|
2746
|
+
// Do not reuse an index while forEach is walking its length snapshot.
|
|
2747
|
+
if (!internals.iterationDepth) {
|
|
2748
|
+
trimHandlers(this.handlers);
|
|
2749
|
+
internals.handlersLength = this.handlers.length;
|
|
2750
|
+
}
|
|
2576
2751
|
}
|
|
2577
2752
|
}
|
|
2578
2753
|
|
|
@@ -2586,6 +2761,7 @@
|
|
|
2586
2761
|
value: function clear() {
|
|
2587
2762
|
if (this.handlers) {
|
|
2588
2763
|
this.handlers = [];
|
|
2764
|
+
syncHandlerEntries(this, this[$internals]);
|
|
2589
2765
|
}
|
|
2590
2766
|
}
|
|
2591
2767
|
|
|
@@ -2602,11 +2778,22 @@
|
|
|
2602
2778
|
}, {
|
|
2603
2779
|
key: "forEach",
|
|
2604
2780
|
value: function forEach(fn) {
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2781
|
+
var internals = this[$internals];
|
|
2782
|
+
syncHandlerEntries(this, internals);
|
|
2783
|
+
internals.iterationDepth++;
|
|
2784
|
+
try {
|
|
2785
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
2786
|
+
if (h !== null) {
|
|
2787
|
+
fn(h);
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
} finally {
|
|
2791
|
+
if (! --internals.iterationDepth) {
|
|
2792
|
+
syncHandlerEntries(this, internals);
|
|
2793
|
+
trimHandlers(this.handlers);
|
|
2794
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
2608
2795
|
}
|
|
2609
|
-
}
|
|
2796
|
+
}
|
|
2610
2797
|
}
|
|
2611
2798
|
}]);
|
|
2612
2799
|
}();
|
|
@@ -2794,6 +2981,8 @@
|
|
|
2794
2981
|
return null;
|
|
2795
2982
|
}
|
|
2796
2983
|
|
|
2984
|
+
var methodList = Object.freeze(['get', 'delete', 'head', 'options', 'post', 'put', 'patch', 'purge', 'link', 'unlink', 'query']);
|
|
2985
|
+
|
|
2797
2986
|
var own = function own(obj, key) {
|
|
2798
2987
|
return obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined;
|
|
2799
2988
|
};
|
|
@@ -2912,7 +3101,7 @@
|
|
|
2912
3101
|
}
|
|
2913
3102
|
}
|
|
2914
3103
|
};
|
|
2915
|
-
utils$1.forEach(
|
|
3104
|
+
utils$1.forEach(methodList, function (method) {
|
|
2916
3105
|
defaults.headers[method] = {};
|
|
2917
3106
|
});
|
|
2918
3107
|
|
|
@@ -2980,6 +3169,26 @@
|
|
|
2980
3169
|
}
|
|
2981
3170
|
}
|
|
2982
3171
|
|
|
3172
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
3176
|
+
*
|
|
3177
|
+
* @param {string} url
|
|
3178
|
+
*
|
|
3179
|
+
* @returns {string}
|
|
3180
|
+
*/
|
|
3181
|
+
function normalizeURLForProtocolCheck(url) {
|
|
3182
|
+
if (typeof url !== 'string') {
|
|
3183
|
+
return url;
|
|
3184
|
+
}
|
|
3185
|
+
var start = 0;
|
|
3186
|
+
while (start < url.length && url.charCodeAt(start) <= 0x20) {
|
|
3187
|
+
start++;
|
|
3188
|
+
}
|
|
3189
|
+
return url.slice(start).replace(urlParserControlCharacters, '');
|
|
3190
|
+
}
|
|
3191
|
+
|
|
2983
3192
|
function parseProtocol(url) {
|
|
2984
3193
|
var match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
2985
3194
|
return match && match[1] || '';
|
|
@@ -3029,7 +3238,7 @@
|
|
|
3029
3238
|
* Throttle decorator
|
|
3030
3239
|
* @param {Function} fn
|
|
3031
3240
|
* @param {Number} freq
|
|
3032
|
-
* @return {Function}
|
|
3241
|
+
* @return {Array<Function>}
|
|
3033
3242
|
*/
|
|
3034
3243
|
function throttle(fn, freq) {
|
|
3035
3244
|
var timestamp = 0;
|
|
@@ -3067,7 +3276,13 @@
|
|
|
3067
3276
|
var flush = function flush() {
|
|
3068
3277
|
return lastArgs && invoke(lastArgs);
|
|
3069
3278
|
};
|
|
3070
|
-
|
|
3279
|
+
var flushWith = function flushWith() {
|
|
3280
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
3281
|
+
args[_key2] = arguments[_key2];
|
|
3282
|
+
}
|
|
3283
|
+
return invoke(args);
|
|
3284
|
+
};
|
|
3285
|
+
return [throttled, flush, flushWith];
|
|
3071
3286
|
}
|
|
3072
3287
|
|
|
3073
3288
|
var progressEventReducer = function progressEventReducer(listener, isDownloadStream) {
|
|
@@ -3075,7 +3290,7 @@
|
|
|
3075
3290
|
var bytesNotified = 0;
|
|
3076
3291
|
var _speedometer = speedometer(50, 250);
|
|
3077
3292
|
return throttle(function (e) {
|
|
3078
|
-
if (!e ||
|
|
3293
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
3079
3294
|
return;
|
|
3080
3295
|
}
|
|
3081
3296
|
var rawLoaded = e.loaded;
|
|
@@ -3222,17 +3437,6 @@
|
|
|
3222
3437
|
}
|
|
3223
3438
|
|
|
3224
3439
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
3225
|
-
var httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
3226
|
-
function stripLeadingC0ControlOrSpace(url) {
|
|
3227
|
-
var i = 0;
|
|
3228
|
-
while (i < url.length && url.charCodeAt(i) <= 0x20) {
|
|
3229
|
-
i++;
|
|
3230
|
-
}
|
|
3231
|
-
return url.slice(i);
|
|
3232
|
-
}
|
|
3233
|
-
function normalizeURLForProtocolCheck(url) {
|
|
3234
|
-
return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, '');
|
|
3235
|
-
}
|
|
3236
3440
|
|
|
3237
3441
|
// Redact the parts of a URL that can carry secrets before it is embedded in an
|
|
3238
3442
|
// error message. AxiosError.toJSON() serializes `message` verbatim and errors
|
|
@@ -3400,7 +3604,7 @@
|
|
|
3400
3604
|
transformResponse: defaultToConfig2,
|
|
3401
3605
|
paramsSerializer: defaultToConfig2,
|
|
3402
3606
|
timeout: defaultToConfig2,
|
|
3403
|
-
|
|
3607
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
3404
3608
|
withCredentials: defaultToConfig2,
|
|
3405
3609
|
withXSRFToken: defaultToConfig2,
|
|
3406
3610
|
adapter: defaultToConfig2,
|
|
@@ -3515,11 +3719,12 @@
|
|
|
3515
3719
|
}
|
|
3516
3720
|
}
|
|
3517
3721
|
if (utils$1.isFormData(data)) {
|
|
3722
|
+
var getHeaders = utils$1.getSafeProp(data, 'getHeaders');
|
|
3518
3723
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
|
|
3519
3724
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
3520
|
-
} else if (utils$1.isFunction(
|
|
3725
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
3521
3726
|
// Node.js FormData (like form-data package)
|
|
3522
|
-
setFormDataHeaders(headers,
|
|
3727
|
+
setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
3523
3728
|
}
|
|
3524
3729
|
}
|
|
3525
3730
|
|
|
@@ -3557,7 +3762,7 @@
|
|
|
3557
3762
|
onDownloadProgress = _config.onDownloadProgress;
|
|
3558
3763
|
var onCanceled;
|
|
3559
3764
|
var uploadThrottled, downloadThrottled;
|
|
3560
|
-
var flushUpload, flushDownload;
|
|
3765
|
+
var flushUpload, flushDownload, flushDownloadWithEvent;
|
|
3561
3766
|
function done() {
|
|
3562
3767
|
flushUpload && flushUpload(); // flush events
|
|
3563
3768
|
flushDownload && flushDownload(); // flush events
|
|
@@ -3570,10 +3775,50 @@
|
|
|
3570
3775
|
|
|
3571
3776
|
// Set the request timeout in MS
|
|
3572
3777
|
request.timeout = _config.timeout;
|
|
3573
|
-
function onloadend() {
|
|
3778
|
+
function onloadend(event) {
|
|
3574
3779
|
if (!request) {
|
|
3575
3780
|
return;
|
|
3576
3781
|
}
|
|
3782
|
+
|
|
3783
|
+
// Status 0 means no response was received, which onerror and onabort normally
|
|
3784
|
+
// reject before this runs. Firefox 152 fires only readystatechange and loadend for
|
|
3785
|
+
// navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
|
|
3786
|
+
// leaving settle() to resolve them as an empty success. ECONNABORTED is the error
|
|
3787
|
+
// onabort raised on Firefox 151. Reads over file:, which some environments report as
|
|
3788
|
+
// status 0 on success, are excluded by the request URL's scheme after browser-style
|
|
3789
|
+
// preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
|
|
3790
|
+
// by responseURL where implemented.
|
|
3791
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform.origin)) !== 'file' && !(request.responseURL && request.responseURL.startsWith('file:'))) {
|
|
3792
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3793
|
+
done();
|
|
3794
|
+
|
|
3795
|
+
// Clean up request
|
|
3796
|
+
request = null;
|
|
3797
|
+
return;
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
// When loadend is still dispatching, flushing with it gives progress
|
|
3801
|
+
// listeners a final delivery whose event has a live target. The legacy
|
|
3802
|
+
// ready-state fallback has no event, so replay its pending progress.
|
|
3803
|
+
// A throwing listener must not block settlement; rethrow asynchronously,
|
|
3804
|
+
// matching how listener errors surface on the throttle timer path.
|
|
3805
|
+
try {
|
|
3806
|
+
if (event) {
|
|
3807
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
3808
|
+
} else {
|
|
3809
|
+
flushDownload && flushDownload();
|
|
3810
|
+
}
|
|
3811
|
+
} catch (err) {
|
|
3812
|
+
setTimeout(function () {
|
|
3813
|
+
throw err;
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
// A final progress callback can cancel the request synchronously.
|
|
3818
|
+
if (!request) {
|
|
3819
|
+
return;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3577
3822
|
// Prepare the response
|
|
3578
3823
|
var responseHeaders = AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
|
|
3579
3824
|
var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;
|
|
@@ -3682,9 +3927,10 @@
|
|
|
3682
3927
|
// Handle progress if needed
|
|
3683
3928
|
if (onDownloadProgress) {
|
|
3684
3929
|
var _progressEventReducer = progressEventReducer(onDownloadProgress, true);
|
|
3685
|
-
var _progressEventReducer2 = _slicedToArray(_progressEventReducer,
|
|
3930
|
+
var _progressEventReducer2 = _slicedToArray(_progressEventReducer, 3);
|
|
3686
3931
|
downloadThrottled = _progressEventReducer2[0];
|
|
3687
3932
|
flushDownload = _progressEventReducer2[1];
|
|
3933
|
+
flushDownloadWithEvent = _progressEventReducer2[2];
|
|
3688
3934
|
request.addEventListener('progress', downloadThrottled);
|
|
3689
3935
|
}
|
|
3690
3936
|
|
|
@@ -4117,9 +4363,20 @@
|
|
|
4117
4363
|
return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
4118
4364
|
}
|
|
4119
4365
|
|
|
4120
|
-
var VERSION = "1.
|
|
4366
|
+
var VERSION = "1.20.0";
|
|
4121
4367
|
|
|
4122
4368
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4369
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
4370
|
+
cache: 'default',
|
|
4371
|
+
redirect: 'follow',
|
|
4372
|
+
referrer: 'about:client',
|
|
4373
|
+
referrerPolicy: '',
|
|
4374
|
+
mode: 'cors',
|
|
4375
|
+
integrity: '',
|
|
4376
|
+
keepalive: false,
|
|
4377
|
+
priority: 'auto',
|
|
4378
|
+
window: null
|
|
4379
|
+
};
|
|
4123
4380
|
var isFunction = utils$1.isFunction;
|
|
4124
4381
|
|
|
4125
4382
|
/**
|
|
@@ -4321,11 +4578,11 @@
|
|
|
4321
4578
|
}();
|
|
4322
4579
|
return /*#__PURE__*/function () {
|
|
4323
4580
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(config) {
|
|
4324
|
-
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, maxContentLength, maxBodyLength, hasMaxContentLength, hasMaxBodyLength, own, _fetch, composedSignal, request, unsubscribe, requestContentLength, pendingBodyError, maxBodyLengthError, auth, configAuth, username, password, parsedURL, urlUsername, urlPassword, estimated, outboundLength, mustEnforceStreamBody, trackRequestStream, _request, contentTypeHeader, _ref5, _ref6, onProgress, flush, isCredentialsSupported, contentType, resolvedOptions, response, responseHeaders, declaredLength, isStreamResponse, options, responseContentLength, _ref7, _ref8, _onProgress, _flush, bytesRead, onChunkProgress, responseData, materializedSize, canceledError, networkError, _t3, _t4;
|
|
4581
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, maxContentLength, maxBodyLength, maxRedirects, hasMaxContentLength, hasMaxBodyLength, own, _fetch, composedSignal, request, unsubscribe, requestContentLength, pendingBodyError, maxBodyLengthError, auth, configAuth, username, password, parsedURL, urlUsername, urlPassword, estimated, outboundLength, mustEnforceStreamBody, trackRequestStream, _request, contentTypeHeader, _ref5, _ref6, onProgress, flush, isCredentialsSupported, contentType, safeFetchOptions, resolvedOptions, response, responseHeaders, declaredLength, isStreamResponse, options, responseContentLength, _ref7, _ref8, _onProgress, _flush, bytesRead, onChunkProgress, responseData, materializedSize, canceledError, networkError, _t3, _t4;
|
|
4325
4582
|
return _regenerator().w(function (_context4) {
|
|
4326
4583
|
while (1) switch (_context4.p = _context4.n) {
|
|
4327
4584
|
case 0:
|
|
4328
|
-
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions, maxContentLength = _resolveConfig.maxContentLength, maxBodyLength = _resolveConfig.maxBodyLength;
|
|
4585
|
+
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions, maxContentLength = _resolveConfig.maxContentLength, maxBodyLength = _resolveConfig.maxBodyLength, maxRedirects = _resolveConfig.maxRedirects;
|
|
4329
4586
|
hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
4330
4587
|
hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
4331
4588
|
own = function own(key) {
|
|
@@ -4491,7 +4748,18 @@
|
|
|
4491
4748
|
|
|
4492
4749
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
4493
4750
|
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
4494
|
-
|
|
4751
|
+
safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
4752
|
+
if (safeFetchOptions) {
|
|
4753
|
+
// These options are owned by Axios and are already reflected in the
|
|
4754
|
+
// resolved Request passed to fetch.
|
|
4755
|
+
delete safeFetchOptions.body;
|
|
4756
|
+
delete safeFetchOptions.headers;
|
|
4757
|
+
delete safeFetchOptions.method;
|
|
4758
|
+
delete safeFetchOptions.signal;
|
|
4759
|
+
delete safeFetchOptions.duplex;
|
|
4760
|
+
delete safeFetchOptions.credentials;
|
|
4761
|
+
}
|
|
4762
|
+
resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
4495
4763
|
signal: composedSignal,
|
|
4496
4764
|
method: method.toUpperCase(),
|
|
4497
4765
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
@@ -4499,9 +4767,28 @@
|
|
|
4499
4767
|
duplex: 'half',
|
|
4500
4768
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
4501
4769
|
});
|
|
4770
|
+
if (isRequestSupported) {
|
|
4771
|
+
utils$1.forEach(DEFAULT_REQUEST_OPTIONS, function (value, key) {
|
|
4772
|
+
if (resolvedOptions[key] === undefined) {
|
|
4773
|
+
resolvedOptions[key] = value;
|
|
4774
|
+
}
|
|
4775
|
+
});
|
|
4776
|
+
if (resolvedOptions.signal === undefined) {
|
|
4777
|
+
resolvedOptions.signal = null;
|
|
4778
|
+
}
|
|
4779
|
+
if (resolvedOptions.body === undefined) {
|
|
4780
|
+
resolvedOptions.body = null;
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4783
|
+
if (maxRedirects === 0) {
|
|
4784
|
+
resolvedOptions.redirect = 'manual';
|
|
4785
|
+
if (safeFetchOptions) {
|
|
4786
|
+
safeFetchOptions.redirect = 'manual';
|
|
4787
|
+
}
|
|
4788
|
+
}
|
|
4502
4789
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
4503
4790
|
_context4.n = 11;
|
|
4504
|
-
return isRequestSupported ? _fetch(request,
|
|
4791
|
+
return isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions);
|
|
4505
4792
|
case 11:
|
|
4506
4793
|
response = _context4.v;
|
|
4507
4794
|
responseHeaders = AxiosHeaders.from(response.headers); // Cheap pre-check: if the server honestly declares a content-length that
|
|
@@ -4809,9 +5096,13 @@
|
|
|
4809
5096
|
*
|
|
4810
5097
|
* @returns {Promise} The Promise to be fulfilled
|
|
4811
5098
|
*/
|
|
4812
|
-
function dispatchRequest(
|
|
5099
|
+
function dispatchRequest(_config) {
|
|
5100
|
+
// Interceptors may replace the merged config with an ordinary object. Flatten
|
|
5101
|
+
// it at the dispatch boundary so shared prototype members cannot become
|
|
5102
|
+
// request behavior, while preserving intentional template/class members.
|
|
5103
|
+
var config = utils$1.toSafeFlatObject(_config);
|
|
4813
5104
|
throwIfCancellationRequested(config);
|
|
4814
|
-
config.headers = AxiosHeaders.from(config
|
|
5105
|
+
config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, 'headers'));
|
|
4815
5106
|
|
|
4816
5107
|
// Transform request data
|
|
4817
5108
|
config.data = transformData.call(config, config.transformRequest);
|
|
@@ -4967,7 +5258,7 @@
|
|
|
4967
5258
|
key: "request",
|
|
4968
5259
|
value: (function () {
|
|
4969
5260
|
var _request2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(configOrUrl, config) {
|
|
4970
|
-
var dummy, stack, firstNewlineIndex, secondNewlineIndex, stackWithoutTwoTopLines, _t;
|
|
5261
|
+
var dummy, dummyStack, stack, firstNewlineIndex, _firstNewlineIndex, secondNewlineIndex, stackWithoutTwoTopLines, _t;
|
|
4971
5262
|
return _regenerator().w(function (_context) {
|
|
4972
5263
|
while (1) switch (_context.p = _context.n) {
|
|
4973
5264
|
case 0:
|
|
@@ -4980,31 +5271,28 @@
|
|
|
4980
5271
|
_context.p = 2;
|
|
4981
5272
|
_t = _context.v;
|
|
4982
5273
|
if (_t instanceof Error) {
|
|
4983
|
-
dummy = {};
|
|
4984
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
4985
|
-
|
|
4986
|
-
// slice off the Error: ... line
|
|
4987
|
-
stack = function () {
|
|
4988
|
-
if (!dummy.stack) {
|
|
4989
|
-
return '';
|
|
4990
|
-
}
|
|
4991
|
-
var firstNewlineIndex = dummy.stack.indexOf('\n');
|
|
4992
|
-
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
4993
|
-
}();
|
|
4994
5274
|
try {
|
|
5275
|
+
dummy = {};
|
|
5276
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
5277
|
+
dummyStack = dummy.stack;
|
|
5278
|
+
stack = ''; // slice off the Error: ... line
|
|
5279
|
+
if (typeof dummyStack === 'string') {
|
|
5280
|
+
firstNewlineIndex = dummyStack.indexOf('\n');
|
|
5281
|
+
stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
|
|
5282
|
+
}
|
|
4995
5283
|
if (!_t.stack) {
|
|
4996
5284
|
_t.stack = stack;
|
|
4997
5285
|
// match without the 2 top stack lines
|
|
4998
5286
|
} else if (stack) {
|
|
4999
|
-
|
|
5000
|
-
secondNewlineIndex =
|
|
5287
|
+
_firstNewlineIndex = stack.indexOf('\n');
|
|
5288
|
+
secondNewlineIndex = _firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', _firstNewlineIndex + 1);
|
|
5001
5289
|
stackWithoutTwoTopLines = secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
|
|
5002
5290
|
if (!String(_t.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
5003
5291
|
_t.stack += '\n' + stack;
|
|
5004
5292
|
}
|
|
5005
5293
|
}
|
|
5006
5294
|
} catch (e) {
|
|
5007
|
-
//
|
|
5295
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
5008
5296
|
}
|
|
5009
5297
|
}
|
|
5010
5298
|
throw _t;
|
|
@@ -5070,11 +5358,11 @@
|
|
|
5070
5358
|
}, true);
|
|
5071
5359
|
|
|
5072
5360
|
// Set config.method
|
|
5073
|
-
config.method = (config
|
|
5361
|
+
config.method = (utils$1.getSafeProp(config, 'method') || utils$1.getSafeProp(this.defaults, 'method') || 'get').toLowerCase();
|
|
5074
5362
|
|
|
5075
5363
|
// Flatten headers
|
|
5076
5364
|
var contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
5077
|
-
headers && utils$1.forEach(
|
|
5365
|
+
headers && utils$1.forEach(methodList.concat('common'), function (method) {
|
|
5078
5366
|
delete headers[method];
|
|
5079
5367
|
});
|
|
5080
5368
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
@@ -5396,14 +5684,22 @@
|
|
|
5396
5684
|
Gone: 410,
|
|
5397
5685
|
LengthRequired: 411,
|
|
5398
5686
|
PreconditionFailed: 412,
|
|
5687
|
+
/**
|
|
5688
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
5689
|
+
*/
|
|
5399
5690
|
PayloadTooLarge: 413,
|
|
5691
|
+
ContentTooLarge: 413,
|
|
5400
5692
|
UriTooLong: 414,
|
|
5401
5693
|
UnsupportedMediaType: 415,
|
|
5402
5694
|
RangeNotSatisfiable: 416,
|
|
5403
5695
|
ExpectationFailed: 417,
|
|
5404
5696
|
ImATeapot: 418,
|
|
5405
5697
|
MisdirectedRequest: 421,
|
|
5698
|
+
/**
|
|
5699
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
5700
|
+
*/
|
|
5406
5701
|
UnprocessableEntity: 422,
|
|
5702
|
+
UnprocessableContent: 422,
|
|
5407
5703
|
Locked: 423,
|
|
5408
5704
|
FailedDependency: 424,
|
|
5409
5705
|
TooEarly: 425,
|
|
@@ -5435,7 +5731,9 @@
|
|
|
5435
5731
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
5436
5732
|
key = _ref2[0],
|
|
5437
5733
|
value = _ref2[1];
|
|
5438
|
-
HttpStatusCode[value]
|
|
5734
|
+
if (HttpStatusCode[value] === undefined) {
|
|
5735
|
+
HttpStatusCode[value] = key;
|
|
5736
|
+
}
|
|
5439
5737
|
});
|
|
5440
5738
|
|
|
5441
5739
|
/**
|