@emulsify/cli 1.9.0 → 1.10.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/README.md +20 -13
- package/dist/node_modules/.package-lock.json +38 -25
- package/dist/node_modules/@types/node/README.md +5 -6
- package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/dist/node_modules/@types/node/assert.d.ts +955 -45
- package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
- package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
- package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
- package/dist/node_modules/@types/node/cluster.d.ts +421 -143
- package/dist/node_modules/@types/node/console.d.ts +359 -49
- package/dist/node_modules/@types/node/constants.d.ts +3 -3
- package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
- package/dist/node_modules/@types/node/dgram.d.ts +446 -30
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/dist/node_modules/@types/node/dns.d.ts +588 -240
- package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
- package/dist/node_modules/@types/node/domain.d.ts +159 -16
- package/dist/node_modules/@types/node/events.d.ts +890 -41
- package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
- package/dist/node_modules/@types/node/fs.d.ts +2599 -869
- package/dist/node_modules/@types/node/globals.d.ts +374 -727
- package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
- package/dist/node_modules/@types/node/http.d.ts +1459 -132
- package/dist/node_modules/@types/node/http2.d.ts +1333 -123
- package/dist/node_modules/@types/node/https.d.ts +289 -13
- package/dist/node_modules/@types/node/index.d.ts +37 -46
- package/dist/node_modules/@types/node/inspector.d.ts +367 -671
- package/dist/node_modules/@types/node/module.d.ts +273 -14
- package/dist/node_modules/@types/node/net.d.ts +741 -66
- package/dist/node_modules/@types/node/os.d.ts +275 -23
- package/dist/node_modules/@types/node/package.json +95 -110
- package/dist/node_modules/@types/node/path.d.ts +27 -4
- package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
- package/dist/node_modules/@types/node/process.d.ts +1429 -127
- package/dist/node_modules/@types/node/punycode.d.ts +65 -26
- package/dist/node_modules/@types/node/querystring.d.ts +121 -9
- package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/dist/node_modules/@types/node/readline.d.ts +405 -49
- package/dist/node_modules/@types/node/repl.d.ts +99 -73
- package/dist/node_modules/@types/node/sea.d.ts +153 -0
- package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
- package/dist/node_modules/@types/node/stream.d.ts +1462 -273
- package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
- package/dist/node_modules/@types/node/test.d.ts +1719 -0
- package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/dist/node_modules/@types/node/timers.d.ts +233 -12
- package/dist/node_modules/@types/node/tls.d.ts +540 -189
- package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
- package/dist/node_modules/@types/node/tty.d.ts +156 -17
- package/dist/node_modules/@types/node/url.d.ts +812 -47
- package/dist/node_modules/@types/node/util.d.ts +2159 -145
- package/dist/node_modules/@types/node/v8.d.ts +693 -74
- package/dist/node_modules/@types/node/vm.d.ts +813 -44
- package/dist/node_modules/@types/node/wasi.d.ts +121 -28
- package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
- package/dist/node_modules/@types/node/zlib.d.ts +220 -54
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
- package/dist/node_modules/commander/Readme.md +10 -8
- package/dist/node_modules/commander/esm.mjs +1 -1
- package/dist/node_modules/commander/lib/argument.js +9 -5
- package/dist/node_modules/commander/lib/command.js +406 -196
- package/dist/node_modules/commander/lib/error.js +0 -4
- package/dist/node_modules/commander/lib/help.js +101 -38
- package/dist/node_modules/commander/lib/option.js +11 -8
- package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
- package/dist/node_modules/commander/package.json +23 -19
- package/dist/node_modules/commander/typings/index.d.ts +110 -40
- package/dist/node_modules/debug/package.json +4 -3
- package/dist/node_modules/debug/src/browser.js +3 -1
- package/dist/node_modules/debug/src/node.js +2 -2
- package/dist/node_modules/fast-uri/.gitattributes +2 -0
- package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
- package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
- package/dist/node_modules/fast-uri/.taprc +3 -0
- package/dist/node_modules/fast-uri/LICENSE +30 -0
- package/dist/node_modules/fast-uri/README.md +125 -0
- package/dist/node_modules/fast-uri/benchmark.js +105 -0
- package/dist/node_modules/fast-uri/index.js +309 -0
- package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
- package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
- package/dist/node_modules/fast-uri/lib/utils.js +242 -0
- package/dist/node_modules/fast-uri/package.json +39 -0
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
- package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
- package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
- package/dist/node_modules/fast-uri/test/util.test.js +24 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
- package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/dist/node_modules/fs-extra/README.md +32 -2
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
- package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
- package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
- package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
- package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
- package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
- package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
- package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
- package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
- package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
- package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
- package/dist/node_modules/fs-extra/package.json +11 -7
- package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
- package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
- package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
- package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
- package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
- package/dist/node_modules/simple-git/package.json +32 -35
- package/dist/node_modules/simple-git/promise.js +14 -4
- package/dist/node_modules/simple-git/readme.md +372 -389
- package/dist/node_modules/undici-types/README.md +6 -0
- package/dist/node_modules/undici-types/agent.d.ts +31 -0
- package/dist/node_modules/undici-types/api.d.ts +43 -0
- package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/dist/node_modules/undici-types/cache.d.ts +36 -0
- package/dist/node_modules/undici-types/client.d.ts +97 -0
- package/dist/node_modules/undici-types/connector.d.ts +34 -0
- package/dist/node_modules/undici-types/content-type.d.ts +21 -0
- package/dist/node_modules/undici-types/cookies.d.ts +28 -0
- package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/dist/node_modules/undici-types/errors.d.ts +128 -0
- package/dist/node_modules/undici-types/fetch.d.ts +209 -0
- package/dist/node_modules/undici-types/file.d.ts +39 -0
- package/dist/node_modules/undici-types/filereader.d.ts +54 -0
- package/dist/node_modules/undici-types/formdata.d.ts +108 -0
- package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
- package/dist/node_modules/undici-types/handlers.d.ts +9 -0
- package/dist/node_modules/undici-types/header.d.ts +4 -0
- package/dist/node_modules/undici-types/index.d.ts +63 -0
- package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
- package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
- package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/dist/node_modules/undici-types/package.json +55 -0
- package/dist/node_modules/undici-types/patch.d.ts +71 -0
- package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/dist/node_modules/undici-types/pool.d.ts +28 -0
- package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/dist/node_modules/undici-types/readable.d.ts +61 -0
- package/dist/node_modules/undici-types/webidl.d.ts +220 -0
- package/dist/node_modules/undici-types/websocket.d.ts +131 -0
- package/dist/package-lock.json +10146 -0
- package/dist/package.json +24 -24
- package/dist/schemas/variant.json +5 -21
- package/package.json +24 -24
- package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
- package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
- package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
- package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
- package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
- package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
- package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
- package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
- package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
- package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
- package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
- package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
- package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
- package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
- package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
- package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
- package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
- package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
- package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
- package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
- package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
- package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
- package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
- package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
- package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
- package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
- package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
- package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
- package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
- package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
- package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
- package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
- package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
- package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
- package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
- package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
- package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
- package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
- package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
- package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
- package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
- package/dist/node_modules/simple-git/LICENSE +0 -20
- package/dist/node_modules/simple-git/promise.d.ts +0 -46
- package/dist/node_modules/simple-git/src/git.js +0 -700
- package/dist/node_modules/simple-git/src/index.js +0 -7
- package/dist/node_modules/simple-git/src/lib/api.js +0 -26
- package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
- package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
- package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
- package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
- package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
- package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
- package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
- package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
- package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
- package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
- package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
- package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
- package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation
|
|
3
|
+
* that is available both as a standalone program or includible in other
|
|
4
|
+
* applications. It can be accessed using:
|
|
5
|
+
*
|
|
6
|
+
* ```js
|
|
7
|
+
* const repl = require('node:repl');
|
|
8
|
+
* ```
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js)
|
|
10
|
+
*/
|
|
1
11
|
declare module "repl" {
|
|
2
|
-
import { AsyncCompleter, Completer, Interface } from "readline";
|
|
3
|
-
import { Context } from "vm";
|
|
4
|
-
import { InspectOptions } from "util";
|
|
5
|
-
|
|
12
|
+
import { AsyncCompleter, Completer, Interface } from "node:readline";
|
|
13
|
+
import { Context } from "node:vm";
|
|
14
|
+
import { InspectOptions } from "node:util";
|
|
6
15
|
interface ReplOptions {
|
|
7
16
|
/**
|
|
8
17
|
* The input prompt to display.
|
|
@@ -32,8 +41,8 @@ declare module "repl" {
|
|
|
32
41
|
* error with `repl.Recoverable` to indicate the input was incomplete and prompt for
|
|
33
42
|
* additional lines.
|
|
34
43
|
*
|
|
35
|
-
* @see https://nodejs.org/dist/latest-
|
|
36
|
-
* @see https://nodejs.org/dist/latest-
|
|
44
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_default_evaluation
|
|
45
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_custom_evaluation_functions
|
|
37
46
|
*/
|
|
38
47
|
eval?: REPLEval | undefined;
|
|
39
48
|
/**
|
|
@@ -45,33 +54,33 @@ declare module "repl" {
|
|
|
45
54
|
* If `true`, specifies that the default `writer` function should include ANSI color
|
|
46
55
|
* styling to REPL output. If a custom `writer` function is provided then this has no
|
|
47
56
|
* effect.
|
|
48
|
-
*
|
|
57
|
+
* @default the REPL instance's `terminal` value
|
|
49
58
|
*/
|
|
50
59
|
useColors?: boolean | undefined;
|
|
51
60
|
/**
|
|
52
61
|
* If `true`, specifies that the default evaluation function will use the JavaScript
|
|
53
62
|
* `global` as the context as opposed to creating a new separate context for the REPL
|
|
54
63
|
* instance. The node CLI REPL sets this value to `true`.
|
|
55
|
-
*
|
|
64
|
+
* @default false
|
|
56
65
|
*/
|
|
57
66
|
useGlobal?: boolean | undefined;
|
|
58
67
|
/**
|
|
59
68
|
* If `true`, specifies that the default writer will not output the return value of a
|
|
60
69
|
* command if it evaluates to `undefined`.
|
|
61
|
-
*
|
|
70
|
+
* @default false
|
|
62
71
|
*/
|
|
63
72
|
ignoreUndefined?: boolean | undefined;
|
|
64
73
|
/**
|
|
65
74
|
* The function to invoke to format the output of each command before writing to `output`.
|
|
66
|
-
*
|
|
75
|
+
* @default a wrapper for `util.inspect`
|
|
67
76
|
*
|
|
68
|
-
* @see https://nodejs.org/dist/latest-
|
|
77
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_customizing_repl_output
|
|
69
78
|
*/
|
|
70
79
|
writer?: REPLWriter | undefined;
|
|
71
80
|
/**
|
|
72
81
|
* An optional function used for custom Tab auto completion.
|
|
73
82
|
*
|
|
74
|
-
* @see https://nodejs.org/dist/latest-
|
|
83
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/readline.html#readline_use_of_the_completer_function
|
|
75
84
|
*/
|
|
76
85
|
completer?: Completer | AsyncCompleter | undefined;
|
|
77
86
|
/**
|
|
@@ -86,11 +95,10 @@ declare module "repl" {
|
|
|
86
95
|
/**
|
|
87
96
|
* Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is
|
|
88
97
|
* pressed. This cannot be used together with a custom `eval` function.
|
|
89
|
-
*
|
|
98
|
+
* @default false
|
|
90
99
|
*/
|
|
91
100
|
breakEvalOnSigint?: boolean | undefined;
|
|
92
101
|
}
|
|
93
|
-
|
|
94
102
|
type REPLEval = (
|
|
95
103
|
this: REPLServer,
|
|
96
104
|
evalCmd: string,
|
|
@@ -99,15 +107,14 @@ declare module "repl" {
|
|
|
99
107
|
cb: (err: Error | null, result: any) => void,
|
|
100
108
|
) => void;
|
|
101
109
|
type REPLWriter = (this: REPLServer, obj: any) => string;
|
|
102
|
-
|
|
103
110
|
/**
|
|
104
111
|
* This is the default "writer" value, if none is passed in the REPL options,
|
|
105
112
|
* and it can be overridden by custom print functions.
|
|
106
113
|
*/
|
|
107
|
-
const writer: REPLWriter & {
|
|
108
|
-
|
|
114
|
+
const writer: REPLWriter & {
|
|
115
|
+
options: InspectOptions;
|
|
116
|
+
};
|
|
109
117
|
type REPLCommandAction = (this: REPLServer, text: string) => void;
|
|
110
|
-
|
|
111
118
|
interface REPLCommand {
|
|
112
119
|
/**
|
|
113
120
|
* Help text to be displayed when `.help` is entered.
|
|
@@ -118,22 +125,19 @@ declare module "repl" {
|
|
|
118
125
|
*/
|
|
119
126
|
action: REPLCommandAction;
|
|
120
127
|
}
|
|
121
|
-
|
|
122
128
|
/**
|
|
123
|
-
*
|
|
129
|
+
* Instances of `repl.REPLServer` are created using the {@link start} method
|
|
130
|
+
* or directly using the JavaScript `new` keyword.
|
|
124
131
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* may be from `stdin` and `stdout`, respectively, or may be connected to any Node.js `stream`.
|
|
132
|
+
* ```js
|
|
133
|
+
* const repl = require('node:repl');
|
|
128
134
|
*
|
|
129
|
-
*
|
|
130
|
-
* line editing, multi-line inputs, ANSI-styled output, saving and restoring current REPL session
|
|
131
|
-
* state, error recovery, and customizable evaluation functions.
|
|
135
|
+
* const options = { useColors: true };
|
|
132
136
|
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* @
|
|
137
|
+
* const firstInstance = repl.start(options);
|
|
138
|
+
* const secondInstance = new repl.REPLServer(options);
|
|
139
|
+
* ```
|
|
140
|
+
* @since v0.1.91
|
|
137
141
|
*/
|
|
138
142
|
class REPLServer extends Interface {
|
|
139
143
|
/**
|
|
@@ -164,33 +168,33 @@ declare module "repl" {
|
|
|
164
168
|
/**
|
|
165
169
|
* A value indicating whether the REPL is currently in "editor mode".
|
|
166
170
|
*
|
|
167
|
-
* @see https://nodejs.org/dist/latest-
|
|
171
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_commands_and_special_keys
|
|
168
172
|
*/
|
|
169
173
|
readonly editorMode: boolean;
|
|
170
174
|
/**
|
|
171
175
|
* A value indicating whether the `_` variable has been assigned.
|
|
172
176
|
*
|
|
173
|
-
* @see https://nodejs.org/dist/latest-
|
|
177
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
174
178
|
*/
|
|
175
179
|
readonly underscoreAssigned: boolean;
|
|
176
180
|
/**
|
|
177
181
|
* The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
|
|
178
182
|
*
|
|
179
|
-
* @see https://nodejs.org/dist/latest-
|
|
183
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
180
184
|
*/
|
|
181
185
|
readonly last: any;
|
|
182
186
|
/**
|
|
183
187
|
* A value indicating whether the `_error` variable has been assigned.
|
|
184
188
|
*
|
|
185
189
|
* @since v9.8.0
|
|
186
|
-
* @see https://nodejs.org/dist/latest-
|
|
190
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
187
191
|
*/
|
|
188
192
|
readonly underscoreErrAssigned: boolean;
|
|
189
193
|
/**
|
|
190
194
|
* The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
|
|
191
195
|
*
|
|
192
196
|
* @since v9.8.0
|
|
193
|
-
* @see https://nodejs.org/dist/latest-
|
|
197
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
194
198
|
*/
|
|
195
199
|
readonly lastError: any;
|
|
196
200
|
/**
|
|
@@ -234,7 +238,6 @@ declare module "repl" {
|
|
|
234
238
|
* prefacing every repl statement with `'use strict'`.
|
|
235
239
|
*/
|
|
236
240
|
readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT;
|
|
237
|
-
|
|
238
241
|
/**
|
|
239
242
|
* NOTE: According to the documentation:
|
|
240
243
|
*
|
|
@@ -243,52 +246,79 @@ declare module "repl" {
|
|
|
243
246
|
*
|
|
244
247
|
* `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
|
|
245
248
|
*
|
|
246
|
-
* @see https://nodejs.org/dist/latest-
|
|
249
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_class_replserver
|
|
247
250
|
*/
|
|
248
251
|
private constructor();
|
|
249
|
-
|
|
250
252
|
/**
|
|
251
|
-
*
|
|
252
|
-
* by typing a `.` followed by the `keyword`.
|
|
253
|
+
* The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands
|
|
254
|
+
* to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following
|
|
255
|
+
* properties:
|
|
256
|
+
*
|
|
257
|
+
* The following example shows two new commands added to the REPL instance:
|
|
258
|
+
*
|
|
259
|
+
* ```js
|
|
260
|
+
* const repl = require('node:repl');
|
|
261
|
+
*
|
|
262
|
+
* const replServer = repl.start({ prompt: '> ' });
|
|
263
|
+
* replServer.defineCommand('sayhello', {
|
|
264
|
+
* help: 'Say hello',
|
|
265
|
+
* action(name) {
|
|
266
|
+
* this.clearBufferedCommand();
|
|
267
|
+
* console.log(`Hello, ${name}!`);
|
|
268
|
+
* this.displayPrompt();
|
|
269
|
+
* },
|
|
270
|
+
* });
|
|
271
|
+
* replServer.defineCommand('saybye', function saybye() {
|
|
272
|
+
* console.log('Goodbye!');
|
|
273
|
+
* this.close();
|
|
274
|
+
* });
|
|
275
|
+
* ```
|
|
276
|
+
*
|
|
277
|
+
* The new commands can then be used from within the REPL instance:
|
|
253
278
|
*
|
|
279
|
+
* ```console
|
|
280
|
+
* > .sayhello Node.js User
|
|
281
|
+
* Hello, Node.js User!
|
|
282
|
+
* > .saybye
|
|
283
|
+
* Goodbye!
|
|
284
|
+
* ```
|
|
285
|
+
* @since v0.3.0
|
|
254
286
|
* @param keyword The command keyword (_without_ a leading `.` character).
|
|
255
287
|
* @param cmd The function to invoke when the command is processed.
|
|
256
|
-
*
|
|
257
|
-
* @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_replserver_definecommand_keyword_cmd
|
|
258
288
|
*/
|
|
259
289
|
defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
|
|
260
290
|
/**
|
|
261
|
-
*
|
|
262
|
-
* new line in the `output` and resuming the `input` to accept new input.
|
|
291
|
+
* The `replServer.displayPrompt()` method readies the REPL instance for input
|
|
292
|
+
* from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
|
|
263
293
|
*
|
|
264
|
-
* When multi-line input is being entered, an ellipsis is printed rather than the
|
|
294
|
+
* When multi-line input is being entered, an ellipsis is printed rather than the
|
|
295
|
+
* 'prompt'.
|
|
265
296
|
*
|
|
266
|
-
*
|
|
267
|
-
* commands registered using the `replServer.defineCommand()` method.
|
|
297
|
+
* When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
|
|
268
298
|
*
|
|
269
|
-
*
|
|
299
|
+
* The `replServer.displayPrompt` method is primarily intended to be called from
|
|
300
|
+
* within the action function for commands registered using the `replServer.defineCommand()` method.
|
|
301
|
+
* @since v0.1.91
|
|
270
302
|
*/
|
|
271
303
|
displayPrompt(preserveCursor?: boolean): void;
|
|
272
304
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* commands registered using the `replServer.defineCommand()` method.
|
|
277
|
-
*
|
|
305
|
+
* The `replServer.clearBufferedCommand()` method clears any command that has been
|
|
306
|
+
* buffered but not yet executed. This method is primarily intended to be
|
|
307
|
+
* called from within the action function for commands registered using the `replServer.defineCommand()` method.
|
|
278
308
|
* @since v9.0.0
|
|
279
309
|
*/
|
|
280
310
|
clearBufferedCommand(): void;
|
|
281
|
-
|
|
282
311
|
/**
|
|
283
312
|
* Initializes a history log file for the REPL instance. When executing the
|
|
284
|
-
* Node.js binary and using the command
|
|
313
|
+
* Node.js binary and using the command-line REPL, a history file is initialized
|
|
285
314
|
* by default. However, this is not the case when creating a REPL
|
|
286
315
|
* programmatically. Use this method to initialize a history log file when working
|
|
287
316
|
* with REPL instances programmatically.
|
|
288
|
-
* @
|
|
317
|
+
* @since v11.10.0
|
|
318
|
+
* @param historyPath the path to the history file
|
|
319
|
+
* @param callback called when history writes are ready or upon error
|
|
289
320
|
*/
|
|
290
|
-
setupHistory(path: string,
|
|
291
|
-
|
|
321
|
+
setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void;
|
|
292
322
|
/**
|
|
293
323
|
* events.EventEmitter
|
|
294
324
|
* 1. close - inherited from `readline.Interface`
|
|
@@ -301,7 +331,6 @@ declare module "repl" {
|
|
|
301
331
|
* 8. exit
|
|
302
332
|
* 9. reset
|
|
303
333
|
*/
|
|
304
|
-
|
|
305
334
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
306
335
|
addListener(event: "close", listener: () => void): this;
|
|
307
336
|
addListener(event: "line", listener: (input: string) => void): this;
|
|
@@ -312,7 +341,6 @@ declare module "repl" {
|
|
|
312
341
|
addListener(event: "SIGTSTP", listener: () => void): this;
|
|
313
342
|
addListener(event: "exit", listener: () => void): this;
|
|
314
343
|
addListener(event: "reset", listener: (context: Context) => void): this;
|
|
315
|
-
|
|
316
344
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
317
345
|
emit(event: "close"): boolean;
|
|
318
346
|
emit(event: "line", input: string): boolean;
|
|
@@ -323,7 +351,6 @@ declare module "repl" {
|
|
|
323
351
|
emit(event: "SIGTSTP"): boolean;
|
|
324
352
|
emit(event: "exit"): boolean;
|
|
325
353
|
emit(event: "reset", context: Context): boolean;
|
|
326
|
-
|
|
327
354
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
328
355
|
on(event: "close", listener: () => void): this;
|
|
329
356
|
on(event: "line", listener: (input: string) => void): this;
|
|
@@ -334,7 +361,6 @@ declare module "repl" {
|
|
|
334
361
|
on(event: "SIGTSTP", listener: () => void): this;
|
|
335
362
|
on(event: "exit", listener: () => void): this;
|
|
336
363
|
on(event: "reset", listener: (context: Context) => void): this;
|
|
337
|
-
|
|
338
364
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
339
365
|
once(event: "close", listener: () => void): this;
|
|
340
366
|
once(event: "line", listener: (input: string) => void): this;
|
|
@@ -345,7 +371,6 @@ declare module "repl" {
|
|
|
345
371
|
once(event: "SIGTSTP", listener: () => void): this;
|
|
346
372
|
once(event: "exit", listener: () => void): this;
|
|
347
373
|
once(event: "reset", listener: (context: Context) => void): this;
|
|
348
|
-
|
|
349
374
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
350
375
|
prependListener(event: "close", listener: () => void): this;
|
|
351
376
|
prependListener(event: "line", listener: (input: string) => void): this;
|
|
@@ -356,7 +381,6 @@ declare module "repl" {
|
|
|
356
381
|
prependListener(event: "SIGTSTP", listener: () => void): this;
|
|
357
382
|
prependListener(event: "exit", listener: () => void): this;
|
|
358
383
|
prependListener(event: "reset", listener: (context: Context) => void): this;
|
|
359
|
-
|
|
360
384
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
361
385
|
prependOnceListener(event: "close", listener: () => void): this;
|
|
362
386
|
prependOnceListener(event: "line", listener: (input: string) => void): this;
|
|
@@ -368,34 +392,36 @@ declare module "repl" {
|
|
|
368
392
|
prependOnceListener(event: "exit", listener: () => void): this;
|
|
369
393
|
prependOnceListener(event: "reset", listener: (context: Context) => void): this;
|
|
370
394
|
}
|
|
371
|
-
|
|
372
395
|
/**
|
|
373
396
|
* A flag passed in the REPL options. Evaluates expressions in sloppy mode.
|
|
374
397
|
*/
|
|
375
398
|
const REPL_MODE_SLOPPY: unique symbol;
|
|
376
|
-
|
|
377
399
|
/**
|
|
378
400
|
* A flag passed in the REPL options. Evaluates expressions in strict mode.
|
|
379
401
|
* This is equivalent to prefacing every repl statement with `'use strict'`.
|
|
380
402
|
*/
|
|
381
403
|
const REPL_MODE_STRICT: unique symbol;
|
|
382
|
-
|
|
383
404
|
/**
|
|
384
|
-
*
|
|
405
|
+
* The `repl.start()` method creates and starts a {@link REPLServer} instance.
|
|
406
|
+
*
|
|
407
|
+
* If `options` is a string, then it specifies the input prompt:
|
|
408
|
+
*
|
|
409
|
+
* ```js
|
|
410
|
+
* const repl = require('node:repl');
|
|
385
411
|
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
412
|
+
* // a Unix style prompt
|
|
413
|
+
* repl.start('$ ');
|
|
414
|
+
* ```
|
|
415
|
+
* @since v0.1.91
|
|
388
416
|
*/
|
|
389
417
|
function start(options?: string | ReplOptions): REPLServer;
|
|
390
|
-
|
|
391
418
|
/**
|
|
392
419
|
* Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
|
|
393
420
|
*
|
|
394
|
-
* @see https://nodejs.org/dist/latest-
|
|
421
|
+
* @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_recoverable_errors
|
|
395
422
|
*/
|
|
396
423
|
class Recoverable extends SyntaxError {
|
|
397
424
|
err: Error;
|
|
398
|
-
|
|
399
425
|
constructor(err: Error);
|
|
400
426
|
}
|
|
401
427
|
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This feature allows the distribution of a Node.js application conveniently to a
|
|
3
|
+
* system that does not have Node.js installed.
|
|
4
|
+
*
|
|
5
|
+
* Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing
|
|
6
|
+
* the injection of a blob prepared by Node.js, which can contain a bundled script,
|
|
7
|
+
* into the `node` binary. During start up, the program checks if anything has been
|
|
8
|
+
* injected. If the blob is found, it executes the script in the blob. Otherwise
|
|
9
|
+
* Node.js operates as it normally does.
|
|
10
|
+
*
|
|
11
|
+
* The single executable application feature currently only supports running a
|
|
12
|
+
* single embedded script using the `CommonJS` module system.
|
|
13
|
+
*
|
|
14
|
+
* Users can create a single executable application from their bundled script
|
|
15
|
+
* with the `node` binary itself and any tool which can inject resources into the
|
|
16
|
+
* binary.
|
|
17
|
+
*
|
|
18
|
+
* Here are the steps for creating a single executable application using one such
|
|
19
|
+
* tool, [postject](https://github.com/nodejs/postject):
|
|
20
|
+
*
|
|
21
|
+
* 1. Create a JavaScript file:
|
|
22
|
+
* ```bash
|
|
23
|
+
* echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js
|
|
24
|
+
* ```
|
|
25
|
+
* 2. Create a configuration file building a blob that can be injected into the
|
|
26
|
+
* single executable application (see `Generating single executable preparation blobs` for details):
|
|
27
|
+
* ```bash
|
|
28
|
+
* echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json
|
|
29
|
+
* ```
|
|
30
|
+
* 3. Generate the blob to be injected:
|
|
31
|
+
* ```bash
|
|
32
|
+
* node --experimental-sea-config sea-config.json
|
|
33
|
+
* ```
|
|
34
|
+
* 4. Create a copy of the `node` executable and name it according to your needs:
|
|
35
|
+
* * On systems other than Windows:
|
|
36
|
+
* ```bash
|
|
37
|
+
* cp $(command -v node) hello
|
|
38
|
+
* ```
|
|
39
|
+
* * On Windows:
|
|
40
|
+
* ```text
|
|
41
|
+
* node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')"
|
|
42
|
+
* ```
|
|
43
|
+
* The `.exe` extension is necessary.
|
|
44
|
+
* 5. Remove the signature of the binary (macOS and Windows only):
|
|
45
|
+
* * On macOS:
|
|
46
|
+
* ```bash
|
|
47
|
+
* codesign --remove-signature hello
|
|
48
|
+
* ```
|
|
49
|
+
* * On Windows (optional):
|
|
50
|
+
* [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/).
|
|
51
|
+
* If this step is
|
|
52
|
+
* skipped, ignore any signature-related warning from postject.
|
|
53
|
+
* ```powershell
|
|
54
|
+
* signtool remove /s hello.exe
|
|
55
|
+
* ```
|
|
56
|
+
* 6. Inject the blob into the copied binary by running `postject` with
|
|
57
|
+
* the following options:
|
|
58
|
+
* * `hello` / `hello.exe` \- The name of the copy of the `node` executable
|
|
59
|
+
* created in step 4.
|
|
60
|
+
* * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary
|
|
61
|
+
* where the contents of the blob will be stored.
|
|
62
|
+
* * `sea-prep.blob` \- The name of the blob created in step 1.
|
|
63
|
+
* * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been
|
|
64
|
+
* injected.
|
|
65
|
+
* * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the
|
|
66
|
+
* segment in the binary where the contents of the blob will be
|
|
67
|
+
* stored.
|
|
68
|
+
* To summarize, here is the required command for each platform:
|
|
69
|
+
* * On Linux:
|
|
70
|
+
* ```bash
|
|
71
|
+
* npx postject hello NODE_SEA_BLOB sea-prep.blob \
|
|
72
|
+
* --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|
|
73
|
+
* ```
|
|
74
|
+
* * On Windows - PowerShell:
|
|
75
|
+
* ```powershell
|
|
76
|
+
* npx postject hello.exe NODE_SEA_BLOB sea-prep.blob `
|
|
77
|
+
* --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|
|
78
|
+
* ```
|
|
79
|
+
* * On Windows - Command Prompt:
|
|
80
|
+
* ```text
|
|
81
|
+
* npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^
|
|
82
|
+
* --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|
|
83
|
+
* ```
|
|
84
|
+
* * On macOS:
|
|
85
|
+
* ```bash
|
|
86
|
+
* npx postject hello NODE_SEA_BLOB sea-prep.blob \
|
|
87
|
+
* --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
|
|
88
|
+
* --macho-segment-name NODE_SEA
|
|
89
|
+
* ```
|
|
90
|
+
* 7. Sign the binary (macOS and Windows only):
|
|
91
|
+
* * On macOS:
|
|
92
|
+
* ```bash
|
|
93
|
+
* codesign --sign - hello
|
|
94
|
+
* ```
|
|
95
|
+
* * On Windows (optional):
|
|
96
|
+
* A certificate needs to be present for this to work. However, the unsigned
|
|
97
|
+
* binary would still be runnable.
|
|
98
|
+
* ```powershell
|
|
99
|
+
* signtool sign /fd SHA256 hello.exe
|
|
100
|
+
* ```
|
|
101
|
+
* 8. Run the binary:
|
|
102
|
+
* * On systems other than Windows
|
|
103
|
+
* ```console
|
|
104
|
+
* $ ./hello world
|
|
105
|
+
* Hello, world!
|
|
106
|
+
* ```
|
|
107
|
+
* * On Windows
|
|
108
|
+
* ```console
|
|
109
|
+
* $ .\hello.exe world
|
|
110
|
+
* Hello, world!
|
|
111
|
+
* ```
|
|
112
|
+
* @since v19.7.0, v18.16.0
|
|
113
|
+
* @experimental
|
|
114
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.0/src/node_sea.cc)
|
|
115
|
+
*/
|
|
116
|
+
declare module "node:sea" {
|
|
117
|
+
type AssetKey = string;
|
|
118
|
+
/**
|
|
119
|
+
* @since v20.12.0
|
|
120
|
+
* @return Whether this script is running inside a single-executable application.
|
|
121
|
+
*/
|
|
122
|
+
function isSea(): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* This method can be used to retrieve the assets configured to be bundled into the
|
|
125
|
+
* single-executable application at build time.
|
|
126
|
+
* An error is thrown when no matching asset can be found.
|
|
127
|
+
* @since v20.12.0
|
|
128
|
+
*/
|
|
129
|
+
function getAsset(key: AssetKey): ArrayBuffer;
|
|
130
|
+
function getAsset(key: AssetKey, encoding: string): string;
|
|
131
|
+
/**
|
|
132
|
+
* Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
|
|
133
|
+
* An error is thrown when no matching asset can be found.
|
|
134
|
+
* @since v20.12.0
|
|
135
|
+
*/
|
|
136
|
+
function getAssetAsBlob(key: AssetKey, options?: {
|
|
137
|
+
type: string;
|
|
138
|
+
}): Blob;
|
|
139
|
+
/**
|
|
140
|
+
* This method can be used to retrieve the assets configured to be bundled into the
|
|
141
|
+
* single-executable application at build time.
|
|
142
|
+
* An error is thrown when no matching asset can be found.
|
|
143
|
+
*
|
|
144
|
+
* Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not
|
|
145
|
+
* return a copy. Instead, it returns the raw asset bundled inside the executable.
|
|
146
|
+
*
|
|
147
|
+
* For now, users should avoid writing to the returned array buffer. If the
|
|
148
|
+
* injected section is not marked as writable or not aligned properly,
|
|
149
|
+
* writes to the returned array buffer is likely to result in a crash.
|
|
150
|
+
* @since v20.12.0
|
|
151
|
+
*/
|
|
152
|
+
function getRawAsset(key: AssetKey): string | ArrayBuffer;
|
|
153
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare module "stream/consumers" {
|
|
2
|
+
import { Blob as NodeBlob } from "node:buffer";
|
|
3
|
+
import { Readable } from "node:stream";
|
|
4
|
+
function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
|
|
5
|
+
function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
|
|
6
|
+
function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
7
|
+
function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
|
|
8
|
+
function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
|
|
9
|
+
}
|
|
10
|
+
declare module "node:stream/consumers" {
|
|
11
|
+
export * from "stream/consumers";
|
|
12
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare module "stream/promises" {
|
|
2
|
+
import {
|
|
3
|
+
FinishedOptions,
|
|
4
|
+
PipelineDestination,
|
|
5
|
+
PipelineOptions,
|
|
6
|
+
PipelinePromise,
|
|
7
|
+
PipelineSource,
|
|
8
|
+
PipelineTransform,
|
|
9
|
+
} from "node:stream";
|
|
10
|
+
function finished(
|
|
11
|
+
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
12
|
+
options?: FinishedOptions,
|
|
13
|
+
): Promise<void>;
|
|
14
|
+
function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
|
|
15
|
+
source: A,
|
|
16
|
+
destination: B,
|
|
17
|
+
options?: PipelineOptions,
|
|
18
|
+
): PipelinePromise<B>;
|
|
19
|
+
function pipeline<
|
|
20
|
+
A extends PipelineSource<any>,
|
|
21
|
+
T1 extends PipelineTransform<A, any>,
|
|
22
|
+
B extends PipelineDestination<T1, any>,
|
|
23
|
+
>(
|
|
24
|
+
source: A,
|
|
25
|
+
transform1: T1,
|
|
26
|
+
destination: B,
|
|
27
|
+
options?: PipelineOptions,
|
|
28
|
+
): PipelinePromise<B>;
|
|
29
|
+
function pipeline<
|
|
30
|
+
A extends PipelineSource<any>,
|
|
31
|
+
T1 extends PipelineTransform<A, any>,
|
|
32
|
+
T2 extends PipelineTransform<T1, any>,
|
|
33
|
+
B extends PipelineDestination<T2, any>,
|
|
34
|
+
>(
|
|
35
|
+
source: A,
|
|
36
|
+
transform1: T1,
|
|
37
|
+
transform2: T2,
|
|
38
|
+
destination: B,
|
|
39
|
+
options?: PipelineOptions,
|
|
40
|
+
): PipelinePromise<B>;
|
|
41
|
+
function pipeline<
|
|
42
|
+
A extends PipelineSource<any>,
|
|
43
|
+
T1 extends PipelineTransform<A, any>,
|
|
44
|
+
T2 extends PipelineTransform<T1, any>,
|
|
45
|
+
T3 extends PipelineTransform<T2, any>,
|
|
46
|
+
B extends PipelineDestination<T3, any>,
|
|
47
|
+
>(
|
|
48
|
+
source: A,
|
|
49
|
+
transform1: T1,
|
|
50
|
+
transform2: T2,
|
|
51
|
+
transform3: T3,
|
|
52
|
+
destination: B,
|
|
53
|
+
options?: PipelineOptions,
|
|
54
|
+
): PipelinePromise<B>;
|
|
55
|
+
function pipeline<
|
|
56
|
+
A extends PipelineSource<any>,
|
|
57
|
+
T1 extends PipelineTransform<A, any>,
|
|
58
|
+
T2 extends PipelineTransform<T1, any>,
|
|
59
|
+
T3 extends PipelineTransform<T2, any>,
|
|
60
|
+
T4 extends PipelineTransform<T3, any>,
|
|
61
|
+
B extends PipelineDestination<T4, any>,
|
|
62
|
+
>(
|
|
63
|
+
source: A,
|
|
64
|
+
transform1: T1,
|
|
65
|
+
transform2: T2,
|
|
66
|
+
transform3: T3,
|
|
67
|
+
transform4: T4,
|
|
68
|
+
destination: B,
|
|
69
|
+
options?: PipelineOptions,
|
|
70
|
+
): PipelinePromise<B>;
|
|
71
|
+
function pipeline(
|
|
72
|
+
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
73
|
+
options?: PipelineOptions,
|
|
74
|
+
): Promise<void>;
|
|
75
|
+
function pipeline(
|
|
76
|
+
stream1: NodeJS.ReadableStream,
|
|
77
|
+
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
78
|
+
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
|
|
79
|
+
): Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
declare module "node:stream/promises" {
|
|
82
|
+
export * from "stream/promises";
|
|
83
|
+
}
|