@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,11 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_range } from "../classes/range.js";
|
|
3
|
-
//#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
4
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
const Range = require_range();
|
|
6
|
-
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
7
|
-
module.exports = toComparators;
|
|
8
|
-
}));
|
|
9
|
-
//#endregion
|
|
10
|
-
export default require_to_comparators();
|
|
11
|
-
export { require_to_comparators };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_range } from "../classes/range.js";
|
|
3
|
-
//#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
4
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
const Range = require_range();
|
|
6
|
-
const validRange = (range, options) => {
|
|
7
|
-
try {
|
|
8
|
-
return new Range(range, options).range || "*";
|
|
9
|
-
} catch (er) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
module.exports = validRange;
|
|
14
|
-
}));
|
|
15
|
-
//#endregion
|
|
16
|
-
export default require_valid();
|
|
17
|
-
export { require_valid };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js
|
|
3
|
-
var require_set_blocking = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = function(blocking) {
|
|
5
|
-
[process.stdout, process.stderr].forEach(function(stream) {
|
|
6
|
-
if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === "function") stream._handle.setBlocking(blocking);
|
|
7
|
-
});
|
|
8
|
-
};
|
|
9
|
-
}));
|
|
10
|
-
//#endregion
|
|
11
|
-
export default require_set_blocking();
|
|
12
|
-
export { require_set_blocking };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_signals } from "./signals.js";
|
|
3
|
-
//#region node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
4
|
-
var require_signal_exit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var process = global.process;
|
|
6
|
-
const processOk = function(process) {
|
|
7
|
-
return process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
|
|
8
|
-
};
|
|
9
|
-
/* istanbul ignore if */
|
|
10
|
-
if (!processOk(process)) module.exports = function() {
|
|
11
|
-
return function() {};
|
|
12
|
-
};
|
|
13
|
-
else {
|
|
14
|
-
var assert = __require("assert");
|
|
15
|
-
var signals = require_signals();
|
|
16
|
-
var isWin = /^win/i.test(process.platform);
|
|
17
|
-
var EE = __require("events");
|
|
18
|
-
/* istanbul ignore if */
|
|
19
|
-
if (typeof EE !== "function") EE = EE.EventEmitter;
|
|
20
|
-
var emitter;
|
|
21
|
-
if (process.__signal_exit_emitter__) emitter = process.__signal_exit_emitter__;
|
|
22
|
-
else {
|
|
23
|
-
emitter = process.__signal_exit_emitter__ = new EE();
|
|
24
|
-
emitter.count = 0;
|
|
25
|
-
emitter.emitted = {};
|
|
26
|
-
}
|
|
27
|
-
if (!emitter.infinite) {
|
|
28
|
-
emitter.setMaxListeners(Infinity);
|
|
29
|
-
emitter.infinite = true;
|
|
30
|
-
}
|
|
31
|
-
module.exports = function(cb, opts) {
|
|
32
|
-
/* istanbul ignore if */
|
|
33
|
-
if (!processOk(global.process)) return function() {};
|
|
34
|
-
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
35
|
-
if (loaded === false) load();
|
|
36
|
-
var ev = "exit";
|
|
37
|
-
if (opts && opts.alwaysLast) ev = "afterexit";
|
|
38
|
-
var remove = function() {
|
|
39
|
-
emitter.removeListener(ev, cb);
|
|
40
|
-
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) unload();
|
|
41
|
-
};
|
|
42
|
-
emitter.on(ev, cb);
|
|
43
|
-
return remove;
|
|
44
|
-
};
|
|
45
|
-
var unload = function unload() {
|
|
46
|
-
if (!loaded || !processOk(global.process)) return;
|
|
47
|
-
loaded = false;
|
|
48
|
-
signals.forEach(function(sig) {
|
|
49
|
-
try {
|
|
50
|
-
process.removeListener(sig, sigListeners[sig]);
|
|
51
|
-
} catch (er) {}
|
|
52
|
-
});
|
|
53
|
-
process.emit = originalProcessEmit;
|
|
54
|
-
process.reallyExit = originalProcessReallyExit;
|
|
55
|
-
emitter.count -= 1;
|
|
56
|
-
};
|
|
57
|
-
module.exports.unload = unload;
|
|
58
|
-
var emit = function emit(event, code, signal) {
|
|
59
|
-
/* istanbul ignore if */
|
|
60
|
-
if (emitter.emitted[event]) return;
|
|
61
|
-
emitter.emitted[event] = true;
|
|
62
|
-
emitter.emit(event, code, signal);
|
|
63
|
-
};
|
|
64
|
-
var sigListeners = {};
|
|
65
|
-
signals.forEach(function(sig) {
|
|
66
|
-
sigListeners[sig] = function listener() {
|
|
67
|
-
/* istanbul ignore if */
|
|
68
|
-
if (!processOk(global.process)) return;
|
|
69
|
-
if (process.listeners(sig).length === emitter.count) {
|
|
70
|
-
unload();
|
|
71
|
-
emit("exit", null, sig);
|
|
72
|
-
/* istanbul ignore next */
|
|
73
|
-
emit("afterexit", null, sig);
|
|
74
|
-
/* istanbul ignore next */
|
|
75
|
-
if (isWin && sig === "SIGHUP") sig = "SIGINT";
|
|
76
|
-
/* istanbul ignore next */
|
|
77
|
-
process.kill(process.pid, sig);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
module.exports.signals = function() {
|
|
82
|
-
return signals;
|
|
83
|
-
};
|
|
84
|
-
var loaded = false;
|
|
85
|
-
var load = function load() {
|
|
86
|
-
if (loaded || !processOk(global.process)) return;
|
|
87
|
-
loaded = true;
|
|
88
|
-
emitter.count += 1;
|
|
89
|
-
signals = signals.filter(function(sig) {
|
|
90
|
-
try {
|
|
91
|
-
process.on(sig, sigListeners[sig]);
|
|
92
|
-
return true;
|
|
93
|
-
} catch (er) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
process.emit = processEmit;
|
|
98
|
-
process.reallyExit = processReallyExit;
|
|
99
|
-
};
|
|
100
|
-
module.exports.load = load;
|
|
101
|
-
var originalProcessReallyExit = process.reallyExit;
|
|
102
|
-
var processReallyExit = function processReallyExit(code) {
|
|
103
|
-
/* istanbul ignore if */
|
|
104
|
-
if (!processOk(global.process)) return;
|
|
105
|
-
process.exitCode = code || 0;
|
|
106
|
-
emit("exit", process.exitCode, null);
|
|
107
|
-
/* istanbul ignore next */
|
|
108
|
-
emit("afterexit", process.exitCode, null);
|
|
109
|
-
/* istanbul ignore next */
|
|
110
|
-
originalProcessReallyExit.call(process, process.exitCode);
|
|
111
|
-
};
|
|
112
|
-
var originalProcessEmit = process.emit;
|
|
113
|
-
var processEmit = function processEmit(ev, arg) {
|
|
114
|
-
if (ev === "exit" && processOk(global.process)) {
|
|
115
|
-
/* istanbul ignore else */
|
|
116
|
-
if (arg !== void 0) process.exitCode = arg;
|
|
117
|
-
var ret = originalProcessEmit.apply(this, arguments);
|
|
118
|
-
/* istanbul ignore next */
|
|
119
|
-
emit("exit", process.exitCode, null);
|
|
120
|
-
/* istanbul ignore next */
|
|
121
|
-
emit("afterexit", process.exitCode, null);
|
|
122
|
-
/* istanbul ignore next */
|
|
123
|
-
return ret;
|
|
124
|
-
} else return originalProcessEmit.apply(this, arguments);
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}));
|
|
128
|
-
//#endregion
|
|
129
|
-
export default require_signal_exit();
|
|
130
|
-
export { require_signal_exit };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
3
|
-
var require_signals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = [
|
|
5
|
-
"SIGABRT",
|
|
6
|
-
"SIGALRM",
|
|
7
|
-
"SIGHUP",
|
|
8
|
-
"SIGINT",
|
|
9
|
-
"SIGTERM"
|
|
10
|
-
];
|
|
11
|
-
if (process.platform !== "win32") module.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
12
|
-
if (process.platform === "linux") module.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
|
|
13
|
-
}));
|
|
14
|
-
//#endregion
|
|
15
|
-
export default require_signals();
|
|
16
|
-
export { require_signals };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_strip_ansi } from "../../../strip-ansi@6.0.1/node_modules/strip-ansi/index.js";
|
|
3
|
-
import { require_is_fullwidth_code_point } from "../../../is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js";
|
|
4
|
-
import { require_emoji_regex } from "../../../emoji-regex@8.0.0/node_modules/emoji-regex/index.js";
|
|
5
|
-
//#region node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
|
|
6
|
-
var require_string_width = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
-
const stripAnsi = require_strip_ansi();
|
|
8
|
-
const isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
9
|
-
const emojiRegex = require_emoji_regex();
|
|
10
|
-
const stringWidth = (string) => {
|
|
11
|
-
if (typeof string !== "string" || string.length === 0) return 0;
|
|
12
|
-
string = stripAnsi(string);
|
|
13
|
-
if (string.length === 0) return 0;
|
|
14
|
-
string = string.replace(emojiRegex(), " ");
|
|
15
|
-
let width = 0;
|
|
16
|
-
for (let i = 0; i < string.length; i++) {
|
|
17
|
-
const code = string.codePointAt(i);
|
|
18
|
-
if (code <= 31 || code >= 127 && code <= 159) continue;
|
|
19
|
-
if (code >= 768 && code <= 879) continue;
|
|
20
|
-
if (code > 65535) i++;
|
|
21
|
-
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
22
|
-
}
|
|
23
|
-
return width;
|
|
24
|
-
};
|
|
25
|
-
module.exports = stringWidth;
|
|
26
|
-
module.exports.default = stringWidth;
|
|
27
|
-
}));
|
|
28
|
-
//#endregion
|
|
29
|
-
export default require_string_width();
|
|
30
|
-
export { require_string_width };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_ansi_regex } from "../../../ansi-regex@5.0.1/node_modules/ansi-regex/index.js";
|
|
3
|
-
//#region node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
|
|
4
|
-
var require_strip_ansi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
const ansiRegex = require_ansi_regex();
|
|
6
|
-
module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
|
|
7
|
-
}));
|
|
8
|
-
//#endregion
|
|
9
|
-
export default require_strip_ansi();
|
|
10
|
-
export { require_strip_ansi };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
3
|
-
var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
exports.fromCallback = function(fn) {
|
|
5
|
-
return Object.defineProperty(function(...args) {
|
|
6
|
-
if (typeof args[args.length - 1] === "function") fn.apply(this, args);
|
|
7
|
-
else return new Promise((resolve, reject) => {
|
|
8
|
-
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
9
|
-
fn.apply(this, args);
|
|
10
|
-
});
|
|
11
|
-
}, "name", { value: fn.name });
|
|
12
|
-
};
|
|
13
|
-
exports.fromPromise = function(fn) {
|
|
14
|
-
return Object.defineProperty(function(...args) {
|
|
15
|
-
const cb = args[args.length - 1];
|
|
16
|
-
if (typeof cb !== "function") return fn.apply(this, args);
|
|
17
|
-
else {
|
|
18
|
-
args.pop();
|
|
19
|
-
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
20
|
-
}
|
|
21
|
-
}, "name", { value: fn.name });
|
|
22
|
-
};
|
|
23
|
-
}));
|
|
24
|
-
//#endregion
|
|
25
|
-
export default require_universalify();
|
|
26
|
-
export { require_universalify };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js
|
|
3
|
-
var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
/**
|
|
5
|
-
* Module exports.
|
|
6
|
-
*/
|
|
7
|
-
module.exports = deprecate;
|
|
8
|
-
/**
|
|
9
|
-
* Mark that a method should not be used.
|
|
10
|
-
* Returns a modified function which warns once by default.
|
|
11
|
-
*
|
|
12
|
-
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
|
|
13
|
-
*
|
|
14
|
-
* If `localStorage.throwDeprecation = true` is set, then deprecated functions
|
|
15
|
-
* will throw an Error when invoked.
|
|
16
|
-
*
|
|
17
|
-
* If `localStorage.traceDeprecation = true` is set, then deprecated functions
|
|
18
|
-
* will invoke `console.trace()` instead of `console.error()`.
|
|
19
|
-
*
|
|
20
|
-
* @param {Function} fn - the function to deprecate
|
|
21
|
-
* @param {String} msg - the string to print to the console when `fn` is invoked
|
|
22
|
-
* @returns {Function} a new "deprecated" version of `fn`
|
|
23
|
-
* @api public
|
|
24
|
-
*/
|
|
25
|
-
function deprecate(fn, msg) {
|
|
26
|
-
if (config("noDeprecation")) return fn;
|
|
27
|
-
var warned = false;
|
|
28
|
-
function deprecated() {
|
|
29
|
-
if (!warned) {
|
|
30
|
-
if (config("throwDeprecation")) throw new Error(msg);
|
|
31
|
-
else if (config("traceDeprecation")) console.trace(msg);
|
|
32
|
-
else console.warn(msg);
|
|
33
|
-
warned = true;
|
|
34
|
-
}
|
|
35
|
-
return fn.apply(this, arguments);
|
|
36
|
-
}
|
|
37
|
-
return deprecated;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Checks `localStorage` for boolean values for the given `name`.
|
|
41
|
-
*
|
|
42
|
-
* @param {String} name
|
|
43
|
-
* @returns {Boolean}
|
|
44
|
-
* @api private
|
|
45
|
-
*/
|
|
46
|
-
function config(name) {
|
|
47
|
-
try {
|
|
48
|
-
if (!global.localStorage) return false;
|
|
49
|
-
} catch (_) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
var val = global.localStorage[name];
|
|
53
|
-
if (null == val) return false;
|
|
54
|
-
return String(val).toLowerCase() === "true";
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
//#endregion
|
|
58
|
-
export default require_browser();
|
|
59
|
-
export { require_browser };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_string_width } from "../../../string-width@4.2.3/node_modules/string-width/index.js";
|
|
3
|
-
//#region node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js
|
|
4
|
-
var require_align = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
var stringWidth = require_string_width();
|
|
6
|
-
exports.center = alignCenter;
|
|
7
|
-
exports.left = alignLeft;
|
|
8
|
-
exports.right = alignRight;
|
|
9
|
-
function createPadding(width) {
|
|
10
|
-
var result = "";
|
|
11
|
-
var string = " ";
|
|
12
|
-
var n = width;
|
|
13
|
-
do {
|
|
14
|
-
if (n % 2) result += string;
|
|
15
|
-
n = Math.floor(n / 2);
|
|
16
|
-
string += string;
|
|
17
|
-
} while (n);
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
function alignLeft(str, width) {
|
|
21
|
-
var trimmed = str.trimRight();
|
|
22
|
-
if (trimmed.length === 0 && str.length >= width) return str;
|
|
23
|
-
var padding = "";
|
|
24
|
-
var strWidth = stringWidth(trimmed);
|
|
25
|
-
if (strWidth < width) padding = createPadding(width - strWidth);
|
|
26
|
-
return trimmed + padding;
|
|
27
|
-
}
|
|
28
|
-
function alignRight(str, width) {
|
|
29
|
-
var trimmed = str.trimLeft();
|
|
30
|
-
if (trimmed.length === 0 && str.length >= width) return str;
|
|
31
|
-
var padding = "";
|
|
32
|
-
var strWidth = stringWidth(trimmed);
|
|
33
|
-
if (strWidth < width) padding = createPadding(width - strWidth);
|
|
34
|
-
return padding + trimmed;
|
|
35
|
-
}
|
|
36
|
-
function alignCenter(str, width) {
|
|
37
|
-
var trimmed = str.trim();
|
|
38
|
-
if (trimmed.length === 0 && str.length >= width) return str;
|
|
39
|
-
var padLeft = "";
|
|
40
|
-
var padRight = "";
|
|
41
|
-
var strWidth = stringWidth(trimmed);
|
|
42
|
-
if (strWidth < width) {
|
|
43
|
-
var padLeftBy = parseInt((width - strWidth) / 2, 10);
|
|
44
|
-
padLeft = createPadding(padLeftBy);
|
|
45
|
-
padRight = createPadding(width - (strWidth + padLeftBy));
|
|
46
|
-
}
|
|
47
|
-
return padLeft + trimmed + padRight;
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
50
|
-
//#endregion
|
|
51
|
-
export default require_align();
|
|
52
|
-
export { require_align };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
3
|
-
var require_wrappy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = wrappy;
|
|
5
|
-
function wrappy(fn, cb) {
|
|
6
|
-
if (fn && cb) return wrappy(fn)(cb);
|
|
7
|
-
if (typeof fn !== "function") throw new TypeError("need wrapper function");
|
|
8
|
-
Object.keys(fn).forEach(function(k) {
|
|
9
|
-
wrapper[k] = fn[k];
|
|
10
|
-
});
|
|
11
|
-
return wrapper;
|
|
12
|
-
function wrapper() {
|
|
13
|
-
var args = new Array(arguments.length);
|
|
14
|
-
for (var i = 0; i < args.length; i++) args[i] = arguments[i];
|
|
15
|
-
var ret = fn.apply(this, args);
|
|
16
|
-
var cb = args[args.length - 1];
|
|
17
|
-
if (typeof ret === "function" && ret !== cb) Object.keys(cb).forEach(function(k) {
|
|
18
|
-
ret[k] = cb[k];
|
|
19
|
-
});
|
|
20
|
-
return ret;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
24
|
-
//#endregion
|
|
25
|
-
export default require_wrappy();
|
|
26
|
-
export { require_wrappy };
|