@dotpi/tools 2.6.1 → 2.7.1
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/dotpi_root/dist/@dotpi/avahi-monitor-module/node_modules/.package-lock.json +7 -0
- package/dotpi_root/dist/@dotpi/javascript/index.js +6 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/.package-lock.json +308 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/index.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/index.js +28 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/command.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/cwd.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/encoding-option.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/escape.js +88 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/fd-options.js +108 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/file-url.js +25 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/options.js +96 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/specific.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/add.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/concurrent.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/duplex.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/iterable.js +34 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/readable.js +113 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/shared.js +46 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/writable.js +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/contents.js +116 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/input-sync.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/iterate.js +110 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/max-buffer.js +89 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/output-async.js +80 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/output-sync.js +135 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/pipeline.js +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/strip-newline.js +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/array.js +4 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/forward.js +56 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/get-each.js +89 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/get-one.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/graceful.js +72 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/incoming.js +79 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/ipc-input.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/methods.js +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/outgoing.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/reference.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/send.js +91 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/strict.js +113 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/validation.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/bind.js +23 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/command.js +43 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/create.js +65 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/main-async.js +193 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/main-sync.js +162 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/node.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/parameters.js +31 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/promise.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/script.js +22 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/template.js +153 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/abort.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/sequence.js +24 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/setup.js +72 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/streaming.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/throw.js +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/all-async.js +46 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/all-sync.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/exit-async.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/exit-sync.js +25 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/stdio.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/wait-stream.js +96 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/wait-subprocess.js +146 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/duration.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/early-error.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/final-error.js +40 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/message.js +157 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/reject.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/result.js +186 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/direction.js +76 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/duplicate.js +116 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle-async.js +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle-sync.js +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle.js +214 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/input-option.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/native.js +106 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/stdio-option.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/type.js +173 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/cancel.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/cleanup.js +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/graceful.js +71 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/kill.js +93 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/signal.js +70 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/timeout.js +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/encoding-transform.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/generator.js +107 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/normalize.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/object-mode.js +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/run-async.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/run-sync.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/split.js +110 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/validate.js +43 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/abort-signal.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/deferred.js +7 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/max-listeners.js +14 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/uint-array.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/complete.js +24 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/custom.js +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/default.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/error.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/info.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/ipc.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/log.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/output.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/start.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/values.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/package.json +104 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/readme.md +451 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/encoding-option.d.ts +19 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/fd-options.d.ts +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/options.d.ts +400 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/specific.d.ts +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/convert.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/ipc.d.ts +156 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/command.d.ts +114 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/main-async.d.ts +379 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/main-sync.d.ts +59 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/node.d.ts +62 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/script.d.ts +115 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/template.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/pipe.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/final-error.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/ignore.d.ts +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-all.d.ts +30 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-ipc.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-stdio.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-stdout.d.ts +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result.d.ts +203 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/array.d.ts +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/direction.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/option.d.ts +40 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/type.d.ts +170 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/all.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/stdio.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/stdout.d.ts +22 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/subprocess.d.ts +117 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/transform/normalize.d.ts +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/transform/object-mode.d.ts +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/utils.d.ts +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/verbose.d.ts +98 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +279 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +292 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +337 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/package.json +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/readme.md +303 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/array-buffer.js +84 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/array.js +32 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/buffer.js +19 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/contents.js +121 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/exports.js +5 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/index.d.ts +121 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/index.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/stream.js +65 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/string.js +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/utils.js +11 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +201 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +180 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +273 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +206 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +70 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +34 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +64 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +35 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/index.js +37 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/package.json +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +35 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +55 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +104 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +31 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/README.md +74 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/package.json +106 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +34 -0
- package/dotpi_root/dist/@dotpi/javascript/package.json +5 -1
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/index.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/index.js +28 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/command.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/cwd.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/encoding-option.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/escape.js +88 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/fd-options.js +108 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/file-url.js +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/options.js +96 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/specific.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/add.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/concurrent.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/duplex.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/iterable.js +34 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/readable.js +113 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/shared.js +46 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/writable.js +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/contents.js +116 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/input-sync.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/iterate.js +110 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/max-buffer.js +89 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/output-async.js +80 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/output-sync.js +135 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/pipeline.js +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/strip-newline.js +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/array.js +4 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/forward.js +56 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/get-each.js +89 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/get-one.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/graceful.js +72 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/incoming.js +79 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/ipc-input.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/methods.js +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/outgoing.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/reference.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/send.js +91 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/strict.js +113 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/validation.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/bind.js +23 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/command.js +43 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/create.js +65 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/main-async.js +193 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/main-sync.js +162 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/node.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/parameters.js +31 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/promise.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/script.js +22 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/template.js +153 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/abort.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/sequence.js +24 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/setup.js +72 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/streaming.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/throw.js +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/all-async.js +46 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/all-sync.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/exit-async.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/exit-sync.js +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/stdio.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/wait-stream.js +96 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/wait-subprocess.js +146 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/duration.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/early-error.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/final-error.js +40 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/message.js +157 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/reject.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/result.js +186 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/direction.js +76 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/duplicate.js +116 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle-async.js +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle-sync.js +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle.js +214 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/input-option.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/native.js +106 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/stdio-option.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/type.js +173 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/cancel.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/cleanup.js +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/graceful.js +71 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/kill.js +93 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/signal.js +70 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/timeout.js +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/encoding-transform.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/generator.js +107 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/normalize.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/object-mode.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/run-async.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/run-sync.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/split.js +110 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/validate.js +43 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/abort-signal.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/deferred.js +7 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/max-listeners.js +14 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/uint-array.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/complete.js +24 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/custom.js +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/default.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/error.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/info.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/ipc.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/log.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/output.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/start.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/values.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/package.json +104 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/readme.md +451 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/encoding-option.d.ts +19 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/fd-options.d.ts +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/options.d.ts +400 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/specific.d.ts +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/convert.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/ipc.d.ts +156 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/command.d.ts +114 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/main-async.d.ts +379 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/main-sync.d.ts +59 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/node.d.ts +62 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/script.d.ts +115 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/template.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/pipe.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/final-error.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/ignore.d.ts +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-all.d.ts +30 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-ipc.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-stdio.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-stdout.d.ts +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result.d.ts +203 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/array.d.ts +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/direction.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/option.d.ts +40 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/type.d.ts +170 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/all.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/stdio.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/stdout.d.ts +22 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/subprocess.d.ts +117 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/transform/normalize.d.ts +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/transform/object-mode.d.ts +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/utils.d.ts +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/verbose.d.ts +98 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +279 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +292 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +337 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/package.json +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/readme.md +303 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/array-buffer.js +84 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/array.js +32 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/buffer.js +19 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/contents.js +121 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/exports.js +5 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/index.d.ts +121 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/index.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/stream.js +65 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/string.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/utils.js +11 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +109 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +207 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +264 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +223 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +14 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +7 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +94 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +177 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +201 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +180 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +273 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +206 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +70 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +34 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +64 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +35 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/index.js +37 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/package.json +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +35 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +55 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +104 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +31 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +74 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/README.md +74 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/package.json +106 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +23 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +36 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +34 -0
- package/dotpi_root/dist/@dotpi/module/package.json +2 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +3 -4
- package/dotpi_root/etc/dotpi_modules.json +2 -1
- package/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device.bash +25 -18
- package/package.json +16 -11
- package/.editorbackup/NOTES.md~ +0 -974
- package/.editorbackup/PIPEWIRE.md~ +0 -42
- package/.editorbackup/README.md~ +0 -335
- package/BACKUP-SANDO.command +0 -61
- package/BACKUP-SISIDO.command +0 -61
- package/DOC.md +0 -66
- package/NOTES.md +0 -121
- package/dotpi_root/dist/@dotpi/module-module/LICENSE +0 -28
- package/examples/example-development/configuration/dotpi_project.bash +0 -40
- package/examples/example-headphones/configuration/dotpi_project.bash +0 -18
- package/examples/example-hifiberry/configuration/dotpi_instance_012.bash +0 -4
- package/examples/example-hifiberry/configuration/dotpi_project.bash +0 -18
- package/examples/example-network/configuration/dotpi_project.bash +0 -21
- package/lerna.json +0 -4
- package/src/templates/README.md +0 -16
- package/src/templates/ap.nmconnection +0 -25
- package/src/templates/dotpi_project.bash +0 -29
- package/src/templates/dotpi_secrets.bash +0 -4
- package/src/templates/gitignore +0 -7
- package/src/templates/infrastructure.nmconnection +0 -29
- package/src/templates/ssh_config +0 -6
- package/test/constants.spec.js +0 -37
- package/test/create-project.test.js +0 -56
- package/test/install-rpi.test.js +0 -8
- package/test/utils.spec.js +0 -48
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# get-stream
|
|
2
|
+
|
|
3
|
+
> Get a stream as a string, Buffer, ArrayBuffer or array
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Works in any JavaScript environment ([Node.js](#nodejs-streams), [browsers](#browser-support), etc.).
|
|
8
|
+
- Supports [text streams](#getstreamstream-options), [binary streams](#getstreamasbufferstream-options) and [object streams](#getstreamasarraystream-options).
|
|
9
|
+
- Supports [async iterables](#async-iterables).
|
|
10
|
+
- Can set a [maximum stream size](#maxbuffer).
|
|
11
|
+
- Returns [partially read data](#errors) when the stream errors.
|
|
12
|
+
- [Fast](#benchmarks).
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install get-stream
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### Node.js streams
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import fs from 'node:fs';
|
|
26
|
+
import getStream from 'get-stream';
|
|
27
|
+
|
|
28
|
+
const stream = fs.createReadStream('unicorn.txt');
|
|
29
|
+
|
|
30
|
+
console.log(await getStream(stream));
|
|
31
|
+
/*
|
|
32
|
+
,,))))))));,
|
|
33
|
+
__)))))))))))))),
|
|
34
|
+
\|/ -\(((((''''((((((((.
|
|
35
|
+
-*-==//////(('' . `)))))),
|
|
36
|
+
/|\ ))| o ;-. '((((( ,(,
|
|
37
|
+
( `| / ) ;))))' ,_))^;(~
|
|
38
|
+
| | | ,))((((_ _____------~~~-. %,;(;(>';'~
|
|
39
|
+
o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~
|
|
40
|
+
; ''''```` `: `:::|\,__,%% );`'; ~
|
|
41
|
+
| _ ) / `:|`----' `-'
|
|
42
|
+
______/\/~ | / /
|
|
43
|
+
/~;;.____/;;' / ___--,-( `;;;/
|
|
44
|
+
/ // _;______;'------~~~~~ /;;/\ /
|
|
45
|
+
// | | / ; \;;,\
|
|
46
|
+
(<_ | ; /',/-----' _>
|
|
47
|
+
\_| ||_ //~;~~~~~~~~~
|
|
48
|
+
`\_| (,~~
|
|
49
|
+
\~\
|
|
50
|
+
~~
|
|
51
|
+
*/
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Web streams
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
import getStream from 'get-stream';
|
|
58
|
+
|
|
59
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
60
|
+
console.log(await getStream(readableStream));
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This works in any browser, even [the ones](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility) not supporting `ReadableStream.values()` yet.
|
|
64
|
+
|
|
65
|
+
### Async iterables
|
|
66
|
+
|
|
67
|
+
```js
|
|
68
|
+
import {opendir} from 'node:fs/promises';
|
|
69
|
+
import {getStreamAsArray} from 'get-stream';
|
|
70
|
+
|
|
71
|
+
const asyncIterable = await opendir(directory);
|
|
72
|
+
console.log(await getStreamAsArray(asyncIterable));
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## API
|
|
76
|
+
|
|
77
|
+
The following methods read the stream's contents and return it as a promise.
|
|
78
|
+
|
|
79
|
+
### getStream(stream, options?)
|
|
80
|
+
|
|
81
|
+
`stream`: [`stream.Readable`](https://nodejs.org/api/stream.html#class-streamreadable), [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream), or [`AsyncIterable<string | Buffer | ArrayBuffer | DataView | TypedArray>`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols)\
|
|
82
|
+
`options`: [`Options`](#options)
|
|
83
|
+
|
|
84
|
+
Get the given `stream` as a string.
|
|
85
|
+
|
|
86
|
+
### getStreamAsBuffer(stream, options?)
|
|
87
|
+
|
|
88
|
+
Get the given `stream` as a Node.js [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer).
|
|
89
|
+
|
|
90
|
+
```js
|
|
91
|
+
import {getStreamAsBuffer} from 'get-stream';
|
|
92
|
+
|
|
93
|
+
const stream = fs.createReadStream('unicorn.png');
|
|
94
|
+
console.log(await getStreamAsBuffer(stream));
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### getStreamAsArrayBuffer(stream, options?)
|
|
98
|
+
|
|
99
|
+
Get the given `stream` as an [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
|
100
|
+
|
|
101
|
+
```js
|
|
102
|
+
import {getStreamAsArrayBuffer} from 'get-stream';
|
|
103
|
+
|
|
104
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
105
|
+
console.log(await getStreamAsArrayBuffer(readableStream));
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### getStreamAsArray(stream, options?)
|
|
109
|
+
|
|
110
|
+
Get the given `stream` as an array. Unlike [other methods](#api), this supports [streams of objects](https://nodejs.org/api/stream.html#object-mode).
|
|
111
|
+
|
|
112
|
+
```js
|
|
113
|
+
import {getStreamAsArray} from 'get-stream';
|
|
114
|
+
|
|
115
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
116
|
+
console.log(await getStreamAsArray(readableStream));
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### options
|
|
120
|
+
|
|
121
|
+
Type: `object`
|
|
122
|
+
|
|
123
|
+
##### maxBuffer
|
|
124
|
+
|
|
125
|
+
Type: `number`\
|
|
126
|
+
Default: `Infinity`
|
|
127
|
+
|
|
128
|
+
Maximum length of the stream. If exceeded, the promise will be rejected with a `MaxBufferError`.
|
|
129
|
+
|
|
130
|
+
Depending on the [method](#api), the length is measured with [`string.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), [`buffer.length`](https://nodejs.org/api/buffer.html#buflength), [`arrayBuffer.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength) or [`array.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length).
|
|
131
|
+
|
|
132
|
+
## Errors
|
|
133
|
+
|
|
134
|
+
If the stream errors, the returned promise will be rejected with the `error`. Any contents already read from the stream will be set to `error.bufferedData`, which is a `string`, a `Buffer`, an `ArrayBuffer` or an array depending on the [method used](#api).
|
|
135
|
+
|
|
136
|
+
```js
|
|
137
|
+
import getStream from 'get-stream';
|
|
138
|
+
|
|
139
|
+
try {
|
|
140
|
+
await getStream(streamThatErrorsAtTheEnd('unicorn'));
|
|
141
|
+
} catch (error) {
|
|
142
|
+
console.log(error.bufferedData);
|
|
143
|
+
//=> 'unicorn'
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Browser support
|
|
148
|
+
|
|
149
|
+
For this module to work in browsers, a bundler must be used that either:
|
|
150
|
+
- Supports the [`exports.browser`](https://nodejs.org/api/packages.html#community-conditions-definitions) field in `package.json`
|
|
151
|
+
- Strips or ignores `node:*` imports
|
|
152
|
+
|
|
153
|
+
Most bundlers (such as [Webpack](https://webpack.js.org/guides/package-exports/#target-environment)) support either of these.
|
|
154
|
+
|
|
155
|
+
Additionally, browsers support [web streams](#web-streams) and [async iterables](#async-iterables), but not [Node.js streams](#nodejs-streams).
|
|
156
|
+
|
|
157
|
+
## Tips
|
|
158
|
+
|
|
159
|
+
### Alternatives
|
|
160
|
+
|
|
161
|
+
If you do not need the [`maxBuffer`](#maxbuffer) option, [`error.bufferedData`](#errors), nor browser support, you can use the following methods instead of this package.
|
|
162
|
+
|
|
163
|
+
#### [`streamConsumers.text()`](https://nodejs.org/api/webstreams.html#streamconsumerstextstream)
|
|
164
|
+
|
|
165
|
+
```js
|
|
166
|
+
import fs from 'node:fs';
|
|
167
|
+
import {text} from 'node:stream/consumers';
|
|
168
|
+
|
|
169
|
+
const stream = fs.createReadStream('unicorn.txt', {encoding: 'utf8'});
|
|
170
|
+
console.log(await text(stream))
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
#### [`streamConsumers.buffer()`](https://nodejs.org/api/webstreams.html#streamconsumersbufferstream)
|
|
174
|
+
|
|
175
|
+
```js
|
|
176
|
+
import {buffer} from 'node:stream/consumers';
|
|
177
|
+
|
|
178
|
+
console.log(await buffer(stream))
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
#### [`streamConsumers.arrayBuffer()`](https://nodejs.org/api/webstreams.html#streamconsumersarraybufferstream)
|
|
182
|
+
|
|
183
|
+
```js
|
|
184
|
+
import {arrayBuffer} from 'node:stream/consumers';
|
|
185
|
+
|
|
186
|
+
console.log(await arrayBuffer(stream))
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
#### [`readable.toArray()`](https://nodejs.org/api/stream.html#readabletoarrayoptions)
|
|
190
|
+
|
|
191
|
+
```js
|
|
192
|
+
console.log(await stream.toArray())
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### [`Array.fromAsync()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync)
|
|
196
|
+
|
|
197
|
+
If your [environment supports it](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync#browser_compatibility):
|
|
198
|
+
|
|
199
|
+
```js
|
|
200
|
+
console.log(await Array.fromAsync(stream))
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Non-UTF-8 encoding
|
|
204
|
+
|
|
205
|
+
When all of the following conditions apply:
|
|
206
|
+
- [`getStream()`](#getstreamstream-options) is used (as opposed to [`getStreamAsBuffer()`](#getstreamasbufferstream-options) or [`getStreamAsArrayBuffer()`](#getstreamasarraybufferstream-options))
|
|
207
|
+
- The stream is binary (not text)
|
|
208
|
+
- The stream's encoding is not UTF-8 (for example, it is UTF-16, hexadecimal, or Base64)
|
|
209
|
+
|
|
210
|
+
Then the stream must be decoded using a transform stream like [`TextDecoderStream`](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream) or [`b64`](https://github.com/hapijs/b64).
|
|
211
|
+
|
|
212
|
+
```js
|
|
213
|
+
import getStream from 'get-stream';
|
|
214
|
+
|
|
215
|
+
const textDecoderStream = new TextDecoderStream('utf-16le');
|
|
216
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
217
|
+
console.log(await getStream(readableStream.pipeThrough(textDecoderStream)));
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Blobs
|
|
221
|
+
|
|
222
|
+
[`getStreamAsArrayBuffer()`](#getstreamasarraybufferstream-options) can be used to create [Blobs](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
|
|
223
|
+
|
|
224
|
+
```js
|
|
225
|
+
import {getStreamAsArrayBuffer} from 'get-stream';
|
|
226
|
+
|
|
227
|
+
const stream = fs.createReadStream('unicorn.txt');
|
|
228
|
+
console.log(new Blob([await getStreamAsArrayBuffer(stream)]));
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### JSON streaming
|
|
232
|
+
|
|
233
|
+
[`getStreamAsArray()`](#getstreamasarraystream-options) can be combined with JSON streaming utilities to parse JSON incrementally.
|
|
234
|
+
|
|
235
|
+
```js
|
|
236
|
+
import fs from 'node:fs';
|
|
237
|
+
import {compose as composeStreams} from 'node:stream';
|
|
238
|
+
import {getStreamAsArray} from 'get-stream';
|
|
239
|
+
import streamJson from 'stream-json';
|
|
240
|
+
import streamJsonArray from 'stream-json/streamers/StreamArray.js';
|
|
241
|
+
|
|
242
|
+
const stream = fs.createReadStream('big-array-of-objects.json');
|
|
243
|
+
console.log(await getStreamAsArray(
|
|
244
|
+
composeStreams(stream, streamJson.parser(), streamJsonArray.streamArray()),
|
|
245
|
+
));
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Benchmarks
|
|
249
|
+
|
|
250
|
+
### Node.js stream (100 MB, binary)
|
|
251
|
+
|
|
252
|
+
- `getStream()`: 142ms
|
|
253
|
+
- `text()`: 139ms
|
|
254
|
+
- `getStreamAsBuffer()`: 106ms
|
|
255
|
+
- `buffer()`: 83ms
|
|
256
|
+
- `getStreamAsArrayBuffer()`: 105ms
|
|
257
|
+
- `arrayBuffer()`: 81ms
|
|
258
|
+
- `getStreamAsArray()`: 24ms
|
|
259
|
+
- `stream.toArray()`: 21ms
|
|
260
|
+
|
|
261
|
+
### Node.js stream (100 MB, text)
|
|
262
|
+
|
|
263
|
+
- `getStream()`: 90ms
|
|
264
|
+
- `text()`: 89ms
|
|
265
|
+
- `getStreamAsBuffer()`: 127ms
|
|
266
|
+
- `buffer()`: 192ms
|
|
267
|
+
- `getStreamAsArrayBuffer()`: 129ms
|
|
268
|
+
- `arrayBuffer()`: 195ms
|
|
269
|
+
- `getStreamAsArray()`: 89ms
|
|
270
|
+
- `stream.toArray()`: 90ms
|
|
271
|
+
|
|
272
|
+
### Web ReadableStream (100 MB, binary)
|
|
273
|
+
|
|
274
|
+
- `getStream()`: 223ms
|
|
275
|
+
- `text()`: 221ms
|
|
276
|
+
- `getStreamAsBuffer()`: 182ms
|
|
277
|
+
- `buffer()`: 153ms
|
|
278
|
+
- `getStreamAsArrayBuffer()`: 171ms
|
|
279
|
+
- `arrayBuffer()`: 155ms
|
|
280
|
+
- `getStreamAsArray()`: 83ms
|
|
281
|
+
|
|
282
|
+
### Web ReadableStream (100 MB, text)
|
|
283
|
+
|
|
284
|
+
- `getStream()`: 141ms
|
|
285
|
+
- `text()`: 139ms
|
|
286
|
+
- `getStreamAsBuffer()`: 91ms
|
|
287
|
+
- `buffer()`: 80ms
|
|
288
|
+
- `getStreamAsArrayBuffer()`: 89ms
|
|
289
|
+
- `arrayBuffer()`: 81ms
|
|
290
|
+
- `getStreamAsArray()`: 21ms
|
|
291
|
+
|
|
292
|
+
[Benchmarks' source file](benchmarks/index.js).
|
|
293
|
+
|
|
294
|
+
## FAQ
|
|
295
|
+
|
|
296
|
+
### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)?
|
|
297
|
+
|
|
298
|
+
This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, `Buffer`, an `ArrayBuffer` or an array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package.
|
|
299
|
+
|
|
300
|
+
## Related
|
|
301
|
+
|
|
302
|
+
- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer
|
|
303
|
+
- [into-stream](https://github.com/sindresorhus/into-stream) - The opposite of this package
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {getStreamContents} from './contents.js';
|
|
2
|
+
import {noop, throwObjectStream, getLengthProperty} from './utils.js';
|
|
3
|
+
|
|
4
|
+
export async function getStreamAsArrayBuffer(stream, options) {
|
|
5
|
+
return getStreamContents(stream, arrayBufferMethods, options);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const initArrayBuffer = () => ({contents: new ArrayBuffer(0)});
|
|
9
|
+
|
|
10
|
+
const useTextEncoder = chunk => textEncoder.encode(chunk);
|
|
11
|
+
const textEncoder = new TextEncoder();
|
|
12
|
+
|
|
13
|
+
const useUint8Array = chunk => new Uint8Array(chunk);
|
|
14
|
+
|
|
15
|
+
const useUint8ArrayWithOffset = chunk => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
16
|
+
|
|
17
|
+
const truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
18
|
+
|
|
19
|
+
// `contents` is an increasingly growing `Uint8Array`.
|
|
20
|
+
const addArrayBufferChunk = (convertedChunk, {contents, length: previousLength}, length) => {
|
|
21
|
+
const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
|
|
22
|
+
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
23
|
+
return newContents;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// Without `ArrayBuffer.resize()`, `contents` size is always a power of 2.
|
|
27
|
+
// This means its last bytes are zeroes (not stream data), which need to be
|
|
28
|
+
// trimmed at the end with `ArrayBuffer.slice()`.
|
|
29
|
+
const resizeArrayBufferSlow = (contents, length) => {
|
|
30
|
+
if (length <= contents.byteLength) {
|
|
31
|
+
return contents;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
|
|
35
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
36
|
+
return arrayBuffer;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// With `ArrayBuffer.resize()`, `contents` size matches exactly the size of
|
|
40
|
+
// the stream data. It does not include extraneous zeroes to trim at the end.
|
|
41
|
+
// The underlying `ArrayBuffer` does allocate a number of bytes that is a power
|
|
42
|
+
// of 2, but those bytes are only visible after calling `ArrayBuffer.resize()`.
|
|
43
|
+
const resizeArrayBuffer = (contents, length) => {
|
|
44
|
+
if (length <= contents.maxByteLength) {
|
|
45
|
+
contents.resize(length);
|
|
46
|
+
return contents;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const arrayBuffer = new ArrayBuffer(length, {maxByteLength: getNewContentsLength(length)});
|
|
50
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
51
|
+
return arrayBuffer;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Retrieve the closest `length` that is both >= and a power of 2
|
|
55
|
+
const getNewContentsLength = length => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
|
|
56
|
+
|
|
57
|
+
const SCALE_FACTOR = 2;
|
|
58
|
+
|
|
59
|
+
const finalizeArrayBuffer = ({contents, length}) => hasArrayBufferResize() ? contents : contents.slice(0, length);
|
|
60
|
+
|
|
61
|
+
// `ArrayBuffer.slice()` is slow. When `ArrayBuffer.resize()` is available
|
|
62
|
+
// (Node >=20.0.0, Safari >=16.4 and Chrome), we can use it instead.
|
|
63
|
+
// eslint-disable-next-line no-warning-comments
|
|
64
|
+
// TODO: remove after dropping support for Node 20.
|
|
65
|
+
// eslint-disable-next-line no-warning-comments
|
|
66
|
+
// TODO: use `ArrayBuffer.transferToFixedLength()` instead once it is available
|
|
67
|
+
const hasArrayBufferResize = () => 'resize' in ArrayBuffer.prototype;
|
|
68
|
+
|
|
69
|
+
const arrayBufferMethods = {
|
|
70
|
+
init: initArrayBuffer,
|
|
71
|
+
convertChunk: {
|
|
72
|
+
string: useTextEncoder,
|
|
73
|
+
buffer: useUint8Array,
|
|
74
|
+
arrayBuffer: useUint8Array,
|
|
75
|
+
dataView: useUint8ArrayWithOffset,
|
|
76
|
+
typedArray: useUint8ArrayWithOffset,
|
|
77
|
+
others: throwObjectStream,
|
|
78
|
+
},
|
|
79
|
+
getSize: getLengthProperty,
|
|
80
|
+
truncateChunk: truncateArrayBufferChunk,
|
|
81
|
+
addChunk: addArrayBufferChunk,
|
|
82
|
+
getFinalChunk: noop,
|
|
83
|
+
finalize: finalizeArrayBuffer,
|
|
84
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {getStreamContents} from './contents.js';
|
|
2
|
+
import {identity, noop, getContentsProperty} from './utils.js';
|
|
3
|
+
|
|
4
|
+
export async function getStreamAsArray(stream, options) {
|
|
5
|
+
return getStreamContents(stream, arrayMethods, options);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const initArray = () => ({contents: []});
|
|
9
|
+
|
|
10
|
+
const increment = () => 1;
|
|
11
|
+
|
|
12
|
+
const addArrayChunk = (convertedChunk, {contents}) => {
|
|
13
|
+
contents.push(convertedChunk);
|
|
14
|
+
return contents;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const arrayMethods = {
|
|
18
|
+
init: initArray,
|
|
19
|
+
convertChunk: {
|
|
20
|
+
string: identity,
|
|
21
|
+
buffer: identity,
|
|
22
|
+
arrayBuffer: identity,
|
|
23
|
+
dataView: identity,
|
|
24
|
+
typedArray: identity,
|
|
25
|
+
others: identity,
|
|
26
|
+
},
|
|
27
|
+
getSize: increment,
|
|
28
|
+
truncateChunk: noop,
|
|
29
|
+
addChunk: addArrayChunk,
|
|
30
|
+
getFinalChunk: noop,
|
|
31
|
+
finalize: getContentsProperty,
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {getStreamAsArrayBuffer} from './array-buffer.js';
|
|
2
|
+
|
|
3
|
+
export async function getStreamAsBuffer(stream, options) {
|
|
4
|
+
if (!('Buffer' in globalThis)) {
|
|
5
|
+
throw new Error('getStreamAsBuffer() is only supported in Node.js');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
|
|
10
|
+
} catch (error) {
|
|
11
|
+
if (error.bufferedData !== undefined) {
|
|
12
|
+
error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const arrayBufferToNodeBuffer = arrayBuffer => globalThis.Buffer.from(arrayBuffer);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {getAsyncIterable} from './stream.js';
|
|
2
|
+
|
|
3
|
+
export const getStreamContents = async (stream, {init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize}, {maxBuffer = Number.POSITIVE_INFINITY} = {}) => {
|
|
4
|
+
const asyncIterable = getAsyncIterable(stream);
|
|
5
|
+
|
|
6
|
+
const state = init();
|
|
7
|
+
state.length = 0;
|
|
8
|
+
|
|
9
|
+
try {
|
|
10
|
+
for await (const chunk of asyncIterable) {
|
|
11
|
+
const chunkType = getChunkType(chunk);
|
|
12
|
+
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
13
|
+
appendChunk({
|
|
14
|
+
convertedChunk,
|
|
15
|
+
state,
|
|
16
|
+
getSize,
|
|
17
|
+
truncateChunk,
|
|
18
|
+
addChunk,
|
|
19
|
+
maxBuffer,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
appendFinalChunk({
|
|
24
|
+
state,
|
|
25
|
+
convertChunk,
|
|
26
|
+
getSize,
|
|
27
|
+
truncateChunk,
|
|
28
|
+
addChunk,
|
|
29
|
+
getFinalChunk,
|
|
30
|
+
maxBuffer,
|
|
31
|
+
});
|
|
32
|
+
return finalize(state);
|
|
33
|
+
} catch (error) {
|
|
34
|
+
const normalizedError = typeof error === 'object' && error !== null ? error : new Error(error);
|
|
35
|
+
normalizedError.bufferedData = finalize(state);
|
|
36
|
+
throw normalizedError;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const appendFinalChunk = ({state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer}) => {
|
|
41
|
+
const convertedChunk = getFinalChunk(state);
|
|
42
|
+
if (convertedChunk !== undefined) {
|
|
43
|
+
appendChunk({
|
|
44
|
+
convertedChunk,
|
|
45
|
+
state,
|
|
46
|
+
getSize,
|
|
47
|
+
truncateChunk,
|
|
48
|
+
addChunk,
|
|
49
|
+
maxBuffer,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const appendChunk = ({convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer}) => {
|
|
55
|
+
const chunkSize = getSize(convertedChunk);
|
|
56
|
+
const newLength = state.length + chunkSize;
|
|
57
|
+
|
|
58
|
+
if (newLength <= maxBuffer) {
|
|
59
|
+
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
64
|
+
|
|
65
|
+
if (truncatedChunk !== undefined) {
|
|
66
|
+
addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
throw new MaxBufferError();
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const addNewChunk = (convertedChunk, state, addChunk, newLength) => {
|
|
73
|
+
state.contents = addChunk(convertedChunk, state, newLength);
|
|
74
|
+
state.length = newLength;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const getChunkType = chunk => {
|
|
78
|
+
const typeOfChunk = typeof chunk;
|
|
79
|
+
|
|
80
|
+
if (typeOfChunk === 'string') {
|
|
81
|
+
return 'string';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (typeOfChunk !== 'object' || chunk === null) {
|
|
85
|
+
return 'others';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
89
|
+
return 'buffer';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const prototypeName = objectToString.call(chunk);
|
|
93
|
+
|
|
94
|
+
if (prototypeName === '[object ArrayBuffer]') {
|
|
95
|
+
return 'arrayBuffer';
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (prototypeName === '[object DataView]') {
|
|
99
|
+
return 'dataView';
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (
|
|
103
|
+
Number.isInteger(chunk.byteLength)
|
|
104
|
+
&& Number.isInteger(chunk.byteOffset)
|
|
105
|
+
&& objectToString.call(chunk.buffer) === '[object ArrayBuffer]'
|
|
106
|
+
) {
|
|
107
|
+
return 'typedArray';
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return 'others';
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const {toString: objectToString} = Object.prototype;
|
|
114
|
+
|
|
115
|
+
export class MaxBufferError extends Error {
|
|
116
|
+
name = 'MaxBufferError';
|
|
117
|
+
|
|
118
|
+
constructor() {
|
|
119
|
+
super('maxBuffer exceeded');
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {type Readable} from 'node:stream';
|
|
2
|
+
import {type Buffer} from 'node:buffer';
|
|
3
|
+
|
|
4
|
+
export class MaxBufferError extends Error {
|
|
5
|
+
readonly name: 'MaxBufferError';
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
10
|
+
type TextStreamItem = string | Buffer | ArrayBuffer | ArrayBufferView;
|
|
11
|
+
export type AnyStream<SteamItem = TextStreamItem> = Readable | ReadableStream<SteamItem> | AsyncIterable<SteamItem>;
|
|
12
|
+
|
|
13
|
+
export type Options = {
|
|
14
|
+
/**
|
|
15
|
+
Maximum length of the stream. If exceeded, the promise will be rejected with a `MaxBufferError`.
|
|
16
|
+
|
|
17
|
+
Depending on the [method](#api), the length is measured with [`string.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), [`buffer.length`](https://nodejs.org/api/buffer.html#buflength), [`arrayBuffer.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength) or [`array.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length).
|
|
18
|
+
|
|
19
|
+
@default Infinity
|
|
20
|
+
*/
|
|
21
|
+
readonly maxBuffer?: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Get the given `stream` as a string.
|
|
26
|
+
|
|
27
|
+
@returns The stream's contents as a promise.
|
|
28
|
+
|
|
29
|
+
@example
|
|
30
|
+
```
|
|
31
|
+
import fs from 'node:fs';
|
|
32
|
+
import getStream from 'get-stream';
|
|
33
|
+
|
|
34
|
+
const stream = fs.createReadStream('unicorn.txt');
|
|
35
|
+
|
|
36
|
+
console.log(await getStream(stream));
|
|
37
|
+
// ,,))))))));,
|
|
38
|
+
// __)))))))))))))),
|
|
39
|
+
// \|/ -\(((((''''((((((((.
|
|
40
|
+
// -*-==//////(('' . `)))))),
|
|
41
|
+
// /|\ ))| o ;-. '((((( ,(,
|
|
42
|
+
// ( `| / ) ;))))' ,_))^;(~
|
|
43
|
+
// | | | ,))((((_ _____------~~~-. %,;(;(>';'~
|
|
44
|
+
// o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~
|
|
45
|
+
// ; ''''```` `: `:::|\,__,%% );`'; ~
|
|
46
|
+
// | _ ) / `:|`----' `-'
|
|
47
|
+
// ______/\/~ | / /
|
|
48
|
+
// /~;;.____/;;' / ___--,-( `;;;/
|
|
49
|
+
// / // _;______;'------~~~~~ /;;/\ /
|
|
50
|
+
// // | | / ; \;;,\
|
|
51
|
+
// (<_ | ; /',/-----' _>
|
|
52
|
+
// \_| ||_ //~;~~~~~~~~~
|
|
53
|
+
// `\_| (,~~
|
|
54
|
+
// \~\
|
|
55
|
+
// ~~
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
@example
|
|
59
|
+
```
|
|
60
|
+
import getStream from 'get-stream';
|
|
61
|
+
|
|
62
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
63
|
+
console.log(await getStream(readableStream));
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
@example
|
|
67
|
+
```
|
|
68
|
+
import {opendir} from 'node:fs/promises';
|
|
69
|
+
import {getStreamAsArray} from 'get-stream';
|
|
70
|
+
|
|
71
|
+
const asyncIterable = await opendir(directory);
|
|
72
|
+
console.log(await getStreamAsArray(asyncIterable));
|
|
73
|
+
```
|
|
74
|
+
*/
|
|
75
|
+
export default function getStream(stream: AnyStream, options?: Options): Promise<string>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
Get the given `stream` as a Node.js [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer).
|
|
79
|
+
|
|
80
|
+
@returns The stream's contents as a promise.
|
|
81
|
+
|
|
82
|
+
@example
|
|
83
|
+
```
|
|
84
|
+
import {getStreamAsBuffer} from 'get-stream';
|
|
85
|
+
|
|
86
|
+
const stream = fs.createReadStream('unicorn.png');
|
|
87
|
+
console.log(await getStreamAsBuffer(stream));
|
|
88
|
+
```
|
|
89
|
+
*/
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
91
|
+
export function getStreamAsBuffer(stream: AnyStream, options?: Options): Promise<Buffer>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
Get the given `stream` as an [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
|
95
|
+
|
|
96
|
+
@returns The stream's contents as a promise.
|
|
97
|
+
|
|
98
|
+
@example
|
|
99
|
+
```
|
|
100
|
+
import {getStreamAsArrayBuffer} from 'get-stream';
|
|
101
|
+
|
|
102
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
103
|
+
console.log(await getStreamAsArrayBuffer(readableStream));
|
|
104
|
+
```
|
|
105
|
+
*/
|
|
106
|
+
export function getStreamAsArrayBuffer(stream: AnyStream, options?: Options): Promise<ArrayBuffer>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
Get the given `stream` as an array. Unlike [other methods](#api), this supports [streams of objects](https://nodejs.org/api/stream.html#object-mode).
|
|
110
|
+
|
|
111
|
+
@returns The stream's contents as a promise.
|
|
112
|
+
|
|
113
|
+
@example
|
|
114
|
+
```
|
|
115
|
+
import {getStreamAsArray} from 'get-stream';
|
|
116
|
+
|
|
117
|
+
const {body: readableStream} = await fetch('https://example.com');
|
|
118
|
+
console.log(await getStreamAsArray(readableStream));
|
|
119
|
+
```
|
|
120
|
+
*/
|
|
121
|
+
export function getStreamAsArray<Item>(stream: AnyStream<Item>, options?: Options): Promise<Item[]>;
|