@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
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
2
|
-
/**
|
|
3
|
-
* Determines whether the specified URL is absolute
|
|
4
|
-
*
|
|
5
|
-
* @param {string} url The URL to test
|
|
6
|
-
*
|
|
7
|
-
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
8
|
-
*/
|
|
9
|
-
function isAbsoluteURL(url) {
|
|
10
|
-
if (typeof url !== "string") return false;
|
|
11
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { isAbsoluteURL as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js
|
|
3
|
-
/**
|
|
4
|
-
* Determines whether the payload is an error thrown by Axios
|
|
5
|
-
*
|
|
6
|
-
* @param {*} payload The value to test
|
|
7
|
-
*
|
|
8
|
-
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
9
|
-
*/
|
|
10
|
-
function isAxiosError(payload) {
|
|
11
|
-
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { isAxiosError as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import platform_default from "../platform/index.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
3
|
-
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
4
|
-
url = new URL(url, platform_default.origin);
|
|
5
|
-
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
|
6
|
-
})(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { isURLSameOrigin_default as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js
|
|
3
|
-
const ignoreDuplicateOf = utils_default.toObjectSet([
|
|
4
|
-
"age",
|
|
5
|
-
"authorization",
|
|
6
|
-
"content-length",
|
|
7
|
-
"content-type",
|
|
8
|
-
"etag",
|
|
9
|
-
"expires",
|
|
10
|
-
"from",
|
|
11
|
-
"host",
|
|
12
|
-
"if-modified-since",
|
|
13
|
-
"if-unmodified-since",
|
|
14
|
-
"last-modified",
|
|
15
|
-
"location",
|
|
16
|
-
"max-forwards",
|
|
17
|
-
"proxy-authorization",
|
|
18
|
-
"referer",
|
|
19
|
-
"retry-after",
|
|
20
|
-
"user-agent"
|
|
21
|
-
]);
|
|
22
|
-
/**
|
|
23
|
-
* Parse headers into an object
|
|
24
|
-
*
|
|
25
|
-
* ```
|
|
26
|
-
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
27
|
-
* Content-Type: application/json
|
|
28
|
-
* Connection: keep-alive
|
|
29
|
-
* Transfer-Encoding: chunked
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @param {String} rawHeaders Headers needing to be parsed
|
|
33
|
-
*
|
|
34
|
-
* @returns {Object} Headers parsed into an object
|
|
35
|
-
*/
|
|
36
|
-
var parseHeaders_default = (rawHeaders) => {
|
|
37
|
-
const parsed = {};
|
|
38
|
-
let key;
|
|
39
|
-
let val;
|
|
40
|
-
let i;
|
|
41
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
42
|
-
i = line.indexOf(":");
|
|
43
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
44
|
-
val = line.substring(i + 1).trim();
|
|
45
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
|
|
46
|
-
if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
|
|
47
|
-
else parsed[key] = [val];
|
|
48
|
-
else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
49
|
-
});
|
|
50
|
-
return parsed;
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
53
|
-
export { parseHeaders_default as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js
|
|
2
|
-
function parseProtocol(url) {
|
|
3
|
-
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
4
|
-
return match && match[1] || "";
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { parseProtocol as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import speedometer from "./speedometer.js";
|
|
3
|
-
import throttle from "./throttle.js";
|
|
4
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
5
|
-
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
6
|
-
let bytesNotified = 0;
|
|
7
|
-
const _speedometer = speedometer(50, 250);
|
|
8
|
-
return throttle((e) => {
|
|
9
|
-
const loaded = e.loaded;
|
|
10
|
-
const total = e.lengthComputable ? e.total : void 0;
|
|
11
|
-
const progressBytes = loaded - bytesNotified;
|
|
12
|
-
const rate = _speedometer(progressBytes);
|
|
13
|
-
const inRange = loaded <= total;
|
|
14
|
-
bytesNotified = loaded;
|
|
15
|
-
listener({
|
|
16
|
-
loaded,
|
|
17
|
-
total,
|
|
18
|
-
progress: total ? loaded / total : void 0,
|
|
19
|
-
bytes: progressBytes,
|
|
20
|
-
rate: rate ? rate : void 0,
|
|
21
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
22
|
-
event: e,
|
|
23
|
-
lengthComputable: total != null,
|
|
24
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
25
|
-
});
|
|
26
|
-
}, freq);
|
|
27
|
-
};
|
|
28
|
-
const progressEventDecorator = (total, throttled) => {
|
|
29
|
-
const lengthComputable = total != null;
|
|
30
|
-
return [(loaded) => throttled[0]({
|
|
31
|
-
lengthComputable,
|
|
32
|
-
total,
|
|
33
|
-
loaded
|
|
34
|
-
}), throttled[1]];
|
|
35
|
-
};
|
|
36
|
-
const asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
37
|
-
//#endregion
|
|
38
|
-
export { asyncDecorator, progressEventDecorator, progressEventReducer };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import buildURL from "./buildURL.js";
|
|
3
|
-
import platform_default from "../platform/index.js";
|
|
4
|
-
import AxiosHeaders from "../core/AxiosHeaders.js";
|
|
5
|
-
import isURLSameOrigin_default from "./isURLSameOrigin.js";
|
|
6
|
-
import cookies_default from "./cookies.js";
|
|
7
|
-
import buildFullPath from "../core/buildFullPath.js";
|
|
8
|
-
import mergeConfig from "../core/mergeConfig.js";
|
|
9
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js
|
|
10
|
-
var resolveConfig_default = (config) => {
|
|
11
|
-
const newConfig = mergeConfig({}, config);
|
|
12
|
-
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
13
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
14
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
15
|
-
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
16
|
-
if (utils_default.isFormData(data)) {
|
|
17
|
-
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
18
|
-
else if (utils_default.isFunction(data.getHeaders)) {
|
|
19
|
-
const formHeaders = data.getHeaders();
|
|
20
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
21
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
22
|
-
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (platform_default.hasStandardBrowserEnv) {
|
|
27
|
-
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
28
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
|
|
29
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
30
|
-
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return newConfig;
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { resolveConfig_default as default };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js
|
|
2
|
-
/**
|
|
3
|
-
* Calculate data maxRate
|
|
4
|
-
* @param {Number} [samplesCount= 10]
|
|
5
|
-
* @param {Number} [min= 1000]
|
|
6
|
-
* @returns {Function}
|
|
7
|
-
*/
|
|
8
|
-
function speedometer(samplesCount, min) {
|
|
9
|
-
samplesCount = samplesCount || 10;
|
|
10
|
-
const bytes = new Array(samplesCount);
|
|
11
|
-
const timestamps = new Array(samplesCount);
|
|
12
|
-
let head = 0;
|
|
13
|
-
let tail = 0;
|
|
14
|
-
let firstSampleTS;
|
|
15
|
-
min = min !== void 0 ? min : 1e3;
|
|
16
|
-
return function push(chunkLength) {
|
|
17
|
-
const now = Date.now();
|
|
18
|
-
const startedAt = timestamps[tail];
|
|
19
|
-
if (!firstSampleTS) firstSampleTS = now;
|
|
20
|
-
bytes[head] = chunkLength;
|
|
21
|
-
timestamps[head] = now;
|
|
22
|
-
let i = tail;
|
|
23
|
-
let bytesCount = 0;
|
|
24
|
-
while (i !== head) {
|
|
25
|
-
bytesCount += bytes[i++];
|
|
26
|
-
i = i % samplesCount;
|
|
27
|
-
}
|
|
28
|
-
head = (head + 1) % samplesCount;
|
|
29
|
-
if (head === tail) tail = (tail + 1) % samplesCount;
|
|
30
|
-
if (now - firstSampleTS < min) return;
|
|
31
|
-
const passed = startedAt && now - startedAt;
|
|
32
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { speedometer as default };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js
|
|
2
|
-
/**
|
|
3
|
-
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
4
|
-
*
|
|
5
|
-
* Common use case would be to use `Function.prototype.apply`.
|
|
6
|
-
*
|
|
7
|
-
* ```js
|
|
8
|
-
* function f(x, y, z) {}
|
|
9
|
-
* const args = [1, 2, 3];
|
|
10
|
-
* f.apply(null, args);
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* With `spread` this example can be re-written.
|
|
14
|
-
*
|
|
15
|
-
* ```js
|
|
16
|
-
* spread(function(x, y, z) {})([1, 2, 3]);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param {Function} callback
|
|
20
|
-
*
|
|
21
|
-
* @returns {Function}
|
|
22
|
-
*/
|
|
23
|
-
function spread(callback) {
|
|
24
|
-
return function wrap(arr) {
|
|
25
|
-
return callback.apply(null, arr);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { spread as default };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js
|
|
2
|
-
/**
|
|
3
|
-
* Throttle decorator
|
|
4
|
-
* @param {Function} fn
|
|
5
|
-
* @param {Number} freq
|
|
6
|
-
* @return {Function}
|
|
7
|
-
*/
|
|
8
|
-
function throttle(fn, freq) {
|
|
9
|
-
let timestamp = 0;
|
|
10
|
-
let threshold = 1e3 / freq;
|
|
11
|
-
let lastArgs;
|
|
12
|
-
let timer;
|
|
13
|
-
const invoke = (args, now = Date.now()) => {
|
|
14
|
-
timestamp = now;
|
|
15
|
-
lastArgs = null;
|
|
16
|
-
if (timer) {
|
|
17
|
-
clearTimeout(timer);
|
|
18
|
-
timer = null;
|
|
19
|
-
}
|
|
20
|
-
fn(...args);
|
|
21
|
-
};
|
|
22
|
-
const throttled = (...args) => {
|
|
23
|
-
const now = Date.now();
|
|
24
|
-
const passed = now - timestamp;
|
|
25
|
-
if (passed >= threshold) invoke(args, now);
|
|
26
|
-
else {
|
|
27
|
-
lastArgs = args;
|
|
28
|
-
if (!timer) timer = setTimeout(() => {
|
|
29
|
-
timer = null;
|
|
30
|
-
invoke(lastArgs);
|
|
31
|
-
}, threshold - passed);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
35
|
-
return [throttled, flush];
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { throttle as default };
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import AxiosError from "../core/AxiosError.js";
|
|
3
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js
|
|
4
|
-
/**
|
|
5
|
-
* Determines if the given thing is a array or js object.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} thing - The object or array to be visited.
|
|
8
|
-
*
|
|
9
|
-
* @returns {boolean}
|
|
10
|
-
*/
|
|
11
|
-
function isVisitable(thing) {
|
|
12
|
-
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* It removes the brackets from the end of a string
|
|
16
|
-
*
|
|
17
|
-
* @param {string} key - The key of the parameter.
|
|
18
|
-
*
|
|
19
|
-
* @returns {string} the key without the brackets.
|
|
20
|
-
*/
|
|
21
|
-
function removeBrackets(key) {
|
|
22
|
-
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* It takes a path, a key, and a boolean, and returns a string
|
|
26
|
-
*
|
|
27
|
-
* @param {string} path - The path to the current key.
|
|
28
|
-
* @param {string} key - The key of the current object being iterated over.
|
|
29
|
-
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
30
|
-
*
|
|
31
|
-
* @returns {string} The path to the current key.
|
|
32
|
-
*/
|
|
33
|
-
function renderKey(path, key, dots) {
|
|
34
|
-
if (!path) return key;
|
|
35
|
-
return path.concat(key).map(function each(token, i) {
|
|
36
|
-
token = removeBrackets(token);
|
|
37
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
38
|
-
}).join(dots ? "." : "");
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
42
|
-
*
|
|
43
|
-
* @param {Array<any>} arr - The array to check
|
|
44
|
-
*
|
|
45
|
-
* @returns {boolean}
|
|
46
|
-
*/
|
|
47
|
-
function isFlatArray(arr) {
|
|
48
|
-
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
49
|
-
}
|
|
50
|
-
const predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
51
|
-
return /^is[A-Z]/.test(prop);
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
* Convert a data object to FormData
|
|
55
|
-
*
|
|
56
|
-
* @param {Object} obj
|
|
57
|
-
* @param {?Object} [formData]
|
|
58
|
-
* @param {?Object} [options]
|
|
59
|
-
* @param {Function} [options.visitor]
|
|
60
|
-
* @param {Boolean} [options.metaTokens = true]
|
|
61
|
-
* @param {Boolean} [options.dots = false]
|
|
62
|
-
* @param {?Boolean} [options.indexes = false]
|
|
63
|
-
*
|
|
64
|
-
* @returns {Object}
|
|
65
|
-
**/
|
|
66
|
-
/**
|
|
67
|
-
* It converts an object into a FormData object
|
|
68
|
-
*
|
|
69
|
-
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
70
|
-
* @param {string} formData - The FormData object to append to.
|
|
71
|
-
* @param {Object<string, any>} options
|
|
72
|
-
*
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
function toFormData(obj, formData, options) {
|
|
76
|
-
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
77
|
-
formData = formData || new FormData();
|
|
78
|
-
options = utils_default.toFlatObject(options, {
|
|
79
|
-
metaTokens: true,
|
|
80
|
-
dots: false,
|
|
81
|
-
indexes: false
|
|
82
|
-
}, false, function defined(option, source) {
|
|
83
|
-
return !utils_default.isUndefined(source[option]);
|
|
84
|
-
});
|
|
85
|
-
const metaTokens = options.metaTokens;
|
|
86
|
-
const visitor = options.visitor || defaultVisitor;
|
|
87
|
-
const dots = options.dots;
|
|
88
|
-
const indexes = options.indexes;
|
|
89
|
-
const useBlob = (options.Blob || typeof Blob !== "undefined" && Blob) && utils_default.isSpecCompliantForm(formData);
|
|
90
|
-
if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
|
|
91
|
-
function convertValue(value) {
|
|
92
|
-
if (value === null) return "";
|
|
93
|
-
if (utils_default.isDate(value)) return value.toISOString();
|
|
94
|
-
if (utils_default.isBoolean(value)) return value.toString();
|
|
95
|
-
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
96
|
-
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Default visitor.
|
|
101
|
-
*
|
|
102
|
-
* @param {*} value
|
|
103
|
-
* @param {String|Number} key
|
|
104
|
-
* @param {Array<String|Number>} path
|
|
105
|
-
* @this {FormData}
|
|
106
|
-
*
|
|
107
|
-
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
108
|
-
*/
|
|
109
|
-
function defaultVisitor(value, key, path) {
|
|
110
|
-
let arr = value;
|
|
111
|
-
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
112
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
if (value && !path && typeof value === "object") {
|
|
116
|
-
if (utils_default.endsWith(key, "{}")) {
|
|
117
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
118
|
-
value = JSON.stringify(value);
|
|
119
|
-
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
120
|
-
key = removeBrackets(key);
|
|
121
|
-
arr.forEach(function each(el, index) {
|
|
122
|
-
!(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
|
|
123
|
-
});
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (isVisitable(value)) return true;
|
|
128
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
const stack = [];
|
|
132
|
-
const exposedHelpers = Object.assign(predicates, {
|
|
133
|
-
defaultVisitor,
|
|
134
|
-
convertValue,
|
|
135
|
-
isVisitable
|
|
136
|
-
});
|
|
137
|
-
function build(value, path) {
|
|
138
|
-
if (utils_default.isUndefined(value)) return;
|
|
139
|
-
if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
|
|
140
|
-
stack.push(value);
|
|
141
|
-
utils_default.forEach(value, function each(el, key) {
|
|
142
|
-
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key]);
|
|
143
|
-
});
|
|
144
|
-
stack.pop();
|
|
145
|
-
}
|
|
146
|
-
if (!utils_default.isObject(obj)) throw new TypeError("data must be an object");
|
|
147
|
-
build(obj);
|
|
148
|
-
return formData;
|
|
149
|
-
}
|
|
150
|
-
//#endregion
|
|
151
|
-
export { toFormData as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import utils_default from "../utils.js";
|
|
2
|
-
import toFormData from "./toFormData.js";
|
|
3
|
-
import platform_default from "../platform/index.js";
|
|
4
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
5
|
-
function toURLEncodedForm(data, options) {
|
|
6
|
-
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
7
|
-
visitor: function(value, key, path, helpers) {
|
|
8
|
-
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
9
|
-
this.append(key, value.toString("base64"));
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
13
|
-
},
|
|
14
|
-
...options
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { toURLEncodedForm as default };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js
|
|
2
|
-
const streamChunk = function* (chunk, chunkSize) {
|
|
3
|
-
let len = chunk.byteLength;
|
|
4
|
-
if (!chunkSize || len < chunkSize) {
|
|
5
|
-
yield chunk;
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
let pos = 0;
|
|
9
|
-
let end;
|
|
10
|
-
while (pos < len) {
|
|
11
|
-
end = pos + chunkSize;
|
|
12
|
-
yield chunk.slice(pos, end);
|
|
13
|
-
pos = end;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const readBytes = async function* (iterable, chunkSize) {
|
|
17
|
-
for await (const chunk of readStream(iterable)) yield* streamChunk(chunk, chunkSize);
|
|
18
|
-
};
|
|
19
|
-
const readStream = async function* (stream) {
|
|
20
|
-
if (stream[Symbol.asyncIterator]) {
|
|
21
|
-
yield* stream;
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const reader = stream.getReader();
|
|
25
|
-
try {
|
|
26
|
-
for (;;) {
|
|
27
|
-
const { done, value } = await reader.read();
|
|
28
|
-
if (done) break;
|
|
29
|
-
yield value;
|
|
30
|
-
}
|
|
31
|
-
} finally {
|
|
32
|
-
await reader.cancel();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
36
|
-
const iterator = readBytes(stream, chunkSize);
|
|
37
|
-
let bytes = 0;
|
|
38
|
-
let done;
|
|
39
|
-
let _onFinish = (e) => {
|
|
40
|
-
if (!done) {
|
|
41
|
-
done = true;
|
|
42
|
-
onFinish && onFinish(e);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return new ReadableStream({
|
|
46
|
-
async pull(controller) {
|
|
47
|
-
try {
|
|
48
|
-
const { done, value } = await iterator.next();
|
|
49
|
-
if (done) {
|
|
50
|
-
_onFinish();
|
|
51
|
-
controller.close();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
let len = value.byteLength;
|
|
55
|
-
if (onProgress) onProgress(bytes += len);
|
|
56
|
-
controller.enqueue(new Uint8Array(value));
|
|
57
|
-
} catch (err) {
|
|
58
|
-
_onFinish(err);
|
|
59
|
-
throw err;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
cancel(reason) {
|
|
63
|
-
_onFinish(reason);
|
|
64
|
-
return iterator.return();
|
|
65
|
-
}
|
|
66
|
-
}, { highWaterMark: 2 });
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { trackStream };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import AxiosError from "../core/AxiosError.js";
|
|
2
|
-
import { VERSION } from "../env/data.js";
|
|
3
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js
|
|
4
|
-
const validators = {};
|
|
5
|
-
[
|
|
6
|
-
"object",
|
|
7
|
-
"boolean",
|
|
8
|
-
"number",
|
|
9
|
-
"function",
|
|
10
|
-
"string",
|
|
11
|
-
"symbol"
|
|
12
|
-
].forEach((type, i) => {
|
|
13
|
-
validators[type] = function validator(thing) {
|
|
14
|
-
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
const deprecatedWarnings = {};
|
|
18
|
-
/**
|
|
19
|
-
* Transitional option validator
|
|
20
|
-
*
|
|
21
|
-
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
|
22
|
-
* @param {string?} version - deprecated version / removed since version
|
|
23
|
-
* @param {string?} message - some message with additional info
|
|
24
|
-
*
|
|
25
|
-
* @returns {function}
|
|
26
|
-
*/
|
|
27
|
-
validators.transitional = function transitional(validator, version, message) {
|
|
28
|
-
function formatMessage(opt, desc) {
|
|
29
|
-
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
30
|
-
}
|
|
31
|
-
return (value, opt, opts) => {
|
|
32
|
-
if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
|
|
33
|
-
if (version && !deprecatedWarnings[opt]) {
|
|
34
|
-
deprecatedWarnings[opt] = true;
|
|
35
|
-
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
36
|
-
}
|
|
37
|
-
return validator ? validator(value, opt, opts) : true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
validators.spelling = function spelling(correctSpelling) {
|
|
41
|
-
return (value, opt) => {
|
|
42
|
-
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
43
|
-
return true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Assert object's properties type
|
|
48
|
-
*
|
|
49
|
-
* @param {object} options
|
|
50
|
-
* @param {object} schema
|
|
51
|
-
* @param {boolean?} allowUnknown
|
|
52
|
-
*
|
|
53
|
-
* @returns {object}
|
|
54
|
-
*/
|
|
55
|
-
function assertOptions(options, schema, allowUnknown) {
|
|
56
|
-
if (typeof options !== "object") throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
57
|
-
const keys = Object.keys(options);
|
|
58
|
-
let i = keys.length;
|
|
59
|
-
while (i-- > 0) {
|
|
60
|
-
const opt = keys[i];
|
|
61
|
-
const validator = schema[opt];
|
|
62
|
-
if (validator) {
|
|
63
|
-
const value = options[opt];
|
|
64
|
-
const result = value === void 0 || validator(value, opt, options);
|
|
65
|
-
if (result !== true) throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var validator_default = {
|
|
72
|
-
assertOptions,
|
|
73
|
-
validators
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
export { validator_default as default };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import AxiosURLSearchParams from "../../../helpers/AxiosURLSearchParams.js";
|
|
2
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
|
|
3
|
-
var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { URLSearchParams_default as default };
|
package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import URLSearchParams_default from "./classes/URLSearchParams.js";
|
|
2
|
-
import FormData_default from "./classes/FormData.js";
|
|
3
|
-
import Blob_default from "./classes/Blob.js";
|
|
4
|
-
//#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js
|
|
5
|
-
var browser_default = {
|
|
6
|
-
isBrowser: true,
|
|
7
|
-
classes: {
|
|
8
|
-
URLSearchParams: URLSearchParams_default,
|
|
9
|
-
FormData: FormData_default,
|
|
10
|
-
Blob: Blob_default
|
|
11
|
-
},
|
|
12
|
-
protocols: [
|
|
13
|
-
"http",
|
|
14
|
-
"https",
|
|
15
|
-
"file",
|
|
16
|
-
"blob",
|
|
17
|
-
"url",
|
|
18
|
-
"data"
|
|
19
|
-
]
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { browser_default as default };
|