@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,89 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_errors_browser } from "../errors-browser.js";
|
|
3
|
-
import { require_inherits_browser } from "../../../../inherits@2.0.4/node_modules/inherits/inherits_browser.js";
|
|
4
|
-
import { require__stream_duplex } from "./_stream_duplex.js";
|
|
5
|
-
//#region node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js
|
|
6
|
-
var require__stream_transform = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
-
module.exports = Transform;
|
|
8
|
-
var _require$codes = require_errors_browser().codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
9
|
-
var Duplex = require__stream_duplex();
|
|
10
|
-
require_inherits_browser()(Transform, Duplex);
|
|
11
|
-
function afterTransform(er, data) {
|
|
12
|
-
var ts = this._transformState;
|
|
13
|
-
ts.transforming = false;
|
|
14
|
-
var cb = ts.writecb;
|
|
15
|
-
if (cb === null) return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
16
|
-
ts.writechunk = null;
|
|
17
|
-
ts.writecb = null;
|
|
18
|
-
if (data != null) this.push(data);
|
|
19
|
-
cb(er);
|
|
20
|
-
var rs = this._readableState;
|
|
21
|
-
rs.reading = false;
|
|
22
|
-
if (rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
23
|
-
}
|
|
24
|
-
function Transform(options) {
|
|
25
|
-
if (!(this instanceof Transform)) return new Transform(options);
|
|
26
|
-
Duplex.call(this, options);
|
|
27
|
-
this._transformState = {
|
|
28
|
-
afterTransform: afterTransform.bind(this),
|
|
29
|
-
needTransform: false,
|
|
30
|
-
transforming: false,
|
|
31
|
-
writecb: null,
|
|
32
|
-
writechunk: null,
|
|
33
|
-
writeencoding: null
|
|
34
|
-
};
|
|
35
|
-
this._readableState.needReadable = true;
|
|
36
|
-
this._readableState.sync = false;
|
|
37
|
-
if (options) {
|
|
38
|
-
if (typeof options.transform === "function") this._transform = options.transform;
|
|
39
|
-
if (typeof options.flush === "function") this._flush = options.flush;
|
|
40
|
-
}
|
|
41
|
-
this.on("prefinish", prefinish);
|
|
42
|
-
}
|
|
43
|
-
function prefinish() {
|
|
44
|
-
var _this = this;
|
|
45
|
-
if (typeof this._flush === "function" && !this._readableState.destroyed) this._flush(function(er, data) {
|
|
46
|
-
done(_this, er, data);
|
|
47
|
-
});
|
|
48
|
-
else done(this, null, null);
|
|
49
|
-
}
|
|
50
|
-
Transform.prototype.push = function(chunk, encoding) {
|
|
51
|
-
this._transformState.needTransform = false;
|
|
52
|
-
return Duplex.prototype.push.call(this, chunk, encoding);
|
|
53
|
-
};
|
|
54
|
-
Transform.prototype._transform = function(chunk, encoding, cb) {
|
|
55
|
-
cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
|
|
56
|
-
};
|
|
57
|
-
Transform.prototype._write = function(chunk, encoding, cb) {
|
|
58
|
-
var ts = this._transformState;
|
|
59
|
-
ts.writecb = cb;
|
|
60
|
-
ts.writechunk = chunk;
|
|
61
|
-
ts.writeencoding = encoding;
|
|
62
|
-
if (!ts.transforming) {
|
|
63
|
-
var rs = this._readableState;
|
|
64
|
-
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
Transform.prototype._read = function(n) {
|
|
68
|
-
var ts = this._transformState;
|
|
69
|
-
if (ts.writechunk !== null && !ts.transforming) {
|
|
70
|
-
ts.transforming = true;
|
|
71
|
-
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
72
|
-
} else ts.needTransform = true;
|
|
73
|
-
};
|
|
74
|
-
Transform.prototype._destroy = function(err, cb) {
|
|
75
|
-
Duplex.prototype._destroy.call(this, err, function(err2) {
|
|
76
|
-
cb(err2);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
function done(stream, er, data) {
|
|
80
|
-
if (er) return stream.emit("error", er);
|
|
81
|
-
if (data != null) stream.push(data);
|
|
82
|
-
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
|
83
|
-
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
84
|
-
return stream.push(null);
|
|
85
|
-
}
|
|
86
|
-
}));
|
|
87
|
-
//#endregion
|
|
88
|
-
export default require__stream_transform();
|
|
89
|
-
export { require__stream_transform };
|
|
@@ -1,423 +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_destroy } from "./internal/streams/destroy.js";
|
|
4
|
-
import { require_errors_browser } from "../errors-browser.js";
|
|
5
|
-
import { require_state } from "./internal/streams/state.js";
|
|
6
|
-
import { require_inherits_browser } from "../../../../inherits@2.0.4/node_modules/inherits/inherits_browser.js";
|
|
7
|
-
import { require_browser } from "../../../../util-deprecate@1.0.2/node_modules/util-deprecate/browser.js";
|
|
8
|
-
import { require__stream_duplex } from "./_stream_duplex.js";
|
|
9
|
-
//#region node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js
|
|
10
|
-
var require__stream_writable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11
|
-
module.exports = Writable;
|
|
12
|
-
function CorkedRequest(state) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
this.next = null;
|
|
15
|
-
this.entry = null;
|
|
16
|
-
this.finish = function() {
|
|
17
|
-
onCorkedFinish(_this, state);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var Duplex;
|
|
21
|
-
Writable.WritableState = WritableState;
|
|
22
|
-
var internalUtil = { deprecate: require_browser() };
|
|
23
|
-
var Stream = require_stream_browser();
|
|
24
|
-
var Buffer = __require("buffer").Buffer;
|
|
25
|
-
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
|
|
26
|
-
function _uint8ArrayToBuffer(chunk) {
|
|
27
|
-
return Buffer.from(chunk);
|
|
28
|
-
}
|
|
29
|
-
function _isUint8Array(obj) {
|
|
30
|
-
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
31
|
-
}
|
|
32
|
-
var destroyImpl = require_destroy();
|
|
33
|
-
var getHighWaterMark = require_state().getHighWaterMark;
|
|
34
|
-
var _require$codes = require_errors_browser().codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
|
35
|
-
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
36
|
-
require_inherits_browser()(Writable, Stream);
|
|
37
|
-
function nop() {}
|
|
38
|
-
function WritableState(options, stream, isDuplex) {
|
|
39
|
-
Duplex = Duplex || require__stream_duplex();
|
|
40
|
-
options = options || {};
|
|
41
|
-
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex;
|
|
42
|
-
this.objectMode = !!options.objectMode;
|
|
43
|
-
if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
|
|
44
|
-
this.highWaterMark = getHighWaterMark(this, options, "writableHighWaterMark", isDuplex);
|
|
45
|
-
this.finalCalled = false;
|
|
46
|
-
this.needDrain = false;
|
|
47
|
-
this.ending = false;
|
|
48
|
-
this.ended = false;
|
|
49
|
-
this.finished = false;
|
|
50
|
-
this.destroyed = false;
|
|
51
|
-
this.decodeStrings = !(options.decodeStrings === false);
|
|
52
|
-
this.defaultEncoding = options.defaultEncoding || "utf8";
|
|
53
|
-
this.length = 0;
|
|
54
|
-
this.writing = false;
|
|
55
|
-
this.corked = 0;
|
|
56
|
-
this.sync = true;
|
|
57
|
-
this.bufferProcessing = false;
|
|
58
|
-
this.onwrite = function(er) {
|
|
59
|
-
onwrite(stream, er);
|
|
60
|
-
};
|
|
61
|
-
this.writecb = null;
|
|
62
|
-
this.writelen = 0;
|
|
63
|
-
this.bufferedRequest = null;
|
|
64
|
-
this.lastBufferedRequest = null;
|
|
65
|
-
this.pendingcb = 0;
|
|
66
|
-
this.prefinished = false;
|
|
67
|
-
this.errorEmitted = false;
|
|
68
|
-
this.emitClose = options.emitClose !== false;
|
|
69
|
-
this.autoDestroy = !!options.autoDestroy;
|
|
70
|
-
this.bufferedRequestCount = 0;
|
|
71
|
-
this.corkedRequestsFree = new CorkedRequest(this);
|
|
72
|
-
}
|
|
73
|
-
WritableState.prototype.getBuffer = function getBuffer() {
|
|
74
|
-
var current = this.bufferedRequest;
|
|
75
|
-
var out = [];
|
|
76
|
-
while (current) {
|
|
77
|
-
out.push(current);
|
|
78
|
-
current = current.next;
|
|
79
|
-
}
|
|
80
|
-
return out;
|
|
81
|
-
};
|
|
82
|
-
(function() {
|
|
83
|
-
try {
|
|
84
|
-
Object.defineProperty(WritableState.prototype, "buffer", { get: internalUtil.deprecate(function writableStateBufferGetter() {
|
|
85
|
-
return this.getBuffer();
|
|
86
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
87
|
-
} catch (_) {}
|
|
88
|
-
})();
|
|
89
|
-
var realHasInstance;
|
|
90
|
-
if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
|
|
91
|
-
realHasInstance = Function.prototype[Symbol.hasInstance];
|
|
92
|
-
Object.defineProperty(Writable, Symbol.hasInstance, { value: function value(object) {
|
|
93
|
-
if (realHasInstance.call(this, object)) return true;
|
|
94
|
-
if (this !== Writable) return false;
|
|
95
|
-
return object && object._writableState instanceof WritableState;
|
|
96
|
-
} });
|
|
97
|
-
} else realHasInstance = function realHasInstance(object) {
|
|
98
|
-
return object instanceof this;
|
|
99
|
-
};
|
|
100
|
-
function Writable(options) {
|
|
101
|
-
Duplex = Duplex || require__stream_duplex();
|
|
102
|
-
var isDuplex = this instanceof Duplex;
|
|
103
|
-
if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);
|
|
104
|
-
this._writableState = new WritableState(options, this, isDuplex);
|
|
105
|
-
this.writable = true;
|
|
106
|
-
if (options) {
|
|
107
|
-
if (typeof options.write === "function") this._write = options.write;
|
|
108
|
-
if (typeof options.writev === "function") this._writev = options.writev;
|
|
109
|
-
if (typeof options.destroy === "function") this._destroy = options.destroy;
|
|
110
|
-
if (typeof options.final === "function") this._final = options.final;
|
|
111
|
-
}
|
|
112
|
-
Stream.call(this);
|
|
113
|
-
}
|
|
114
|
-
Writable.prototype.pipe = function() {
|
|
115
|
-
errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
|
|
116
|
-
};
|
|
117
|
-
function writeAfterEnd(stream, cb) {
|
|
118
|
-
var er = new ERR_STREAM_WRITE_AFTER_END();
|
|
119
|
-
errorOrDestroy(stream, er);
|
|
120
|
-
process.nextTick(cb, er);
|
|
121
|
-
}
|
|
122
|
-
function validChunk(stream, state, chunk, cb) {
|
|
123
|
-
var er;
|
|
124
|
-
if (chunk === null) er = new ERR_STREAM_NULL_VALUES();
|
|
125
|
-
else if (typeof chunk !== "string" && !state.objectMode) er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk);
|
|
126
|
-
if (er) {
|
|
127
|
-
errorOrDestroy(stream, er);
|
|
128
|
-
process.nextTick(cb, er);
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
return true;
|
|
132
|
-
}
|
|
133
|
-
Writable.prototype.write = function(chunk, encoding, cb) {
|
|
134
|
-
var state = this._writableState;
|
|
135
|
-
var ret = false;
|
|
136
|
-
var isBuf = !state.objectMode && _isUint8Array(chunk);
|
|
137
|
-
if (isBuf && !Buffer.isBuffer(chunk)) chunk = _uint8ArrayToBuffer(chunk);
|
|
138
|
-
if (typeof encoding === "function") {
|
|
139
|
-
cb = encoding;
|
|
140
|
-
encoding = null;
|
|
141
|
-
}
|
|
142
|
-
if (isBuf) encoding = "buffer";
|
|
143
|
-
else if (!encoding) encoding = state.defaultEncoding;
|
|
144
|
-
if (typeof cb !== "function") cb = nop;
|
|
145
|
-
if (state.ending) writeAfterEnd(this, cb);
|
|
146
|
-
else if (isBuf || validChunk(this, state, chunk, cb)) {
|
|
147
|
-
state.pendingcb++;
|
|
148
|
-
ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
|
|
149
|
-
}
|
|
150
|
-
return ret;
|
|
151
|
-
};
|
|
152
|
-
Writable.prototype.cork = function() {
|
|
153
|
-
this._writableState.corked++;
|
|
154
|
-
};
|
|
155
|
-
Writable.prototype.uncork = function() {
|
|
156
|
-
var state = this._writableState;
|
|
157
|
-
if (state.corked) {
|
|
158
|
-
state.corked--;
|
|
159
|
-
if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
|
163
|
-
if (typeof encoding === "string") encoding = encoding.toLowerCase();
|
|
164
|
-
if (!([
|
|
165
|
-
"hex",
|
|
166
|
-
"utf8",
|
|
167
|
-
"utf-8",
|
|
168
|
-
"ascii",
|
|
169
|
-
"binary",
|
|
170
|
-
"base64",
|
|
171
|
-
"ucs2",
|
|
172
|
-
"ucs-2",
|
|
173
|
-
"utf16le",
|
|
174
|
-
"utf-16le",
|
|
175
|
-
"raw"
|
|
176
|
-
].indexOf((encoding + "").toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);
|
|
177
|
-
this._writableState.defaultEncoding = encoding;
|
|
178
|
-
return this;
|
|
179
|
-
};
|
|
180
|
-
Object.defineProperty(Writable.prototype, "writableBuffer", {
|
|
181
|
-
enumerable: false,
|
|
182
|
-
get: function get() {
|
|
183
|
-
return this._writableState && this._writableState.getBuffer();
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
function decodeChunk(state, chunk, encoding) {
|
|
187
|
-
if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") chunk = Buffer.from(chunk, encoding);
|
|
188
|
-
return chunk;
|
|
189
|
-
}
|
|
190
|
-
Object.defineProperty(Writable.prototype, "writableHighWaterMark", {
|
|
191
|
-
enumerable: false,
|
|
192
|
-
get: function get() {
|
|
193
|
-
return this._writableState.highWaterMark;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
|
197
|
-
if (!isBuf) {
|
|
198
|
-
var newChunk = decodeChunk(state, chunk, encoding);
|
|
199
|
-
if (chunk !== newChunk) {
|
|
200
|
-
isBuf = true;
|
|
201
|
-
encoding = "buffer";
|
|
202
|
-
chunk = newChunk;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var len = state.objectMode ? 1 : chunk.length;
|
|
206
|
-
state.length += len;
|
|
207
|
-
var ret = state.length < state.highWaterMark;
|
|
208
|
-
if (!ret) state.needDrain = true;
|
|
209
|
-
if (state.writing || state.corked) {
|
|
210
|
-
var last = state.lastBufferedRequest;
|
|
211
|
-
state.lastBufferedRequest = {
|
|
212
|
-
chunk,
|
|
213
|
-
encoding,
|
|
214
|
-
isBuf,
|
|
215
|
-
callback: cb,
|
|
216
|
-
next: null
|
|
217
|
-
};
|
|
218
|
-
if (last) last.next = state.lastBufferedRequest;
|
|
219
|
-
else state.bufferedRequest = state.lastBufferedRequest;
|
|
220
|
-
state.bufferedRequestCount += 1;
|
|
221
|
-
} else doWrite(stream, state, false, len, chunk, encoding, cb);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
|
-
function doWrite(stream, state, writev, len, chunk, encoding, cb) {
|
|
225
|
-
state.writelen = len;
|
|
226
|
-
state.writecb = cb;
|
|
227
|
-
state.writing = true;
|
|
228
|
-
state.sync = true;
|
|
229
|
-
if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED("write"));
|
|
230
|
-
else if (writev) stream._writev(chunk, state.onwrite);
|
|
231
|
-
else stream._write(chunk, encoding, state.onwrite);
|
|
232
|
-
state.sync = false;
|
|
233
|
-
}
|
|
234
|
-
function onwriteError(stream, state, sync, er, cb) {
|
|
235
|
-
--state.pendingcb;
|
|
236
|
-
if (sync) {
|
|
237
|
-
process.nextTick(cb, er);
|
|
238
|
-
process.nextTick(finishMaybe, stream, state);
|
|
239
|
-
stream._writableState.errorEmitted = true;
|
|
240
|
-
errorOrDestroy(stream, er);
|
|
241
|
-
} else {
|
|
242
|
-
cb(er);
|
|
243
|
-
stream._writableState.errorEmitted = true;
|
|
244
|
-
errorOrDestroy(stream, er);
|
|
245
|
-
finishMaybe(stream, state);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
function onwriteStateUpdate(state) {
|
|
249
|
-
state.writing = false;
|
|
250
|
-
state.writecb = null;
|
|
251
|
-
state.length -= state.writelen;
|
|
252
|
-
state.writelen = 0;
|
|
253
|
-
}
|
|
254
|
-
function onwrite(stream, er) {
|
|
255
|
-
var state = stream._writableState;
|
|
256
|
-
var sync = state.sync;
|
|
257
|
-
var cb = state.writecb;
|
|
258
|
-
if (typeof cb !== "function") throw new ERR_MULTIPLE_CALLBACK();
|
|
259
|
-
onwriteStateUpdate(state);
|
|
260
|
-
if (er) onwriteError(stream, state, sync, er, cb);
|
|
261
|
-
else {
|
|
262
|
-
var finished = needFinish(state) || stream.destroyed;
|
|
263
|
-
if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(stream, state);
|
|
264
|
-
if (sync) process.nextTick(afterWrite, stream, state, finished, cb);
|
|
265
|
-
else afterWrite(stream, state, finished, cb);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function afterWrite(stream, state, finished, cb) {
|
|
269
|
-
if (!finished) onwriteDrain(stream, state);
|
|
270
|
-
state.pendingcb--;
|
|
271
|
-
cb();
|
|
272
|
-
finishMaybe(stream, state);
|
|
273
|
-
}
|
|
274
|
-
function onwriteDrain(stream, state) {
|
|
275
|
-
if (state.length === 0 && state.needDrain) {
|
|
276
|
-
state.needDrain = false;
|
|
277
|
-
stream.emit("drain");
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
function clearBuffer(stream, state) {
|
|
281
|
-
state.bufferProcessing = true;
|
|
282
|
-
var entry = state.bufferedRequest;
|
|
283
|
-
if (stream._writev && entry && entry.next) {
|
|
284
|
-
var l = state.bufferedRequestCount;
|
|
285
|
-
var buffer = new Array(l);
|
|
286
|
-
var holder = state.corkedRequestsFree;
|
|
287
|
-
holder.entry = entry;
|
|
288
|
-
var count = 0;
|
|
289
|
-
var allBuffers = true;
|
|
290
|
-
while (entry) {
|
|
291
|
-
buffer[count] = entry;
|
|
292
|
-
if (!entry.isBuf) allBuffers = false;
|
|
293
|
-
entry = entry.next;
|
|
294
|
-
count += 1;
|
|
295
|
-
}
|
|
296
|
-
buffer.allBuffers = allBuffers;
|
|
297
|
-
doWrite(stream, state, true, state.length, buffer, "", holder.finish);
|
|
298
|
-
state.pendingcb++;
|
|
299
|
-
state.lastBufferedRequest = null;
|
|
300
|
-
if (holder.next) {
|
|
301
|
-
state.corkedRequestsFree = holder.next;
|
|
302
|
-
holder.next = null;
|
|
303
|
-
} else state.corkedRequestsFree = new CorkedRequest(state);
|
|
304
|
-
state.bufferedRequestCount = 0;
|
|
305
|
-
} else {
|
|
306
|
-
while (entry) {
|
|
307
|
-
var chunk = entry.chunk;
|
|
308
|
-
var encoding = entry.encoding;
|
|
309
|
-
var cb = entry.callback;
|
|
310
|
-
doWrite(stream, state, false, state.objectMode ? 1 : chunk.length, chunk, encoding, cb);
|
|
311
|
-
entry = entry.next;
|
|
312
|
-
state.bufferedRequestCount--;
|
|
313
|
-
if (state.writing) break;
|
|
314
|
-
}
|
|
315
|
-
if (entry === null) state.lastBufferedRequest = null;
|
|
316
|
-
}
|
|
317
|
-
state.bufferedRequest = entry;
|
|
318
|
-
state.bufferProcessing = false;
|
|
319
|
-
}
|
|
320
|
-
Writable.prototype._write = function(chunk, encoding, cb) {
|
|
321
|
-
cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()"));
|
|
322
|
-
};
|
|
323
|
-
Writable.prototype._writev = null;
|
|
324
|
-
Writable.prototype.end = function(chunk, encoding, cb) {
|
|
325
|
-
var state = this._writableState;
|
|
326
|
-
if (typeof chunk === "function") {
|
|
327
|
-
cb = chunk;
|
|
328
|
-
chunk = null;
|
|
329
|
-
encoding = null;
|
|
330
|
-
} else if (typeof encoding === "function") {
|
|
331
|
-
cb = encoding;
|
|
332
|
-
encoding = null;
|
|
333
|
-
}
|
|
334
|
-
if (chunk !== null && chunk !== void 0) this.write(chunk, encoding);
|
|
335
|
-
if (state.corked) {
|
|
336
|
-
state.corked = 1;
|
|
337
|
-
this.uncork();
|
|
338
|
-
}
|
|
339
|
-
if (!state.ending) endWritable(this, state, cb);
|
|
340
|
-
return this;
|
|
341
|
-
};
|
|
342
|
-
Object.defineProperty(Writable.prototype, "writableLength", {
|
|
343
|
-
enumerable: false,
|
|
344
|
-
get: function get() {
|
|
345
|
-
return this._writableState.length;
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
function needFinish(state) {
|
|
349
|
-
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
|
350
|
-
}
|
|
351
|
-
function callFinal(stream, state) {
|
|
352
|
-
stream._final(function(err) {
|
|
353
|
-
state.pendingcb--;
|
|
354
|
-
if (err) errorOrDestroy(stream, err);
|
|
355
|
-
state.prefinished = true;
|
|
356
|
-
stream.emit("prefinish");
|
|
357
|
-
finishMaybe(stream, state);
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
function prefinish(stream, state) {
|
|
361
|
-
if (!state.prefinished && !state.finalCalled) if (typeof stream._final === "function" && !state.destroyed) {
|
|
362
|
-
state.pendingcb++;
|
|
363
|
-
state.finalCalled = true;
|
|
364
|
-
process.nextTick(callFinal, stream, state);
|
|
365
|
-
} else {
|
|
366
|
-
state.prefinished = true;
|
|
367
|
-
stream.emit("prefinish");
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
function finishMaybe(stream, state) {
|
|
371
|
-
var need = needFinish(state);
|
|
372
|
-
if (need) {
|
|
373
|
-
prefinish(stream, state);
|
|
374
|
-
if (state.pendingcb === 0) {
|
|
375
|
-
state.finished = true;
|
|
376
|
-
stream.emit("finish");
|
|
377
|
-
if (state.autoDestroy) {
|
|
378
|
-
var rState = stream._readableState;
|
|
379
|
-
if (!rState || rState.autoDestroy && rState.endEmitted) stream.destroy();
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return need;
|
|
384
|
-
}
|
|
385
|
-
function endWritable(stream, state, cb) {
|
|
386
|
-
state.ending = true;
|
|
387
|
-
finishMaybe(stream, state);
|
|
388
|
-
if (cb) if (state.finished) process.nextTick(cb);
|
|
389
|
-
else stream.once("finish", cb);
|
|
390
|
-
state.ended = true;
|
|
391
|
-
stream.writable = false;
|
|
392
|
-
}
|
|
393
|
-
function onCorkedFinish(corkReq, state, err) {
|
|
394
|
-
var entry = corkReq.entry;
|
|
395
|
-
corkReq.entry = null;
|
|
396
|
-
while (entry) {
|
|
397
|
-
var cb = entry.callback;
|
|
398
|
-
state.pendingcb--;
|
|
399
|
-
cb(err);
|
|
400
|
-
entry = entry.next;
|
|
401
|
-
}
|
|
402
|
-
state.corkedRequestsFree.next = corkReq;
|
|
403
|
-
}
|
|
404
|
-
Object.defineProperty(Writable.prototype, "destroyed", {
|
|
405
|
-
enumerable: false,
|
|
406
|
-
get: function get() {
|
|
407
|
-
if (this._writableState === void 0) return false;
|
|
408
|
-
return this._writableState.destroyed;
|
|
409
|
-
},
|
|
410
|
-
set: function set(value) {
|
|
411
|
-
if (!this._writableState) return;
|
|
412
|
-
this._writableState.destroyed = value;
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
Writable.prototype.destroy = destroyImpl.destroy;
|
|
416
|
-
Writable.prototype._undestroy = destroyImpl.undestroy;
|
|
417
|
-
Writable.prototype._destroy = function(err, cb) {
|
|
418
|
-
cb(err);
|
|
419
|
-
};
|
|
420
|
-
}));
|
|
421
|
-
//#endregion
|
|
422
|
-
export default require__stream_writable();
|
|
423
|
-
export { require__stream_writable };
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_end_of_stream } from "./end-of-stream.js";
|
|
3
|
-
//#region node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
4
|
-
var require_async_iterator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var _Object$setPrototypeO;
|
|
6
|
-
function _defineProperty(obj, key, value) {
|
|
7
|
-
key = _toPropertyKey(key);
|
|
8
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
9
|
-
value,
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
writable: true
|
|
13
|
-
});
|
|
14
|
-
else obj[key] = value;
|
|
15
|
-
return obj;
|
|
16
|
-
}
|
|
17
|
-
function _toPropertyKey(arg) {
|
|
18
|
-
var key = _toPrimitive(arg, "string");
|
|
19
|
-
return typeof key === "symbol" ? key : String(key);
|
|
20
|
-
}
|
|
21
|
-
function _toPrimitive(input, hint) {
|
|
22
|
-
if (typeof input !== "object" || input === null) return input;
|
|
23
|
-
var prim = input[Symbol.toPrimitive];
|
|
24
|
-
if (prim !== void 0) {
|
|
25
|
-
var res = prim.call(input, hint || "default");
|
|
26
|
-
if (typeof res !== "object") return res;
|
|
27
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28
|
-
}
|
|
29
|
-
return (hint === "string" ? String : Number)(input);
|
|
30
|
-
}
|
|
31
|
-
var finished = require_end_of_stream();
|
|
32
|
-
var kLastResolve = Symbol("lastResolve");
|
|
33
|
-
var kLastReject = Symbol("lastReject");
|
|
34
|
-
var kError = Symbol("error");
|
|
35
|
-
var kEnded = Symbol("ended");
|
|
36
|
-
var kLastPromise = Symbol("lastPromise");
|
|
37
|
-
var kHandlePromise = Symbol("handlePromise");
|
|
38
|
-
var kStream = Symbol("stream");
|
|
39
|
-
function createIterResult(value, done) {
|
|
40
|
-
return {
|
|
41
|
-
value,
|
|
42
|
-
done
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function readAndResolve(iter) {
|
|
46
|
-
var resolve = iter[kLastResolve];
|
|
47
|
-
if (resolve !== null) {
|
|
48
|
-
var data = iter[kStream].read();
|
|
49
|
-
if (data !== null) {
|
|
50
|
-
iter[kLastPromise] = null;
|
|
51
|
-
iter[kLastResolve] = null;
|
|
52
|
-
iter[kLastReject] = null;
|
|
53
|
-
resolve(createIterResult(data, false));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function onReadable(iter) {
|
|
58
|
-
process.nextTick(readAndResolve, iter);
|
|
59
|
-
}
|
|
60
|
-
function wrapForNext(lastPromise, iter) {
|
|
61
|
-
return function(resolve, reject) {
|
|
62
|
-
lastPromise.then(function() {
|
|
63
|
-
if (iter[kEnded]) {
|
|
64
|
-
resolve(createIterResult(void 0, true));
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
iter[kHandlePromise](resolve, reject);
|
|
68
|
-
}, reject);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
var AsyncIteratorPrototype = Object.getPrototypeOf(function() {});
|
|
72
|
-
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
|
|
73
|
-
get stream() {
|
|
74
|
-
return this[kStream];
|
|
75
|
-
},
|
|
76
|
-
next: function next() {
|
|
77
|
-
var _this = this;
|
|
78
|
-
var error = this[kError];
|
|
79
|
-
if (error !== null) return Promise.reject(error);
|
|
80
|
-
if (this[kEnded]) return Promise.resolve(createIterResult(void 0, true));
|
|
81
|
-
if (this[kStream].destroyed) return new Promise(function(resolve, reject) {
|
|
82
|
-
process.nextTick(function() {
|
|
83
|
-
if (_this[kError]) reject(_this[kError]);
|
|
84
|
-
else resolve(createIterResult(void 0, true));
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
var lastPromise = this[kLastPromise];
|
|
88
|
-
var promise;
|
|
89
|
-
if (lastPromise) promise = new Promise(wrapForNext(lastPromise, this));
|
|
90
|
-
else {
|
|
91
|
-
var data = this[kStream].read();
|
|
92
|
-
if (data !== null) return Promise.resolve(createIterResult(data, false));
|
|
93
|
-
promise = new Promise(this[kHandlePromise]);
|
|
94
|
-
}
|
|
95
|
-
this[kLastPromise] = promise;
|
|
96
|
-
return promise;
|
|
97
|
-
}
|
|
98
|
-
}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function() {
|
|
99
|
-
return this;
|
|
100
|
-
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
101
|
-
var _this2 = this;
|
|
102
|
-
return new Promise(function(resolve, reject) {
|
|
103
|
-
_this2[kStream].destroy(null, function(err) {
|
|
104
|
-
if (err) {
|
|
105
|
-
reject(err);
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
resolve(createIterResult(void 0, true));
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
112
|
-
module.exports = function createReadableStreamAsyncIterator(stream) {
|
|
113
|
-
var _Object$create;
|
|
114
|
-
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
115
|
-
value: stream,
|
|
116
|
-
writable: true
|
|
117
|
-
}), _defineProperty(_Object$create, kLastResolve, {
|
|
118
|
-
value: null,
|
|
119
|
-
writable: true
|
|
120
|
-
}), _defineProperty(_Object$create, kLastReject, {
|
|
121
|
-
value: null,
|
|
122
|
-
writable: true
|
|
123
|
-
}), _defineProperty(_Object$create, kError, {
|
|
124
|
-
value: null,
|
|
125
|
-
writable: true
|
|
126
|
-
}), _defineProperty(_Object$create, kEnded, {
|
|
127
|
-
value: stream._readableState.endEmitted,
|
|
128
|
-
writable: true
|
|
129
|
-
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
130
|
-
value: function value(resolve, reject) {
|
|
131
|
-
var data = iterator[kStream].read();
|
|
132
|
-
if (data) {
|
|
133
|
-
iterator[kLastPromise] = null;
|
|
134
|
-
iterator[kLastResolve] = null;
|
|
135
|
-
iterator[kLastReject] = null;
|
|
136
|
-
resolve(createIterResult(data, false));
|
|
137
|
-
} else {
|
|
138
|
-
iterator[kLastResolve] = resolve;
|
|
139
|
-
iterator[kLastReject] = reject;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
writable: true
|
|
143
|
-
}), _Object$create));
|
|
144
|
-
iterator[kLastPromise] = null;
|
|
145
|
-
finished(stream, function(err) {
|
|
146
|
-
if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
147
|
-
var reject = iterator[kLastReject];
|
|
148
|
-
if (reject !== null) {
|
|
149
|
-
iterator[kLastPromise] = null;
|
|
150
|
-
iterator[kLastResolve] = null;
|
|
151
|
-
iterator[kLastReject] = null;
|
|
152
|
-
reject(err);
|
|
153
|
-
}
|
|
154
|
-
iterator[kError] = err;
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
var resolve = iterator[kLastResolve];
|
|
158
|
-
if (resolve !== null) {
|
|
159
|
-
iterator[kLastPromise] = null;
|
|
160
|
-
iterator[kLastResolve] = null;
|
|
161
|
-
iterator[kLastReject] = null;
|
|
162
|
-
resolve(createIterResult(void 0, true));
|
|
163
|
-
}
|
|
164
|
-
iterator[kEnded] = true;
|
|
165
|
-
});
|
|
166
|
-
stream.on("readable", onReadable.bind(null, iterator));
|
|
167
|
-
return iterator;
|
|
168
|
-
};
|
|
169
|
-
}));
|
|
170
|
-
//#endregion
|
|
171
|
-
export default require_async_iterator();
|
|
172
|
-
export { require_async_iterator };
|