@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,451 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_inherits_browser } from "../../../inherits@2.0.4/node_modules/inherits/inherits_browser.js";
|
|
3
|
-
import { require_fs_realpath } from "../../../fs.realpath@1.0.0/node_modules/fs.realpath/index.js";
|
|
4
|
-
import { require_minimatch } from "../../../minimatch@3.1.5/node_modules/minimatch/minimatch.js";
|
|
5
|
-
import { require_path_is_absolute } from "../../../path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js";
|
|
6
|
-
import { require_common } from "./common.js";
|
|
7
|
-
import { require_sync } from "./sync.js";
|
|
8
|
-
import { require_once } from "../../../once@1.4.0/node_modules/once/once.js";
|
|
9
|
-
import { require_inflight } from "../../../inflight@1.0.6/node_modules/inflight/inflight.js";
|
|
10
|
-
//#region node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js
|
|
11
|
-
var require_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12
|
-
module.exports = glob;
|
|
13
|
-
var rp = require_fs_realpath();
|
|
14
|
-
var minimatch = require_minimatch();
|
|
15
|
-
minimatch.Minimatch;
|
|
16
|
-
var inherits = require_inherits_browser();
|
|
17
|
-
var EE = __require("events").EventEmitter;
|
|
18
|
-
var path = __require("path");
|
|
19
|
-
var assert = __require("assert");
|
|
20
|
-
var isAbsolute = require_path_is_absolute();
|
|
21
|
-
var globSync = require_sync();
|
|
22
|
-
var common = require_common();
|
|
23
|
-
var setopts = common.setopts;
|
|
24
|
-
var ownProp = common.ownProp;
|
|
25
|
-
var inflight = require_inflight();
|
|
26
|
-
__require("util");
|
|
27
|
-
var childrenIgnored = common.childrenIgnored;
|
|
28
|
-
var isIgnored = common.isIgnored;
|
|
29
|
-
var once = require_once();
|
|
30
|
-
function glob(pattern, options, cb) {
|
|
31
|
-
if (typeof options === "function") cb = options, options = {};
|
|
32
|
-
if (!options) options = {};
|
|
33
|
-
if (options.sync) {
|
|
34
|
-
if (cb) throw new TypeError("callback provided to sync glob");
|
|
35
|
-
return globSync(pattern, options);
|
|
36
|
-
}
|
|
37
|
-
return new Glob(pattern, options, cb);
|
|
38
|
-
}
|
|
39
|
-
glob.sync = globSync;
|
|
40
|
-
var GlobSync = glob.GlobSync = globSync.GlobSync;
|
|
41
|
-
glob.glob = glob;
|
|
42
|
-
function extend(origin, add) {
|
|
43
|
-
if (add === null || typeof add !== "object") return origin;
|
|
44
|
-
var keys = Object.keys(add);
|
|
45
|
-
var i = keys.length;
|
|
46
|
-
while (i--) origin[keys[i]] = add[keys[i]];
|
|
47
|
-
return origin;
|
|
48
|
-
}
|
|
49
|
-
glob.hasMagic = function(pattern, options_) {
|
|
50
|
-
var options = extend({}, options_);
|
|
51
|
-
options.noprocess = true;
|
|
52
|
-
var set = new Glob(pattern, options).minimatch.set;
|
|
53
|
-
if (!pattern) return false;
|
|
54
|
-
if (set.length > 1) return true;
|
|
55
|
-
for (var j = 0; j < set[0].length; j++) if (typeof set[0][j] !== "string") return true;
|
|
56
|
-
return false;
|
|
57
|
-
};
|
|
58
|
-
glob.Glob = Glob;
|
|
59
|
-
inherits(Glob, EE);
|
|
60
|
-
function Glob(pattern, options, cb) {
|
|
61
|
-
if (typeof options === "function") {
|
|
62
|
-
cb = options;
|
|
63
|
-
options = null;
|
|
64
|
-
}
|
|
65
|
-
if (options && options.sync) {
|
|
66
|
-
if (cb) throw new TypeError("callback provided to sync glob");
|
|
67
|
-
return new GlobSync(pattern, options);
|
|
68
|
-
}
|
|
69
|
-
if (!(this instanceof Glob)) return new Glob(pattern, options, cb);
|
|
70
|
-
setopts(this, pattern, options);
|
|
71
|
-
this._didRealPath = false;
|
|
72
|
-
var n = this.minimatch.set.length;
|
|
73
|
-
this.matches = new Array(n);
|
|
74
|
-
if (typeof cb === "function") {
|
|
75
|
-
cb = once(cb);
|
|
76
|
-
this.on("error", cb);
|
|
77
|
-
this.on("end", function(matches) {
|
|
78
|
-
cb(null, matches);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
var self = this;
|
|
82
|
-
this._processing = 0;
|
|
83
|
-
this._emitQueue = [];
|
|
84
|
-
this._processQueue = [];
|
|
85
|
-
this.paused = false;
|
|
86
|
-
if (this.noprocess) return this;
|
|
87
|
-
if (n === 0) return done();
|
|
88
|
-
var sync = true;
|
|
89
|
-
for (var i = 0; i < n; i++) this._process(this.minimatch.set[i], i, false, done);
|
|
90
|
-
sync = false;
|
|
91
|
-
function done() {
|
|
92
|
-
--self._processing;
|
|
93
|
-
if (self._processing <= 0) if (sync) process.nextTick(function() {
|
|
94
|
-
self._finish();
|
|
95
|
-
});
|
|
96
|
-
else self._finish();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
Glob.prototype._finish = function() {
|
|
100
|
-
assert(this instanceof Glob);
|
|
101
|
-
if (this.aborted) return;
|
|
102
|
-
if (this.realpath && !this._didRealpath) return this._realpath();
|
|
103
|
-
common.finish(this);
|
|
104
|
-
this.emit("end", this.found);
|
|
105
|
-
};
|
|
106
|
-
Glob.prototype._realpath = function() {
|
|
107
|
-
if (this._didRealpath) return;
|
|
108
|
-
this._didRealpath = true;
|
|
109
|
-
var n = this.matches.length;
|
|
110
|
-
if (n === 0) return this._finish();
|
|
111
|
-
var self = this;
|
|
112
|
-
for (var i = 0; i < this.matches.length; i++) this._realpathSet(i, next);
|
|
113
|
-
function next() {
|
|
114
|
-
if (--n === 0) self._finish();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
Glob.prototype._realpathSet = function(index, cb) {
|
|
118
|
-
var matchset = this.matches[index];
|
|
119
|
-
if (!matchset) return cb();
|
|
120
|
-
var found = Object.keys(matchset);
|
|
121
|
-
var self = this;
|
|
122
|
-
var n = found.length;
|
|
123
|
-
if (n === 0) return cb();
|
|
124
|
-
var set = this.matches[index] = Object.create(null);
|
|
125
|
-
found.forEach(function(p, i) {
|
|
126
|
-
p = self._makeAbs(p);
|
|
127
|
-
rp.realpath(p, self.realpathCache, function(er, real) {
|
|
128
|
-
if (!er) set[real] = true;
|
|
129
|
-
else if (er.syscall === "stat") set[p] = true;
|
|
130
|
-
else self.emit("error", er);
|
|
131
|
-
if (--n === 0) {
|
|
132
|
-
self.matches[index] = set;
|
|
133
|
-
cb();
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
Glob.prototype._mark = function(p) {
|
|
139
|
-
return common.mark(this, p);
|
|
140
|
-
};
|
|
141
|
-
Glob.prototype._makeAbs = function(f) {
|
|
142
|
-
return common.makeAbs(this, f);
|
|
143
|
-
};
|
|
144
|
-
Glob.prototype.abort = function() {
|
|
145
|
-
this.aborted = true;
|
|
146
|
-
this.emit("abort");
|
|
147
|
-
};
|
|
148
|
-
Glob.prototype.pause = function() {
|
|
149
|
-
if (!this.paused) {
|
|
150
|
-
this.paused = true;
|
|
151
|
-
this.emit("pause");
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
Glob.prototype.resume = function() {
|
|
155
|
-
if (this.paused) {
|
|
156
|
-
this.emit("resume");
|
|
157
|
-
this.paused = false;
|
|
158
|
-
if (this._emitQueue.length) {
|
|
159
|
-
var eq = this._emitQueue.slice(0);
|
|
160
|
-
this._emitQueue.length = 0;
|
|
161
|
-
for (var i = 0; i < eq.length; i++) {
|
|
162
|
-
var e = eq[i];
|
|
163
|
-
this._emitMatch(e[0], e[1]);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (this._processQueue.length) {
|
|
167
|
-
var pq = this._processQueue.slice(0);
|
|
168
|
-
this._processQueue.length = 0;
|
|
169
|
-
for (var i = 0; i < pq.length; i++) {
|
|
170
|
-
var p = pq[i];
|
|
171
|
-
this._processing--;
|
|
172
|
-
this._process(p[0], p[1], p[2], p[3]);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
Glob.prototype._process = function(pattern, index, inGlobStar, cb) {
|
|
178
|
-
assert(this instanceof Glob);
|
|
179
|
-
assert(typeof cb === "function");
|
|
180
|
-
if (this.aborted) return;
|
|
181
|
-
this._processing++;
|
|
182
|
-
if (this.paused) {
|
|
183
|
-
this._processQueue.push([
|
|
184
|
-
pattern,
|
|
185
|
-
index,
|
|
186
|
-
inGlobStar,
|
|
187
|
-
cb
|
|
188
|
-
]);
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
var n = 0;
|
|
192
|
-
while (typeof pattern[n] === "string") n++;
|
|
193
|
-
var prefix;
|
|
194
|
-
switch (n) {
|
|
195
|
-
case pattern.length:
|
|
196
|
-
this._processSimple(pattern.join("/"), index, cb);
|
|
197
|
-
return;
|
|
198
|
-
case 0:
|
|
199
|
-
prefix = null;
|
|
200
|
-
break;
|
|
201
|
-
default:
|
|
202
|
-
prefix = pattern.slice(0, n).join("/");
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
var remain = pattern.slice(n);
|
|
206
|
-
var read;
|
|
207
|
-
if (prefix === null) read = ".";
|
|
208
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
|
|
209
|
-
return typeof p === "string" ? p : "[*]";
|
|
210
|
-
}).join("/"))) {
|
|
211
|
-
if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix;
|
|
212
|
-
read = prefix;
|
|
213
|
-
} else read = prefix;
|
|
214
|
-
var abs = this._makeAbs(read);
|
|
215
|
-
if (childrenIgnored(this, read)) return cb();
|
|
216
|
-
if (remain[0] === minimatch.GLOBSTAR) this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb);
|
|
217
|
-
else this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb);
|
|
218
|
-
};
|
|
219
|
-
Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
220
|
-
var self = this;
|
|
221
|
-
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
222
|
-
return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
|
|
223
|
-
});
|
|
224
|
-
};
|
|
225
|
-
Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
226
|
-
if (!entries) return cb();
|
|
227
|
-
var pn = remain[0];
|
|
228
|
-
var negate = !!this.minimatch.negate;
|
|
229
|
-
var rawGlob = pn._glob;
|
|
230
|
-
var dotOk = this.dot || rawGlob.charAt(0) === ".";
|
|
231
|
-
var matchedEntries = [];
|
|
232
|
-
for (var i = 0; i < entries.length; i++) {
|
|
233
|
-
var e = entries[i];
|
|
234
|
-
if (e.charAt(0) !== "." || dotOk) {
|
|
235
|
-
var m;
|
|
236
|
-
if (negate && !prefix) m = !e.match(pn);
|
|
237
|
-
else m = e.match(pn);
|
|
238
|
-
if (m) matchedEntries.push(e);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
var len = matchedEntries.length;
|
|
242
|
-
if (len === 0) return cb();
|
|
243
|
-
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
244
|
-
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
245
|
-
for (var i = 0; i < len; i++) {
|
|
246
|
-
var e = matchedEntries[i];
|
|
247
|
-
if (prefix) if (prefix !== "/") e = prefix + "/" + e;
|
|
248
|
-
else e = prefix + e;
|
|
249
|
-
if (e.charAt(0) === "/" && !this.nomount) e = path.join(this.root, e);
|
|
250
|
-
this._emitMatch(index, e);
|
|
251
|
-
}
|
|
252
|
-
return cb();
|
|
253
|
-
}
|
|
254
|
-
remain.shift();
|
|
255
|
-
for (var i = 0; i < len; i++) {
|
|
256
|
-
var e = matchedEntries[i];
|
|
257
|
-
if (prefix) if (prefix !== "/") e = prefix + "/" + e;
|
|
258
|
-
else e = prefix + e;
|
|
259
|
-
this._process([e].concat(remain), index, inGlobStar, cb);
|
|
260
|
-
}
|
|
261
|
-
cb();
|
|
262
|
-
};
|
|
263
|
-
Glob.prototype._emitMatch = function(index, e) {
|
|
264
|
-
if (this.aborted) return;
|
|
265
|
-
if (isIgnored(this, e)) return;
|
|
266
|
-
if (this.paused) {
|
|
267
|
-
this._emitQueue.push([index, e]);
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
var abs = isAbsolute(e) ? e : this._makeAbs(e);
|
|
271
|
-
if (this.mark) e = this._mark(e);
|
|
272
|
-
if (this.absolute) e = abs;
|
|
273
|
-
if (this.matches[index][e]) return;
|
|
274
|
-
if (this.nodir) {
|
|
275
|
-
var c = this.cache[abs];
|
|
276
|
-
if (c === "DIR" || Array.isArray(c)) return;
|
|
277
|
-
}
|
|
278
|
-
this.matches[index][e] = true;
|
|
279
|
-
var st = this.statCache[abs];
|
|
280
|
-
if (st) this.emit("stat", e, st);
|
|
281
|
-
this.emit("match", e);
|
|
282
|
-
};
|
|
283
|
-
Glob.prototype._readdirInGlobStar = function(abs, cb) {
|
|
284
|
-
if (this.aborted) return;
|
|
285
|
-
if (this.follow) return this._readdir(abs, false, cb);
|
|
286
|
-
var lstatkey = "lstat\0" + abs;
|
|
287
|
-
var self = this;
|
|
288
|
-
var lstatcb = inflight(lstatkey, lstatcb_);
|
|
289
|
-
if (lstatcb) self.fs.lstat(abs, lstatcb);
|
|
290
|
-
function lstatcb_(er, lstat) {
|
|
291
|
-
if (er && er.code === "ENOENT") return cb();
|
|
292
|
-
var isSym = lstat && lstat.isSymbolicLink();
|
|
293
|
-
self.symlinks[abs] = isSym;
|
|
294
|
-
if (!isSym && lstat && !lstat.isDirectory()) {
|
|
295
|
-
self.cache[abs] = "FILE";
|
|
296
|
-
cb();
|
|
297
|
-
} else self._readdir(abs, false, cb);
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
Glob.prototype._readdir = function(abs, inGlobStar, cb) {
|
|
301
|
-
if (this.aborted) return;
|
|
302
|
-
cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb);
|
|
303
|
-
if (!cb) return;
|
|
304
|
-
if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs, cb);
|
|
305
|
-
if (ownProp(this.cache, abs)) {
|
|
306
|
-
var c = this.cache[abs];
|
|
307
|
-
if (!c || c === "FILE") return cb();
|
|
308
|
-
if (Array.isArray(c)) return cb(null, c);
|
|
309
|
-
}
|
|
310
|
-
this.fs.readdir(abs, readdirCb(this, abs, cb));
|
|
311
|
-
};
|
|
312
|
-
function readdirCb(self, abs, cb) {
|
|
313
|
-
return function(er, entries) {
|
|
314
|
-
if (er) self._readdirError(abs, er, cb);
|
|
315
|
-
else self._readdirEntries(abs, entries, cb);
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
Glob.prototype._readdirEntries = function(abs, entries, cb) {
|
|
319
|
-
if (this.aborted) return;
|
|
320
|
-
if (!this.mark && !this.stat) for (var i = 0; i < entries.length; i++) {
|
|
321
|
-
var e = entries[i];
|
|
322
|
-
if (abs === "/") e = abs + e;
|
|
323
|
-
else e = abs + "/" + e;
|
|
324
|
-
this.cache[e] = true;
|
|
325
|
-
}
|
|
326
|
-
this.cache[abs] = entries;
|
|
327
|
-
return cb(null, entries);
|
|
328
|
-
};
|
|
329
|
-
Glob.prototype._readdirError = function(f, er, cb) {
|
|
330
|
-
if (this.aborted) return;
|
|
331
|
-
switch (er.code) {
|
|
332
|
-
case "ENOTSUP":
|
|
333
|
-
case "ENOTDIR":
|
|
334
|
-
var abs = this._makeAbs(f);
|
|
335
|
-
this.cache[abs] = "FILE";
|
|
336
|
-
if (abs === this.cwdAbs) {
|
|
337
|
-
var error = /* @__PURE__ */ new Error(er.code + " invalid cwd " + this.cwd);
|
|
338
|
-
error.path = this.cwd;
|
|
339
|
-
error.code = er.code;
|
|
340
|
-
this.emit("error", error);
|
|
341
|
-
this.abort();
|
|
342
|
-
}
|
|
343
|
-
break;
|
|
344
|
-
case "ENOENT":
|
|
345
|
-
case "ELOOP":
|
|
346
|
-
case "ENAMETOOLONG":
|
|
347
|
-
case "UNKNOWN":
|
|
348
|
-
this.cache[this._makeAbs(f)] = false;
|
|
349
|
-
break;
|
|
350
|
-
default:
|
|
351
|
-
this.cache[this._makeAbs(f)] = false;
|
|
352
|
-
if (this.strict) {
|
|
353
|
-
this.emit("error", er);
|
|
354
|
-
this.abort();
|
|
355
|
-
}
|
|
356
|
-
if (!this.silent) console.error("glob error", er);
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
return cb();
|
|
360
|
-
};
|
|
361
|
-
Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
362
|
-
var self = this;
|
|
363
|
-
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
364
|
-
self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
368
|
-
if (!entries) return cb();
|
|
369
|
-
var remainWithoutGlobStar = remain.slice(1);
|
|
370
|
-
var gspref = prefix ? [prefix] : [];
|
|
371
|
-
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
|
372
|
-
this._process(noGlobStar, index, false, cb);
|
|
373
|
-
var isSym = this.symlinks[abs];
|
|
374
|
-
var len = entries.length;
|
|
375
|
-
if (isSym && inGlobStar) return cb();
|
|
376
|
-
for (var i = 0; i < len; i++) {
|
|
377
|
-
if (entries[i].charAt(0) === "." && !this.dot) continue;
|
|
378
|
-
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
|
|
379
|
-
this._process(instead, index, true, cb);
|
|
380
|
-
var below = gspref.concat(entries[i], remain);
|
|
381
|
-
this._process(below, index, true, cb);
|
|
382
|
-
}
|
|
383
|
-
cb();
|
|
384
|
-
};
|
|
385
|
-
Glob.prototype._processSimple = function(prefix, index, cb) {
|
|
386
|
-
var self = this;
|
|
387
|
-
this._stat(prefix, function(er, exists) {
|
|
388
|
-
self._processSimple2(prefix, index, er, exists, cb);
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
|
-
Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
|
|
392
|
-
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
393
|
-
if (!exists) return cb();
|
|
394
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
395
|
-
var trail = /[\/\\]$/.test(prefix);
|
|
396
|
-
if (prefix.charAt(0) === "/") prefix = path.join(this.root, prefix);
|
|
397
|
-
else {
|
|
398
|
-
prefix = path.resolve(this.root, prefix);
|
|
399
|
-
if (trail) prefix += "/";
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
if (process.platform === "win32") prefix = prefix.replace(/\\/g, "/");
|
|
403
|
-
this._emitMatch(index, prefix);
|
|
404
|
-
cb();
|
|
405
|
-
};
|
|
406
|
-
Glob.prototype._stat = function(f, cb) {
|
|
407
|
-
var abs = this._makeAbs(f);
|
|
408
|
-
var needDir = f.slice(-1) === "/";
|
|
409
|
-
if (f.length > this.maxLength) return cb();
|
|
410
|
-
if (!this.stat && ownProp(this.cache, abs)) {
|
|
411
|
-
var c = this.cache[abs];
|
|
412
|
-
if (Array.isArray(c)) c = "DIR";
|
|
413
|
-
if (!needDir || c === "DIR") return cb(null, c);
|
|
414
|
-
if (needDir && c === "FILE") return cb();
|
|
415
|
-
}
|
|
416
|
-
var stat = this.statCache[abs];
|
|
417
|
-
if (stat !== void 0) if (stat === false) return cb(null, stat);
|
|
418
|
-
else {
|
|
419
|
-
var type = stat.isDirectory() ? "DIR" : "FILE";
|
|
420
|
-
if (needDir && type === "FILE") return cb();
|
|
421
|
-
else return cb(null, type, stat);
|
|
422
|
-
}
|
|
423
|
-
var self = this;
|
|
424
|
-
var statcb = inflight("stat\0" + abs, lstatcb_);
|
|
425
|
-
if (statcb) self.fs.lstat(abs, statcb);
|
|
426
|
-
function lstatcb_(er, lstat) {
|
|
427
|
-
if (lstat && lstat.isSymbolicLink()) return self.fs.stat(abs, function(er, stat) {
|
|
428
|
-
if (er) self._stat2(f, abs, null, lstat, cb);
|
|
429
|
-
else self._stat2(f, abs, er, stat, cb);
|
|
430
|
-
});
|
|
431
|
-
else self._stat2(f, abs, er, lstat, cb);
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
Glob.prototype._stat2 = function(f, abs, er, stat, cb) {
|
|
435
|
-
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
436
|
-
this.statCache[abs] = false;
|
|
437
|
-
return cb();
|
|
438
|
-
}
|
|
439
|
-
var needDir = f.slice(-1) === "/";
|
|
440
|
-
this.statCache[abs] = stat;
|
|
441
|
-
if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) return cb(null, false, stat);
|
|
442
|
-
var c = true;
|
|
443
|
-
if (stat) c = stat.isDirectory() ? "DIR" : "FILE";
|
|
444
|
-
this.cache[abs] = this.cache[abs] || c;
|
|
445
|
-
if (needDir && c === "FILE") return cb();
|
|
446
|
-
return cb(null, c, stat);
|
|
447
|
-
};
|
|
448
|
-
}));
|
|
449
|
-
//#endregion
|
|
450
|
-
export default require_glob();
|
|
451
|
-
export { require_glob };
|