@ontos-ai/knowhere-claw 0.2.1 → 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/_virtual/_rolldown/runtime.js +1 -35
- package/dist/client.js +1 -1
- package/dist/graph-builder.js +8 -4
- package/dist/kg-service.js +25 -28
- package/dist/parser.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -1
- 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,666 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_stream_browser } from "./internal/streams/stream-browser.js";
|
|
3
|
-
import { require_buffer_list } from "./internal/streams/buffer_list.js";
|
|
4
|
-
import { require_destroy } from "./internal/streams/destroy.js";
|
|
5
|
-
import { require_errors_browser } from "../errors-browser.js";
|
|
6
|
-
import { require_state } from "./internal/streams/state.js";
|
|
7
|
-
import { require_inherits_browser } from "../../../../inherits@2.0.4/node_modules/inherits/inherits_browser.js";
|
|
8
|
-
import { require__stream_duplex } from "./_stream_duplex.js";
|
|
9
|
-
import { require_async_iterator } from "./internal/streams/async_iterator.js";
|
|
10
|
-
import { require_from_browser } from "./internal/streams/from-browser.js";
|
|
11
|
-
//#region node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js
|
|
12
|
-
var require__stream_readable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
|
-
module.exports = Readable;
|
|
14
|
-
var Duplex;
|
|
15
|
-
Readable.ReadableState = ReadableState;
|
|
16
|
-
__require("events").EventEmitter;
|
|
17
|
-
var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
18
|
-
return emitter.listeners(type).length;
|
|
19
|
-
};
|
|
20
|
-
var Stream = require_stream_browser();
|
|
21
|
-
var Buffer = __require("buffer").Buffer;
|
|
22
|
-
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
|
|
23
|
-
function _uint8ArrayToBuffer(chunk) {
|
|
24
|
-
return Buffer.from(chunk);
|
|
25
|
-
}
|
|
26
|
-
function _isUint8Array(obj) {
|
|
27
|
-
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
28
|
-
}
|
|
29
|
-
var debugUtil = __require("util");
|
|
30
|
-
var debug;
|
|
31
|
-
if (debugUtil && debugUtil.debuglog) debug = debugUtil.debuglog("stream");
|
|
32
|
-
else debug = function debug() {};
|
|
33
|
-
var BufferList = require_buffer_list();
|
|
34
|
-
var destroyImpl = require_destroy();
|
|
35
|
-
var getHighWaterMark = require_state().getHighWaterMark;
|
|
36
|
-
var _require$codes = require_errors_browser().codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
37
|
-
var StringDecoder;
|
|
38
|
-
var createReadableStreamAsyncIterator;
|
|
39
|
-
var from;
|
|
40
|
-
require_inherits_browser()(Readable, Stream);
|
|
41
|
-
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
42
|
-
var kProxyEvents = [
|
|
43
|
-
"error",
|
|
44
|
-
"close",
|
|
45
|
-
"destroy",
|
|
46
|
-
"pause",
|
|
47
|
-
"resume"
|
|
48
|
-
];
|
|
49
|
-
function prependListener(emitter, event, fn) {
|
|
50
|
-
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
|
|
51
|
-
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
|
|
52
|
-
else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
53
|
-
else emitter._events[event] = [fn, emitter._events[event]];
|
|
54
|
-
}
|
|
55
|
-
function ReadableState(options, stream, isDuplex) {
|
|
56
|
-
Duplex = Duplex || require__stream_duplex();
|
|
57
|
-
options = options || {};
|
|
58
|
-
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex;
|
|
59
|
-
this.objectMode = !!options.objectMode;
|
|
60
|
-
if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
|
|
61
|
-
this.highWaterMark = getHighWaterMark(this, options, "readableHighWaterMark", isDuplex);
|
|
62
|
-
this.buffer = new BufferList();
|
|
63
|
-
this.length = 0;
|
|
64
|
-
this.pipes = null;
|
|
65
|
-
this.pipesCount = 0;
|
|
66
|
-
this.flowing = null;
|
|
67
|
-
this.ended = false;
|
|
68
|
-
this.endEmitted = false;
|
|
69
|
-
this.reading = false;
|
|
70
|
-
this.sync = true;
|
|
71
|
-
this.needReadable = false;
|
|
72
|
-
this.emittedReadable = false;
|
|
73
|
-
this.readableListening = false;
|
|
74
|
-
this.resumeScheduled = false;
|
|
75
|
-
this.paused = true;
|
|
76
|
-
this.emitClose = options.emitClose !== false;
|
|
77
|
-
this.autoDestroy = !!options.autoDestroy;
|
|
78
|
-
this.destroyed = false;
|
|
79
|
-
this.defaultEncoding = options.defaultEncoding || "utf8";
|
|
80
|
-
this.awaitDrain = 0;
|
|
81
|
-
this.readingMore = false;
|
|
82
|
-
this.decoder = null;
|
|
83
|
-
this.encoding = null;
|
|
84
|
-
if (options.encoding) {
|
|
85
|
-
if (!StringDecoder) StringDecoder = __require("string_decoder/").StringDecoder;
|
|
86
|
-
this.decoder = new StringDecoder(options.encoding);
|
|
87
|
-
this.encoding = options.encoding;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function Readable(options) {
|
|
91
|
-
Duplex = Duplex || require__stream_duplex();
|
|
92
|
-
if (!(this instanceof Readable)) return new Readable(options);
|
|
93
|
-
var isDuplex = this instanceof Duplex;
|
|
94
|
-
this._readableState = new ReadableState(options, this, isDuplex);
|
|
95
|
-
this.readable = true;
|
|
96
|
-
if (options) {
|
|
97
|
-
if (typeof options.read === "function") this._read = options.read;
|
|
98
|
-
if (typeof options.destroy === "function") this._destroy = options.destroy;
|
|
99
|
-
}
|
|
100
|
-
Stream.call(this);
|
|
101
|
-
}
|
|
102
|
-
Object.defineProperty(Readable.prototype, "destroyed", {
|
|
103
|
-
enumerable: false,
|
|
104
|
-
get: function get() {
|
|
105
|
-
if (this._readableState === void 0) return false;
|
|
106
|
-
return this._readableState.destroyed;
|
|
107
|
-
},
|
|
108
|
-
set: function set(value) {
|
|
109
|
-
if (!this._readableState) return;
|
|
110
|
-
this._readableState.destroyed = value;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
Readable.prototype.destroy = destroyImpl.destroy;
|
|
114
|
-
Readable.prototype._undestroy = destroyImpl.undestroy;
|
|
115
|
-
Readable.prototype._destroy = function(err, cb) {
|
|
116
|
-
cb(err);
|
|
117
|
-
};
|
|
118
|
-
Readable.prototype.push = function(chunk, encoding) {
|
|
119
|
-
var state = this._readableState;
|
|
120
|
-
var skipChunkCheck;
|
|
121
|
-
if (!state.objectMode) {
|
|
122
|
-
if (typeof chunk === "string") {
|
|
123
|
-
encoding = encoding || state.defaultEncoding;
|
|
124
|
-
if (encoding !== state.encoding) {
|
|
125
|
-
chunk = Buffer.from(chunk, encoding);
|
|
126
|
-
encoding = "";
|
|
127
|
-
}
|
|
128
|
-
skipChunkCheck = true;
|
|
129
|
-
}
|
|
130
|
-
} else skipChunkCheck = true;
|
|
131
|
-
return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
|
|
132
|
-
};
|
|
133
|
-
Readable.prototype.unshift = function(chunk) {
|
|
134
|
-
return readableAddChunk(this, chunk, null, true, false);
|
|
135
|
-
};
|
|
136
|
-
function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
|
137
|
-
debug("readableAddChunk", chunk);
|
|
138
|
-
var state = stream._readableState;
|
|
139
|
-
if (chunk === null) {
|
|
140
|
-
state.reading = false;
|
|
141
|
-
onEofChunk(stream, state);
|
|
142
|
-
} else {
|
|
143
|
-
var er;
|
|
144
|
-
if (!skipChunkCheck) er = chunkInvalid(state, chunk);
|
|
145
|
-
if (er) errorOrDestroy(stream, er);
|
|
146
|
-
else if (state.objectMode || chunk && chunk.length > 0) {
|
|
147
|
-
if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) chunk = _uint8ArrayToBuffer(chunk);
|
|
148
|
-
if (addToFront) if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
|
|
149
|
-
else addChunk(stream, state, chunk, true);
|
|
150
|
-
else if (state.ended) errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());
|
|
151
|
-
else if (state.destroyed) return false;
|
|
152
|
-
else {
|
|
153
|
-
state.reading = false;
|
|
154
|
-
if (state.decoder && !encoding) {
|
|
155
|
-
chunk = state.decoder.write(chunk);
|
|
156
|
-
if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);
|
|
157
|
-
else maybeReadMore(stream, state);
|
|
158
|
-
} else addChunk(stream, state, chunk, false);
|
|
159
|
-
}
|
|
160
|
-
} else if (!addToFront) {
|
|
161
|
-
state.reading = false;
|
|
162
|
-
maybeReadMore(stream, state);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return !state.ended && (state.length < state.highWaterMark || state.length === 0);
|
|
166
|
-
}
|
|
167
|
-
function addChunk(stream, state, chunk, addToFront) {
|
|
168
|
-
if (state.flowing && state.length === 0 && !state.sync) {
|
|
169
|
-
state.awaitDrain = 0;
|
|
170
|
-
stream.emit("data", chunk);
|
|
171
|
-
} else {
|
|
172
|
-
state.length += state.objectMode ? 1 : chunk.length;
|
|
173
|
-
if (addToFront) state.buffer.unshift(chunk);
|
|
174
|
-
else state.buffer.push(chunk);
|
|
175
|
-
if (state.needReadable) emitReadable(stream);
|
|
176
|
-
}
|
|
177
|
-
maybeReadMore(stream, state);
|
|
178
|
-
}
|
|
179
|
-
function chunkInvalid(state, chunk) {
|
|
180
|
-
var er;
|
|
181
|
-
if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) er = new ERR_INVALID_ARG_TYPE("chunk", [
|
|
182
|
-
"string",
|
|
183
|
-
"Buffer",
|
|
184
|
-
"Uint8Array"
|
|
185
|
-
], chunk);
|
|
186
|
-
return er;
|
|
187
|
-
}
|
|
188
|
-
Readable.prototype.isPaused = function() {
|
|
189
|
-
return this._readableState.flowing === false;
|
|
190
|
-
};
|
|
191
|
-
Readable.prototype.setEncoding = function(enc) {
|
|
192
|
-
if (!StringDecoder) StringDecoder = __require("string_decoder/").StringDecoder;
|
|
193
|
-
var decoder = new StringDecoder(enc);
|
|
194
|
-
this._readableState.decoder = decoder;
|
|
195
|
-
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
196
|
-
var p = this._readableState.buffer.head;
|
|
197
|
-
var content = "";
|
|
198
|
-
while (p !== null) {
|
|
199
|
-
content += decoder.write(p.data);
|
|
200
|
-
p = p.next;
|
|
201
|
-
}
|
|
202
|
-
this._readableState.buffer.clear();
|
|
203
|
-
if (content !== "") this._readableState.buffer.push(content);
|
|
204
|
-
this._readableState.length = content.length;
|
|
205
|
-
return this;
|
|
206
|
-
};
|
|
207
|
-
var MAX_HWM = 1073741824;
|
|
208
|
-
function computeNewHighWaterMark(n) {
|
|
209
|
-
if (n >= MAX_HWM) n = MAX_HWM;
|
|
210
|
-
else {
|
|
211
|
-
n--;
|
|
212
|
-
n |= n >>> 1;
|
|
213
|
-
n |= n >>> 2;
|
|
214
|
-
n |= n >>> 4;
|
|
215
|
-
n |= n >>> 8;
|
|
216
|
-
n |= n >>> 16;
|
|
217
|
-
n++;
|
|
218
|
-
}
|
|
219
|
-
return n;
|
|
220
|
-
}
|
|
221
|
-
function howMuchToRead(n, state) {
|
|
222
|
-
if (n <= 0 || state.length === 0 && state.ended) return 0;
|
|
223
|
-
if (state.objectMode) return 1;
|
|
224
|
-
if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
|
|
225
|
-
else return state.length;
|
|
226
|
-
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
|
227
|
-
if (n <= state.length) return n;
|
|
228
|
-
if (!state.ended) {
|
|
229
|
-
state.needReadable = true;
|
|
230
|
-
return 0;
|
|
231
|
-
}
|
|
232
|
-
return state.length;
|
|
233
|
-
}
|
|
234
|
-
Readable.prototype.read = function(n) {
|
|
235
|
-
debug("read", n);
|
|
236
|
-
n = parseInt(n, 10);
|
|
237
|
-
var state = this._readableState;
|
|
238
|
-
var nOrig = n;
|
|
239
|
-
if (n !== 0) state.emittedReadable = false;
|
|
240
|
-
if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
|
|
241
|
-
debug("read: emitReadable", state.length, state.ended);
|
|
242
|
-
if (state.length === 0 && state.ended) endReadable(this);
|
|
243
|
-
else emitReadable(this);
|
|
244
|
-
return null;
|
|
245
|
-
}
|
|
246
|
-
n = howMuchToRead(n, state);
|
|
247
|
-
if (n === 0 && state.ended) {
|
|
248
|
-
if (state.length === 0) endReadable(this);
|
|
249
|
-
return null;
|
|
250
|
-
}
|
|
251
|
-
var doRead = state.needReadable;
|
|
252
|
-
debug("need readable", doRead);
|
|
253
|
-
if (state.length === 0 || state.length - n < state.highWaterMark) {
|
|
254
|
-
doRead = true;
|
|
255
|
-
debug("length less than watermark", doRead);
|
|
256
|
-
}
|
|
257
|
-
if (state.ended || state.reading) {
|
|
258
|
-
doRead = false;
|
|
259
|
-
debug("reading or ended", doRead);
|
|
260
|
-
} else if (doRead) {
|
|
261
|
-
debug("do read");
|
|
262
|
-
state.reading = true;
|
|
263
|
-
state.sync = true;
|
|
264
|
-
if (state.length === 0) state.needReadable = true;
|
|
265
|
-
this._read(state.highWaterMark);
|
|
266
|
-
state.sync = false;
|
|
267
|
-
if (!state.reading) n = howMuchToRead(nOrig, state);
|
|
268
|
-
}
|
|
269
|
-
var ret;
|
|
270
|
-
if (n > 0) ret = fromList(n, state);
|
|
271
|
-
else ret = null;
|
|
272
|
-
if (ret === null) {
|
|
273
|
-
state.needReadable = state.length <= state.highWaterMark;
|
|
274
|
-
n = 0;
|
|
275
|
-
} else {
|
|
276
|
-
state.length -= n;
|
|
277
|
-
state.awaitDrain = 0;
|
|
278
|
-
}
|
|
279
|
-
if (state.length === 0) {
|
|
280
|
-
if (!state.ended) state.needReadable = true;
|
|
281
|
-
if (nOrig !== n && state.ended) endReadable(this);
|
|
282
|
-
}
|
|
283
|
-
if (ret !== null) this.emit("data", ret);
|
|
284
|
-
return ret;
|
|
285
|
-
};
|
|
286
|
-
function onEofChunk(stream, state) {
|
|
287
|
-
debug("onEofChunk");
|
|
288
|
-
if (state.ended) return;
|
|
289
|
-
if (state.decoder) {
|
|
290
|
-
var chunk = state.decoder.end();
|
|
291
|
-
if (chunk && chunk.length) {
|
|
292
|
-
state.buffer.push(chunk);
|
|
293
|
-
state.length += state.objectMode ? 1 : chunk.length;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
state.ended = true;
|
|
297
|
-
if (state.sync) emitReadable(stream);
|
|
298
|
-
else {
|
|
299
|
-
state.needReadable = false;
|
|
300
|
-
if (!state.emittedReadable) {
|
|
301
|
-
state.emittedReadable = true;
|
|
302
|
-
emitReadable_(stream);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function emitReadable(stream) {
|
|
307
|
-
var state = stream._readableState;
|
|
308
|
-
debug("emitReadable", state.needReadable, state.emittedReadable);
|
|
309
|
-
state.needReadable = false;
|
|
310
|
-
if (!state.emittedReadable) {
|
|
311
|
-
debug("emitReadable", state.flowing);
|
|
312
|
-
state.emittedReadable = true;
|
|
313
|
-
process.nextTick(emitReadable_, stream);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
function emitReadable_(stream) {
|
|
317
|
-
var state = stream._readableState;
|
|
318
|
-
debug("emitReadable_", state.destroyed, state.length, state.ended);
|
|
319
|
-
if (!state.destroyed && (state.length || state.ended)) {
|
|
320
|
-
stream.emit("readable");
|
|
321
|
-
state.emittedReadable = false;
|
|
322
|
-
}
|
|
323
|
-
state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
|
|
324
|
-
flow(stream);
|
|
325
|
-
}
|
|
326
|
-
function maybeReadMore(stream, state) {
|
|
327
|
-
if (!state.readingMore) {
|
|
328
|
-
state.readingMore = true;
|
|
329
|
-
process.nextTick(maybeReadMore_, stream, state);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function maybeReadMore_(stream, state) {
|
|
333
|
-
while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
|
|
334
|
-
var len = state.length;
|
|
335
|
-
debug("maybeReadMore read 0");
|
|
336
|
-
stream.read(0);
|
|
337
|
-
if (len === state.length) break;
|
|
338
|
-
}
|
|
339
|
-
state.readingMore = false;
|
|
340
|
-
}
|
|
341
|
-
Readable.prototype._read = function(n) {
|
|
342
|
-
errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED("_read()"));
|
|
343
|
-
};
|
|
344
|
-
Readable.prototype.pipe = function(dest, pipeOpts) {
|
|
345
|
-
var src = this;
|
|
346
|
-
var state = this._readableState;
|
|
347
|
-
switch (state.pipesCount) {
|
|
348
|
-
case 0:
|
|
349
|
-
state.pipes = dest;
|
|
350
|
-
break;
|
|
351
|
-
case 1:
|
|
352
|
-
state.pipes = [state.pipes, dest];
|
|
353
|
-
break;
|
|
354
|
-
default:
|
|
355
|
-
state.pipes.push(dest);
|
|
356
|
-
break;
|
|
357
|
-
}
|
|
358
|
-
state.pipesCount += 1;
|
|
359
|
-
debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts);
|
|
360
|
-
var endFn = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr ? onend : unpipe;
|
|
361
|
-
if (state.endEmitted) process.nextTick(endFn);
|
|
362
|
-
else src.once("end", endFn);
|
|
363
|
-
dest.on("unpipe", onunpipe);
|
|
364
|
-
function onunpipe(readable, unpipeInfo) {
|
|
365
|
-
debug("onunpipe");
|
|
366
|
-
if (readable === src) {
|
|
367
|
-
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
|
368
|
-
unpipeInfo.hasUnpiped = true;
|
|
369
|
-
cleanup();
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
function onend() {
|
|
374
|
-
debug("onend");
|
|
375
|
-
dest.end();
|
|
376
|
-
}
|
|
377
|
-
var ondrain = pipeOnDrain(src);
|
|
378
|
-
dest.on("drain", ondrain);
|
|
379
|
-
var cleanedUp = false;
|
|
380
|
-
function cleanup() {
|
|
381
|
-
debug("cleanup");
|
|
382
|
-
dest.removeListener("close", onclose);
|
|
383
|
-
dest.removeListener("finish", onfinish);
|
|
384
|
-
dest.removeListener("drain", ondrain);
|
|
385
|
-
dest.removeListener("error", onerror);
|
|
386
|
-
dest.removeListener("unpipe", onunpipe);
|
|
387
|
-
src.removeListener("end", onend);
|
|
388
|
-
src.removeListener("end", unpipe);
|
|
389
|
-
src.removeListener("data", ondata);
|
|
390
|
-
cleanedUp = true;
|
|
391
|
-
if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
|
|
392
|
-
}
|
|
393
|
-
src.on("data", ondata);
|
|
394
|
-
function ondata(chunk) {
|
|
395
|
-
debug("ondata");
|
|
396
|
-
var ret = dest.write(chunk);
|
|
397
|
-
debug("dest.write", ret);
|
|
398
|
-
if (ret === false) {
|
|
399
|
-
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
|
400
|
-
debug("false write response, pause", state.awaitDrain);
|
|
401
|
-
state.awaitDrain++;
|
|
402
|
-
}
|
|
403
|
-
src.pause();
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
function onerror(er) {
|
|
407
|
-
debug("onerror", er);
|
|
408
|
-
unpipe();
|
|
409
|
-
dest.removeListener("error", onerror);
|
|
410
|
-
if (EElistenerCount(dest, "error") === 0) errorOrDestroy(dest, er);
|
|
411
|
-
}
|
|
412
|
-
prependListener(dest, "error", onerror);
|
|
413
|
-
function onclose() {
|
|
414
|
-
dest.removeListener("finish", onfinish);
|
|
415
|
-
unpipe();
|
|
416
|
-
}
|
|
417
|
-
dest.once("close", onclose);
|
|
418
|
-
function onfinish() {
|
|
419
|
-
debug("onfinish");
|
|
420
|
-
dest.removeListener("close", onclose);
|
|
421
|
-
unpipe();
|
|
422
|
-
}
|
|
423
|
-
dest.once("finish", onfinish);
|
|
424
|
-
function unpipe() {
|
|
425
|
-
debug("unpipe");
|
|
426
|
-
src.unpipe(dest);
|
|
427
|
-
}
|
|
428
|
-
dest.emit("pipe", src);
|
|
429
|
-
if (!state.flowing) {
|
|
430
|
-
debug("pipe resume");
|
|
431
|
-
src.resume();
|
|
432
|
-
}
|
|
433
|
-
return dest;
|
|
434
|
-
};
|
|
435
|
-
function pipeOnDrain(src) {
|
|
436
|
-
return function pipeOnDrainFunctionResult() {
|
|
437
|
-
var state = src._readableState;
|
|
438
|
-
debug("pipeOnDrain", state.awaitDrain);
|
|
439
|
-
if (state.awaitDrain) state.awaitDrain--;
|
|
440
|
-
if (state.awaitDrain === 0 && EElistenerCount(src, "data")) {
|
|
441
|
-
state.flowing = true;
|
|
442
|
-
flow(src);
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
Readable.prototype.unpipe = function(dest) {
|
|
447
|
-
var state = this._readableState;
|
|
448
|
-
var unpipeInfo = { hasUnpiped: false };
|
|
449
|
-
if (state.pipesCount === 0) return this;
|
|
450
|
-
if (state.pipesCount === 1) {
|
|
451
|
-
if (dest && dest !== state.pipes) return this;
|
|
452
|
-
if (!dest) dest = state.pipes;
|
|
453
|
-
state.pipes = null;
|
|
454
|
-
state.pipesCount = 0;
|
|
455
|
-
state.flowing = false;
|
|
456
|
-
if (dest) dest.emit("unpipe", this, unpipeInfo);
|
|
457
|
-
return this;
|
|
458
|
-
}
|
|
459
|
-
if (!dest) {
|
|
460
|
-
var dests = state.pipes;
|
|
461
|
-
var len = state.pipesCount;
|
|
462
|
-
state.pipes = null;
|
|
463
|
-
state.pipesCount = 0;
|
|
464
|
-
state.flowing = false;
|
|
465
|
-
for (var i = 0; i < len; i++) dests[i].emit("unpipe", this, { hasUnpiped: false });
|
|
466
|
-
return this;
|
|
467
|
-
}
|
|
468
|
-
var index = indexOf(state.pipes, dest);
|
|
469
|
-
if (index === -1) return this;
|
|
470
|
-
state.pipes.splice(index, 1);
|
|
471
|
-
state.pipesCount -= 1;
|
|
472
|
-
if (state.pipesCount === 1) state.pipes = state.pipes[0];
|
|
473
|
-
dest.emit("unpipe", this, unpipeInfo);
|
|
474
|
-
return this;
|
|
475
|
-
};
|
|
476
|
-
Readable.prototype.on = function(ev, fn) {
|
|
477
|
-
var res = Stream.prototype.on.call(this, ev, fn);
|
|
478
|
-
var state = this._readableState;
|
|
479
|
-
if (ev === "data") {
|
|
480
|
-
state.readableListening = this.listenerCount("readable") > 0;
|
|
481
|
-
if (state.flowing !== false) this.resume();
|
|
482
|
-
} else if (ev === "readable") {
|
|
483
|
-
if (!state.endEmitted && !state.readableListening) {
|
|
484
|
-
state.readableListening = state.needReadable = true;
|
|
485
|
-
state.flowing = false;
|
|
486
|
-
state.emittedReadable = false;
|
|
487
|
-
debug("on readable", state.length, state.reading);
|
|
488
|
-
if (state.length) emitReadable(this);
|
|
489
|
-
else if (!state.reading) process.nextTick(nReadingNextTick, this);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
return res;
|
|
493
|
-
};
|
|
494
|
-
Readable.prototype.addListener = Readable.prototype.on;
|
|
495
|
-
Readable.prototype.removeListener = function(ev, fn) {
|
|
496
|
-
var res = Stream.prototype.removeListener.call(this, ev, fn);
|
|
497
|
-
if (ev === "readable") process.nextTick(updateReadableListening, this);
|
|
498
|
-
return res;
|
|
499
|
-
};
|
|
500
|
-
Readable.prototype.removeAllListeners = function(ev) {
|
|
501
|
-
var res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
|
502
|
-
if (ev === "readable" || ev === void 0) process.nextTick(updateReadableListening, this);
|
|
503
|
-
return res;
|
|
504
|
-
};
|
|
505
|
-
function updateReadableListening(self) {
|
|
506
|
-
var state = self._readableState;
|
|
507
|
-
state.readableListening = self.listenerCount("readable") > 0;
|
|
508
|
-
if (state.resumeScheduled && !state.paused) state.flowing = true;
|
|
509
|
-
else if (self.listenerCount("data") > 0) self.resume();
|
|
510
|
-
}
|
|
511
|
-
function nReadingNextTick(self) {
|
|
512
|
-
debug("readable nexttick read 0");
|
|
513
|
-
self.read(0);
|
|
514
|
-
}
|
|
515
|
-
Readable.prototype.resume = function() {
|
|
516
|
-
var state = this._readableState;
|
|
517
|
-
if (!state.flowing) {
|
|
518
|
-
debug("resume");
|
|
519
|
-
state.flowing = !state.readableListening;
|
|
520
|
-
resume(this, state);
|
|
521
|
-
}
|
|
522
|
-
state.paused = false;
|
|
523
|
-
return this;
|
|
524
|
-
};
|
|
525
|
-
function resume(stream, state) {
|
|
526
|
-
if (!state.resumeScheduled) {
|
|
527
|
-
state.resumeScheduled = true;
|
|
528
|
-
process.nextTick(resume_, stream, state);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
function resume_(stream, state) {
|
|
532
|
-
debug("resume", state.reading);
|
|
533
|
-
if (!state.reading) stream.read(0);
|
|
534
|
-
state.resumeScheduled = false;
|
|
535
|
-
stream.emit("resume");
|
|
536
|
-
flow(stream);
|
|
537
|
-
if (state.flowing && !state.reading) stream.read(0);
|
|
538
|
-
}
|
|
539
|
-
Readable.prototype.pause = function() {
|
|
540
|
-
debug("call pause flowing=%j", this._readableState.flowing);
|
|
541
|
-
if (this._readableState.flowing !== false) {
|
|
542
|
-
debug("pause");
|
|
543
|
-
this._readableState.flowing = false;
|
|
544
|
-
this.emit("pause");
|
|
545
|
-
}
|
|
546
|
-
this._readableState.paused = true;
|
|
547
|
-
return this;
|
|
548
|
-
};
|
|
549
|
-
function flow(stream) {
|
|
550
|
-
var state = stream._readableState;
|
|
551
|
-
debug("flow", state.flowing);
|
|
552
|
-
while (state.flowing && stream.read() !== null);
|
|
553
|
-
}
|
|
554
|
-
Readable.prototype.wrap = function(stream) {
|
|
555
|
-
var _this = this;
|
|
556
|
-
var state = this._readableState;
|
|
557
|
-
var paused = false;
|
|
558
|
-
stream.on("end", function() {
|
|
559
|
-
debug("wrapped end");
|
|
560
|
-
if (state.decoder && !state.ended) {
|
|
561
|
-
var chunk = state.decoder.end();
|
|
562
|
-
if (chunk && chunk.length) _this.push(chunk);
|
|
563
|
-
}
|
|
564
|
-
_this.push(null);
|
|
565
|
-
});
|
|
566
|
-
stream.on("data", function(chunk) {
|
|
567
|
-
debug("wrapped data");
|
|
568
|
-
if (state.decoder) chunk = state.decoder.write(chunk);
|
|
569
|
-
if (state.objectMode && (chunk === null || chunk === void 0)) return;
|
|
570
|
-
else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
|
571
|
-
if (!_this.push(chunk)) {
|
|
572
|
-
paused = true;
|
|
573
|
-
stream.pause();
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
for (var i in stream) if (this[i] === void 0 && typeof stream[i] === "function") this[i] = function methodWrap(method) {
|
|
577
|
-
return function methodWrapReturnFunction() {
|
|
578
|
-
return stream[method].apply(stream, arguments);
|
|
579
|
-
};
|
|
580
|
-
}(i);
|
|
581
|
-
for (var n = 0; n < kProxyEvents.length; n++) stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
|
582
|
-
this._read = function(n) {
|
|
583
|
-
debug("wrapped _read", n);
|
|
584
|
-
if (paused) {
|
|
585
|
-
paused = false;
|
|
586
|
-
stream.resume();
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
return this;
|
|
590
|
-
};
|
|
591
|
-
if (typeof Symbol === "function") Readable.prototype[Symbol.asyncIterator] = function() {
|
|
592
|
-
if (createReadableStreamAsyncIterator === void 0) createReadableStreamAsyncIterator = require_async_iterator();
|
|
593
|
-
return createReadableStreamAsyncIterator(this);
|
|
594
|
-
};
|
|
595
|
-
Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
|
|
596
|
-
enumerable: false,
|
|
597
|
-
get: function get() {
|
|
598
|
-
return this._readableState.highWaterMark;
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
Object.defineProperty(Readable.prototype, "readableBuffer", {
|
|
602
|
-
enumerable: false,
|
|
603
|
-
get: function get() {
|
|
604
|
-
return this._readableState && this._readableState.buffer;
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
Object.defineProperty(Readable.prototype, "readableFlowing", {
|
|
608
|
-
enumerable: false,
|
|
609
|
-
get: function get() {
|
|
610
|
-
return this._readableState.flowing;
|
|
611
|
-
},
|
|
612
|
-
set: function set(state) {
|
|
613
|
-
if (this._readableState) this._readableState.flowing = state;
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
Readable._fromList = fromList;
|
|
617
|
-
Object.defineProperty(Readable.prototype, "readableLength", {
|
|
618
|
-
enumerable: false,
|
|
619
|
-
get: function get() {
|
|
620
|
-
return this._readableState.length;
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
function fromList(n, state) {
|
|
624
|
-
if (state.length === 0) return null;
|
|
625
|
-
var ret;
|
|
626
|
-
if (state.objectMode) ret = state.buffer.shift();
|
|
627
|
-
else if (!n || n >= state.length) {
|
|
628
|
-
if (state.decoder) ret = state.buffer.join("");
|
|
629
|
-
else if (state.buffer.length === 1) ret = state.buffer.first();
|
|
630
|
-
else ret = state.buffer.concat(state.length);
|
|
631
|
-
state.buffer.clear();
|
|
632
|
-
} else ret = state.buffer.consume(n, state.decoder);
|
|
633
|
-
return ret;
|
|
634
|
-
}
|
|
635
|
-
function endReadable(stream) {
|
|
636
|
-
var state = stream._readableState;
|
|
637
|
-
debug("endReadable", state.endEmitted);
|
|
638
|
-
if (!state.endEmitted) {
|
|
639
|
-
state.ended = true;
|
|
640
|
-
process.nextTick(endReadableNT, state, stream);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
function endReadableNT(state, stream) {
|
|
644
|
-
debug("endReadableNT", state.endEmitted, state.length);
|
|
645
|
-
if (!state.endEmitted && state.length === 0) {
|
|
646
|
-
state.endEmitted = true;
|
|
647
|
-
stream.readable = false;
|
|
648
|
-
stream.emit("end");
|
|
649
|
-
if (state.autoDestroy) {
|
|
650
|
-
var wState = stream._writableState;
|
|
651
|
-
if (!wState || wState.autoDestroy && wState.finished) stream.destroy();
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
if (typeof Symbol === "function") Readable.from = function(iterable, opts) {
|
|
656
|
-
if (from === void 0) from = require_from_browser();
|
|
657
|
-
return from(Readable, iterable, opts);
|
|
658
|
-
};
|
|
659
|
-
function indexOf(xs, x) {
|
|
660
|
-
for (var i = 0, l = xs.length; i < l; i++) if (xs[i] === x) return i;
|
|
661
|
-
return -1;
|
|
662
|
-
}
|
|
663
|
-
}));
|
|
664
|
-
//#endregion
|
|
665
|
-
export default require__stream_readable();
|
|
666
|
-
export { require__stream_readable };
|