@dotpi/tools 2.7.0 → 2.7.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/dotpi_root/dist/@dotpi/avahi-monitor-module/node_modules/.package-lock.json +7 -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 +1 -2
- 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 +1 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +1 -2
- package/package.json +15 -10
- package/.editorbackup/NOTES.md~ +0 -974
- package/.editorbackup/PIPEWIRE.md~ +0 -42
- package/.editorbackup/README.md~ +0 -335
- package/.history/dotpi_root/dist/@dotpi/javascript/index_20250224110150.js +0 -0
- package/.history/dotpi_root/dist/@dotpi/javascript/index_20250429123336.js +0 -6
- package/.history/dotpi_root/dist/@dotpi/javascript/package_20250224111859.json +0 -15
- package/.history/dotpi_root/dist/@dotpi/javascript/package_20250429101520.json +0 -16
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250117162542.bash +0 -556
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428182930.bash +0 -556
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183019.bash +0 -561
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183434.bash +0 -563
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183737.bash +0 -563
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183826.bash +0 -563
- package/.history/test/utils.spec_20241114125309.js +0 -48
- package/.history/test/utils.spec_20250428183107.js +0 -50
- package/.history/test/utils.spec_20250428183349.js +0 -50
- package/.history/test/utils.spec_20250428183620.js +0 -49
- package/.history/test/utils.spec_20250428183631.js +0 -50
- package/.history/test/utils.spec_20250428183753.js +0 -50
- package/.history/test/utils.spec_20250428183813.js +0 -50
- 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/javascript/LICENSE +0 -28
- package/dotpi_root/dist/@dotpi/module/LICENSE +0 -28
- 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/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 -50
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {Buffer} from 'node:buffer';
|
|
2
|
+
import {StringDecoder} from 'node:string_decoder';
|
|
3
|
+
import {isUint8Array, bufferToUint8Array} from '../utils/uint-array.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
When using binary encodings, add an internal generator that converts chunks from `Buffer` to `string` or `Uint8Array`.
|
|
7
|
+
Chunks might be Buffer, Uint8Array or strings since:
|
|
8
|
+
- `subprocess.stdout|stderr` emits Buffers
|
|
9
|
+
- `subprocess.stdin.write()` accepts Buffer, Uint8Array or string
|
|
10
|
+
- Previous generators might return Uint8Array or string
|
|
11
|
+
|
|
12
|
+
However, those are converted to Buffer:
|
|
13
|
+
- on writes: `Duplex.writable` `decodeStrings: true` default option
|
|
14
|
+
- on reads: `Duplex.readable` `readableEncoding: null` default option
|
|
15
|
+
*/
|
|
16
|
+
export const getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
17
|
+
if (skipped) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (binary) {
|
|
22
|
+
return {transform: encodingUint8ArrayGenerator.bind(undefined, new TextEncoder())};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const stringDecoder = new StringDecoder(encoding);
|
|
26
|
+
return {
|
|
27
|
+
transform: encodingStringGenerator.bind(undefined, stringDecoder),
|
|
28
|
+
final: encodingStringFinal.bind(undefined, stringDecoder),
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const encodingUint8ArrayGenerator = function * (textEncoder, chunk) {
|
|
33
|
+
if (Buffer.isBuffer(chunk)) {
|
|
34
|
+
yield bufferToUint8Array(chunk);
|
|
35
|
+
} else if (typeof chunk === 'string') {
|
|
36
|
+
yield textEncoder.encode(chunk);
|
|
37
|
+
} else {
|
|
38
|
+
yield chunk;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const encodingStringGenerator = function * (stringDecoder, chunk) {
|
|
43
|
+
yield isUint8Array(chunk) ? stringDecoder.write(chunk) : chunk;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const encodingStringFinal = function * (stringDecoder) {
|
|
47
|
+
const lastChunk = stringDecoder.end();
|
|
48
|
+
if (lastChunk !== '') {
|
|
49
|
+
yield lastChunk;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {Transform, getDefaultHighWaterMark} from 'node:stream';
|
|
2
|
+
import {isAsyncGenerator} from '../stdio/type.js';
|
|
3
|
+
import {getSplitLinesGenerator, getAppendNewlineGenerator} from './split.js';
|
|
4
|
+
import {getValidateTransformInput, getValidateTransformReturn} from './validate.js';
|
|
5
|
+
import {getEncodingTransformGenerator} from './encoding-transform.js';
|
|
6
|
+
import {
|
|
7
|
+
pushChunks,
|
|
8
|
+
transformChunk,
|
|
9
|
+
finalChunks,
|
|
10
|
+
destroyTransform,
|
|
11
|
+
} from './run-async.js';
|
|
12
|
+
import {
|
|
13
|
+
pushChunksSync,
|
|
14
|
+
transformChunkSync,
|
|
15
|
+
finalChunksSync,
|
|
16
|
+
runTransformSync,
|
|
17
|
+
} from './run-sync.js';
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
Generators can be used to transform/filter standard streams.
|
|
21
|
+
|
|
22
|
+
Generators have a simple syntax, yet allows all of the following:
|
|
23
|
+
- Sharing `state` between chunks
|
|
24
|
+
- Flushing logic, by using a `final` function
|
|
25
|
+
- Asynchronous logic
|
|
26
|
+
- Emitting multiple chunks from a single source chunk, even if spaced in time, by using multiple `yield`
|
|
27
|
+
- Filtering, by using no `yield`
|
|
28
|
+
|
|
29
|
+
Therefore, there is no need to allow Node.js or web transform streams.
|
|
30
|
+
|
|
31
|
+
The `highWaterMark` is kept as the default value, since this is what `subprocess.std*` uses.
|
|
32
|
+
|
|
33
|
+
Chunks are currently processed serially. We could add a `concurrency` option to parallelize in the future.
|
|
34
|
+
|
|
35
|
+
Transform an array of generator functions into a `Transform` stream.
|
|
36
|
+
`Duplex.from(generator)` cannot be used because it does not allow setting the `objectMode` and `highWaterMark`.
|
|
37
|
+
*/
|
|
38
|
+
export const generatorToStream = ({
|
|
39
|
+
value,
|
|
40
|
+
value: {transform, final, writableObjectMode, readableObjectMode},
|
|
41
|
+
optionName,
|
|
42
|
+
}, {encoding}) => {
|
|
43
|
+
const state = {};
|
|
44
|
+
const generators = addInternalGenerators(value, encoding, optionName);
|
|
45
|
+
|
|
46
|
+
const transformAsync = isAsyncGenerator(transform);
|
|
47
|
+
const finalAsync = isAsyncGenerator(final);
|
|
48
|
+
const transformMethod = transformAsync
|
|
49
|
+
? pushChunks.bind(undefined, transformChunk, state)
|
|
50
|
+
: pushChunksSync.bind(undefined, transformChunkSync);
|
|
51
|
+
const finalMethod = transformAsync || finalAsync
|
|
52
|
+
? pushChunks.bind(undefined, finalChunks, state)
|
|
53
|
+
: pushChunksSync.bind(undefined, finalChunksSync);
|
|
54
|
+
const destroyMethod = transformAsync || finalAsync
|
|
55
|
+
? destroyTransform.bind(undefined, state)
|
|
56
|
+
: undefined;
|
|
57
|
+
|
|
58
|
+
const stream = new Transform({
|
|
59
|
+
writableObjectMode,
|
|
60
|
+
writableHighWaterMark: getDefaultHighWaterMark(writableObjectMode),
|
|
61
|
+
readableObjectMode,
|
|
62
|
+
readableHighWaterMark: getDefaultHighWaterMark(readableObjectMode),
|
|
63
|
+
transform(chunk, encoding, done) {
|
|
64
|
+
transformMethod([chunk, generators, 0], this, done);
|
|
65
|
+
},
|
|
66
|
+
flush(done) {
|
|
67
|
+
finalMethod([generators], this, done);
|
|
68
|
+
},
|
|
69
|
+
destroy: destroyMethod,
|
|
70
|
+
});
|
|
71
|
+
return {stream};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// Applies transform generators in sync mode
|
|
75
|
+
export const runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
|
|
76
|
+
const generators = stdioItems.filter(({type}) => type === 'generator');
|
|
77
|
+
const reversedGenerators = isInput ? generators.reverse() : generators;
|
|
78
|
+
|
|
79
|
+
for (const {value, optionName} of reversedGenerators) {
|
|
80
|
+
const generators = addInternalGenerators(value, encoding, optionName);
|
|
81
|
+
chunks = runTransformSync(generators, chunks);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return chunks;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Generators used internally to convert the chunk type, validate it, and split into lines
|
|
88
|
+
const addInternalGenerators = (
|
|
89
|
+
{transform, final, binary, writableObjectMode, readableObjectMode, preserveNewlines},
|
|
90
|
+
encoding,
|
|
91
|
+
optionName,
|
|
92
|
+
) => {
|
|
93
|
+
const state = {};
|
|
94
|
+
return [
|
|
95
|
+
{transform: getValidateTransformInput(writableObjectMode, optionName)},
|
|
96
|
+
getEncodingTransformGenerator(binary, encoding, writableObjectMode),
|
|
97
|
+
getSplitLinesGenerator(binary, preserveNewlines, writableObjectMode, state),
|
|
98
|
+
{transform, final},
|
|
99
|
+
{transform: getValidateTransformReturn(readableObjectMode, optionName)},
|
|
100
|
+
getAppendNewlineGenerator({
|
|
101
|
+
binary,
|
|
102
|
+
preserveNewlines,
|
|
103
|
+
readableObjectMode,
|
|
104
|
+
state,
|
|
105
|
+
}),
|
|
106
|
+
].filter(Boolean);
|
|
107
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import isPlainObj from 'is-plain-obj';
|
|
2
|
+
import {BINARY_ENCODINGS} from '../arguments/encoding-option.js';
|
|
3
|
+
import {TRANSFORM_TYPES} from '../stdio/type.js';
|
|
4
|
+
import {getTransformObjectModes} from './object-mode.js';
|
|
5
|
+
|
|
6
|
+
// Transforms generators/duplex/TransformStream can have multiple shapes.
|
|
7
|
+
// This normalizes it and applies default values.
|
|
8
|
+
export const normalizeTransforms = (stdioItems, optionName, direction, options) => [
|
|
9
|
+
...stdioItems.filter(({type}) => !TRANSFORM_TYPES.has(type)),
|
|
10
|
+
...getTransforms(stdioItems, optionName, direction, options),
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
const getTransforms = (stdioItems, optionName, direction, {encoding}) => {
|
|
14
|
+
const transforms = stdioItems.filter(({type}) => TRANSFORM_TYPES.has(type));
|
|
15
|
+
const newTransforms = Array.from({length: transforms.length});
|
|
16
|
+
|
|
17
|
+
for (const [index, stdioItem] of Object.entries(transforms)) {
|
|
18
|
+
newTransforms[index] = normalizeTransform({
|
|
19
|
+
stdioItem,
|
|
20
|
+
index: Number(index),
|
|
21
|
+
newTransforms,
|
|
22
|
+
optionName,
|
|
23
|
+
direction,
|
|
24
|
+
encoding,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return sortTransforms(newTransforms, direction);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const normalizeTransform = ({stdioItem, stdioItem: {type}, index, newTransforms, optionName, direction, encoding}) => {
|
|
32
|
+
if (type === 'duplex') {
|
|
33
|
+
return normalizeDuplex({stdioItem, optionName});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (type === 'webTransform') {
|
|
37
|
+
return normalizeTransformStream({
|
|
38
|
+
stdioItem,
|
|
39
|
+
index,
|
|
40
|
+
newTransforms,
|
|
41
|
+
direction,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return normalizeGenerator({
|
|
46
|
+
stdioItem,
|
|
47
|
+
index,
|
|
48
|
+
newTransforms,
|
|
49
|
+
direction,
|
|
50
|
+
encoding,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const normalizeDuplex = ({
|
|
55
|
+
stdioItem,
|
|
56
|
+
stdioItem: {
|
|
57
|
+
value: {
|
|
58
|
+
transform,
|
|
59
|
+
transform: {writableObjectMode, readableObjectMode},
|
|
60
|
+
objectMode = readableObjectMode,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
optionName,
|
|
64
|
+
}) => {
|
|
65
|
+
if (objectMode && !readableObjectMode) {
|
|
66
|
+
throw new TypeError(`The \`${optionName}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (!objectMode && readableObjectMode) {
|
|
70
|
+
throw new TypeError(`The \`${optionName}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
...stdioItem,
|
|
75
|
+
value: {transform, writableObjectMode, readableObjectMode},
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const normalizeTransformStream = ({stdioItem, stdioItem: {value}, index, newTransforms, direction}) => {
|
|
80
|
+
const {transform, objectMode} = isPlainObj(value) ? value : {transform: value};
|
|
81
|
+
const {writableObjectMode, readableObjectMode} = getTransformObjectModes(objectMode, index, newTransforms, direction);
|
|
82
|
+
return ({
|
|
83
|
+
...stdioItem,
|
|
84
|
+
value: {transform, writableObjectMode, readableObjectMode},
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const normalizeGenerator = ({stdioItem, stdioItem: {value}, index, newTransforms, direction, encoding}) => {
|
|
89
|
+
const {
|
|
90
|
+
transform,
|
|
91
|
+
final,
|
|
92
|
+
binary: binaryOption = false,
|
|
93
|
+
preserveNewlines = false,
|
|
94
|
+
objectMode,
|
|
95
|
+
} = isPlainObj(value) ? value : {transform: value};
|
|
96
|
+
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
97
|
+
const {writableObjectMode, readableObjectMode} = getTransformObjectModes(objectMode, index, newTransforms, direction);
|
|
98
|
+
return {
|
|
99
|
+
...stdioItem,
|
|
100
|
+
value: {
|
|
101
|
+
transform,
|
|
102
|
+
final,
|
|
103
|
+
binary,
|
|
104
|
+
preserveNewlines,
|
|
105
|
+
writableObjectMode,
|
|
106
|
+
readableObjectMode,
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const sortTransforms = (newTransforms, direction) => direction === 'input' ? newTransforms.reverse() : newTransforms;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {TRANSFORM_TYPES} from '../stdio/type.js';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Retrieve the `objectMode`s of a single transform.
|
|
5
|
+
`objectMode` determines the return value's type, i.e. the `readableObjectMode`.
|
|
6
|
+
The chunk argument's type is based on the previous generator's return value, i.e. the `writableObjectMode` is based on the previous `readableObjectMode`.
|
|
7
|
+
The last input's generator is read by `subprocess.stdin` which:
|
|
8
|
+
- should not be in `objectMode` for performance reasons.
|
|
9
|
+
- can only be strings, Buffers and Uint8Arrays.
|
|
10
|
+
Therefore its `readableObjectMode` must be `false`.
|
|
11
|
+
The same applies to the first output's generator's `writableObjectMode`.
|
|
12
|
+
*/
|
|
13
|
+
export const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === 'output'
|
|
14
|
+
? getOutputObjectModes(objectMode, index, newTransforms)
|
|
15
|
+
: getInputObjectModes(objectMode, index, newTransforms);
|
|
16
|
+
|
|
17
|
+
const getOutputObjectModes = (objectMode, index, newTransforms) => {
|
|
18
|
+
const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
|
|
19
|
+
const readableObjectMode = objectMode ?? writableObjectMode;
|
|
20
|
+
return {writableObjectMode, readableObjectMode};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const getInputObjectModes = (objectMode, index, newTransforms) => {
|
|
24
|
+
const writableObjectMode = index === 0
|
|
25
|
+
? objectMode === true
|
|
26
|
+
: newTransforms[index - 1].value.readableObjectMode;
|
|
27
|
+
const readableObjectMode = index !== newTransforms.length - 1 && (objectMode ?? writableObjectMode);
|
|
28
|
+
return {writableObjectMode, readableObjectMode};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Retrieve the `objectMode` of a file descriptor, e.g. `stdout` or `stderr`
|
|
32
|
+
export const getFdObjectMode = (stdioItems, direction) => {
|
|
33
|
+
const lastTransform = stdioItems.findLast(({type}) => TRANSFORM_TYPES.has(type));
|
|
34
|
+
if (lastTransform === undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return direction === 'input'
|
|
39
|
+
? lastTransform.value.writableObjectMode
|
|
40
|
+
: lastTransform.value.readableObjectMode;
|
|
41
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {callbackify} from 'node:util';
|
|
2
|
+
|
|
3
|
+
// Applies a series of generator functions asynchronously
|
|
4
|
+
export const pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
5
|
+
state.currentIterable = getChunks(...getChunksArguments);
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
for await (const chunk of state.currentIterable) {
|
|
9
|
+
transformStream.push(chunk);
|
|
10
|
+
}
|
|
11
|
+
} finally {
|
|
12
|
+
delete state.currentIterable;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// For each new chunk, apply each `transform()` method
|
|
17
|
+
export const transformChunk = async function * (chunk, generators, index) {
|
|
18
|
+
if (index === generators.length) {
|
|
19
|
+
yield chunk;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const {transform = identityGenerator} = generators[index];
|
|
24
|
+
for await (const transformedChunk of transform(chunk)) {
|
|
25
|
+
yield * transformChunk(transformedChunk, generators, index + 1);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// At the end, apply each `final()` method, followed by the `transform()` method of the next transforms
|
|
30
|
+
export const finalChunks = async function * (generators) {
|
|
31
|
+
for (const [index, {final}] of Object.entries(generators)) {
|
|
32
|
+
yield * generatorFinalChunks(final, Number(index), generators);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const generatorFinalChunks = async function * (final, index, generators) {
|
|
37
|
+
if (final === undefined) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
for await (const finalChunk of final()) {
|
|
42
|
+
yield * transformChunk(finalChunk, generators, index + 1);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Cancel any ongoing async generator when the Transform is destroyed, e.g. when the subprocess errors
|
|
47
|
+
export const destroyTransform = callbackify(async ({currentIterable}, error) => {
|
|
48
|
+
if (currentIterable !== undefined) {
|
|
49
|
+
await (error ? currentIterable.throw(error) : currentIterable.return());
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (error) {
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const identityGenerator = function * (chunk) {
|
|
59
|
+
yield chunk;
|
|
60
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Duplicate the code from `run-async.js` but as synchronous functions
|
|
2
|
+
export const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
|
|
3
|
+
try {
|
|
4
|
+
for (const chunk of getChunksSync(...getChunksArguments)) {
|
|
5
|
+
transformStream.push(chunk);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
done();
|
|
9
|
+
} catch (error) {
|
|
10
|
+
done(error);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Run synchronous generators with `execaSync()`
|
|
15
|
+
export const runTransformSync = (generators, chunks) => [
|
|
16
|
+
...chunks.flatMap(chunk => [...transformChunkSync(chunk, generators, 0)]),
|
|
17
|
+
...finalChunksSync(generators),
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export const transformChunkSync = function * (chunk, generators, index) {
|
|
21
|
+
if (index === generators.length) {
|
|
22
|
+
yield chunk;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const {transform = identityGenerator} = generators[index];
|
|
27
|
+
for (const transformedChunk of transform(chunk)) {
|
|
28
|
+
yield * transformChunkSync(transformedChunk, generators, index + 1);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const finalChunksSync = function * (generators) {
|
|
33
|
+
for (const [index, {final}] of Object.entries(generators)) {
|
|
34
|
+
yield * generatorFinalChunksSync(final, Number(index), generators);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const generatorFinalChunksSync = function * (final, index, generators) {
|
|
39
|
+
if (final === undefined) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
for (const finalChunk of final()) {
|
|
44
|
+
yield * transformChunkSync(finalChunk, generators, index + 1);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const identityGenerator = function * (chunk) {
|
|
49
|
+
yield chunk;
|
|
50
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Split chunks line-wise for generators passed to the `std*` options
|
|
2
|
+
export const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped
|
|
3
|
+
? undefined
|
|
4
|
+
: initializeSplitLines(preserveNewlines, state);
|
|
5
|
+
|
|
6
|
+
// Same but for synchronous methods
|
|
7
|
+
export const splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode
|
|
8
|
+
? chunk.flatMap(item => splitLinesItemSync(item, preserveNewlines))
|
|
9
|
+
: splitLinesItemSync(chunk, preserveNewlines);
|
|
10
|
+
|
|
11
|
+
const splitLinesItemSync = (chunk, preserveNewlines) => {
|
|
12
|
+
const {transform, final} = initializeSplitLines(preserveNewlines, {});
|
|
13
|
+
return [...transform(chunk), ...final()];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const initializeSplitLines = (preserveNewlines, state) => {
|
|
17
|
+
state.previousChunks = '';
|
|
18
|
+
return {
|
|
19
|
+
transform: splitGenerator.bind(undefined, state, preserveNewlines),
|
|
20
|
+
final: linesFinal.bind(undefined, state),
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// This imperative logic is much faster than using `String.split()` and uses very low memory.
|
|
25
|
+
const splitGenerator = function * (state, preserveNewlines, chunk) {
|
|
26
|
+
if (typeof chunk !== 'string') {
|
|
27
|
+
yield chunk;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let {previousChunks} = state;
|
|
32
|
+
let start = -1;
|
|
33
|
+
|
|
34
|
+
for (let end = 0; end < chunk.length; end += 1) {
|
|
35
|
+
if (chunk[end] === '\n') {
|
|
36
|
+
const newlineLength = getNewlineLength(chunk, end, preserveNewlines, state);
|
|
37
|
+
let line = chunk.slice(start + 1, end + 1 - newlineLength);
|
|
38
|
+
|
|
39
|
+
if (previousChunks.length > 0) {
|
|
40
|
+
line = concatString(previousChunks, line);
|
|
41
|
+
previousChunks = '';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
yield line;
|
|
45
|
+
start = end;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (start !== chunk.length - 1) {
|
|
50
|
+
previousChunks = concatString(previousChunks, chunk.slice(start + 1));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
state.previousChunks = previousChunks;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const getNewlineLength = (chunk, end, preserveNewlines, state) => {
|
|
57
|
+
if (preserveNewlines) {
|
|
58
|
+
return 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
state.isWindowsNewline = end !== 0 && chunk[end - 1] === '\r';
|
|
62
|
+
return state.isWindowsNewline ? 2 : 1;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const linesFinal = function * ({previousChunks}) {
|
|
66
|
+
if (previousChunks.length > 0) {
|
|
67
|
+
yield previousChunks;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// Unless `preserveNewlines: true` is used, we strip the newline of each line.
|
|
72
|
+
// This re-adds them after the user `transform` code has run.
|
|
73
|
+
export const getAppendNewlineGenerator = ({binary, preserveNewlines, readableObjectMode, state}) => binary || preserveNewlines || readableObjectMode
|
|
74
|
+
? undefined
|
|
75
|
+
: {transform: appendNewlineGenerator.bind(undefined, state)};
|
|
76
|
+
|
|
77
|
+
const appendNewlineGenerator = function * ({isWindowsNewline = false}, chunk) {
|
|
78
|
+
const {unixNewline, windowsNewline, LF, concatBytes} = typeof chunk === 'string' ? linesStringInfo : linesUint8ArrayInfo;
|
|
79
|
+
|
|
80
|
+
if (chunk.at(-1) === LF) {
|
|
81
|
+
yield chunk;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const newline = isWindowsNewline ? windowsNewline : unixNewline;
|
|
86
|
+
yield concatBytes(chunk, newline);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const concatString = (firstChunk, secondChunk) => `${firstChunk}${secondChunk}`;
|
|
90
|
+
|
|
91
|
+
const linesStringInfo = {
|
|
92
|
+
windowsNewline: '\r\n',
|
|
93
|
+
unixNewline: '\n',
|
|
94
|
+
LF: '\n',
|
|
95
|
+
concatBytes: concatString,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const concatUint8Array = (firstChunk, secondChunk) => {
|
|
99
|
+
const chunk = new Uint8Array(firstChunk.length + secondChunk.length);
|
|
100
|
+
chunk.set(firstChunk, 0);
|
|
101
|
+
chunk.set(secondChunk, firstChunk.length);
|
|
102
|
+
return chunk;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const linesUint8ArrayInfo = {
|
|
106
|
+
windowsNewline: new Uint8Array([0x0D, 0x0A]),
|
|
107
|
+
unixNewline: new Uint8Array([0x0A]),
|
|
108
|
+
LF: 0x0A,
|
|
109
|
+
concatBytes: concatUint8Array,
|
|
110
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {Buffer} from 'node:buffer';
|
|
2
|
+
import {isUint8Array} from '../utils/uint-array.js';
|
|
3
|
+
|
|
4
|
+
// Validate the type of chunk argument passed to transform generators
|
|
5
|
+
export const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode
|
|
6
|
+
? undefined
|
|
7
|
+
: validateStringTransformInput.bind(undefined, optionName);
|
|
8
|
+
|
|
9
|
+
const validateStringTransformInput = function * (optionName, chunk) {
|
|
10
|
+
if (typeof chunk !== 'string' && !isUint8Array(chunk) && !Buffer.isBuffer(chunk)) {
|
|
11
|
+
throw new TypeError(`The \`${optionName}\` option's transform must use "objectMode: true" to receive as input: ${typeof chunk}.`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
yield chunk;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Validate the type of the value returned by transform generators
|
|
18
|
+
export const getValidateTransformReturn = (readableObjectMode, optionName) => readableObjectMode
|
|
19
|
+
? validateObjectTransformReturn.bind(undefined, optionName)
|
|
20
|
+
: validateStringTransformReturn.bind(undefined, optionName);
|
|
21
|
+
|
|
22
|
+
const validateObjectTransformReturn = function * (optionName, chunk) {
|
|
23
|
+
validateEmptyReturn(optionName, chunk);
|
|
24
|
+
yield chunk;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const validateStringTransformReturn = function * (optionName, chunk) {
|
|
28
|
+
validateEmptyReturn(optionName, chunk);
|
|
29
|
+
|
|
30
|
+
if (typeof chunk !== 'string' && !isUint8Array(chunk)) {
|
|
31
|
+
throw new TypeError(`The \`${optionName}\` option's function must yield a string or an Uint8Array, not ${typeof chunk}.`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
yield chunk;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const validateEmptyReturn = (optionName, chunk) => {
|
|
38
|
+
if (chunk === null || chunk === undefined) {
|
|
39
|
+
throw new TypeError(`The \`${optionName}\` option's function must not call \`yield ${chunk}\`.
|
|
40
|
+
Instead, \`yield\` should either be called with a value, or not be called at all. For example:
|
|
41
|
+
if (condition) { yield value; }`);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {once} from 'node:events';
|
|
2
|
+
|
|
3
|
+
// Combines `util.aborted()` and `events.addAbortListener()`: promise-based and cleaned up with a stop signal
|
|
4
|
+
export const onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
5
|
+
if (!mainSignal.aborted) {
|
|
6
|
+
await once(mainSignal, 'abort', {signal: stopSignal});
|
|
7
|
+
}
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {addAbortListener} from 'node:events';
|
|
2
|
+
|
|
3
|
+
// Temporarily increase the maximum number of listeners on an eventEmitter
|
|
4
|
+
export const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
5
|
+
const maxListeners = eventEmitter.getMaxListeners();
|
|
6
|
+
if (maxListeners === 0 || maxListeners === Number.POSITIVE_INFINITY) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
eventEmitter.setMaxListeners(maxListeners + maxListenersIncrement);
|
|
11
|
+
addAbortListener(signal, () => {
|
|
12
|
+
eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
|
|
3
|
+
export const isStandardStream = stream => STANDARD_STREAMS.includes(stream);
|
|
4
|
+
export const STANDARD_STREAMS = [process.stdin, process.stdout, process.stderr];
|
|
5
|
+
export const STANDARD_STREAMS_ALIASES = ['stdin', 'stdout', 'stderr'];
|
|
6
|
+
export const getStreamName = fdNumber => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {StringDecoder} from 'node:string_decoder';
|
|
2
|
+
|
|
3
|
+
const {toString: objectToString} = Object.prototype;
|
|
4
|
+
|
|
5
|
+
export const isArrayBuffer = value => objectToString.call(value) === '[object ArrayBuffer]';
|
|
6
|
+
|
|
7
|
+
// Is either Uint8Array or Buffer
|
|
8
|
+
export const isUint8Array = value => objectToString.call(value) === '[object Uint8Array]';
|
|
9
|
+
|
|
10
|
+
export const bufferToUint8Array = buffer => new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
11
|
+
|
|
12
|
+
const textEncoder = new TextEncoder();
|
|
13
|
+
const stringToUint8Array = string => textEncoder.encode(string);
|
|
14
|
+
|
|
15
|
+
const textDecoder = new TextDecoder();
|
|
16
|
+
export const uint8ArrayToString = uint8Array => textDecoder.decode(uint8Array);
|
|
17
|
+
|
|
18
|
+
export const joinToString = (uint8ArraysOrStrings, encoding) => {
|
|
19
|
+
const strings = uint8ArraysToStrings(uint8ArraysOrStrings, encoding);
|
|
20
|
+
return strings.join('');
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const uint8ArraysToStrings = (uint8ArraysOrStrings, encoding) => {
|
|
24
|
+
if (encoding === 'utf8' && uint8ArraysOrStrings.every(uint8ArrayOrString => typeof uint8ArrayOrString === 'string')) {
|
|
25
|
+
return uint8ArraysOrStrings;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const decoder = new StringDecoder(encoding);
|
|
29
|
+
const strings = uint8ArraysOrStrings
|
|
30
|
+
.map(uint8ArrayOrString => typeof uint8ArrayOrString === 'string'
|
|
31
|
+
? stringToUint8Array(uint8ArrayOrString)
|
|
32
|
+
: uint8ArrayOrString)
|
|
33
|
+
.map(uint8Array => decoder.write(uint8Array));
|
|
34
|
+
const finalString = decoder.end();
|
|
35
|
+
return finalString === '' ? strings : [...strings, finalString];
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const joinToUint8Array = uint8ArraysOrStrings => {
|
|
39
|
+
if (uint8ArraysOrStrings.length === 1 && isUint8Array(uint8ArraysOrStrings[0])) {
|
|
40
|
+
return uint8ArraysOrStrings[0];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return concatUint8Arrays(stringsToUint8Arrays(uint8ArraysOrStrings));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const stringsToUint8Arrays = uint8ArraysOrStrings => uint8ArraysOrStrings.map(uint8ArrayOrString => typeof uint8ArrayOrString === 'string'
|
|
47
|
+
? stringToUint8Array(uint8ArrayOrString)
|
|
48
|
+
: uint8ArrayOrString);
|
|
49
|
+
|
|
50
|
+
export const concatUint8Arrays = uint8Arrays => {
|
|
51
|
+
const result = new Uint8Array(getJoinLength(uint8Arrays));
|
|
52
|
+
|
|
53
|
+
let index = 0;
|
|
54
|
+
for (const uint8Array of uint8Arrays) {
|
|
55
|
+
result.set(uint8Array, index);
|
|
56
|
+
index += uint8Array.length;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return result;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const getJoinLength = uint8Arrays => {
|
|
63
|
+
let joinLength = 0;
|
|
64
|
+
for (const uint8Array of uint8Arrays) {
|
|
65
|
+
joinLength += uint8Array.length;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return joinLength;
|
|
69
|
+
};
|