@ontos-ai/knowhere-claw 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/channel-route.test.d.ts +1 -0
- package/dist/__tests__/ingest-tool.test.d.ts +1 -0
- package/dist/__tests__/kg-service-test-helper.d.ts +2 -0
- package/dist/__tests__/kg-service.test.d.ts +1 -0
- package/dist/__tests__/read-result-file-tool.test.d.ts +1 -0
- package/dist/__tests__/tracker-progress.test.d.ts +1 -0
- package/dist/_virtual/_rolldown/runtime.js +1 -35
- package/dist/channel-delivery.d.ts +21 -0
- package/dist/client.d.ts +33 -0
- package/dist/client.js +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/connect-builder.d.ts +48 -0
- package/dist/connect-builder.js +1 -2
- package/dist/error-message.d.ts +1 -0
- package/dist/graph-builder.d.ts +75 -0
- package/dist/graph-builder.js +9 -5
- package/dist/index.d.ts +9 -0
- package/dist/kg-service.d.ts +38 -0
- package/dist/kg-service.js +39 -33
- package/dist/parser.d.ts +16 -0
- package/dist/parser.js +1 -1
- package/dist/session.d.ts +11 -0
- package/dist/store.d.ts +79 -0
- package/dist/text.d.ts +10 -0
- package/dist/tools.d.ts +10 -0
- package/dist/tracker-progress.d.ts +10 -0
- package/dist/types.d.ts +320 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -3
- package/dist/node_modules/.pnpm/@knowhere-ai_sdk@0.1.1/node_modules/@knowhere-ai/sdk/dist/index.js +0 -717
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -212
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -35
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.js +0 -2609
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -142
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -103
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -199
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.js +0 -67
- package/dist/node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js +0 -59
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +0 -11
- package/dist/node_modules/.pnpm/aproba@2.1.0/node_modules/aproba/index.js +0 -119
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/index.js +0 -13
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-base.js +0 -16
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-group.js +0 -98
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -37
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js +0 -83
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/fetch.js +0 -170
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/xhr.js +0 -106
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js +0 -57
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js +0 -90
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js +0 -174
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js +0 -70
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js +0 -204
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js +0 -60
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js +0 -52
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js +0 -81
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js +0 -25
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js +0 -107
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -50
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js +0 -40
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/composeSignals.js +0 -39
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/cookies.js +0 -31
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js +0 -29
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js +0 -151
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js +0 -69
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js +0 -76
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js +0 -46
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js +0 -698
- package/dist/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -53
- package/dist/node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js +0 -132
- package/dist/node_modules/.pnpm/color-support@1.1.3/node_modules/color-support/browser.js +0 -18
- package/dist/node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js +0 -19
- package/dist/node_modules/.pnpm/console-control-strings@1.1.0/node_modules/console-control-strings/index.js +0 -104
- package/dist/node_modules/.pnpm/delegates@1.0.0/node_modules/delegates/index.js +0 -104
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js +0 -221
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js +0 -26
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js +0 -48
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js +0 -24
- package/dist/node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js +0 -10
- package/dist/node_modules/.pnpm/fflate@0.8.2/node_modules/fflate/esm/browser.js +0 -426
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js +0 -120
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js +0 -100
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js +0 -43
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js +0 -53
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -89
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -35
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js +0 -81
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js +0 -113
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js +0 -29
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js +0 -22
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js +0 -20
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -33
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js +0 -17
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js +0 -49
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js +0 -30
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js +0 -18
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js +0 -131
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js +0 -34
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js +0 -51
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js +0 -171
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js +0 -21
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js +0 -27
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js +0 -9
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js +0 -224
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js +0 -48
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js +0 -46
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js +0 -155
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js +0 -14
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js +0 -10
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js +0 -58
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js +0 -99
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js +0 -67
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js +0 -22
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js +0 -162
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js +0 -451
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js +0 -280
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +0 -20
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +0 -362
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +0 -92
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +0 -255
- package/dist/node_modules/.pnpm/has-unicode@2.0.1/node_modules/has-unicode/index.js +0 -14
- package/dist/node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js +0 -45
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js +0 -14
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js +0 -68
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js +0 -19
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -3110
- package/dist/node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js +0 -578
- package/dist/node_modules/.pnpm/nodejieba@2.6.0/node_modules/nodejieba/index.js +0 -46
- package/dist/node_modules/.pnpm/nopt@5.0.0/node_modules/nopt/lib/nopt.js +0 -330
- package/dist/node_modules/.pnpm/npmlog@5.0.1/node_modules/npmlog/log.js +0 -305
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/.pnpm/once@1.4.0/node_modules/once/once.js +0 -44
- package/dist/node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js +0 -88
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js +0 -666
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js +0 -89
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js +0 -423
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -172
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -243
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -77
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -87
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -10
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -80
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js +0 -21
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -8
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js +0 -23
- package/dist/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js +0 -229
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -79
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -282
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -186
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -34
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -99
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -36
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -84
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -45
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -64
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -35
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -102
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -17
- package/dist/node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js +0 -12
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -130
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -16
- package/dist/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js +0 -30
- package/dist/node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js +0 -10
- package/dist/node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js +0 -26
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +0 -59
- package/dist/node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js +0 -52
- package/dist/node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js +0 -26
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import bind from "./helpers/bind.js";
|
|
2
|
-
import utils_default from "./utils.js";
|
|
3
|
-
import AxiosError from "./core/AxiosError.js";
|
|
4
|
-
import toFormData from "./helpers/toFormData.js";
|
|
5
|
-
import formDataToJSON from "./helpers/formDataToJSON.js";
|
|
6
|
-
import defaults from "./defaults/index.js";
|
|
7
|
-
import AxiosHeaders from "./core/AxiosHeaders.js";
|
|
8
|
-
import isCancel from "./cancel/isCancel.js";
|
|
9
|
-
import CanceledError from "./cancel/CanceledError.js";
|
|
10
|
-
import mergeConfig from "./core/mergeConfig.js";
|
|
11
|
-
import adapters_default from "./adapters/adapters.js";
|
|
12
|
-
import { VERSION } from "./env/data.js";
|
|
13
|
-
import Axios from "./core/Axios.js";
|
|
14
|
-
import CancelToken from "./cancel/CancelToken.js";
|
|
15
|
-
import spread from "./helpers/spread.js";
|
|
16
|
-
import isAxiosError from "./helpers/isAxiosError.js";
|
|
17
|
-
import HttpStatusCode from "./helpers/HttpStatusCode.js";
|
|
18
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js
|
|
19
|
-
/**
|
|
20
|
-
* Create an instance of Axios
|
|
21
|
-
*
|
|
22
|
-
* @param {Object} defaultConfig The default config for the instance
|
|
23
|
-
*
|
|
24
|
-
* @returns {Axios} A new instance of Axios
|
|
25
|
-
*/
|
|
26
|
-
function createInstance(defaultConfig) {
|
|
27
|
-
const context = new Axios(defaultConfig);
|
|
28
|
-
const instance = bind(Axios.prototype.request, context);
|
|
29
|
-
utils_default.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
30
|
-
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
31
|
-
instance.create = function create(instanceConfig) {
|
|
32
|
-
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
33
|
-
};
|
|
34
|
-
return instance;
|
|
35
|
-
}
|
|
36
|
-
const axios = createInstance(defaults);
|
|
37
|
-
axios.Axios = Axios;
|
|
38
|
-
axios.CanceledError = CanceledError;
|
|
39
|
-
axios.CancelToken = CancelToken;
|
|
40
|
-
axios.isCancel = isCancel;
|
|
41
|
-
axios.VERSION = VERSION;
|
|
42
|
-
axios.toFormData = toFormData;
|
|
43
|
-
axios.AxiosError = AxiosError;
|
|
44
|
-
axios.Cancel = axios.CanceledError;
|
|
45
|
-
axios.all = function all(promises) {
|
|
46
|
-
return Promise.all(promises);
|
|
47
|
-
};
|
|
48
|
-
axios.spread = spread;
|
|
49
|
-
axios.isAxiosError = isAxiosError;
|
|
50
|
-
axios.mergeConfig = mergeConfig;
|
|
51
|
-
axios.AxiosHeaders = AxiosHeaders;
|
|
52
|
-
axios.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
53
|
-
axios.getAdapter = adapters_default.getAdapter;
|
|
54
|
-
axios.HttpStatusCode = HttpStatusCode;
|
|
55
|
-
axios.default = axios;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { axios as default };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import CanceledError from "./CanceledError.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js
|
|
3
|
-
/**
|
|
4
|
-
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
5
|
-
*
|
|
6
|
-
* @param {Function} executor The executor function.
|
|
7
|
-
*
|
|
8
|
-
* @returns {CancelToken}
|
|
9
|
-
*/
|
|
10
|
-
var CancelToken = class CancelToken {
|
|
11
|
-
constructor(executor) {
|
|
12
|
-
if (typeof executor !== "function") throw new TypeError("executor must be a function.");
|
|
13
|
-
let resolvePromise;
|
|
14
|
-
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
15
|
-
resolvePromise = resolve;
|
|
16
|
-
});
|
|
17
|
-
const token = this;
|
|
18
|
-
this.promise.then((cancel) => {
|
|
19
|
-
if (!token._listeners) return;
|
|
20
|
-
let i = token._listeners.length;
|
|
21
|
-
while (i-- > 0) token._listeners[i](cancel);
|
|
22
|
-
token._listeners = null;
|
|
23
|
-
});
|
|
24
|
-
this.promise.then = (onfulfilled) => {
|
|
25
|
-
let _resolve;
|
|
26
|
-
const promise = new Promise((resolve) => {
|
|
27
|
-
token.subscribe(resolve);
|
|
28
|
-
_resolve = resolve;
|
|
29
|
-
}).then(onfulfilled);
|
|
30
|
-
promise.cancel = function reject() {
|
|
31
|
-
token.unsubscribe(_resolve);
|
|
32
|
-
};
|
|
33
|
-
return promise;
|
|
34
|
-
};
|
|
35
|
-
executor(function cancel(message, config, request) {
|
|
36
|
-
if (token.reason) return;
|
|
37
|
-
token.reason = new CanceledError(message, config, request);
|
|
38
|
-
resolvePromise(token.reason);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
43
|
-
*/
|
|
44
|
-
throwIfRequested() {
|
|
45
|
-
if (this.reason) throw this.reason;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Subscribe to the cancel signal
|
|
49
|
-
*/
|
|
50
|
-
subscribe(listener) {
|
|
51
|
-
if (this.reason) {
|
|
52
|
-
listener(this.reason);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (this._listeners) this._listeners.push(listener);
|
|
56
|
-
else this._listeners = [listener];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Unsubscribe from the cancel signal
|
|
60
|
-
*/
|
|
61
|
-
unsubscribe(listener) {
|
|
62
|
-
if (!this._listeners) return;
|
|
63
|
-
const index = this._listeners.indexOf(listener);
|
|
64
|
-
if (index !== -1) this._listeners.splice(index, 1);
|
|
65
|
-
}
|
|
66
|
-
toAbortSignal() {
|
|
67
|
-
const controller = new AbortController();
|
|
68
|
-
const abort = (err) => {
|
|
69
|
-
controller.abort(err);
|
|
70
|
-
};
|
|
71
|
-
this.subscribe(abort);
|
|
72
|
-
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
73
|
-
return controller.signal;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
77
|
-
* cancels the `CancelToken`.
|
|
78
|
-
*/
|
|
79
|
-
static source() {
|
|
80
|
-
let cancel;
|
|
81
|
-
return {
|
|
82
|
-
token: new CancelToken(function executor(c) {
|
|
83
|
-
cancel = c;
|
|
84
|
-
}),
|
|
85
|
-
cancel
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
//#endregion
|
|
90
|
-
export { CancelToken as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import AxiosError from "../core/AxiosError.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js
|
|
3
|
-
var CanceledError = class extends AxiosError {
|
|
4
|
-
/**
|
|
5
|
-
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
6
|
-
*
|
|
7
|
-
* @param {string=} message The message.
|
|
8
|
-
* @param {Object=} config The config.
|
|
9
|
-
* @param {Object=} request The request.
|
|
10
|
-
*
|
|
11
|
-
* @returns {CanceledError} The created error.
|
|
12
|
-
*/
|
|
13
|
-
constructor(message, config, request) {
|
|
14
|
-
super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
15
|
-
this.name = "CanceledError";
|
|
16
|
-
this.__CANCEL__ = true;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { CanceledError as default };
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import buildURL from "../helpers/buildURL.js";
|
|
3
|
-
import InterceptorManager from "./InterceptorManager.js";
|
|
4
|
-
import transitional_default from "../defaults/transitional.js";
|
|
5
|
-
import AxiosHeaders from "./AxiosHeaders.js";
|
|
6
|
-
import buildFullPath from "./buildFullPath.js";
|
|
7
|
-
import mergeConfig from "./mergeConfig.js";
|
|
8
|
-
import dispatchRequest from "./dispatchRequest.js";
|
|
9
|
-
import validator_default from "../helpers/validator.js";
|
|
10
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js
|
|
11
|
-
const validators = validator_default.validators;
|
|
12
|
-
/**
|
|
13
|
-
* Create a new instance of Axios
|
|
14
|
-
*
|
|
15
|
-
* @param {Object} instanceConfig The default config for the instance
|
|
16
|
-
*
|
|
17
|
-
* @return {Axios} A new instance of Axios
|
|
18
|
-
*/
|
|
19
|
-
var Axios = class {
|
|
20
|
-
constructor(instanceConfig) {
|
|
21
|
-
this.defaults = instanceConfig || {};
|
|
22
|
-
this.interceptors = {
|
|
23
|
-
request: new InterceptorManager(),
|
|
24
|
-
response: new InterceptorManager()
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Dispatch a request
|
|
29
|
-
*
|
|
30
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
31
|
-
* @param {?Object} config
|
|
32
|
-
*
|
|
33
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
34
|
-
*/
|
|
35
|
-
async request(configOrUrl, config) {
|
|
36
|
-
try {
|
|
37
|
-
return await this._request(configOrUrl, config);
|
|
38
|
-
} catch (err) {
|
|
39
|
-
if (err instanceof Error) {
|
|
40
|
-
let dummy = {};
|
|
41
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
|
|
42
|
-
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
43
|
-
try {
|
|
44
|
-
if (!err.stack) err.stack = stack;
|
|
45
|
-
else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) err.stack += "\n" + stack;
|
|
46
|
-
} catch (e) {}
|
|
47
|
-
}
|
|
48
|
-
throw err;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
_request(configOrUrl, config) {
|
|
52
|
-
if (typeof configOrUrl === "string") {
|
|
53
|
-
config = config || {};
|
|
54
|
-
config.url = configOrUrl;
|
|
55
|
-
} else config = configOrUrl || {};
|
|
56
|
-
config = mergeConfig(this.defaults, config);
|
|
57
|
-
const { transitional, paramsSerializer, headers } = config;
|
|
58
|
-
if (transitional !== void 0) validator_default.assertOptions(transitional, {
|
|
59
|
-
silentJSONParsing: validators.transitional(validators.boolean),
|
|
60
|
-
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
61
|
-
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
62
|
-
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
63
|
-
}, false);
|
|
64
|
-
if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
|
|
65
|
-
else validator_default.assertOptions(paramsSerializer, {
|
|
66
|
-
encode: validators.function,
|
|
67
|
-
serialize: validators.function
|
|
68
|
-
}, true);
|
|
69
|
-
if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
70
|
-
else config.allowAbsoluteUrls = true;
|
|
71
|
-
validator_default.assertOptions(config, {
|
|
72
|
-
baseUrl: validators.spelling("baseURL"),
|
|
73
|
-
withXsrfToken: validators.spelling("withXSRFToken")
|
|
74
|
-
}, true);
|
|
75
|
-
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
76
|
-
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
77
|
-
headers && utils_default.forEach([
|
|
78
|
-
"delete",
|
|
79
|
-
"get",
|
|
80
|
-
"head",
|
|
81
|
-
"post",
|
|
82
|
-
"put",
|
|
83
|
-
"patch",
|
|
84
|
-
"common"
|
|
85
|
-
], (method) => {
|
|
86
|
-
delete headers[method];
|
|
87
|
-
});
|
|
88
|
-
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
89
|
-
const requestInterceptorChain = [];
|
|
90
|
-
let synchronousRequestInterceptors = true;
|
|
91
|
-
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
92
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) return;
|
|
93
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
94
|
-
const transitional = config.transitional || transitional_default;
|
|
95
|
-
if (transitional && transitional.legacyInterceptorReqResOrdering) requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
96
|
-
else requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
97
|
-
});
|
|
98
|
-
const responseInterceptorChain = [];
|
|
99
|
-
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
100
|
-
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
101
|
-
});
|
|
102
|
-
let promise;
|
|
103
|
-
let i = 0;
|
|
104
|
-
let len;
|
|
105
|
-
if (!synchronousRequestInterceptors) {
|
|
106
|
-
const chain = [dispatchRequest.bind(this), void 0];
|
|
107
|
-
chain.unshift(...requestInterceptorChain);
|
|
108
|
-
chain.push(...responseInterceptorChain);
|
|
109
|
-
len = chain.length;
|
|
110
|
-
promise = Promise.resolve(config);
|
|
111
|
-
while (i < len) promise = promise.then(chain[i++], chain[i++]);
|
|
112
|
-
return promise;
|
|
113
|
-
}
|
|
114
|
-
len = requestInterceptorChain.length;
|
|
115
|
-
let newConfig = config;
|
|
116
|
-
while (i < len) {
|
|
117
|
-
const onFulfilled = requestInterceptorChain[i++];
|
|
118
|
-
const onRejected = requestInterceptorChain[i++];
|
|
119
|
-
try {
|
|
120
|
-
newConfig = onFulfilled(newConfig);
|
|
121
|
-
} catch (error) {
|
|
122
|
-
onRejected.call(this, error);
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
try {
|
|
127
|
-
promise = dispatchRequest.call(this, newConfig);
|
|
128
|
-
} catch (error) {
|
|
129
|
-
return Promise.reject(error);
|
|
130
|
-
}
|
|
131
|
-
i = 0;
|
|
132
|
-
len = responseInterceptorChain.length;
|
|
133
|
-
while (i < len) promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
134
|
-
return promise;
|
|
135
|
-
}
|
|
136
|
-
getUri(config) {
|
|
137
|
-
config = mergeConfig(this.defaults, config);
|
|
138
|
-
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
utils_default.forEach([
|
|
142
|
-
"delete",
|
|
143
|
-
"get",
|
|
144
|
-
"head",
|
|
145
|
-
"options"
|
|
146
|
-
], function forEachMethodNoData(method) {
|
|
147
|
-
Axios.prototype[method] = function(url, config) {
|
|
148
|
-
return this.request(mergeConfig(config || {}, {
|
|
149
|
-
method,
|
|
150
|
-
url,
|
|
151
|
-
data: (config || {}).data
|
|
152
|
-
}));
|
|
153
|
-
};
|
|
154
|
-
});
|
|
155
|
-
utils_default.forEach([
|
|
156
|
-
"post",
|
|
157
|
-
"put",
|
|
158
|
-
"patch"
|
|
159
|
-
], function forEachMethodWithData(method) {
|
|
160
|
-
function generateHTTPMethod(isForm) {
|
|
161
|
-
return function httpMethod(url, data, config) {
|
|
162
|
-
return this.request(mergeConfig(config || {}, {
|
|
163
|
-
method,
|
|
164
|
-
headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
|
|
165
|
-
url,
|
|
166
|
-
data
|
|
167
|
-
}));
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
171
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
172
|
-
});
|
|
173
|
-
//#endregion
|
|
174
|
-
export { Axios as default };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js
|
|
3
|
-
var AxiosError = class AxiosError extends Error {
|
|
4
|
-
static from(error, code, config, request, response, customProps) {
|
|
5
|
-
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
6
|
-
axiosError.cause = error;
|
|
7
|
-
axiosError.name = error.name;
|
|
8
|
-
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
9
|
-
customProps && Object.assign(axiosError, customProps);
|
|
10
|
-
return axiosError;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create an Error with the specified message, config, error code, request and response.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} message The error message.
|
|
16
|
-
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
17
|
-
* @param {Object} [config] The config.
|
|
18
|
-
* @param {Object} [request] The request.
|
|
19
|
-
* @param {Object} [response] The response.
|
|
20
|
-
*
|
|
21
|
-
* @returns {Error} The created error.
|
|
22
|
-
*/
|
|
23
|
-
constructor(message, code, config, request, response) {
|
|
24
|
-
super(message);
|
|
25
|
-
Object.defineProperty(this, "message", {
|
|
26
|
-
value: message,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
this.name = "AxiosError";
|
|
32
|
-
this.isAxiosError = true;
|
|
33
|
-
code && (this.code = code);
|
|
34
|
-
config && (this.config = config);
|
|
35
|
-
request && (this.request = request);
|
|
36
|
-
if (response) {
|
|
37
|
-
this.response = response;
|
|
38
|
-
this.status = response.status;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
toJSON() {
|
|
42
|
-
return {
|
|
43
|
-
message: this.message,
|
|
44
|
-
name: this.name,
|
|
45
|
-
description: this.description,
|
|
46
|
-
number: this.number,
|
|
47
|
-
fileName: this.fileName,
|
|
48
|
-
lineNumber: this.lineNumber,
|
|
49
|
-
columnNumber: this.columnNumber,
|
|
50
|
-
stack: this.stack,
|
|
51
|
-
config: utils_default.toJSONObject(this.config),
|
|
52
|
-
code: this.code,
|
|
53
|
-
status: this.status
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
58
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
59
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
60
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
61
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
62
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
63
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
64
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
65
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
66
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
67
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
68
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
69
|
-
//#endregion
|
|
70
|
-
export { AxiosError as default };
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import parseHeaders_default from "../helpers/parseHeaders.js";
|
|
3
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js
|
|
4
|
-
const $internals = Symbol("internals");
|
|
5
|
-
function normalizeHeader(header) {
|
|
6
|
-
return header && String(header).trim().toLowerCase();
|
|
7
|
-
}
|
|
8
|
-
function normalizeValue(value) {
|
|
9
|
-
if (value === false || value == null) return value;
|
|
10
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
11
|
-
}
|
|
12
|
-
function parseTokens(str) {
|
|
13
|
-
const tokens = Object.create(null);
|
|
14
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
15
|
-
let match;
|
|
16
|
-
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
17
|
-
return tokens;
|
|
18
|
-
}
|
|
19
|
-
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
20
|
-
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
21
|
-
if (utils_default.isFunction(filter)) return filter.call(this, value, header);
|
|
22
|
-
if (isHeaderNameFilter) value = header;
|
|
23
|
-
if (!utils_default.isString(value)) return;
|
|
24
|
-
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
25
|
-
if (utils_default.isRegExp(filter)) return filter.test(value);
|
|
26
|
-
}
|
|
27
|
-
function formatHeader(header) {
|
|
28
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
29
|
-
return char.toUpperCase() + str;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function buildAccessors(obj, header) {
|
|
33
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
34
|
-
[
|
|
35
|
-
"get",
|
|
36
|
-
"set",
|
|
37
|
-
"has"
|
|
38
|
-
].forEach((methodName) => {
|
|
39
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
40
|
-
value: function(arg1, arg2, arg3) {
|
|
41
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
42
|
-
},
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
var AxiosHeaders = class {
|
|
48
|
-
constructor(headers) {
|
|
49
|
-
headers && this.set(headers);
|
|
50
|
-
}
|
|
51
|
-
set(header, valueOrRewrite, rewrite) {
|
|
52
|
-
const self = this;
|
|
53
|
-
function setHeader(_value, _header, _rewrite) {
|
|
54
|
-
const lHeader = normalizeHeader(_header);
|
|
55
|
-
if (!lHeader) throw new Error("header name must be a non-empty string");
|
|
56
|
-
const key = utils_default.findKey(self, lHeader);
|
|
57
|
-
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
58
|
-
}
|
|
59
|
-
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
60
|
-
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
61
|
-
else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
62
|
-
else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
63
|
-
let obj = {}, dest, key;
|
|
64
|
-
for (const entry of header) {
|
|
65
|
-
if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
66
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
67
|
-
}
|
|
68
|
-
setHeaders(obj, valueOrRewrite);
|
|
69
|
-
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
get(header, parser) {
|
|
73
|
-
header = normalizeHeader(header);
|
|
74
|
-
if (header) {
|
|
75
|
-
const key = utils_default.findKey(this, header);
|
|
76
|
-
if (key) {
|
|
77
|
-
const value = this[key];
|
|
78
|
-
if (!parser) return value;
|
|
79
|
-
if (parser === true) return parseTokens(value);
|
|
80
|
-
if (utils_default.isFunction(parser)) return parser.call(this, value, key);
|
|
81
|
-
if (utils_default.isRegExp(parser)) return parser.exec(value);
|
|
82
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
has(header, matcher) {
|
|
87
|
-
header = normalizeHeader(header);
|
|
88
|
-
if (header) {
|
|
89
|
-
const key = utils_default.findKey(this, header);
|
|
90
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
91
|
-
}
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
delete(header, matcher) {
|
|
95
|
-
const self = this;
|
|
96
|
-
let deleted = false;
|
|
97
|
-
function deleteHeader(_header) {
|
|
98
|
-
_header = normalizeHeader(_header);
|
|
99
|
-
if (_header) {
|
|
100
|
-
const key = utils_default.findKey(self, _header);
|
|
101
|
-
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
102
|
-
delete self[key];
|
|
103
|
-
deleted = true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (utils_default.isArray(header)) header.forEach(deleteHeader);
|
|
108
|
-
else deleteHeader(header);
|
|
109
|
-
return deleted;
|
|
110
|
-
}
|
|
111
|
-
clear(matcher) {
|
|
112
|
-
const keys = Object.keys(this);
|
|
113
|
-
let i = keys.length;
|
|
114
|
-
let deleted = false;
|
|
115
|
-
while (i--) {
|
|
116
|
-
const key = keys[i];
|
|
117
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
118
|
-
delete this[key];
|
|
119
|
-
deleted = true;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return deleted;
|
|
123
|
-
}
|
|
124
|
-
normalize(format) {
|
|
125
|
-
const self = this;
|
|
126
|
-
const headers = {};
|
|
127
|
-
utils_default.forEach(this, (value, header) => {
|
|
128
|
-
const key = utils_default.findKey(headers, header);
|
|
129
|
-
if (key) {
|
|
130
|
-
self[key] = normalizeValue(value);
|
|
131
|
-
delete self[header];
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
135
|
-
if (normalized !== header) delete self[header];
|
|
136
|
-
self[normalized] = normalizeValue(value);
|
|
137
|
-
headers[normalized] = true;
|
|
138
|
-
});
|
|
139
|
-
return this;
|
|
140
|
-
}
|
|
141
|
-
concat(...targets) {
|
|
142
|
-
return this.constructor.concat(this, ...targets);
|
|
143
|
-
}
|
|
144
|
-
toJSON(asStrings) {
|
|
145
|
-
const obj = Object.create(null);
|
|
146
|
-
utils_default.forEach(this, (value, header) => {
|
|
147
|
-
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
148
|
-
});
|
|
149
|
-
return obj;
|
|
150
|
-
}
|
|
151
|
-
[Symbol.iterator]() {
|
|
152
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
153
|
-
}
|
|
154
|
-
toString() {
|
|
155
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
156
|
-
}
|
|
157
|
-
getSetCookie() {
|
|
158
|
-
return this.get("set-cookie") || [];
|
|
159
|
-
}
|
|
160
|
-
get [Symbol.toStringTag]() {
|
|
161
|
-
return "AxiosHeaders";
|
|
162
|
-
}
|
|
163
|
-
static from(thing) {
|
|
164
|
-
return thing instanceof this ? thing : new this(thing);
|
|
165
|
-
}
|
|
166
|
-
static concat(first, ...targets) {
|
|
167
|
-
const computed = new this(first);
|
|
168
|
-
targets.forEach((target) => computed.set(target));
|
|
169
|
-
return computed;
|
|
170
|
-
}
|
|
171
|
-
static accessor(header) {
|
|
172
|
-
const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
|
|
173
|
-
const prototype = this.prototype;
|
|
174
|
-
function defineAccessor(_header) {
|
|
175
|
-
const lHeader = normalizeHeader(_header);
|
|
176
|
-
if (!accessors[lHeader]) {
|
|
177
|
-
buildAccessors(prototype, _header);
|
|
178
|
-
accessors[lHeader] = true;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
182
|
-
return this;
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
AxiosHeaders.accessor([
|
|
186
|
-
"Content-Type",
|
|
187
|
-
"Content-Length",
|
|
188
|
-
"Accept",
|
|
189
|
-
"Accept-Encoding",
|
|
190
|
-
"User-Agent",
|
|
191
|
-
"Authorization"
|
|
192
|
-
]);
|
|
193
|
-
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
194
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
195
|
-
return {
|
|
196
|
-
get: () => value,
|
|
197
|
-
set(headerValue) {
|
|
198
|
-
this[mapped] = headerValue;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
});
|
|
202
|
-
utils_default.freezeMethods(AxiosHeaders);
|
|
203
|
-
//#endregion
|
|
204
|
-
export { AxiosHeaders as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js
|
|
3
|
-
var InterceptorManager = class {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.handlers = [];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Add a new interceptor to the stack
|
|
9
|
-
*
|
|
10
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
11
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
12
|
-
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
13
|
-
*
|
|
14
|
-
* @return {Number} An ID used to remove interceptor later
|
|
15
|
-
*/
|
|
16
|
-
use(fulfilled, rejected, options) {
|
|
17
|
-
this.handlers.push({
|
|
18
|
-
fulfilled,
|
|
19
|
-
rejected,
|
|
20
|
-
synchronous: options ? options.synchronous : false,
|
|
21
|
-
runWhen: options ? options.runWhen : null
|
|
22
|
-
});
|
|
23
|
-
return this.handlers.length - 1;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Remove an interceptor from the stack
|
|
27
|
-
*
|
|
28
|
-
* @param {Number} id The ID that was returned by `use`
|
|
29
|
-
*
|
|
30
|
-
* @returns {void}
|
|
31
|
-
*/
|
|
32
|
-
eject(id) {
|
|
33
|
-
if (this.handlers[id]) this.handlers[id] = null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Clear all interceptors from the stack
|
|
37
|
-
*
|
|
38
|
-
* @returns {void}
|
|
39
|
-
*/
|
|
40
|
-
clear() {
|
|
41
|
-
if (this.handlers) this.handlers = [];
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Iterate over all the registered interceptors
|
|
45
|
-
*
|
|
46
|
-
* This method is particularly useful for skipping over any
|
|
47
|
-
* interceptors that may have become `null` calling `eject`.
|
|
48
|
-
*
|
|
49
|
-
* @param {Function} fn The function to call for each interceptor
|
|
50
|
-
*
|
|
51
|
-
* @returns {void}
|
|
52
|
-
*/
|
|
53
|
-
forEach(fn) {
|
|
54
|
-
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
55
|
-
if (h !== null) fn(h);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
export { InterceptorManager as default };
|