@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,153 @@
|
|
|
1
|
+
import {ChildProcess} from 'node:child_process';
|
|
2
|
+
import isPlainObject from 'is-plain-obj';
|
|
3
|
+
import {isUint8Array, uint8ArrayToString} from '../utils/uint-array.js';
|
|
4
|
+
|
|
5
|
+
// Check whether the template string syntax is being used
|
|
6
|
+
export const isTemplateString = templates => Array.isArray(templates) && Array.isArray(templates.raw);
|
|
7
|
+
|
|
8
|
+
// Convert execa`file ...commandArguments` to execa(file, commandArguments)
|
|
9
|
+
export const parseTemplates = (templates, expressions) => {
|
|
10
|
+
let tokens = [];
|
|
11
|
+
|
|
12
|
+
for (const [index, template] of templates.entries()) {
|
|
13
|
+
tokens = parseTemplate({
|
|
14
|
+
templates,
|
|
15
|
+
expressions,
|
|
16
|
+
tokens,
|
|
17
|
+
index,
|
|
18
|
+
template,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (tokens.length === 0) {
|
|
23
|
+
throw new TypeError('Template script must not be empty');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const [file, ...commandArguments] = tokens;
|
|
27
|
+
return [file, commandArguments, {}];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const parseTemplate = ({templates, expressions, tokens, index, template}) => {
|
|
31
|
+
if (template === undefined) {
|
|
32
|
+
throw new TypeError(`Invalid backslash sequence: ${templates.raw[index]}`);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const {nextTokens, leadingWhitespaces, trailingWhitespaces} = splitByWhitespaces(template, templates.raw[index]);
|
|
36
|
+
const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
|
|
37
|
+
|
|
38
|
+
if (index === expressions.length) {
|
|
39
|
+
return newTokens;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const expression = expressions[index];
|
|
43
|
+
const expressionTokens = Array.isArray(expression)
|
|
44
|
+
? expression.map(expression => parseExpression(expression))
|
|
45
|
+
: [parseExpression(expression)];
|
|
46
|
+
return concatTokens(newTokens, expressionTokens, trailingWhitespaces);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// Like `string.split(/[ \t\r\n]+/)` except newlines and tabs are:
|
|
50
|
+
// - ignored when input as a backslash sequence like: `echo foo\n bar`
|
|
51
|
+
// - not ignored when input directly
|
|
52
|
+
// The only way to distinguish those in JavaScript is to use a tagged template and compare:
|
|
53
|
+
// - the first array argument, which does not escape backslash sequences
|
|
54
|
+
// - its `raw` property, which escapes them
|
|
55
|
+
const splitByWhitespaces = (template, rawTemplate) => {
|
|
56
|
+
if (rawTemplate.length === 0) {
|
|
57
|
+
return {nextTokens: [], leadingWhitespaces: false, trailingWhitespaces: false};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const nextTokens = [];
|
|
61
|
+
let templateStart = 0;
|
|
62
|
+
const leadingWhitespaces = DELIMITERS.has(rawTemplate[0]);
|
|
63
|
+
|
|
64
|
+
for (
|
|
65
|
+
let templateIndex = 0, rawIndex = 0;
|
|
66
|
+
templateIndex < template.length;
|
|
67
|
+
templateIndex += 1, rawIndex += 1
|
|
68
|
+
) {
|
|
69
|
+
const rawCharacter = rawTemplate[rawIndex];
|
|
70
|
+
if (DELIMITERS.has(rawCharacter)) {
|
|
71
|
+
if (templateStart !== templateIndex) {
|
|
72
|
+
nextTokens.push(template.slice(templateStart, templateIndex));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
templateStart = templateIndex + 1;
|
|
76
|
+
} else if (rawCharacter === '\\') {
|
|
77
|
+
const nextRawCharacter = rawTemplate[rawIndex + 1];
|
|
78
|
+
if (nextRawCharacter === '\n') {
|
|
79
|
+
// Handles escaped newlines in templates
|
|
80
|
+
templateIndex -= 1;
|
|
81
|
+
rawIndex += 1;
|
|
82
|
+
} else if (nextRawCharacter === 'u' && rawTemplate[rawIndex + 2] === '{') {
|
|
83
|
+
rawIndex = rawTemplate.indexOf('}', rawIndex + 3);
|
|
84
|
+
} else {
|
|
85
|
+
rawIndex += ESCAPE_LENGTH[nextRawCharacter] ?? 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const trailingWhitespaces = templateStart === template.length;
|
|
91
|
+
if (!trailingWhitespaces) {
|
|
92
|
+
nextTokens.push(template.slice(templateStart));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {nextTokens, leadingWhitespaces, trailingWhitespaces};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const DELIMITERS = new Set([' ', '\t', '\r', '\n']);
|
|
99
|
+
|
|
100
|
+
// Number of characters in backslash escape sequences: \0 \xXX or \uXXXX
|
|
101
|
+
// \cX is allowed in RegExps but not in strings
|
|
102
|
+
// Octal sequences are not allowed in strict mode
|
|
103
|
+
const ESCAPE_LENGTH = {x: 3, u: 5};
|
|
104
|
+
|
|
105
|
+
const concatTokens = (tokens, nextTokens, isSeparated) => isSeparated
|
|
106
|
+
|| tokens.length === 0
|
|
107
|
+
|| nextTokens.length === 0
|
|
108
|
+
? [...tokens, ...nextTokens]
|
|
109
|
+
: [
|
|
110
|
+
...tokens.slice(0, -1),
|
|
111
|
+
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
112
|
+
...nextTokens.slice(1),
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
// Handle `${expression}` inside the template string syntax
|
|
116
|
+
const parseExpression = expression => {
|
|
117
|
+
const typeOfExpression = typeof expression;
|
|
118
|
+
|
|
119
|
+
if (typeOfExpression === 'string') {
|
|
120
|
+
return expression;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (typeOfExpression === 'number') {
|
|
124
|
+
return String(expression);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (isPlainObject(expression) && ('stdout' in expression || 'isMaxBuffer' in expression)) {
|
|
128
|
+
return getSubprocessResult(expression);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (expression instanceof ChildProcess || Object.prototype.toString.call(expression) === '[object Promise]') {
|
|
132
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
133
|
+
throw new TypeError('Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const getSubprocessResult = ({stdout}) => {
|
|
140
|
+
if (typeof stdout === 'string') {
|
|
141
|
+
return stdout;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (isUint8Array(stdout)) {
|
|
145
|
+
return uint8ArrayToString(stdout);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (stdout === undefined) {
|
|
149
|
+
throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
|
|
153
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {aborted} from 'node:util';
|
|
2
|
+
import {createNonCommandError} from './throw.js';
|
|
3
|
+
|
|
4
|
+
// When passing an `unpipeSignal` option, abort piping when the signal is aborted.
|
|
5
|
+
// However, do not terminate the subprocesses.
|
|
6
|
+
export const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === undefined
|
|
7
|
+
? []
|
|
8
|
+
: [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
|
|
9
|
+
|
|
10
|
+
const unpipeOnSignalAbort = async (unpipeSignal, {sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime}) => {
|
|
11
|
+
await aborted(unpipeSignal, sourceStream);
|
|
12
|
+
await mergedStream.remove(sourceStream);
|
|
13
|
+
const error = new Error('Pipe canceled by `unpipeSignal` option.');
|
|
14
|
+
throw createNonCommandError({
|
|
15
|
+
error,
|
|
16
|
+
fileDescriptors,
|
|
17
|
+
sourceOptions,
|
|
18
|
+
startTime,
|
|
19
|
+
});
|
|
20
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {normalizeParameters} from '../methods/parameters.js';
|
|
2
|
+
import {getStartTime} from '../return/duration.js';
|
|
3
|
+
import {SUBPROCESS_OPTIONS, getToStream, getFromStream} from '../arguments/fd-options.js';
|
|
4
|
+
import {isDenoExecPath} from '../arguments/file-url.js';
|
|
5
|
+
|
|
6
|
+
// Normalize and validate arguments passed to `source.pipe(destination)`
|
|
7
|
+
export const normalizePipeArguments = ({source, sourcePromise, boundOptions, createNested}, ...pipeArguments) => {
|
|
8
|
+
const startTime = getStartTime();
|
|
9
|
+
const {
|
|
10
|
+
destination,
|
|
11
|
+
destinationStream,
|
|
12
|
+
destinationError,
|
|
13
|
+
from,
|
|
14
|
+
unpipeSignal,
|
|
15
|
+
} = getDestinationStream(boundOptions, createNested, pipeArguments);
|
|
16
|
+
const {sourceStream, sourceError} = getSourceStream(source, from);
|
|
17
|
+
const {options: sourceOptions, fileDescriptors} = SUBPROCESS_OPTIONS.get(source);
|
|
18
|
+
return {
|
|
19
|
+
sourcePromise,
|
|
20
|
+
sourceStream,
|
|
21
|
+
sourceOptions,
|
|
22
|
+
sourceError,
|
|
23
|
+
destination,
|
|
24
|
+
destinationStream,
|
|
25
|
+
destinationError,
|
|
26
|
+
unpipeSignal,
|
|
27
|
+
fileDescriptors,
|
|
28
|
+
startTime,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const getDestinationStream = (boundOptions, createNested, pipeArguments) => {
|
|
33
|
+
try {
|
|
34
|
+
const {
|
|
35
|
+
destination,
|
|
36
|
+
pipeOptions: {from, to, unpipeSignal} = {},
|
|
37
|
+
} = getDestination(boundOptions, createNested, ...pipeArguments);
|
|
38
|
+
const destinationStream = getToStream(destination, to);
|
|
39
|
+
return {
|
|
40
|
+
destination,
|
|
41
|
+
destinationStream,
|
|
42
|
+
from,
|
|
43
|
+
unpipeSignal,
|
|
44
|
+
};
|
|
45
|
+
} catch (error) {
|
|
46
|
+
return {destinationError: error};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// Piping subprocesses can use three syntaxes:
|
|
51
|
+
// - source.pipe('command', commandArguments, pipeOptionsOrDestinationOptions)
|
|
52
|
+
// - source.pipe`command commandArgument` or source.pipe(pipeOptionsOrDestinationOptions)`command commandArgument`
|
|
53
|
+
// - source.pipe(execa(...), pipeOptions)
|
|
54
|
+
const getDestination = (boundOptions, createNested, firstArgument, ...pipeArguments) => {
|
|
55
|
+
if (Array.isArray(firstArgument)) {
|
|
56
|
+
const destination = createNested(mapDestinationArguments, boundOptions)(firstArgument, ...pipeArguments);
|
|
57
|
+
return {destination, pipeOptions: boundOptions};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (typeof firstArgument === 'string' || firstArgument instanceof URL || isDenoExecPath(firstArgument)) {
|
|
61
|
+
if (Object.keys(boundOptions).length > 0) {
|
|
62
|
+
throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const [rawFile, rawArguments, rawOptions] = normalizeParameters(firstArgument, ...pipeArguments);
|
|
66
|
+
const destination = createNested(mapDestinationArguments)(rawFile, rawArguments, rawOptions);
|
|
67
|
+
return {destination, pipeOptions: rawOptions};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (SUBPROCESS_OPTIONS.has(firstArgument)) {
|
|
71
|
+
if (Object.keys(boundOptions).length > 0) {
|
|
72
|
+
throw new TypeError('Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {destination: firstArgument, pipeOptions: pipeArguments[0]};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${firstArgument}`);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// Force `stdin: 'pipe'` with the destination subprocess
|
|
82
|
+
const mapDestinationArguments = ({options}) => ({options: {...options, stdin: 'pipe', piped: true}});
|
|
83
|
+
|
|
84
|
+
const getSourceStream = (source, from) => {
|
|
85
|
+
try {
|
|
86
|
+
const sourceStream = getFromStream(source, from);
|
|
87
|
+
return {sourceStream};
|
|
88
|
+
} catch (error) {
|
|
89
|
+
return {sourceError: error};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Like Bash, we await both subprocesses. This is unlike some other shells which only await the destination subprocess.
|
|
2
|
+
// Like Bash with the `pipefail` option, if either subprocess fails, the whole pipe fails.
|
|
3
|
+
// Like Bash, if both subprocesses fail, we return the failure of the destination.
|
|
4
|
+
// This ensures both subprocesses' errors are present, using `error.pipedFrom`.
|
|
5
|
+
export const waitForBothSubprocesses = async subprocessPromises => {
|
|
6
|
+
const [
|
|
7
|
+
{status: sourceStatus, reason: sourceReason, value: sourceResult = sourceReason},
|
|
8
|
+
{status: destinationStatus, reason: destinationReason, value: destinationResult = destinationReason},
|
|
9
|
+
] = await subprocessPromises;
|
|
10
|
+
|
|
11
|
+
if (!destinationResult.pipedFrom.includes(sourceResult)) {
|
|
12
|
+
destinationResult.pipedFrom.push(sourceResult);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (destinationStatus === 'rejected') {
|
|
16
|
+
throw destinationResult;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (sourceStatus === 'rejected') {
|
|
20
|
+
throw sourceResult;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return destinationResult;
|
|
24
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import isPlainObject from 'is-plain-obj';
|
|
2
|
+
import {normalizePipeArguments} from './pipe-arguments.js';
|
|
3
|
+
import {handlePipeArgumentsError} from './throw.js';
|
|
4
|
+
import {waitForBothSubprocesses} from './sequence.js';
|
|
5
|
+
import {pipeSubprocessStream} from './streaming.js';
|
|
6
|
+
import {unpipeOnAbort} from './abort.js';
|
|
7
|
+
|
|
8
|
+
// Pipe a subprocess' `stdout`/`stderr`/`stdio` into another subprocess' `stdin`
|
|
9
|
+
export const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
|
|
10
|
+
if (isPlainObject(pipeArguments[0])) {
|
|
11
|
+
return pipeToSubprocess.bind(undefined, {
|
|
12
|
+
...sourceInfo,
|
|
13
|
+
boundOptions: {...sourceInfo.boundOptions, ...pipeArguments[0]},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const {destination, ...normalizedInfo} = normalizePipeArguments(sourceInfo, ...pipeArguments);
|
|
18
|
+
const promise = handlePipePromise({...normalizedInfo, destination});
|
|
19
|
+
promise.pipe = pipeToSubprocess.bind(undefined, {
|
|
20
|
+
...sourceInfo,
|
|
21
|
+
source: destination,
|
|
22
|
+
sourcePromise: promise,
|
|
23
|
+
boundOptions: {},
|
|
24
|
+
});
|
|
25
|
+
return promise;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// Asynchronous logic when piping subprocesses
|
|
29
|
+
const handlePipePromise = async ({
|
|
30
|
+
sourcePromise,
|
|
31
|
+
sourceStream,
|
|
32
|
+
sourceOptions,
|
|
33
|
+
sourceError,
|
|
34
|
+
destination,
|
|
35
|
+
destinationStream,
|
|
36
|
+
destinationError,
|
|
37
|
+
unpipeSignal,
|
|
38
|
+
fileDescriptors,
|
|
39
|
+
startTime,
|
|
40
|
+
}) => {
|
|
41
|
+
const subprocessPromises = getSubprocessPromises(sourcePromise, destination);
|
|
42
|
+
handlePipeArgumentsError({
|
|
43
|
+
sourceStream,
|
|
44
|
+
sourceError,
|
|
45
|
+
destinationStream,
|
|
46
|
+
destinationError,
|
|
47
|
+
fileDescriptors,
|
|
48
|
+
sourceOptions,
|
|
49
|
+
startTime,
|
|
50
|
+
});
|
|
51
|
+
const maxListenersController = new AbortController();
|
|
52
|
+
try {
|
|
53
|
+
const mergedStream = pipeSubprocessStream(sourceStream, destinationStream, maxListenersController);
|
|
54
|
+
return await Promise.race([
|
|
55
|
+
waitForBothSubprocesses(subprocessPromises),
|
|
56
|
+
...unpipeOnAbort(unpipeSignal, {
|
|
57
|
+
sourceStream,
|
|
58
|
+
mergedStream,
|
|
59
|
+
sourceOptions,
|
|
60
|
+
fileDescriptors,
|
|
61
|
+
startTime,
|
|
62
|
+
}),
|
|
63
|
+
]);
|
|
64
|
+
} finally {
|
|
65
|
+
maxListenersController.abort();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// `.pipe()` awaits the subprocess promises.
|
|
70
|
+
// When invalid arguments are passed to `.pipe()`, we throw an error, which prevents awaiting them.
|
|
71
|
+
// We need to ensure this does not create unhandled rejections.
|
|
72
|
+
const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {finished} from 'node:stream/promises';
|
|
2
|
+
import mergeStreams from '@sindresorhus/merge-streams';
|
|
3
|
+
import {incrementMaxListeners} from '../utils/max-listeners.js';
|
|
4
|
+
import {pipeStreams} from '../io/pipeline.js';
|
|
5
|
+
|
|
6
|
+
// The piping behavior is like Bash.
|
|
7
|
+
// In particular, when one subprocess exits, the other is not terminated by a signal.
|
|
8
|
+
// Instead, its stdout (for the source) or stdin (for the destination) closes.
|
|
9
|
+
// If the subprocess uses it, it will make it error with SIGPIPE or EPIPE (for the source) or end (for the destination).
|
|
10
|
+
// If it does not use it, it will continue running.
|
|
11
|
+
// This allows for subprocesses to gracefully exit and lower the coupling between subprocesses.
|
|
12
|
+
export const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
|
|
13
|
+
const mergedStream = MERGED_STREAMS.has(destinationStream)
|
|
14
|
+
? pipeMoreSubprocessStream(sourceStream, destinationStream)
|
|
15
|
+
: pipeFirstSubprocessStream(sourceStream, destinationStream);
|
|
16
|
+
incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
|
|
17
|
+
incrementMaxListeners(destinationStream, DESTINATION_LISTENERS_PER_PIPE, maxListenersController.signal);
|
|
18
|
+
cleanupMergedStreamsMap(destinationStream);
|
|
19
|
+
return mergedStream;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// We use `merge-streams` to allow for multiple sources to pipe to the same destination.
|
|
23
|
+
const pipeFirstSubprocessStream = (sourceStream, destinationStream) => {
|
|
24
|
+
const mergedStream = mergeStreams([sourceStream]);
|
|
25
|
+
pipeStreams(mergedStream, destinationStream);
|
|
26
|
+
MERGED_STREAMS.set(destinationStream, mergedStream);
|
|
27
|
+
return mergedStream;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const pipeMoreSubprocessStream = (sourceStream, destinationStream) => {
|
|
31
|
+
const mergedStream = MERGED_STREAMS.get(destinationStream);
|
|
32
|
+
mergedStream.add(sourceStream);
|
|
33
|
+
return mergedStream;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const cleanupMergedStreamsMap = async destinationStream => {
|
|
37
|
+
try {
|
|
38
|
+
await finished(destinationStream, {cleanup: true, readable: false, writable: true});
|
|
39
|
+
} catch {}
|
|
40
|
+
|
|
41
|
+
MERGED_STREAMS.delete(destinationStream);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const MERGED_STREAMS = new WeakMap();
|
|
45
|
+
|
|
46
|
+
// Number of listeners set up on `sourceStream` by each `sourceStream.pipe(destinationStream)`
|
|
47
|
+
// Those are added by `merge-streams`
|
|
48
|
+
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
49
|
+
// Number of listeners set up on `destinationStream` by each `sourceStream.pipe(destinationStream)`
|
|
50
|
+
// Those are added by `finished()` in `cleanupMergedStreamsMap()`
|
|
51
|
+
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {makeEarlyError} from '../return/result.js';
|
|
2
|
+
import {abortSourceStream, endDestinationStream} from '../io/pipeline.js';
|
|
3
|
+
|
|
4
|
+
// When passing invalid arguments to `source.pipe()`, throw asynchronously.
|
|
5
|
+
// We also abort both subprocesses.
|
|
6
|
+
export const handlePipeArgumentsError = ({
|
|
7
|
+
sourceStream,
|
|
8
|
+
sourceError,
|
|
9
|
+
destinationStream,
|
|
10
|
+
destinationError,
|
|
11
|
+
fileDescriptors,
|
|
12
|
+
sourceOptions,
|
|
13
|
+
startTime,
|
|
14
|
+
}) => {
|
|
15
|
+
const error = getPipeArgumentsError({
|
|
16
|
+
sourceStream,
|
|
17
|
+
sourceError,
|
|
18
|
+
destinationStream,
|
|
19
|
+
destinationError,
|
|
20
|
+
});
|
|
21
|
+
if (error !== undefined) {
|
|
22
|
+
throw createNonCommandError({
|
|
23
|
+
error,
|
|
24
|
+
fileDescriptors,
|
|
25
|
+
sourceOptions,
|
|
26
|
+
startTime,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const getPipeArgumentsError = ({sourceStream, sourceError, destinationStream, destinationError}) => {
|
|
32
|
+
if (sourceError !== undefined && destinationError !== undefined) {
|
|
33
|
+
return destinationError;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (destinationError !== undefined) {
|
|
37
|
+
abortSourceStream(sourceStream);
|
|
38
|
+
return destinationError;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (sourceError !== undefined) {
|
|
42
|
+
endDestinationStream(destinationStream);
|
|
43
|
+
return sourceError;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// Specific error return value when passing invalid arguments to `subprocess.pipe()` or when using `unpipeSignal`
|
|
48
|
+
export const createNonCommandError = ({error, fileDescriptors, sourceOptions, startTime}) => makeEarlyError({
|
|
49
|
+
error,
|
|
50
|
+
command: PIPE_COMMAND_MESSAGE,
|
|
51
|
+
escapedCommand: PIPE_COMMAND_MESSAGE,
|
|
52
|
+
fileDescriptors,
|
|
53
|
+
options: sourceOptions,
|
|
54
|
+
startTime,
|
|
55
|
+
isSync: false,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const PIPE_COMMAND_MESSAGE = 'source.pipe(destination)';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import mergeStreams from '@sindresorhus/merge-streams';
|
|
2
|
+
import {waitForSubprocessStream} from './stdio.js';
|
|
3
|
+
|
|
4
|
+
// `all` interleaves `stdout` and `stderr`
|
|
5
|
+
export const makeAllStream = ({stdout, stderr}, {all}) => all && (stdout || stderr)
|
|
6
|
+
? mergeStreams([stdout, stderr].filter(Boolean))
|
|
7
|
+
: undefined;
|
|
8
|
+
|
|
9
|
+
// Read the contents of `subprocess.all` and|or wait for its completion
|
|
10
|
+
export const waitForAllStream = ({subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo}) => waitForSubprocessStream({
|
|
11
|
+
...getAllStream(subprocess, buffer),
|
|
12
|
+
fdNumber: 'all',
|
|
13
|
+
encoding,
|
|
14
|
+
maxBuffer: maxBuffer[1] + maxBuffer[2],
|
|
15
|
+
lines: lines[1] || lines[2],
|
|
16
|
+
allMixed: getAllMixed(subprocess),
|
|
17
|
+
stripFinalNewline,
|
|
18
|
+
verboseInfo,
|
|
19
|
+
streamInfo,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const getAllStream = ({stdout, stderr, all}, [, bufferStdout, bufferStderr]) => {
|
|
23
|
+
const buffer = bufferStdout || bufferStderr;
|
|
24
|
+
if (!buffer) {
|
|
25
|
+
return {stream: all, buffer};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (!bufferStdout) {
|
|
29
|
+
return {stream: stderr, buffer};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (!bufferStderr) {
|
|
33
|
+
return {stream: stdout, buffer};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {stream: all, buffer};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// When `subprocess.stdout` is in objectMode but not `subprocess.stderr` (or the opposite), we need to use both:
|
|
40
|
+
// - `getStreamAsArray()` for the chunks in objectMode, to return as an array without changing each chunk
|
|
41
|
+
// - `getStreamAsArrayBuffer()` or `getStream()` for the chunks not in objectMode, to convert them from Buffers to string or Uint8Array
|
|
42
|
+
// We do this by emulating the Buffer -> string|Uint8Array conversion performed by `get-stream` with our own, which is identical.
|
|
43
|
+
const getAllMixed = ({all, stdout, stderr}) => all
|
|
44
|
+
&& stdout
|
|
45
|
+
&& stderr
|
|
46
|
+
&& stdout.readableObjectMode !== stderr.readableObjectMode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {isUint8Array, concatUint8Arrays} from '../utils/uint-array.js';
|
|
2
|
+
import {stripNewline} from '../io/strip-newline.js';
|
|
3
|
+
|
|
4
|
+
// Retrieve `result.all` with synchronous methods
|
|
5
|
+
export const getAllSync = ([, stdout, stderr], options) => {
|
|
6
|
+
if (!options.all) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (stdout === undefined) {
|
|
11
|
+
return stderr;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (stderr === undefined) {
|
|
15
|
+
return stdout;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (Array.isArray(stdout)) {
|
|
19
|
+
return Array.isArray(stderr)
|
|
20
|
+
? [...stdout, ...stderr]
|
|
21
|
+
: [...stdout, stripNewline(stderr, options, 'all')];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (Array.isArray(stderr)) {
|
|
25
|
+
return [stripNewline(stdout, options, 'all'), ...stderr];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (isUint8Array(stdout) && isUint8Array(stderr)) {
|
|
29
|
+
return concatUint8Arrays([stdout, stderr]);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return `${stdout}${stderr}`;
|
|
33
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {once} from 'node:events';
|
|
2
|
+
import {DiscardedError} from '../return/final-error.js';
|
|
3
|
+
|
|
4
|
+
// If `error` is emitted before `spawn`, `exit` will never be emitted.
|
|
5
|
+
// However, `error` might be emitted after `spawn`.
|
|
6
|
+
// In that case, `exit` will still be emitted.
|
|
7
|
+
// Since the `exit` event contains the signal name, we want to make sure we are listening for it.
|
|
8
|
+
// This function also takes into account the following unlikely cases:
|
|
9
|
+
// - `exit` being emitted in the same microtask as `spawn`
|
|
10
|
+
// - `error` being emitted multiple times
|
|
11
|
+
export const waitForExit = async (subprocess, context) => {
|
|
12
|
+
const [exitCode, signal] = await waitForExitOrError(subprocess);
|
|
13
|
+
context.isForcefullyTerminated ??= false;
|
|
14
|
+
return [exitCode, signal];
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const waitForExitOrError = async subprocess => {
|
|
18
|
+
const [spawnPayload, exitPayload] = await Promise.allSettled([
|
|
19
|
+
once(subprocess, 'spawn'),
|
|
20
|
+
once(subprocess, 'exit'),
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
if (spawnPayload.status === 'rejected') {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return exitPayload.status === 'rejected'
|
|
28
|
+
? waitForSubprocessExit(subprocess)
|
|
29
|
+
: exitPayload.value;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const waitForSubprocessExit = async subprocess => {
|
|
33
|
+
try {
|
|
34
|
+
return await once(subprocess, 'exit');
|
|
35
|
+
} catch {
|
|
36
|
+
return waitForSubprocessExit(subprocess);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// Retrieve the final exit code and|or signal name
|
|
41
|
+
export const waitForSuccessfulExit = async exitPromise => {
|
|
42
|
+
const [exitCode, signal] = await exitPromise;
|
|
43
|
+
|
|
44
|
+
if (!isSubprocessErrorExit(exitCode, signal) && isFailedExit(exitCode, signal)) {
|
|
45
|
+
throw new DiscardedError();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return [exitCode, signal];
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// When the subprocess fails due to an `error` event
|
|
52
|
+
const isSubprocessErrorExit = (exitCode, signal) => exitCode === undefined && signal === undefined;
|
|
53
|
+
// When the subprocess fails due to a non-0 exit code or to a signal termination
|
|
54
|
+
export const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {DiscardedError} from '../return/final-error.js';
|
|
2
|
+
import {isMaxBufferSync} from '../io/max-buffer.js';
|
|
3
|
+
import {isFailedExit} from './exit-async.js';
|
|
4
|
+
|
|
5
|
+
// Retrieve exit code, signal name and error information, with synchronous methods
|
|
6
|
+
export const getExitResultSync = ({error, status: exitCode, signal, output}, {maxBuffer}) => {
|
|
7
|
+
const resultError = getResultError(error, exitCode, signal);
|
|
8
|
+
const timedOut = resultError?.code === 'ETIMEDOUT';
|
|
9
|
+
const isMaxBuffer = isMaxBufferSync(resultError, output, maxBuffer);
|
|
10
|
+
return {
|
|
11
|
+
resultError,
|
|
12
|
+
exitCode,
|
|
13
|
+
signal,
|
|
14
|
+
timedOut,
|
|
15
|
+
isMaxBuffer,
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const getResultError = (error, exitCode, signal) => {
|
|
20
|
+
if (error !== undefined) {
|
|
21
|
+
return error;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return isFailedExit(exitCode, signal) ? new DiscardedError() : undefined;
|
|
25
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {getStreamOutput} from '../io/contents.js';
|
|
2
|
+
import {waitForStream, isInputFileDescriptor} from './wait-stream.js';
|
|
3
|
+
|
|
4
|
+
// Read the contents of `subprocess.std*` and|or wait for its completion
|
|
5
|
+
export const waitForStdioStreams = ({subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo}) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
|
|
6
|
+
stream,
|
|
7
|
+
fdNumber,
|
|
8
|
+
encoding,
|
|
9
|
+
buffer: buffer[fdNumber],
|
|
10
|
+
maxBuffer: maxBuffer[fdNumber],
|
|
11
|
+
lines: lines[fdNumber],
|
|
12
|
+
allMixed: false,
|
|
13
|
+
stripFinalNewline,
|
|
14
|
+
verboseInfo,
|
|
15
|
+
streamInfo,
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
|
+
// Read the contents of `subprocess.std*` or `subprocess.all` and|or wait for its completion
|
|
19
|
+
export const waitForSubprocessStream = async ({stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo}) => {
|
|
20
|
+
if (!stream) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
|
|
25
|
+
if (isInputFileDescriptor(streamInfo, fdNumber)) {
|
|
26
|
+
await onStreamEnd;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const [output] = await Promise.all([
|
|
31
|
+
getStreamOutput({
|
|
32
|
+
stream,
|
|
33
|
+
onStreamEnd,
|
|
34
|
+
fdNumber,
|
|
35
|
+
encoding,
|
|
36
|
+
buffer,
|
|
37
|
+
maxBuffer,
|
|
38
|
+
lines,
|
|
39
|
+
allMixed,
|
|
40
|
+
stripFinalNewline,
|
|
41
|
+
verboseInfo,
|
|
42
|
+
streamInfo,
|
|
43
|
+
}),
|
|
44
|
+
onStreamEnd,
|
|
45
|
+
]);
|
|
46
|
+
return output;
|
|
47
|
+
};
|