@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,682 +0,0 @@
|
|
|
1
|
-
declare module "child_process" {
|
|
2
|
-
import { BaseEncodingOptions } from "fs";
|
|
3
|
-
import * as events from "events";
|
|
4
|
-
import * as net from "net";
|
|
5
|
-
import { Pipe, Readable, Stream, Writable } from "stream";
|
|
6
|
-
|
|
7
|
-
type Serializable = string | object | number | boolean;
|
|
8
|
-
type SendHandle = net.Socket | net.Server;
|
|
9
|
-
|
|
10
|
-
interface ChildProcess extends events.EventEmitter {
|
|
11
|
-
stdin: Writable | null;
|
|
12
|
-
stdout: Readable | null;
|
|
13
|
-
stderr: Readable | null;
|
|
14
|
-
readonly channel?: Pipe | null | undefined;
|
|
15
|
-
readonly stdio: [
|
|
16
|
-
Writable | null, // stdin
|
|
17
|
-
Readable | null, // stdout
|
|
18
|
-
Readable | null, // stderr
|
|
19
|
-
Readable | Writable | null | undefined, // extra
|
|
20
|
-
Readable | Writable | null | undefined, // extra
|
|
21
|
-
];
|
|
22
|
-
readonly killed: boolean;
|
|
23
|
-
readonly pid: number;
|
|
24
|
-
readonly connected: boolean;
|
|
25
|
-
readonly exitCode: number | null;
|
|
26
|
-
readonly signalCode: NodeJS.Signals | null;
|
|
27
|
-
readonly spawnargs: string[];
|
|
28
|
-
readonly spawnfile: string;
|
|
29
|
-
kill(signal?: NodeJS.Signals | number): boolean;
|
|
30
|
-
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
|
|
31
|
-
send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
|
|
32
|
-
send(
|
|
33
|
-
message: Serializable,
|
|
34
|
-
sendHandle?: SendHandle,
|
|
35
|
-
options?: MessageOptions,
|
|
36
|
-
callback?: (error: Error | null) => void,
|
|
37
|
-
): boolean;
|
|
38
|
-
disconnect(): void;
|
|
39
|
-
unref(): void;
|
|
40
|
-
ref(): void;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* events.EventEmitter
|
|
44
|
-
* 1. close
|
|
45
|
-
* 2. disconnect
|
|
46
|
-
* 3. error
|
|
47
|
-
* 4. exit
|
|
48
|
-
* 5. message
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
52
|
-
addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
53
|
-
addListener(event: "disconnect", listener: () => void): this;
|
|
54
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
55
|
-
addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
56
|
-
addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
57
|
-
|
|
58
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
59
|
-
emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
|
|
60
|
-
emit(event: "disconnect"): boolean;
|
|
61
|
-
emit(event: "error", err: Error): boolean;
|
|
62
|
-
emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
|
|
63
|
-
emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
|
|
64
|
-
|
|
65
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
66
|
-
on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
67
|
-
on(event: "disconnect", listener: () => void): this;
|
|
68
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
69
|
-
on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
70
|
-
on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
71
|
-
|
|
72
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
73
|
-
once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
74
|
-
once(event: "disconnect", listener: () => void): this;
|
|
75
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
76
|
-
once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
77
|
-
once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
78
|
-
|
|
79
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
80
|
-
prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
81
|
-
prependListener(event: "disconnect", listener: () => void): this;
|
|
82
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
83
|
-
prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
84
|
-
prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
85
|
-
|
|
86
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
87
|
-
prependOnceListener(
|
|
88
|
-
event: "close",
|
|
89
|
-
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
90
|
-
): this;
|
|
91
|
-
prependOnceListener(event: "disconnect", listener: () => void): this;
|
|
92
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
93
|
-
prependOnceListener(
|
|
94
|
-
event: "exit",
|
|
95
|
-
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
96
|
-
): this;
|
|
97
|
-
prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// return this object when stdio option is undefined or not specified
|
|
101
|
-
interface ChildProcessWithoutNullStreams extends ChildProcess {
|
|
102
|
-
stdin: Writable;
|
|
103
|
-
stdout: Readable;
|
|
104
|
-
stderr: Readable;
|
|
105
|
-
readonly stdio: [
|
|
106
|
-
Writable, // stdin
|
|
107
|
-
Readable, // stdout
|
|
108
|
-
Readable, // stderr
|
|
109
|
-
Readable | Writable | null | undefined, // extra, no modification
|
|
110
|
-
Readable | Writable | null | undefined, // extra, no modification
|
|
111
|
-
];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// return this object when stdio option is a tuple of 3
|
|
115
|
-
interface ChildProcessByStdio<
|
|
116
|
-
I extends null | Writable,
|
|
117
|
-
O extends null | Readable,
|
|
118
|
-
E extends null | Readable,
|
|
119
|
-
> extends ChildProcess {
|
|
120
|
-
stdin: I;
|
|
121
|
-
stdout: O;
|
|
122
|
-
stderr: E;
|
|
123
|
-
readonly stdio: [
|
|
124
|
-
I,
|
|
125
|
-
O,
|
|
126
|
-
E,
|
|
127
|
-
Readable | Writable | null | undefined, // extra, no modification
|
|
128
|
-
Readable | Writable | null | undefined, // extra, no modification
|
|
129
|
-
];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface MessageOptions {
|
|
133
|
-
keepOpen?: boolean | undefined;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type StdioOptions =
|
|
137
|
-
| "pipe"
|
|
138
|
-
| "ignore"
|
|
139
|
-
| "inherit"
|
|
140
|
-
| Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
|
|
141
|
-
|
|
142
|
-
type SerializationType = "json" | "advanced";
|
|
143
|
-
|
|
144
|
-
interface MessagingOptions {
|
|
145
|
-
/**
|
|
146
|
-
* Specify the kind of serialization used for sending messages between processes.
|
|
147
|
-
* @default 'json'
|
|
148
|
-
*/
|
|
149
|
-
serialization?: SerializationType | undefined;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface ProcessEnvOptions {
|
|
153
|
-
uid?: number | undefined;
|
|
154
|
-
gid?: number | undefined;
|
|
155
|
-
cwd?: string | undefined;
|
|
156
|
-
env?: NodeJS.ProcessEnv | undefined;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface CommonOptions extends ProcessEnvOptions {
|
|
160
|
-
/**
|
|
161
|
-
* @default false
|
|
162
|
-
*/
|
|
163
|
-
windowsHide?: boolean | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* @default 0
|
|
166
|
-
*/
|
|
167
|
-
timeout?: number | undefined;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
interface CommonSpawnOptions extends CommonOptions, MessagingOptions {
|
|
171
|
-
argv0?: string | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
174
|
-
* If passed as an array, the first element is used for `stdin`, the second for
|
|
175
|
-
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
176
|
-
* specify the `stdio` behavior beyond the standard streams. See
|
|
177
|
-
* {@link ChildProcess.stdio} for more information.
|
|
178
|
-
*
|
|
179
|
-
* @default 'pipe'
|
|
180
|
-
*/
|
|
181
|
-
stdio?: StdioOptions | undefined;
|
|
182
|
-
shell?: boolean | string | undefined;
|
|
183
|
-
windowsVerbatimArguments?: boolean | undefined;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface SpawnOptions extends CommonSpawnOptions {
|
|
187
|
-
detached?: boolean | undefined;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface SpawnOptionsWithoutStdio extends SpawnOptions {
|
|
191
|
-
stdio?: "pipe" | Array<null | undefined | "pipe"> | undefined;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
type StdioNull = "inherit" | "ignore" | Stream;
|
|
195
|
-
type StdioPipe = undefined | null | "pipe";
|
|
196
|
-
|
|
197
|
-
interface SpawnOptionsWithStdioTuple<
|
|
198
|
-
Stdin extends StdioNull | StdioPipe,
|
|
199
|
-
Stdout extends StdioNull | StdioPipe,
|
|
200
|
-
Stderr extends StdioNull | StdioPipe,
|
|
201
|
-
> extends SpawnOptions {
|
|
202
|
-
stdio: [Stdin, Stdout, Stderr];
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// overloads of spawn without 'args'
|
|
206
|
-
function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
|
|
207
|
-
|
|
208
|
-
function spawn(
|
|
209
|
-
command: string,
|
|
210
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
211
|
-
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
212
|
-
function spawn(
|
|
213
|
-
command: string,
|
|
214
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
215
|
-
): ChildProcessByStdio<Writable, Readable, null>;
|
|
216
|
-
function spawn(
|
|
217
|
-
command: string,
|
|
218
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
219
|
-
): ChildProcessByStdio<Writable, null, Readable>;
|
|
220
|
-
function spawn(
|
|
221
|
-
command: string,
|
|
222
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
223
|
-
): ChildProcessByStdio<null, Readable, Readable>;
|
|
224
|
-
function spawn(
|
|
225
|
-
command: string,
|
|
226
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
227
|
-
): ChildProcessByStdio<Writable, null, null>;
|
|
228
|
-
function spawn(
|
|
229
|
-
command: string,
|
|
230
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
231
|
-
): ChildProcessByStdio<null, Readable, null>;
|
|
232
|
-
function spawn(
|
|
233
|
-
command: string,
|
|
234
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
235
|
-
): ChildProcessByStdio<null, null, Readable>;
|
|
236
|
-
function spawn(
|
|
237
|
-
command: string,
|
|
238
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
239
|
-
): ChildProcessByStdio<null, null, null>;
|
|
240
|
-
|
|
241
|
-
function spawn(command: string, options: SpawnOptions): ChildProcess;
|
|
242
|
-
|
|
243
|
-
// overloads of spawn with 'args'
|
|
244
|
-
function spawn(
|
|
245
|
-
command: string,
|
|
246
|
-
args?: ReadonlyArray<string>,
|
|
247
|
-
options?: SpawnOptionsWithoutStdio,
|
|
248
|
-
): ChildProcessWithoutNullStreams;
|
|
249
|
-
|
|
250
|
-
function spawn(
|
|
251
|
-
command: string,
|
|
252
|
-
args: ReadonlyArray<string>,
|
|
253
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
254
|
-
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
255
|
-
function spawn(
|
|
256
|
-
command: string,
|
|
257
|
-
args: ReadonlyArray<string>,
|
|
258
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
259
|
-
): ChildProcessByStdio<Writable, Readable, null>;
|
|
260
|
-
function spawn(
|
|
261
|
-
command: string,
|
|
262
|
-
args: ReadonlyArray<string>,
|
|
263
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
264
|
-
): ChildProcessByStdio<Writable, null, Readable>;
|
|
265
|
-
function spawn(
|
|
266
|
-
command: string,
|
|
267
|
-
args: ReadonlyArray<string>,
|
|
268
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
269
|
-
): ChildProcessByStdio<null, Readable, Readable>;
|
|
270
|
-
function spawn(
|
|
271
|
-
command: string,
|
|
272
|
-
args: ReadonlyArray<string>,
|
|
273
|
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
274
|
-
): ChildProcessByStdio<Writable, null, null>;
|
|
275
|
-
function spawn(
|
|
276
|
-
command: string,
|
|
277
|
-
args: ReadonlyArray<string>,
|
|
278
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
279
|
-
): ChildProcessByStdio<null, Readable, null>;
|
|
280
|
-
function spawn(
|
|
281
|
-
command: string,
|
|
282
|
-
args: ReadonlyArray<string>,
|
|
283
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
284
|
-
): ChildProcessByStdio<null, null, Readable>;
|
|
285
|
-
function spawn(
|
|
286
|
-
command: string,
|
|
287
|
-
args: ReadonlyArray<string>,
|
|
288
|
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
289
|
-
): ChildProcessByStdio<null, null, null>;
|
|
290
|
-
|
|
291
|
-
function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
|
|
292
|
-
|
|
293
|
-
interface ExecOptions extends CommonOptions {
|
|
294
|
-
shell?: string | undefined;
|
|
295
|
-
maxBuffer?: number | undefined;
|
|
296
|
-
killSignal?: NodeJS.Signals | number | undefined;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
interface ExecOptionsWithStringEncoding extends ExecOptions {
|
|
300
|
-
encoding: BufferEncoding;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
interface ExecOptionsWithBufferEncoding extends ExecOptions {
|
|
304
|
-
encoding: BufferEncoding | null; // specify `null`.
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
interface ExecException extends Error {
|
|
308
|
-
cmd?: string | undefined;
|
|
309
|
-
killed?: boolean | undefined;
|
|
310
|
-
code?: number | undefined;
|
|
311
|
-
signal?: NodeJS.Signals | undefined;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// no `options` definitely means stdout/stderr are `string`.
|
|
315
|
-
function exec(
|
|
316
|
-
command: string,
|
|
317
|
-
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
318
|
-
): ChildProcess;
|
|
319
|
-
|
|
320
|
-
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
321
|
-
function exec(
|
|
322
|
-
command: string,
|
|
323
|
-
options: { encoding: "buffer" | null } & ExecOptions,
|
|
324
|
-
callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
325
|
-
): ChildProcess;
|
|
326
|
-
|
|
327
|
-
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
328
|
-
function exec(
|
|
329
|
-
command: string,
|
|
330
|
-
options: { encoding: BufferEncoding } & ExecOptions,
|
|
331
|
-
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
332
|
-
): ChildProcess;
|
|
333
|
-
|
|
334
|
-
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
335
|
-
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
336
|
-
function exec(
|
|
337
|
-
command: string,
|
|
338
|
-
options: { encoding: BufferEncoding } & ExecOptions,
|
|
339
|
-
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
340
|
-
): ChildProcess;
|
|
341
|
-
|
|
342
|
-
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
343
|
-
function exec(
|
|
344
|
-
command: string,
|
|
345
|
-
options: ExecOptions,
|
|
346
|
-
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
347
|
-
): ChildProcess;
|
|
348
|
-
|
|
349
|
-
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
350
|
-
function exec(
|
|
351
|
-
command: string,
|
|
352
|
-
options: (BaseEncodingOptions & ExecOptions) | undefined | null,
|
|
353
|
-
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
354
|
-
): ChildProcess;
|
|
355
|
-
|
|
356
|
-
interface PromiseWithChild<T> extends Promise<T> {
|
|
357
|
-
child: ChildProcess;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
361
|
-
namespace exec {
|
|
362
|
-
function __promisify__(command: string): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
363
|
-
function __promisify__(
|
|
364
|
-
command: string,
|
|
365
|
-
options: { encoding: "buffer" | null } & ExecOptions,
|
|
366
|
-
): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
|
|
367
|
-
function __promisify__(
|
|
368
|
-
command: string,
|
|
369
|
-
options: { encoding: BufferEncoding } & ExecOptions,
|
|
370
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
371
|
-
function __promisify__(
|
|
372
|
-
command: string,
|
|
373
|
-
options: ExecOptions,
|
|
374
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
375
|
-
function __promisify__(
|
|
376
|
-
command: string,
|
|
377
|
-
options?: (BaseEncodingOptions & ExecOptions) | null,
|
|
378
|
-
): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
interface ExecFileOptions extends CommonOptions {
|
|
382
|
-
maxBuffer?: number | undefined;
|
|
383
|
-
killSignal?: NodeJS.Signals | number | undefined;
|
|
384
|
-
windowsVerbatimArguments?: boolean | undefined;
|
|
385
|
-
shell?: boolean | string | undefined;
|
|
386
|
-
}
|
|
387
|
-
interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
|
|
388
|
-
encoding: BufferEncoding;
|
|
389
|
-
}
|
|
390
|
-
interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
|
|
391
|
-
encoding: "buffer" | null;
|
|
392
|
-
}
|
|
393
|
-
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
|
|
394
|
-
encoding: BufferEncoding;
|
|
395
|
-
}
|
|
396
|
-
type ExecFileException =
|
|
397
|
-
& Omit<ExecException, "code">
|
|
398
|
-
& Omit<NodeJS.ErrnoException, "code">
|
|
399
|
-
& { code?: string | number | undefined | null };
|
|
400
|
-
|
|
401
|
-
function execFile(file: string): ChildProcess;
|
|
402
|
-
function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
|
|
403
|
-
function execFile(file: string, args?: ReadonlyArray<string> | null): ChildProcess;
|
|
404
|
-
function execFile(
|
|
405
|
-
file: string,
|
|
406
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
407
|
-
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
408
|
-
): ChildProcess;
|
|
409
|
-
|
|
410
|
-
// no `options` definitely means stdout/stderr are `string`.
|
|
411
|
-
function execFile(
|
|
412
|
-
file: string,
|
|
413
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
414
|
-
): ChildProcess;
|
|
415
|
-
function execFile(
|
|
416
|
-
file: string,
|
|
417
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
418
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
419
|
-
): ChildProcess;
|
|
420
|
-
|
|
421
|
-
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
422
|
-
function execFile(
|
|
423
|
-
file: string,
|
|
424
|
-
options: ExecFileOptionsWithBufferEncoding,
|
|
425
|
-
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
426
|
-
): ChildProcess;
|
|
427
|
-
function execFile(
|
|
428
|
-
file: string,
|
|
429
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
430
|
-
options: ExecFileOptionsWithBufferEncoding,
|
|
431
|
-
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
432
|
-
): ChildProcess;
|
|
433
|
-
|
|
434
|
-
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
435
|
-
function execFile(
|
|
436
|
-
file: string,
|
|
437
|
-
options: ExecFileOptionsWithStringEncoding,
|
|
438
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
439
|
-
): ChildProcess;
|
|
440
|
-
function execFile(
|
|
441
|
-
file: string,
|
|
442
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
443
|
-
options: ExecFileOptionsWithStringEncoding,
|
|
444
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
445
|
-
): ChildProcess;
|
|
446
|
-
|
|
447
|
-
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
448
|
-
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
449
|
-
function execFile(
|
|
450
|
-
file: string,
|
|
451
|
-
options: ExecFileOptionsWithOtherEncoding,
|
|
452
|
-
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
453
|
-
): ChildProcess;
|
|
454
|
-
function execFile(
|
|
455
|
-
file: string,
|
|
456
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
457
|
-
options: ExecFileOptionsWithOtherEncoding,
|
|
458
|
-
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
459
|
-
): ChildProcess;
|
|
460
|
-
|
|
461
|
-
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
462
|
-
function execFile(
|
|
463
|
-
file: string,
|
|
464
|
-
options: ExecFileOptions,
|
|
465
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
466
|
-
): ChildProcess;
|
|
467
|
-
function execFile(
|
|
468
|
-
file: string,
|
|
469
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
470
|
-
options: ExecFileOptions,
|
|
471
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
472
|
-
): ChildProcess;
|
|
473
|
-
|
|
474
|
-
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
475
|
-
function execFile(
|
|
476
|
-
file: string,
|
|
477
|
-
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
478
|
-
callback:
|
|
479
|
-
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
480
|
-
| undefined
|
|
481
|
-
| null,
|
|
482
|
-
): ChildProcess;
|
|
483
|
-
function execFile(
|
|
484
|
-
file: string,
|
|
485
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
486
|
-
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
487
|
-
callback:
|
|
488
|
-
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
489
|
-
| undefined
|
|
490
|
-
| null,
|
|
491
|
-
): ChildProcess;
|
|
492
|
-
|
|
493
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
494
|
-
namespace execFile {
|
|
495
|
-
function __promisify__(file: string): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
496
|
-
function __promisify__(
|
|
497
|
-
file: string,
|
|
498
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
499
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
500
|
-
function __promisify__(
|
|
501
|
-
file: string,
|
|
502
|
-
options: ExecFileOptionsWithBufferEncoding,
|
|
503
|
-
): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
|
|
504
|
-
function __promisify__(
|
|
505
|
-
file: string,
|
|
506
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
507
|
-
options: ExecFileOptionsWithBufferEncoding,
|
|
508
|
-
): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
|
|
509
|
-
function __promisify__(
|
|
510
|
-
file: string,
|
|
511
|
-
options: ExecFileOptionsWithStringEncoding,
|
|
512
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
513
|
-
function __promisify__(
|
|
514
|
-
file: string,
|
|
515
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
516
|
-
options: ExecFileOptionsWithStringEncoding,
|
|
517
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
518
|
-
function __promisify__(
|
|
519
|
-
file: string,
|
|
520
|
-
options: ExecFileOptionsWithOtherEncoding,
|
|
521
|
-
): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
|
|
522
|
-
function __promisify__(
|
|
523
|
-
file: string,
|
|
524
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
525
|
-
options: ExecFileOptionsWithOtherEncoding,
|
|
526
|
-
): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
|
|
527
|
-
function __promisify__(
|
|
528
|
-
file: string,
|
|
529
|
-
options: ExecFileOptions,
|
|
530
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
531
|
-
function __promisify__(
|
|
532
|
-
file: string,
|
|
533
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
534
|
-
options: ExecFileOptions,
|
|
535
|
-
): PromiseWithChild<{ stdout: string; stderr: string }>;
|
|
536
|
-
function __promisify__(
|
|
537
|
-
file: string,
|
|
538
|
-
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
539
|
-
): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
|
|
540
|
-
function __promisify__(
|
|
541
|
-
file: string,
|
|
542
|
-
args: ReadonlyArray<string> | undefined | null,
|
|
543
|
-
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
544
|
-
): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
interface ForkOptions extends ProcessEnvOptions, MessagingOptions {
|
|
548
|
-
execPath?: string | undefined;
|
|
549
|
-
execArgv?: string[] | undefined;
|
|
550
|
-
silent?: boolean | undefined;
|
|
551
|
-
/**
|
|
552
|
-
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
553
|
-
* If passed as an array, the first element is used for `stdin`, the second for
|
|
554
|
-
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
555
|
-
* specify the `stdio` behavior beyond the standard streams. See
|
|
556
|
-
* {@link ChildProcess.stdio} for more information.
|
|
557
|
-
*
|
|
558
|
-
* @default 'pipe'
|
|
559
|
-
*/
|
|
560
|
-
stdio?: StdioOptions | undefined;
|
|
561
|
-
detached?: boolean | undefined;
|
|
562
|
-
windowsVerbatimArguments?: boolean | undefined;
|
|
563
|
-
}
|
|
564
|
-
function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
565
|
-
function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
|
|
566
|
-
|
|
567
|
-
interface SpawnSyncOptions extends CommonSpawnOptions {
|
|
568
|
-
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
569
|
-
killSignal?: NodeJS.Signals | number | undefined;
|
|
570
|
-
maxBuffer?: number | undefined;
|
|
571
|
-
encoding?: BufferEncoding | "buffer" | null | undefined;
|
|
572
|
-
}
|
|
573
|
-
interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
|
|
574
|
-
encoding: BufferEncoding;
|
|
575
|
-
}
|
|
576
|
-
interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
|
|
577
|
-
encoding?: "buffer" | null | undefined;
|
|
578
|
-
}
|
|
579
|
-
interface SpawnSyncReturns<T> {
|
|
580
|
-
pid: number;
|
|
581
|
-
output: Array<T | null>;
|
|
582
|
-
stdout: T;
|
|
583
|
-
stderr: T;
|
|
584
|
-
status: number | null;
|
|
585
|
-
signal: NodeJS.Signals | null;
|
|
586
|
-
error?: Error | undefined;
|
|
587
|
-
}
|
|
588
|
-
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
|
589
|
-
function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
590
|
-
function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
591
|
-
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
592
|
-
function spawnSync(
|
|
593
|
-
command: string,
|
|
594
|
-
args?: ReadonlyArray<string>,
|
|
595
|
-
options?: SpawnSyncOptionsWithStringEncoding,
|
|
596
|
-
): SpawnSyncReturns<string>;
|
|
597
|
-
function spawnSync(
|
|
598
|
-
command: string,
|
|
599
|
-
args?: ReadonlyArray<string>,
|
|
600
|
-
options?: SpawnSyncOptionsWithBufferEncoding,
|
|
601
|
-
): SpawnSyncReturns<Buffer>;
|
|
602
|
-
function spawnSync(
|
|
603
|
-
command: string,
|
|
604
|
-
args?: ReadonlyArray<string>,
|
|
605
|
-
options?: SpawnSyncOptions,
|
|
606
|
-
): SpawnSyncReturns<string | Buffer>;
|
|
607
|
-
|
|
608
|
-
interface ExecSyncOptions extends CommonOptions {
|
|
609
|
-
input?: string | Uint8Array | undefined;
|
|
610
|
-
/**
|
|
611
|
-
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
612
|
-
* If passed as an array, the first element is used for `stdin`, the second for
|
|
613
|
-
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
614
|
-
* specify the `stdio` behavior beyond the standard streams. See
|
|
615
|
-
* {@link ChildProcess.stdio} for more information.
|
|
616
|
-
*
|
|
617
|
-
* @default 'pipe'
|
|
618
|
-
*/
|
|
619
|
-
stdio?: StdioOptions | undefined;
|
|
620
|
-
shell?: string | undefined;
|
|
621
|
-
killSignal?: NodeJS.Signals | number | undefined;
|
|
622
|
-
maxBuffer?: number | undefined;
|
|
623
|
-
encoding?: BufferEncoding | "buffer" | null | undefined;
|
|
624
|
-
}
|
|
625
|
-
interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
|
|
626
|
-
encoding: BufferEncoding;
|
|
627
|
-
}
|
|
628
|
-
interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
|
|
629
|
-
encoding?: "buffer" | null | undefined;
|
|
630
|
-
}
|
|
631
|
-
function execSync(command: string): Buffer;
|
|
632
|
-
function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
|
|
633
|
-
function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
|
|
634
|
-
function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
|
|
635
|
-
|
|
636
|
-
interface ExecFileSyncOptions extends CommonOptions {
|
|
637
|
-
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
638
|
-
/**
|
|
639
|
-
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
640
|
-
* If passed as an array, the first element is used for `stdin`, the second for
|
|
641
|
-
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
642
|
-
* specify the `stdio` behavior beyond the standard streams. See
|
|
643
|
-
* {@link ChildProcess.stdio} for more information.
|
|
644
|
-
*
|
|
645
|
-
* @default 'pipe'
|
|
646
|
-
*/
|
|
647
|
-
stdio?: StdioOptions | undefined;
|
|
648
|
-
killSignal?: NodeJS.Signals | number | undefined;
|
|
649
|
-
maxBuffer?: number | undefined;
|
|
650
|
-
encoding?: BufferEncoding | undefined;
|
|
651
|
-
shell?: boolean | string | undefined;
|
|
652
|
-
}
|
|
653
|
-
interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
|
|
654
|
-
encoding: BufferEncoding;
|
|
655
|
-
}
|
|
656
|
-
interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
|
|
657
|
-
encoding: BufferEncoding; // specify `null`.
|
|
658
|
-
}
|
|
659
|
-
function execFileSync(command: string): Buffer;
|
|
660
|
-
function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
661
|
-
function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
662
|
-
function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
663
|
-
function execFileSync(command: string, args: ReadonlyArray<string>): Buffer;
|
|
664
|
-
function execFileSync(
|
|
665
|
-
command: string,
|
|
666
|
-
args: ReadonlyArray<string>,
|
|
667
|
-
options: ExecFileSyncOptionsWithStringEncoding,
|
|
668
|
-
): string;
|
|
669
|
-
function execFileSync(
|
|
670
|
-
command: string,
|
|
671
|
-
args: ReadonlyArray<string>,
|
|
672
|
-
options: ExecFileSyncOptionsWithBufferEncoding,
|
|
673
|
-
): Buffer;
|
|
674
|
-
function execFileSync(
|
|
675
|
-
command: string,
|
|
676
|
-
args?: ReadonlyArray<string>,
|
|
677
|
-
options?: ExecFileSyncOptions,
|
|
678
|
-
): string | Buffer;
|
|
679
|
-
}
|
|
680
|
-
declare module "node:child_process" {
|
|
681
|
-
export * from "child_process";
|
|
682
|
-
}
|