@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,229 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_glob } from "../../../glob@7.2.3/node_modules/glob/glob.js";
|
|
3
|
-
//#region node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
|
|
4
|
-
var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
const assert = __require("assert");
|
|
6
|
-
const path = __require("path");
|
|
7
|
-
const fs = __require("fs");
|
|
8
|
-
let glob = void 0;
|
|
9
|
-
try {
|
|
10
|
-
glob = require_glob();
|
|
11
|
-
} catch (_err) {}
|
|
12
|
-
const defaultGlobOpts = {
|
|
13
|
-
nosort: true,
|
|
14
|
-
silent: true
|
|
15
|
-
};
|
|
16
|
-
let timeout = 0;
|
|
17
|
-
const isWindows = process.platform === "win32";
|
|
18
|
-
const defaults = (options) => {
|
|
19
|
-
[
|
|
20
|
-
"unlink",
|
|
21
|
-
"chmod",
|
|
22
|
-
"stat",
|
|
23
|
-
"lstat",
|
|
24
|
-
"rmdir",
|
|
25
|
-
"readdir"
|
|
26
|
-
].forEach((m) => {
|
|
27
|
-
options[m] = options[m] || fs[m];
|
|
28
|
-
m = m + "Sync";
|
|
29
|
-
options[m] = options[m] || fs[m];
|
|
30
|
-
});
|
|
31
|
-
options.maxBusyTries = options.maxBusyTries || 3;
|
|
32
|
-
options.emfileWait = options.emfileWait || 1e3;
|
|
33
|
-
if (options.glob === false) options.disableGlob = true;
|
|
34
|
-
if (options.disableGlob !== true && glob === void 0) throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
|
|
35
|
-
options.disableGlob = options.disableGlob || false;
|
|
36
|
-
options.glob = options.glob || defaultGlobOpts;
|
|
37
|
-
};
|
|
38
|
-
const rimraf = (p, options, cb) => {
|
|
39
|
-
if (typeof options === "function") {
|
|
40
|
-
cb = options;
|
|
41
|
-
options = {};
|
|
42
|
-
}
|
|
43
|
-
assert(p, "rimraf: missing path");
|
|
44
|
-
assert.equal(typeof p, "string", "rimraf: path should be a string");
|
|
45
|
-
assert.equal(typeof cb, "function", "rimraf: callback function required");
|
|
46
|
-
assert(options, "rimraf: invalid options argument provided");
|
|
47
|
-
assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
48
|
-
defaults(options);
|
|
49
|
-
let busyTries = 0;
|
|
50
|
-
let errState = null;
|
|
51
|
-
let n = 0;
|
|
52
|
-
const next = (er) => {
|
|
53
|
-
errState = errState || er;
|
|
54
|
-
if (--n === 0) cb(errState);
|
|
55
|
-
};
|
|
56
|
-
const afterGlob = (er, results) => {
|
|
57
|
-
if (er) return cb(er);
|
|
58
|
-
n = results.length;
|
|
59
|
-
if (n === 0) return cb();
|
|
60
|
-
results.forEach((p) => {
|
|
61
|
-
const CB = (er) => {
|
|
62
|
-
if (er) {
|
|
63
|
-
if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) {
|
|
64
|
-
busyTries++;
|
|
65
|
-
return setTimeout(() => rimraf_(p, options, CB), busyTries * 100);
|
|
66
|
-
}
|
|
67
|
-
if (er.code === "EMFILE" && timeout < options.emfileWait) return setTimeout(() => rimraf_(p, options, CB), timeout++);
|
|
68
|
-
if (er.code === "ENOENT") er = null;
|
|
69
|
-
}
|
|
70
|
-
timeout = 0;
|
|
71
|
-
next(er);
|
|
72
|
-
};
|
|
73
|
-
rimraf_(p, options, CB);
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
if (options.disableGlob || !glob.hasMagic(p)) return afterGlob(null, [p]);
|
|
77
|
-
options.lstat(p, (er, stat) => {
|
|
78
|
-
if (!er) return afterGlob(null, [p]);
|
|
79
|
-
glob(p, options.glob, afterGlob);
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
const rimraf_ = (p, options, cb) => {
|
|
83
|
-
assert(p);
|
|
84
|
-
assert(options);
|
|
85
|
-
assert(typeof cb === "function");
|
|
86
|
-
options.lstat(p, (er, st) => {
|
|
87
|
-
if (er && er.code === "ENOENT") return cb(null);
|
|
88
|
-
if (er && er.code === "EPERM" && isWindows) fixWinEPERM(p, options, er, cb);
|
|
89
|
-
if (st && st.isDirectory()) return rmdir(p, options, er, cb);
|
|
90
|
-
options.unlink(p, (er) => {
|
|
91
|
-
if (er) {
|
|
92
|
-
if (er.code === "ENOENT") return cb(null);
|
|
93
|
-
if (er.code === "EPERM") return isWindows ? fixWinEPERM(p, options, er, cb) : rmdir(p, options, er, cb);
|
|
94
|
-
if (er.code === "EISDIR") return rmdir(p, options, er, cb);
|
|
95
|
-
}
|
|
96
|
-
return cb(er);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
const fixWinEPERM = (p, options, er, cb) => {
|
|
101
|
-
assert(p);
|
|
102
|
-
assert(options);
|
|
103
|
-
assert(typeof cb === "function");
|
|
104
|
-
options.chmod(p, 438, (er2) => {
|
|
105
|
-
if (er2) cb(er2.code === "ENOENT" ? null : er);
|
|
106
|
-
else options.stat(p, (er3, stats) => {
|
|
107
|
-
if (er3) cb(er3.code === "ENOENT" ? null : er);
|
|
108
|
-
else if (stats.isDirectory()) rmdir(p, options, er, cb);
|
|
109
|
-
else options.unlink(p, cb);
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
const fixWinEPERMSync = (p, options, er) => {
|
|
114
|
-
assert(p);
|
|
115
|
-
assert(options);
|
|
116
|
-
try {
|
|
117
|
-
options.chmodSync(p, 438);
|
|
118
|
-
} catch (er2) {
|
|
119
|
-
if (er2.code === "ENOENT") return;
|
|
120
|
-
else throw er;
|
|
121
|
-
}
|
|
122
|
-
let stats;
|
|
123
|
-
try {
|
|
124
|
-
stats = options.statSync(p);
|
|
125
|
-
} catch (er3) {
|
|
126
|
-
if (er3.code === "ENOENT") return;
|
|
127
|
-
else throw er;
|
|
128
|
-
}
|
|
129
|
-
if (stats.isDirectory()) rmdirSync(p, options, er);
|
|
130
|
-
else options.unlinkSync(p);
|
|
131
|
-
};
|
|
132
|
-
const rmdir = (p, options, originalEr, cb) => {
|
|
133
|
-
assert(p);
|
|
134
|
-
assert(options);
|
|
135
|
-
assert(typeof cb === "function");
|
|
136
|
-
options.rmdir(p, (er) => {
|
|
137
|
-
if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) rmkids(p, options, cb);
|
|
138
|
-
else if (er && er.code === "ENOTDIR") cb(originalEr);
|
|
139
|
-
else cb(er);
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
const rmkids = (p, options, cb) => {
|
|
143
|
-
assert(p);
|
|
144
|
-
assert(options);
|
|
145
|
-
assert(typeof cb === "function");
|
|
146
|
-
options.readdir(p, (er, files) => {
|
|
147
|
-
if (er) return cb(er);
|
|
148
|
-
let n = files.length;
|
|
149
|
-
if (n === 0) return options.rmdir(p, cb);
|
|
150
|
-
let errState;
|
|
151
|
-
files.forEach((f) => {
|
|
152
|
-
rimraf(path.join(p, f), options, (er) => {
|
|
153
|
-
if (errState) return;
|
|
154
|
-
if (er) return cb(errState = er);
|
|
155
|
-
if (--n === 0) options.rmdir(p, cb);
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
const rimrafSync = (p, options) => {
|
|
161
|
-
options = options || {};
|
|
162
|
-
defaults(options);
|
|
163
|
-
assert(p, "rimraf: missing path");
|
|
164
|
-
assert.equal(typeof p, "string", "rimraf: path should be a string");
|
|
165
|
-
assert(options, "rimraf: missing options");
|
|
166
|
-
assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
167
|
-
let results;
|
|
168
|
-
if (options.disableGlob || !glob.hasMagic(p)) results = [p];
|
|
169
|
-
else try {
|
|
170
|
-
options.lstatSync(p);
|
|
171
|
-
results = [p];
|
|
172
|
-
} catch (er) {
|
|
173
|
-
results = glob.sync(p, options.glob);
|
|
174
|
-
}
|
|
175
|
-
if (!results.length) return;
|
|
176
|
-
for (let i = 0; i < results.length; i++) {
|
|
177
|
-
const p = results[i];
|
|
178
|
-
let st;
|
|
179
|
-
try {
|
|
180
|
-
st = options.lstatSync(p);
|
|
181
|
-
} catch (er) {
|
|
182
|
-
if (er.code === "ENOENT") return;
|
|
183
|
-
if (er.code === "EPERM" && isWindows) fixWinEPERMSync(p, options, er);
|
|
184
|
-
}
|
|
185
|
-
try {
|
|
186
|
-
if (st && st.isDirectory()) rmdirSync(p, options, null);
|
|
187
|
-
else options.unlinkSync(p);
|
|
188
|
-
} catch (er) {
|
|
189
|
-
if (er.code === "ENOENT") return;
|
|
190
|
-
if (er.code === "EPERM") return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er);
|
|
191
|
-
if (er.code !== "EISDIR") throw er;
|
|
192
|
-
rmdirSync(p, options, er);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
const rmdirSync = (p, options, originalEr) => {
|
|
197
|
-
assert(p);
|
|
198
|
-
assert(options);
|
|
199
|
-
try {
|
|
200
|
-
options.rmdirSync(p);
|
|
201
|
-
} catch (er) {
|
|
202
|
-
if (er.code === "ENOENT") return;
|
|
203
|
-
if (er.code === "ENOTDIR") throw originalEr;
|
|
204
|
-
if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") rmkidsSync(p, options);
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
const rmkidsSync = (p, options) => {
|
|
208
|
-
assert(p);
|
|
209
|
-
assert(options);
|
|
210
|
-
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
211
|
-
const retries = isWindows ? 100 : 1;
|
|
212
|
-
let i = 0;
|
|
213
|
-
do {
|
|
214
|
-
let threw = true;
|
|
215
|
-
try {
|
|
216
|
-
const ret = options.rmdirSync(p, options);
|
|
217
|
-
threw = false;
|
|
218
|
-
return ret;
|
|
219
|
-
} finally {
|
|
220
|
-
if (++i < retries && threw) continue;
|
|
221
|
-
}
|
|
222
|
-
} while (true);
|
|
223
|
-
};
|
|
224
|
-
module.exports = rimraf;
|
|
225
|
-
rimraf.sync = rimrafSync;
|
|
226
|
-
}));
|
|
227
|
-
//#endregion
|
|
228
|
-
export default require_rimraf();
|
|
229
|
-
export { require_rimraf };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_debug } from "../internal/debug.js";
|
|
3
|
-
import { require_re } from "../internal/re.js";
|
|
4
|
-
import { require_parse_options } from "../internal/parse-options.js";
|
|
5
|
-
import { require_semver } from "./semver.js";
|
|
6
|
-
import { require_cmp } from "../functions/cmp.js";
|
|
7
|
-
import { require_range } from "./range.js";
|
|
8
|
-
//#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
9
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10
|
-
const ANY = Symbol("SemVer ANY");
|
|
11
|
-
module.exports = class Comparator {
|
|
12
|
-
static get ANY() {
|
|
13
|
-
return ANY;
|
|
14
|
-
}
|
|
15
|
-
constructor(comp, options) {
|
|
16
|
-
options = parseOptions(options);
|
|
17
|
-
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
18
|
-
else comp = comp.value;
|
|
19
|
-
comp = comp.trim().split(/\s+/).join(" ");
|
|
20
|
-
debug("comparator", comp, options);
|
|
21
|
-
this.options = options;
|
|
22
|
-
this.loose = !!options.loose;
|
|
23
|
-
this.parse(comp);
|
|
24
|
-
if (this.semver === ANY) this.value = "";
|
|
25
|
-
else this.value = this.operator + this.semver.version;
|
|
26
|
-
debug("comp", this);
|
|
27
|
-
}
|
|
28
|
-
parse(comp) {
|
|
29
|
-
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
30
|
-
const m = comp.match(r);
|
|
31
|
-
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
32
|
-
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
33
|
-
if (this.operator === "=") this.operator = "";
|
|
34
|
-
if (!m[2]) this.semver = ANY;
|
|
35
|
-
else this.semver = new SemVer(m[2], this.options.loose);
|
|
36
|
-
}
|
|
37
|
-
toString() {
|
|
38
|
-
return this.value;
|
|
39
|
-
}
|
|
40
|
-
test(version) {
|
|
41
|
-
debug("Comparator.test", version, this.options.loose);
|
|
42
|
-
if (this.semver === ANY || version === ANY) return true;
|
|
43
|
-
if (typeof version === "string") try {
|
|
44
|
-
version = new SemVer(version, this.options);
|
|
45
|
-
} catch (er) {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
49
|
-
}
|
|
50
|
-
intersects(comp, options) {
|
|
51
|
-
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
52
|
-
if (this.operator === "") {
|
|
53
|
-
if (this.value === "") return true;
|
|
54
|
-
return new Range(comp.value, options).test(this.value);
|
|
55
|
-
} else if (comp.operator === "") {
|
|
56
|
-
if (comp.value === "") return true;
|
|
57
|
-
return new Range(this.value, options).test(comp.semver);
|
|
58
|
-
}
|
|
59
|
-
options = parseOptions(options);
|
|
60
|
-
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
61
|
-
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
62
|
-
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
63
|
-
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
64
|
-
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
65
|
-
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
66
|
-
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const parseOptions = require_parse_options();
|
|
71
|
-
const { safeRe: re, t } = require_re();
|
|
72
|
-
const cmp = require_cmp();
|
|
73
|
-
const debug = require_debug();
|
|
74
|
-
const SemVer = require_semver();
|
|
75
|
-
const Range = require_range();
|
|
76
|
-
}));
|
|
77
|
-
//#endregion
|
|
78
|
-
export default require_comparator();
|
|
79
|
-
export { require_comparator };
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_constants } from "../internal/constants.js";
|
|
3
|
-
import { require_debug } from "../internal/debug.js";
|
|
4
|
-
import { require_re } from "../internal/re.js";
|
|
5
|
-
import { require_parse_options } from "../internal/parse-options.js";
|
|
6
|
-
import { require_semver } from "./semver.js";
|
|
7
|
-
import { require_lrucache } from "../internal/lrucache.js";
|
|
8
|
-
import { require_comparator } from "./comparator.js";
|
|
9
|
-
//#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
10
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11
|
-
const SPACE_CHARACTERS = /\s+/g;
|
|
12
|
-
module.exports = class Range {
|
|
13
|
-
constructor(range, options) {
|
|
14
|
-
options = parseOptions(options);
|
|
15
|
-
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
16
|
-
else return new Range(range.raw, options);
|
|
17
|
-
if (range instanceof Comparator) {
|
|
18
|
-
this.raw = range.value;
|
|
19
|
-
this.set = [[range]];
|
|
20
|
-
this.formatted = void 0;
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
this.options = options;
|
|
24
|
-
this.loose = !!options.loose;
|
|
25
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
26
|
-
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
27
|
-
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
28
|
-
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
29
|
-
if (this.set.length > 1) {
|
|
30
|
-
const first = this.set[0];
|
|
31
|
-
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
32
|
-
if (this.set.length === 0) this.set = [first];
|
|
33
|
-
else if (this.set.length > 1) {
|
|
34
|
-
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
35
|
-
this.set = [c];
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
this.formatted = void 0;
|
|
41
|
-
}
|
|
42
|
-
get range() {
|
|
43
|
-
if (this.formatted === void 0) {
|
|
44
|
-
this.formatted = "";
|
|
45
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
46
|
-
if (i > 0) this.formatted += "||";
|
|
47
|
-
const comps = this.set[i];
|
|
48
|
-
for (let k = 0; k < comps.length; k++) {
|
|
49
|
-
if (k > 0) this.formatted += " ";
|
|
50
|
-
this.formatted += comps[k].toString().trim();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return this.formatted;
|
|
55
|
-
}
|
|
56
|
-
format() {
|
|
57
|
-
return this.range;
|
|
58
|
-
}
|
|
59
|
-
toString() {
|
|
60
|
-
return this.range;
|
|
61
|
-
}
|
|
62
|
-
parseRange(range) {
|
|
63
|
-
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
64
|
-
const cached = cache.get(memoKey);
|
|
65
|
-
if (cached) return cached;
|
|
66
|
-
const loose = this.options.loose;
|
|
67
|
-
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
68
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
69
|
-
debug("hyphen replace", range);
|
|
70
|
-
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
71
|
-
debug("comparator trim", range);
|
|
72
|
-
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
73
|
-
debug("tilde trim", range);
|
|
74
|
-
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
75
|
-
debug("caret trim", range);
|
|
76
|
-
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
77
|
-
if (loose) rangeList = rangeList.filter((comp) => {
|
|
78
|
-
debug("loose invalid filter", comp, this.options);
|
|
79
|
-
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
80
|
-
});
|
|
81
|
-
debug("range list", rangeList);
|
|
82
|
-
const rangeMap = /* @__PURE__ */ new Map();
|
|
83
|
-
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
84
|
-
for (const comp of comparators) {
|
|
85
|
-
if (isNullSet(comp)) return [comp];
|
|
86
|
-
rangeMap.set(comp.value, comp);
|
|
87
|
-
}
|
|
88
|
-
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
89
|
-
const result = [...rangeMap.values()];
|
|
90
|
-
cache.set(memoKey, result);
|
|
91
|
-
return result;
|
|
92
|
-
}
|
|
93
|
-
intersects(range, options) {
|
|
94
|
-
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
95
|
-
return this.set.some((thisComparators) => {
|
|
96
|
-
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97
|
-
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
98
|
-
return rangeComparators.every((rangeComparator) => {
|
|
99
|
-
return thisComparator.intersects(rangeComparator, options);
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
test(version) {
|
|
106
|
-
if (!version) return false;
|
|
107
|
-
if (typeof version === "string") try {
|
|
108
|
-
version = new SemVer(version, this.options);
|
|
109
|
-
} catch (er) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
const cache = new (require_lrucache())();
|
|
117
|
-
const parseOptions = require_parse_options();
|
|
118
|
-
const Comparator = require_comparator();
|
|
119
|
-
const debug = require_debug();
|
|
120
|
-
const SemVer = require_semver();
|
|
121
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
122
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
123
|
-
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
124
|
-
const isAny = (c) => c.value === "";
|
|
125
|
-
const isSatisfiable = (comparators, options) => {
|
|
126
|
-
let result = true;
|
|
127
|
-
const remainingComparators = comparators.slice();
|
|
128
|
-
let testComparator = remainingComparators.pop();
|
|
129
|
-
while (result && remainingComparators.length) {
|
|
130
|
-
result = remainingComparators.every((otherComparator) => {
|
|
131
|
-
return testComparator.intersects(otherComparator, options);
|
|
132
|
-
});
|
|
133
|
-
testComparator = remainingComparators.pop();
|
|
134
|
-
}
|
|
135
|
-
return result;
|
|
136
|
-
};
|
|
137
|
-
const parseComparator = (comp, options) => {
|
|
138
|
-
comp = comp.replace(re[t.BUILD], "");
|
|
139
|
-
debug("comp", comp, options);
|
|
140
|
-
comp = replaceCarets(comp, options);
|
|
141
|
-
debug("caret", comp);
|
|
142
|
-
comp = replaceTildes(comp, options);
|
|
143
|
-
debug("tildes", comp);
|
|
144
|
-
comp = replaceXRanges(comp, options);
|
|
145
|
-
debug("xrange", comp);
|
|
146
|
-
comp = replaceStars(comp, options);
|
|
147
|
-
debug("stars", comp);
|
|
148
|
-
return comp;
|
|
149
|
-
};
|
|
150
|
-
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
151
|
-
const replaceTildes = (comp, options) => {
|
|
152
|
-
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
153
|
-
};
|
|
154
|
-
const replaceTilde = (comp, options) => {
|
|
155
|
-
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
156
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
157
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
158
|
-
let ret;
|
|
159
|
-
if (isX(M)) ret = "";
|
|
160
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
161
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
162
|
-
else if (pr) {
|
|
163
|
-
debug("replaceTilde pr", pr);
|
|
164
|
-
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
165
|
-
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
166
|
-
debug("tilde return", ret);
|
|
167
|
-
return ret;
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
const replaceCarets = (comp, options) => {
|
|
171
|
-
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
172
|
-
};
|
|
173
|
-
const replaceCaret = (comp, options) => {
|
|
174
|
-
debug("caret", comp, options);
|
|
175
|
-
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
176
|
-
const z = options.includePrerelease ? "-0" : "";
|
|
177
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
178
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
179
|
-
let ret;
|
|
180
|
-
if (isX(M)) ret = "";
|
|
181
|
-
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
182
|
-
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
183
|
-
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
184
|
-
else if (pr) {
|
|
185
|
-
debug("replaceCaret pr", pr);
|
|
186
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
187
|
-
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
188
|
-
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
189
|
-
} else {
|
|
190
|
-
debug("no pr");
|
|
191
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
192
|
-
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
193
|
-
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
194
|
-
}
|
|
195
|
-
debug("caret return", ret);
|
|
196
|
-
return ret;
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
const replaceXRanges = (comp, options) => {
|
|
200
|
-
debug("replaceXRanges", comp, options);
|
|
201
|
-
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
202
|
-
};
|
|
203
|
-
const replaceXRange = (comp, options) => {
|
|
204
|
-
comp = comp.trim();
|
|
205
|
-
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
206
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
207
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
208
|
-
const xM = isX(M);
|
|
209
|
-
const xm = xM || isX(m);
|
|
210
|
-
const xp = xm || isX(p);
|
|
211
|
-
const anyX = xp;
|
|
212
|
-
if (gtlt === "=" && anyX) gtlt = "";
|
|
213
|
-
pr = options.includePrerelease ? "-0" : "";
|
|
214
|
-
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
215
|
-
else ret = "*";
|
|
216
|
-
else if (gtlt && anyX) {
|
|
217
|
-
if (xm) m = 0;
|
|
218
|
-
p = 0;
|
|
219
|
-
if (gtlt === ">") {
|
|
220
|
-
gtlt = ">=";
|
|
221
|
-
if (xm) {
|
|
222
|
-
M = +M + 1;
|
|
223
|
-
m = 0;
|
|
224
|
-
p = 0;
|
|
225
|
-
} else {
|
|
226
|
-
m = +m + 1;
|
|
227
|
-
p = 0;
|
|
228
|
-
}
|
|
229
|
-
} else if (gtlt === "<=") {
|
|
230
|
-
gtlt = "<";
|
|
231
|
-
if (xm) M = +M + 1;
|
|
232
|
-
else m = +m + 1;
|
|
233
|
-
}
|
|
234
|
-
if (gtlt === "<") pr = "-0";
|
|
235
|
-
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
236
|
-
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
237
|
-
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
238
|
-
debug("xRange return", ret);
|
|
239
|
-
return ret;
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
const replaceStars = (comp, options) => {
|
|
243
|
-
debug("replaceStars", comp, options);
|
|
244
|
-
return comp.trim().replace(re[t.STAR], "");
|
|
245
|
-
};
|
|
246
|
-
const replaceGTE0 = (comp, options) => {
|
|
247
|
-
debug("replaceGTE0", comp, options);
|
|
248
|
-
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
249
|
-
};
|
|
250
|
-
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
251
|
-
if (isX(fM)) from = "";
|
|
252
|
-
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
253
|
-
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
254
|
-
else if (fpr) from = `>=${from}`;
|
|
255
|
-
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
256
|
-
if (isX(tM)) to = "";
|
|
257
|
-
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
258
|
-
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
259
|
-
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
260
|
-
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
261
|
-
else to = `<=${to}`;
|
|
262
|
-
return `${from} ${to}`.trim();
|
|
263
|
-
};
|
|
264
|
-
const testSet = (set, version, options) => {
|
|
265
|
-
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
266
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
267
|
-
for (let i = 0; i < set.length; i++) {
|
|
268
|
-
debug(set[i].semver);
|
|
269
|
-
if (set[i].semver === Comparator.ANY) continue;
|
|
270
|
-
if (set[i].semver.prerelease.length > 0) {
|
|
271
|
-
const allowed = set[i].semver;
|
|
272
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return false;
|
|
276
|
-
}
|
|
277
|
-
return true;
|
|
278
|
-
};
|
|
279
|
-
}));
|
|
280
|
-
//#endregion
|
|
281
|
-
export default require_range();
|
|
282
|
-
export { require_range };
|