@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,765 +1,412 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export {}; // Make this a module
|
|
2
|
+
|
|
3
|
+
// #region Fetch and friends
|
|
4
|
+
// Conditional type aliases, used at the end of this file.
|
|
5
|
+
// Will either be empty if lib-dom is included, or the undici version otherwise.
|
|
6
|
+
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
7
|
+
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
8
|
+
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
9
|
+
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
10
|
+
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
11
|
+
: import("undici-types").RequestInit;
|
|
12
|
+
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
|
|
13
|
+
: import("undici-types").ResponseInit;
|
|
14
|
+
type _File = typeof globalThis extends { onmessage: any } ? {} : import("node:buffer").File;
|
|
15
|
+
// #endregion Fetch and friends
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
// Declare "static" methods in Error
|
|
19
|
+
interface ErrorConstructor {
|
|
20
|
+
/** Create .stack property on a target object */
|
|
21
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
5
22
|
|
|
6
|
-
/**
|
|
7
|
-
* Optional override for formatting stack traces
|
|
8
|
-
*
|
|
9
|
-
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
10
|
-
*/
|
|
11
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
12
|
-
|
|
13
|
-
stackTraceLimit: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Node.js ESNEXT support
|
|
17
|
-
interface String {
|
|
18
|
-
/** Removes whitespace from the left end of a string. */
|
|
19
|
-
trimLeft(): string;
|
|
20
|
-
/** Removes whitespace from the right end of a string. */
|
|
21
|
-
trimRight(): string;
|
|
22
|
-
|
|
23
|
-
/** Returns a copy with leading whitespace removed. */
|
|
24
|
-
trimStart(): string;
|
|
25
|
-
/** Returns a copy with trailing whitespace removed. */
|
|
26
|
-
trimEnd(): string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface ImportMeta {
|
|
30
|
-
url: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/*-----------------------------------------------*
|
|
34
|
-
* *
|
|
35
|
-
* GLOBAL *
|
|
36
|
-
* *
|
|
37
|
-
------------------------------------------------*/
|
|
38
|
-
|
|
39
|
-
// For backwards compability
|
|
40
|
-
interface NodeRequire extends NodeJS.Require {}
|
|
41
|
-
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
42
|
-
interface NodeModule extends NodeJS.Module {}
|
|
43
|
-
|
|
44
|
-
declare var process: NodeJS.Process;
|
|
45
|
-
declare var console: Console;
|
|
46
|
-
|
|
47
|
-
declare var __filename: string;
|
|
48
|
-
declare var __dirname: string;
|
|
49
|
-
|
|
50
|
-
declare function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
|
51
|
-
declare namespace setTimeout {
|
|
52
|
-
function __promisify__(ms: number): Promise<void>;
|
|
53
|
-
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
54
|
-
}
|
|
55
|
-
declare function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
|
|
56
|
-
declare function setInterval(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
|
57
|
-
declare function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
|
|
58
|
-
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
59
|
-
declare namespace setImmediate {
|
|
60
|
-
function __promisify__(): Promise<void>;
|
|
61
|
-
function __promisify__<T>(value: T): Promise<T>;
|
|
62
|
-
}
|
|
63
|
-
declare function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
64
|
-
|
|
65
|
-
declare function queueMicrotask(callback: () => void): void;
|
|
66
|
-
|
|
67
|
-
declare var require: NodeRequire;
|
|
68
|
-
declare var module: NodeModule;
|
|
69
|
-
|
|
70
|
-
// Same as module.exports
|
|
71
|
-
declare var exports: any;
|
|
72
|
-
|
|
73
|
-
// Buffer class
|
|
74
|
-
type BufferEncoding =
|
|
75
|
-
| "ascii"
|
|
76
|
-
| "utf8"
|
|
77
|
-
| "utf-8"
|
|
78
|
-
| "utf16le"
|
|
79
|
-
| "ucs2"
|
|
80
|
-
| "ucs-2"
|
|
81
|
-
| "base64"
|
|
82
|
-
| "base64url"
|
|
83
|
-
| "latin1"
|
|
84
|
-
| "binary"
|
|
85
|
-
| "hex";
|
|
86
|
-
|
|
87
|
-
type WithImplicitCoercion<T> = T | { valueOf(): T };
|
|
88
|
-
|
|
89
|
-
// #region borrowed
|
|
90
|
-
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
91
|
-
/**
|
|
92
|
-
* A controller object that allows you to abort one or more DOM requests as and when desired.
|
|
93
|
-
* @since v14.7.0
|
|
94
|
-
*/
|
|
95
|
-
interface AbortController {
|
|
96
|
-
/**
|
|
97
|
-
* Returns the AbortSignal object associated with this object.
|
|
98
|
-
* @since v14.7.0
|
|
99
|
-
*/
|
|
100
|
-
readonly signal: AbortSignal;
|
|
101
|
-
/**
|
|
102
|
-
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
103
|
-
* @since v14.7.0
|
|
104
|
-
*/
|
|
105
|
-
abort(reason?: any): void;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
|
|
110
|
-
* @since v14.7.0
|
|
111
|
-
*/
|
|
112
|
-
interface AbortSignal {
|
|
113
|
-
/**
|
|
114
|
-
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
115
|
-
* @since v14.7.0
|
|
116
|
-
*/
|
|
117
|
-
readonly aborted: boolean;
|
|
118
|
-
readonly reason: any;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
declare var AbortController: {
|
|
122
|
-
prototype: AbortController;
|
|
123
|
-
new(): AbortController;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
declare var AbortSignal: {
|
|
127
|
-
prototype: AbortSignal;
|
|
128
|
-
new(): AbortSignal;
|
|
129
|
-
abort(reason?: any): AbortSignal;
|
|
130
|
-
timeout(milliseconds: number): AbortSignal;
|
|
131
|
-
};
|
|
132
|
-
// #endregion borrowed
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Raw data is stored in instances of the Buffer class.
|
|
136
|
-
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
137
|
-
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
138
|
-
*/
|
|
139
|
-
declare class Buffer extends Uint8Array {
|
|
140
|
-
/**
|
|
141
|
-
* Allocates a new buffer containing the given {str}.
|
|
142
|
-
*
|
|
143
|
-
* @param str String to store in buffer.
|
|
144
|
-
* @param encoding encoding to use, optional. Default is 'utf8'
|
|
145
|
-
* @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
|
|
146
|
-
*/
|
|
147
|
-
constructor(str: string, encoding?: BufferEncoding);
|
|
148
|
-
/**
|
|
149
|
-
* Allocates a new buffer of {size} octets.
|
|
150
|
-
*
|
|
151
|
-
* @param size count of octets to allocate.
|
|
152
|
-
* @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
|
|
153
|
-
*/
|
|
154
|
-
constructor(size: number);
|
|
155
|
-
/**
|
|
156
|
-
* Allocates a new buffer containing the given {array} of octets.
|
|
157
|
-
*
|
|
158
|
-
* @param array The octets to store.
|
|
159
|
-
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
160
|
-
*/
|
|
161
|
-
constructor(array: Uint8Array);
|
|
162
|
-
/**
|
|
163
|
-
* Produces a Buffer backed by the same allocated memory as
|
|
164
|
-
* the given {ArrayBuffer}/{SharedArrayBuffer}.
|
|
165
|
-
*
|
|
166
|
-
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
167
|
-
* @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
|
|
168
|
-
*/
|
|
169
|
-
constructor(arrayBuffer: ArrayBuffer | SharedArrayBuffer);
|
|
170
|
-
/**
|
|
171
|
-
* Allocates a new buffer containing the given {array} of octets.
|
|
172
|
-
*
|
|
173
|
-
* @param array The octets to store.
|
|
174
|
-
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
175
|
-
*/
|
|
176
|
-
constructor(array: ReadonlyArray<any>);
|
|
177
|
-
/**
|
|
178
|
-
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
179
|
-
*
|
|
180
|
-
* @param buffer The buffer to copy.
|
|
181
|
-
* @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
|
|
182
|
-
*/
|
|
183
|
-
constructor(buffer: Buffer);
|
|
184
|
-
/**
|
|
185
|
-
* When passed a reference to the .buffer property of a TypedArray instance,
|
|
186
|
-
* the newly created Buffer will share the same allocated memory as the TypedArray.
|
|
187
|
-
* The optional {byteOffset} and {length} arguments specify a memory range
|
|
188
|
-
* within the {arrayBuffer} that will be shared by the Buffer.
|
|
189
|
-
*
|
|
190
|
-
* @param arrayBuffer The .buffer property of any TypedArray or a new ArrayBuffer()
|
|
191
|
-
*/
|
|
192
|
-
static from(
|
|
193
|
-
arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
|
|
194
|
-
byteOffset?: number,
|
|
195
|
-
length?: number,
|
|
196
|
-
): Buffer;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a new Buffer using the passed {data}
|
|
199
|
-
* @param data data to create a new Buffer
|
|
200
|
-
*/
|
|
201
|
-
static from(data: Uint8Array | ReadonlyArray<number>): Buffer;
|
|
202
|
-
static from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
|
|
203
|
-
/**
|
|
204
|
-
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
205
|
-
* If provided, the {encoding} parameter identifies the character encoding.
|
|
206
|
-
* If not provided, {encoding} defaults to 'utf8'.
|
|
207
|
-
*/
|
|
208
|
-
static from(
|
|
209
|
-
str: WithImplicitCoercion<string> | { [Symbol.toPrimitive](hint: "string"): string },
|
|
210
|
-
encoding?: BufferEncoding,
|
|
211
|
-
): Buffer;
|
|
212
|
-
/**
|
|
213
|
-
* Creates a new Buffer using the passed {data}
|
|
214
|
-
* @param values to create a new Buffer
|
|
215
|
-
*/
|
|
216
|
-
static of(...items: number[]): Buffer;
|
|
217
|
-
/**
|
|
218
|
-
* Returns true if {obj} is a Buffer
|
|
219
|
-
*
|
|
220
|
-
* @param obj object to test.
|
|
221
|
-
*/
|
|
222
|
-
static isBuffer(obj: any): obj is Buffer;
|
|
223
|
-
/**
|
|
224
|
-
* Returns true if {encoding} is a valid encoding argument.
|
|
225
|
-
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
226
|
-
*
|
|
227
|
-
* @param encoding string to test.
|
|
228
|
-
*/
|
|
229
|
-
static isEncoding(encoding: string): encoding is BufferEncoding;
|
|
230
|
-
/**
|
|
231
|
-
* Gives the actual byte length of a string. encoding defaults to 'utf8'.
|
|
232
|
-
* This is not the same as String.prototype.length since that returns the number of characters in a string.
|
|
233
|
-
*
|
|
234
|
-
* @param string string to test.
|
|
235
|
-
* @param encoding encoding used to evaluate (defaults to 'utf8')
|
|
236
|
-
*/
|
|
237
|
-
static byteLength(
|
|
238
|
-
string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
239
|
-
encoding?: BufferEncoding,
|
|
240
|
-
): number;
|
|
241
|
-
/**
|
|
242
|
-
* Returns a buffer which is the result of concatenating all the buffers in the list together.
|
|
243
|
-
*
|
|
244
|
-
* If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
|
|
245
|
-
* If the list has exactly one item, then the first item of the list is returned.
|
|
246
|
-
* If the list has more than one item, then a new Buffer is created.
|
|
247
|
-
*
|
|
248
|
-
* @param list An array of Buffer objects to concatenate
|
|
249
|
-
* @param totalLength Total length of the buffers when concatenated.
|
|
250
|
-
* If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
|
|
251
|
-
*/
|
|
252
|
-
static concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
|
|
253
|
-
/**
|
|
254
|
-
* The same as buf1.compare(buf2).
|
|
255
|
-
*/
|
|
256
|
-
static compare(buf1: Uint8Array, buf2: Uint8Array): number;
|
|
257
|
-
/**
|
|
258
|
-
* Allocates a new buffer of {size} octets.
|
|
259
|
-
*
|
|
260
|
-
* @param size count of octets to allocate.
|
|
261
|
-
* @param fill if specified, buffer will be initialized by calling buf.fill(fill).
|
|
262
|
-
* If parameter is omitted, buffer will be filled with zeros.
|
|
263
|
-
* @param encoding encoding used for call to buf.fill while initalizing
|
|
264
|
-
*/
|
|
265
|
-
static alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
|
|
266
|
-
/**
|
|
267
|
-
* Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
|
|
268
|
-
* of the newly created Buffer are unknown and may contain sensitive data.
|
|
269
|
-
*
|
|
270
|
-
* @param size count of octets to allocate
|
|
271
|
-
*/
|
|
272
|
-
static allocUnsafe(size: number): Buffer;
|
|
273
|
-
/**
|
|
274
|
-
* Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
|
|
275
|
-
* of the newly created Buffer are unknown and may contain sensitive data.
|
|
276
|
-
*
|
|
277
|
-
* @param size count of octets to allocate
|
|
278
|
-
*/
|
|
279
|
-
static allocUnsafeSlow(size: number): Buffer;
|
|
280
|
-
/**
|
|
281
|
-
* This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling. This value may be modified.
|
|
282
|
-
*/
|
|
283
|
-
static poolSize: number;
|
|
284
|
-
|
|
285
|
-
write(string: string, encoding?: BufferEncoding): number;
|
|
286
|
-
write(string: string, offset: number, encoding?: BufferEncoding): number;
|
|
287
|
-
write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
|
|
288
|
-
toString(encoding?: BufferEncoding, start?: number, end?: number): string;
|
|
289
|
-
toJSON(): { type: "Buffer"; data: number[] };
|
|
290
|
-
equals(otherBuffer: Uint8Array): boolean;
|
|
291
|
-
compare(
|
|
292
|
-
otherBuffer: Uint8Array,
|
|
293
|
-
targetStart?: number,
|
|
294
|
-
targetEnd?: number,
|
|
295
|
-
sourceStart?: number,
|
|
296
|
-
sourceEnd?: number,
|
|
297
|
-
): number;
|
|
298
|
-
copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
|
|
299
|
-
/**
|
|
300
|
-
* Returns a new `Buffer` that references **the same memory as the original**, but offset and cropped by the start and end indices.
|
|
301
|
-
*
|
|
302
|
-
* This method is incompatible with `Uint8Array#slice()`, which returns a copy of the original memory.
|
|
303
|
-
*
|
|
304
|
-
* @param begin Where the new `Buffer` will start. Default: `0`.
|
|
305
|
-
* @param end Where the new `Buffer` will end (not inclusive). Default: `buf.length`.
|
|
306
|
-
*/
|
|
307
|
-
slice(begin?: number, end?: number): Buffer;
|
|
308
|
-
/**
|
|
309
|
-
* Returns a new `Buffer` that references **the same memory as the original**, but offset and cropped by the start and end indices.
|
|
310
|
-
*
|
|
311
|
-
* This method is compatible with `Uint8Array#subarray()`.
|
|
312
|
-
*
|
|
313
|
-
* @param begin Where the new `Buffer` will start. Default: `0`.
|
|
314
|
-
* @param end Where the new `Buffer` will end (not inclusive). Default: `buf.length`.
|
|
315
|
-
*/
|
|
316
|
-
subarray(begin?: number, end?: number): Buffer;
|
|
317
|
-
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
318
|
-
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
319
|
-
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
320
|
-
/**
|
|
321
|
-
* @alias Buffer.writeBigUInt64BE
|
|
322
|
-
* @since v14.10.0, v12.19.0
|
|
323
|
-
*/
|
|
324
|
-
writeBigUint64BE(value: bigint, offset?: number): number;
|
|
325
|
-
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
326
|
-
/**
|
|
327
|
-
* @alias Buffer.writeBigUInt64LE
|
|
328
|
-
* @since v14.10.0, v12.19.0
|
|
329
|
-
*/
|
|
330
|
-
writeBigUint64LE(value: bigint, offset?: number): number;
|
|
331
|
-
writeUIntLE(value: number, offset: number, byteLength: number): number;
|
|
332
|
-
/**
|
|
333
|
-
* @alias Buffer.writeUIntLE
|
|
334
|
-
* @since v14.9.0, v12.19.0
|
|
335
|
-
*/
|
|
336
|
-
writeUintLE(value: number, offset: number, byteLength: number): number;
|
|
337
|
-
writeUIntBE(value: number, offset: number, byteLength: number): number;
|
|
338
|
-
/**
|
|
339
|
-
* @alias Buffer.writeUIntBE
|
|
340
|
-
* @since v14.9.0, v12.19.0
|
|
341
|
-
*/
|
|
342
|
-
writeUintBE(value: number, offset: number, byteLength: number): number;
|
|
343
|
-
writeIntLE(value: number, offset: number, byteLength: number): number;
|
|
344
|
-
writeIntBE(value: number, offset: number, byteLength: number): number;
|
|
345
|
-
readBigUInt64BE(offset?: number): bigint;
|
|
346
|
-
/**
|
|
347
|
-
* @alias Buffer.readBigUInt64BE
|
|
348
|
-
* @since v14.10.0, v12.19.0
|
|
349
|
-
*/
|
|
350
|
-
readBigUint64BE(offset?: number): bigint;
|
|
351
|
-
readBigUInt64LE(offset?: number): bigint;
|
|
352
|
-
/**
|
|
353
|
-
* @alias Buffer.readBigUInt64LE
|
|
354
|
-
* @since v14.10.0, v12.19.0
|
|
355
|
-
*/
|
|
356
|
-
readBigUint64LE(offset?: number): bigint;
|
|
357
|
-
readBigInt64BE(offset?: number): bigint;
|
|
358
|
-
readBigInt64LE(offset?: number): bigint;
|
|
359
|
-
readUIntLE(offset: number, byteLength: number): number;
|
|
360
|
-
/**
|
|
361
|
-
* @alias Buffer.readUIntLE
|
|
362
|
-
* @since v14.9.0, v12.19.0
|
|
363
|
-
*/
|
|
364
|
-
readUintLE(offset: number, byteLength: number): number;
|
|
365
|
-
readUIntBE(offset: number, byteLength: number): number;
|
|
366
|
-
/**
|
|
367
|
-
* @alias Buffer.readUIntBE
|
|
368
|
-
* @since v14.9.0, v12.19.0
|
|
369
|
-
*/
|
|
370
|
-
readUintBE(offset: number, byteLength: number): number;
|
|
371
|
-
readIntLE(offset: number, byteLength: number): number;
|
|
372
|
-
readIntBE(offset: number, byteLength: number): number;
|
|
373
|
-
readUInt8(offset?: number): number;
|
|
374
|
-
/**
|
|
375
|
-
* @alias Buffer.readUInt8
|
|
376
|
-
* @since v14.9.0, v12.19.0
|
|
377
|
-
*/
|
|
378
|
-
readUint8(offset?: number): number;
|
|
379
|
-
readUInt16LE(offset?: number): number;
|
|
380
|
-
/**
|
|
381
|
-
* @alias Buffer.readUInt16LE
|
|
382
|
-
* @since v14.9.0, v12.19.0
|
|
383
|
-
*/
|
|
384
|
-
readUint16LE(offset?: number): number;
|
|
385
|
-
readUInt16BE(offset?: number): number;
|
|
386
|
-
/**
|
|
387
|
-
* @alias Buffer.readUInt16BE
|
|
388
|
-
* @since v14.9.0, v12.19.0
|
|
389
|
-
*/
|
|
390
|
-
readUint16BE(offset?: number): number;
|
|
391
|
-
readUInt32LE(offset?: number): number;
|
|
392
|
-
/**
|
|
393
|
-
* @alias Buffer.readUInt32LE
|
|
394
|
-
* @since v14.9.0, v12.19.0
|
|
395
|
-
*/
|
|
396
|
-
readUint32LE(offset?: number): number;
|
|
397
|
-
readUInt32BE(offset?: number): number;
|
|
398
|
-
/**
|
|
399
|
-
* @alias Buffer.readUInt32BE
|
|
400
|
-
* @since v14.9.0, v12.19.0
|
|
401
|
-
*/
|
|
402
|
-
readUint32BE(offset?: number): number;
|
|
403
|
-
readInt8(offset?: number): number;
|
|
404
|
-
readInt16LE(offset?: number): number;
|
|
405
|
-
readInt16BE(offset?: number): number;
|
|
406
|
-
readInt32LE(offset?: number): number;
|
|
407
|
-
readInt32BE(offset?: number): number;
|
|
408
|
-
readFloatLE(offset?: number): number;
|
|
409
|
-
readFloatBE(offset?: number): number;
|
|
410
|
-
readDoubleLE(offset?: number): number;
|
|
411
|
-
readDoubleBE(offset?: number): number;
|
|
412
|
-
reverse(): this;
|
|
413
|
-
swap16(): Buffer;
|
|
414
|
-
swap32(): Buffer;
|
|
415
|
-
swap64(): Buffer;
|
|
416
|
-
writeUInt8(value: number, offset?: number): number;
|
|
417
|
-
/**
|
|
418
|
-
* @alias Buffer.writeUInt8
|
|
419
|
-
* @since v14.9.0, v12.19.0
|
|
420
|
-
*/
|
|
421
|
-
writeUint8(value: number, offset?: number): number;
|
|
422
|
-
writeUInt16LE(value: number, offset?: number): number;
|
|
423
|
-
/**
|
|
424
|
-
* @alias Buffer.writeUInt16LE
|
|
425
|
-
* @since v14.9.0, v12.19.0
|
|
426
|
-
*/
|
|
427
|
-
writeUint16LE(value: number, offset?: number): number;
|
|
428
|
-
writeUInt16BE(value: number, offset?: number): number;
|
|
429
|
-
/**
|
|
430
|
-
* @alias Buffer.writeUInt16BE
|
|
431
|
-
* @since v14.9.0, v12.19.0
|
|
432
|
-
*/
|
|
433
|
-
writeUint16BE(value: number, offset?: number): number;
|
|
434
|
-
writeUInt32LE(value: number, offset?: number): number;
|
|
435
|
-
/**
|
|
436
|
-
* @alias Buffer.writeUInt32LE
|
|
437
|
-
* @since v14.9.0, v12.19.0
|
|
438
|
-
*/
|
|
439
|
-
writeUint32LE(value: number, offset?: number): number;
|
|
440
|
-
writeUInt32BE(value: number, offset?: number): number;
|
|
441
|
-
/**
|
|
442
|
-
* @alias Buffer.writeUInt32BE
|
|
443
|
-
* @since v14.9.0, v12.19.0
|
|
444
|
-
*/
|
|
445
|
-
writeUint32BE(value: number, offset?: number): number;
|
|
446
|
-
writeInt8(value: number, offset?: number): number;
|
|
447
|
-
writeInt16LE(value: number, offset?: number): number;
|
|
448
|
-
writeInt16BE(value: number, offset?: number): number;
|
|
449
|
-
writeInt32LE(value: number, offset?: number): number;
|
|
450
|
-
writeInt32BE(value: number, offset?: number): number;
|
|
451
|
-
writeFloatLE(value: number, offset?: number): number;
|
|
452
|
-
writeFloatBE(value: number, offset?: number): number;
|
|
453
|
-
writeDoubleLE(value: number, offset?: number): number;
|
|
454
|
-
writeDoubleBE(value: number, offset?: number): number;
|
|
455
|
-
|
|
456
|
-
fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
|
|
457
|
-
|
|
458
|
-
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
459
|
-
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
460
|
-
entries(): IterableIterator<[number, number]>;
|
|
461
|
-
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
|
462
|
-
keys(): IterableIterator<number>;
|
|
463
|
-
values(): IterableIterator<number>;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/*----------------------------------------------*
|
|
467
|
-
* *
|
|
468
|
-
* GLOBAL INTERFACES *
|
|
469
|
-
* *
|
|
470
|
-
*-----------------------------------------------*/
|
|
471
|
-
declare namespace NodeJS {
|
|
472
|
-
interface InspectOptions {
|
|
473
23
|
/**
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
* setter are going to be inspected. This might cause side effects depending on
|
|
478
|
-
* the getter function.
|
|
479
|
-
* @default `false`
|
|
480
|
-
*/
|
|
481
|
-
getters?: "get" | "set" | boolean | undefined;
|
|
482
|
-
showHidden?: boolean | undefined;
|
|
483
|
-
/**
|
|
484
|
-
* @default 2
|
|
485
|
-
*/
|
|
486
|
-
depth?: number | null | undefined;
|
|
487
|
-
colors?: boolean | undefined;
|
|
488
|
-
customInspect?: boolean | undefined;
|
|
489
|
-
showProxy?: boolean | undefined;
|
|
490
|
-
maxArrayLength?: number | null | undefined;
|
|
491
|
-
/**
|
|
492
|
-
* Specifies the maximum number of characters to
|
|
493
|
-
* include when formatting. Set to `null` or `Infinity` to show all elements.
|
|
494
|
-
* Set to `0` or negative to show no characters.
|
|
495
|
-
* @default Infinity
|
|
496
|
-
*/
|
|
497
|
-
maxStringLength?: number | null | undefined;
|
|
498
|
-
breakLength?: number | undefined;
|
|
499
|
-
/**
|
|
500
|
-
* Setting this to `false` causes each object key
|
|
501
|
-
* to be displayed on a new line. It will also add new lines to text that is
|
|
502
|
-
* longer than `breakLength`. If set to a number, the most `n` inner elements
|
|
503
|
-
* are united on a single line as long as all properties fit into
|
|
504
|
-
* `breakLength`. Short array elements are also grouped together. Note that no
|
|
505
|
-
* text will be reduced below 16 characters, no matter the `breakLength` size.
|
|
506
|
-
* For more information, see the example below.
|
|
507
|
-
* @default `true`
|
|
24
|
+
* Optional override for formatting stack traces
|
|
25
|
+
*
|
|
26
|
+
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
508
27
|
*/
|
|
509
|
-
|
|
510
|
-
sorted?: boolean | ((a: string, b: string) => number) | undefined;
|
|
511
|
-
}
|
|
28
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
512
29
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
* Value of "this"
|
|
516
|
-
*/
|
|
517
|
-
getThis(): any;
|
|
30
|
+
stackTraceLimit: number;
|
|
31
|
+
}
|
|
518
32
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
*/
|
|
525
|
-
getTypeName(): string | null;
|
|
33
|
+
/*-----------------------------------------------*
|
|
34
|
+
* *
|
|
35
|
+
* GLOBAL *
|
|
36
|
+
* *
|
|
37
|
+
------------------------------------------------*/
|
|
526
38
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
39
|
+
// For backwards compability
|
|
40
|
+
interface NodeRequire extends NodeJS.Require {}
|
|
41
|
+
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
42
|
+
interface NodeModule extends NodeJS.Module {}
|
|
531
43
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
* If a name property is not available an attempt will be made to try
|
|
535
|
-
* to infer a name from the function's context.
|
|
536
|
-
*/
|
|
537
|
-
getFunctionName(): string | null;
|
|
44
|
+
var process: NodeJS.Process;
|
|
45
|
+
var console: Console;
|
|
538
46
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
* the current function
|
|
542
|
-
*/
|
|
543
|
-
getMethodName(): string | null;
|
|
47
|
+
var __filename: string;
|
|
48
|
+
var __dirname: string;
|
|
544
49
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
*/
|
|
548
|
-
getFileName(): string | undefined;
|
|
50
|
+
var require: NodeRequire;
|
|
51
|
+
var module: NodeModule;
|
|
549
52
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
*/
|
|
553
|
-
getLineNumber(): number | null;
|
|
53
|
+
// Same as module.exports
|
|
54
|
+
var exports: any;
|
|
554
55
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Only available if `--expose-gc` is passed to the process.
|
|
58
|
+
*/
|
|
59
|
+
var gc: undefined | (() => void);
|
|
559
60
|
|
|
61
|
+
// #region borrowed
|
|
62
|
+
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
63
|
+
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
64
|
+
interface AbortController {
|
|
560
65
|
/**
|
|
561
|
-
*
|
|
562
|
-
* [if this function was created using a call to eval]
|
|
66
|
+
* Returns the AbortSignal object associated with this object.
|
|
563
67
|
*/
|
|
564
|
-
getEvalOrigin(): string | undefined;
|
|
565
68
|
|
|
69
|
+
readonly signal: AbortSignal;
|
|
566
70
|
/**
|
|
567
|
-
*
|
|
71
|
+
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
568
72
|
*/
|
|
569
|
-
|
|
73
|
+
abort(reason?: any): void;
|
|
74
|
+
}
|
|
570
75
|
|
|
76
|
+
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
77
|
+
interface AbortSignal extends EventTarget {
|
|
571
78
|
/**
|
|
572
|
-
*
|
|
79
|
+
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
573
80
|
*/
|
|
574
|
-
|
|
81
|
+
readonly aborted: boolean;
|
|
82
|
+
readonly reason: any;
|
|
83
|
+
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
84
|
+
throwIfAborted(): void;
|
|
85
|
+
}
|
|
575
86
|
|
|
87
|
+
var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
|
88
|
+
: {
|
|
89
|
+
prototype: AbortController;
|
|
90
|
+
new(): AbortController;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
|
94
|
+
: {
|
|
95
|
+
prototype: AbortSignal;
|
|
96
|
+
new(): AbortSignal;
|
|
97
|
+
abort(reason?: any): AbortSignal;
|
|
98
|
+
timeout(milliseconds: number): AbortSignal;
|
|
99
|
+
any(signals: AbortSignal[]): AbortSignal;
|
|
100
|
+
};
|
|
101
|
+
// #endregion borrowed
|
|
102
|
+
|
|
103
|
+
// #region Disposable
|
|
104
|
+
interface SymbolConstructor {
|
|
576
105
|
/**
|
|
577
|
-
*
|
|
106
|
+
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
|
578
107
|
*/
|
|
579
|
-
|
|
108
|
+
readonly dispose: unique symbol;
|
|
580
109
|
|
|
581
110
|
/**
|
|
582
|
-
*
|
|
111
|
+
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
|
583
112
|
*/
|
|
584
|
-
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
interface ErrnoException extends Error {
|
|
588
|
-
errno?: number | undefined;
|
|
589
|
-
code?: string | undefined;
|
|
590
|
-
path?: string | undefined;
|
|
591
|
-
syscall?: string | undefined;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
interface ReadableStream extends EventEmitter {
|
|
595
|
-
readable: boolean;
|
|
596
|
-
read(size?: number): string | Buffer;
|
|
597
|
-
setEncoding(encoding: BufferEncoding): this;
|
|
598
|
-
pause(): this;
|
|
599
|
-
resume(): this;
|
|
600
|
-
isPaused(): boolean;
|
|
601
|
-
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
602
|
-
unpipe(destination?: WritableStream): this;
|
|
603
|
-
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
604
|
-
wrap(oldStream: ReadableStream): this;
|
|
605
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
interface WritableStream extends EventEmitter {
|
|
609
|
-
writable: boolean;
|
|
610
|
-
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
611
|
-
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
612
|
-
end(cb?: () => void): this;
|
|
613
|
-
end(data: string | Uint8Array, cb?: () => void): this;
|
|
614
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
618
|
-
|
|
619
|
-
interface Global {
|
|
620
|
-
Array: typeof Array;
|
|
621
|
-
ArrayBuffer: typeof ArrayBuffer;
|
|
622
|
-
Boolean: typeof Boolean;
|
|
623
|
-
Buffer: typeof Buffer;
|
|
624
|
-
DataView: typeof DataView;
|
|
625
|
-
Date: typeof Date;
|
|
626
|
-
Error: typeof Error;
|
|
627
|
-
EvalError: typeof EvalError;
|
|
628
|
-
Float32Array: typeof Float32Array;
|
|
629
|
-
Float64Array: typeof Float64Array;
|
|
630
|
-
Function: typeof Function;
|
|
631
|
-
Infinity: typeof Infinity;
|
|
632
|
-
Int16Array: typeof Int16Array;
|
|
633
|
-
Int32Array: typeof Int32Array;
|
|
634
|
-
Int8Array: typeof Int8Array;
|
|
635
|
-
Intl: typeof Intl;
|
|
636
|
-
JSON: typeof JSON;
|
|
637
|
-
Map: MapConstructor;
|
|
638
|
-
Math: typeof Math;
|
|
639
|
-
NaN: typeof NaN;
|
|
640
|
-
Number: typeof Number;
|
|
641
|
-
Object: typeof Object;
|
|
642
|
-
Promise: typeof Promise;
|
|
643
|
-
RangeError: typeof RangeError;
|
|
644
|
-
ReferenceError: typeof ReferenceError;
|
|
645
|
-
RegExp: typeof RegExp;
|
|
646
|
-
Set: SetConstructor;
|
|
647
|
-
String: typeof String;
|
|
648
|
-
Symbol: Function;
|
|
649
|
-
SyntaxError: typeof SyntaxError;
|
|
650
|
-
TypeError: typeof TypeError;
|
|
651
|
-
URIError: typeof URIError;
|
|
652
|
-
Uint16Array: typeof Uint16Array;
|
|
653
|
-
Uint32Array: typeof Uint32Array;
|
|
654
|
-
Uint8Array: typeof Uint8Array;
|
|
655
|
-
Uint8ClampedArray: typeof Uint8ClampedArray;
|
|
656
|
-
WeakMap: WeakMapConstructor;
|
|
657
|
-
WeakSet: WeakSetConstructor;
|
|
658
|
-
clearImmediate: (immediateId: Immediate) => void;
|
|
659
|
-
clearInterval: (intervalId: Timeout) => void;
|
|
660
|
-
clearTimeout: (timeoutId: Timeout) => void;
|
|
661
|
-
decodeURI: typeof decodeURI;
|
|
662
|
-
decodeURIComponent: typeof decodeURIComponent;
|
|
663
|
-
encodeURI: typeof encodeURI;
|
|
664
|
-
encodeURIComponent: typeof encodeURIComponent;
|
|
665
|
-
escape: (str: string) => string;
|
|
666
|
-
eval: typeof eval;
|
|
667
|
-
global: Global;
|
|
668
|
-
isFinite: typeof isFinite;
|
|
669
|
-
isNaN: typeof isNaN;
|
|
670
|
-
parseFloat: typeof parseFloat;
|
|
671
|
-
parseInt: typeof parseInt;
|
|
672
|
-
setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => Immediate;
|
|
673
|
-
setInterval: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => Timeout;
|
|
674
|
-
setTimeout: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => Timeout;
|
|
675
|
-
queueMicrotask: typeof queueMicrotask;
|
|
676
|
-
undefined: typeof undefined;
|
|
677
|
-
unescape: (str: string) => string;
|
|
678
|
-
gc: () => void;
|
|
679
|
-
v8debug?: any;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
interface RefCounted {
|
|
683
|
-
ref(): this;
|
|
684
|
-
unref(): this;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
// compatibility with older typings
|
|
688
|
-
interface Timer extends RefCounted {
|
|
689
|
-
hasRef(): boolean;
|
|
690
|
-
refresh(): this;
|
|
691
|
-
[Symbol.toPrimitive](): number;
|
|
113
|
+
readonly asyncDispose: unique symbol;
|
|
692
114
|
}
|
|
693
115
|
|
|
694
|
-
interface
|
|
695
|
-
|
|
696
|
-
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
116
|
+
interface Disposable {
|
|
117
|
+
[Symbol.dispose](): void;
|
|
697
118
|
}
|
|
698
119
|
|
|
699
|
-
interface
|
|
700
|
-
|
|
701
|
-
refresh(): this;
|
|
702
|
-
[Symbol.toPrimitive](): number;
|
|
120
|
+
interface AsyncDisposable {
|
|
121
|
+
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
703
122
|
}
|
|
123
|
+
// #endregion Disposable
|
|
704
124
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
| Uint8ClampedArray
|
|
708
|
-
| Uint16Array
|
|
709
|
-
| Uint32Array
|
|
710
|
-
| Int8Array
|
|
711
|
-
| Int16Array
|
|
712
|
-
| Int32Array
|
|
713
|
-
| BigUint64Array
|
|
714
|
-
| BigInt64Array
|
|
715
|
-
| Float32Array
|
|
716
|
-
| Float64Array;
|
|
717
|
-
type ArrayBufferView = TypedArray | DataView;
|
|
718
|
-
|
|
719
|
-
interface Require {
|
|
720
|
-
(id: string): any;
|
|
721
|
-
resolve: RequireResolve;
|
|
722
|
-
cache: Dict<NodeModule>;
|
|
125
|
+
// #region ArrayLike.at()
|
|
126
|
+
interface RelativeIndexable<T> {
|
|
723
127
|
/**
|
|
724
|
-
*
|
|
128
|
+
* Takes an integer value and returns the item at that index,
|
|
129
|
+
* allowing for positive and negative integers.
|
|
130
|
+
* Negative integers count back from the last item in the array.
|
|
725
131
|
*/
|
|
726
|
-
|
|
727
|
-
main: Module | undefined;
|
|
132
|
+
at(index: number): T | undefined;
|
|
728
133
|
}
|
|
729
|
-
|
|
730
|
-
interface
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
interface
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
740
|
-
interface
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
134
|
+
interface String extends RelativeIndexable<string> {}
|
|
135
|
+
interface Array<T> extends RelativeIndexable<T> {}
|
|
136
|
+
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
137
|
+
interface Int8Array extends RelativeIndexable<number> {}
|
|
138
|
+
interface Uint8Array extends RelativeIndexable<number> {}
|
|
139
|
+
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
|
140
|
+
interface Int16Array extends RelativeIndexable<number> {}
|
|
141
|
+
interface Uint16Array extends RelativeIndexable<number> {}
|
|
142
|
+
interface Int32Array extends RelativeIndexable<number> {}
|
|
143
|
+
interface Uint32Array extends RelativeIndexable<number> {}
|
|
144
|
+
interface Float32Array extends RelativeIndexable<number> {}
|
|
145
|
+
interface Float64Array extends RelativeIndexable<number> {}
|
|
146
|
+
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
147
|
+
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
148
|
+
// #endregion ArrayLike.at() end
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @since v17.0.0
|
|
152
|
+
*
|
|
153
|
+
* Creates a deep clone of an object.
|
|
154
|
+
*/
|
|
155
|
+
function structuredClone<T>(
|
|
156
|
+
value: T,
|
|
157
|
+
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
158
|
+
): T;
|
|
159
|
+
|
|
160
|
+
/*----------------------------------------------*
|
|
161
|
+
* *
|
|
162
|
+
* GLOBAL INTERFACES *
|
|
163
|
+
* *
|
|
164
|
+
*-----------------------------------------------*/
|
|
165
|
+
namespace NodeJS {
|
|
166
|
+
interface CallSite {
|
|
167
|
+
/**
|
|
168
|
+
* Value of "this"
|
|
169
|
+
*/
|
|
170
|
+
getThis(): unknown;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Type of "this" as a string.
|
|
174
|
+
* This is the name of the function stored in the constructor field of
|
|
175
|
+
* "this", if available. Otherwise the object's [[Class]] internal
|
|
176
|
+
* property.
|
|
177
|
+
*/
|
|
178
|
+
getTypeName(): string | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Current function
|
|
182
|
+
*/
|
|
183
|
+
getFunction(): Function | undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Name of the current function, typically its name property.
|
|
187
|
+
* If a name property is not available an attempt will be made to try
|
|
188
|
+
* to infer a name from the function's context.
|
|
189
|
+
*/
|
|
190
|
+
getFunctionName(): string | null;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Name of the property [of "this" or one of its prototypes] that holds
|
|
194
|
+
* the current function
|
|
195
|
+
*/
|
|
196
|
+
getMethodName(): string | null;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Name of the script [if this function was defined in a script]
|
|
200
|
+
*/
|
|
201
|
+
getFileName(): string | undefined;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Current line number [if this function was defined in a script]
|
|
205
|
+
*/
|
|
206
|
+
getLineNumber(): number | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Current column number [if this function was defined in a script]
|
|
210
|
+
*/
|
|
211
|
+
getColumnNumber(): number | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* A call site object representing the location where eval was called
|
|
215
|
+
* [if this function was created using a call to eval]
|
|
216
|
+
*/
|
|
217
|
+
getEvalOrigin(): string | undefined;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Is this a toplevel invocation, that is, is "this" the global object?
|
|
221
|
+
*/
|
|
222
|
+
isToplevel(): boolean;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Does this call take place in code defined by a call to eval?
|
|
226
|
+
*/
|
|
227
|
+
isEval(): boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Is this call in native V8 code?
|
|
231
|
+
*/
|
|
232
|
+
isNative(): boolean;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Is this a constructor call?
|
|
236
|
+
*/
|
|
237
|
+
isConstructor(): boolean;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* is this an async call (i.e. await, Promise.all(), or Promise.any())?
|
|
241
|
+
*/
|
|
242
|
+
isAsync(): boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* is this an async call to Promise.all()?
|
|
246
|
+
*/
|
|
247
|
+
isPromiseAll(): boolean;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* returns the index of the promise element that was followed in
|
|
251
|
+
* Promise.all() or Promise.any() for async stack traces, or null
|
|
252
|
+
* if the CallSite is not an async
|
|
253
|
+
*/
|
|
254
|
+
getPromiseIndex(): number | null;
|
|
255
|
+
|
|
256
|
+
getScriptNameOrSourceURL(): string;
|
|
257
|
+
getScriptHash(): string;
|
|
258
|
+
|
|
259
|
+
getEnclosingColumnNumber(): number;
|
|
260
|
+
getEnclosingLineNumber(): number;
|
|
261
|
+
getPosition(): number;
|
|
262
|
+
|
|
263
|
+
toString(): string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
interface ErrnoException extends Error {
|
|
267
|
+
errno?: number | undefined;
|
|
268
|
+
code?: string | undefined;
|
|
269
|
+
path?: string | undefined;
|
|
270
|
+
syscall?: string | undefined;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
interface ReadableStream extends EventEmitter {
|
|
274
|
+
readable: boolean;
|
|
275
|
+
read(size?: number): string | Buffer;
|
|
276
|
+
setEncoding(encoding: BufferEncoding): this;
|
|
277
|
+
pause(): this;
|
|
278
|
+
resume(): this;
|
|
279
|
+
isPaused(): boolean;
|
|
280
|
+
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
281
|
+
unpipe(destination?: WritableStream): this;
|
|
282
|
+
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
283
|
+
wrap(oldStream: ReadableStream): this;
|
|
284
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface WritableStream extends EventEmitter {
|
|
288
|
+
writable: boolean;
|
|
289
|
+
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
290
|
+
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
291
|
+
end(cb?: () => void): this;
|
|
292
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
293
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
297
|
+
|
|
298
|
+
interface RefCounted {
|
|
299
|
+
ref(): this;
|
|
300
|
+
unref(): this;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
type TypedArray =
|
|
304
|
+
| Uint8Array
|
|
305
|
+
| Uint8ClampedArray
|
|
306
|
+
| Uint16Array
|
|
307
|
+
| Uint32Array
|
|
308
|
+
| Int8Array
|
|
309
|
+
| Int16Array
|
|
310
|
+
| Int32Array
|
|
311
|
+
| BigUint64Array
|
|
312
|
+
| BigInt64Array
|
|
313
|
+
| Float32Array
|
|
314
|
+
| Float64Array;
|
|
315
|
+
type ArrayBufferView = TypedArray | DataView;
|
|
316
|
+
|
|
317
|
+
interface Require {
|
|
318
|
+
(id: string): any;
|
|
319
|
+
resolve: RequireResolve;
|
|
320
|
+
cache: Dict<NodeModule>;
|
|
321
|
+
/**
|
|
322
|
+
* @deprecated
|
|
323
|
+
*/
|
|
324
|
+
extensions: RequireExtensions;
|
|
325
|
+
main: Module | undefined;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface RequireResolve {
|
|
329
|
+
(id: string, options?: { paths?: string[] | undefined }): string;
|
|
330
|
+
paths(request: string): string[] | null;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
|
|
334
|
+
".js": (m: Module, filename: string) => any;
|
|
335
|
+
".json": (m: Module, filename: string) => any;
|
|
336
|
+
".node": (m: Module, filename: string) => any;
|
|
337
|
+
}
|
|
338
|
+
interface Module {
|
|
339
|
+
/**
|
|
340
|
+
* `true` if the module is running during the Node.js preload
|
|
341
|
+
*/
|
|
342
|
+
isPreloading: boolean;
|
|
343
|
+
exports: any;
|
|
344
|
+
require: Require;
|
|
345
|
+
id: string;
|
|
346
|
+
filename: string;
|
|
347
|
+
loaded: boolean;
|
|
348
|
+
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
349
|
+
parent: Module | null | undefined;
|
|
350
|
+
children: Module[];
|
|
351
|
+
/**
|
|
352
|
+
* @since v11.14.0
|
|
353
|
+
*
|
|
354
|
+
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
355
|
+
*/
|
|
356
|
+
path: string;
|
|
357
|
+
paths: string[];
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
interface Dict<T> {
|
|
361
|
+
[key: string]: T | undefined;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
interface ReadOnlyDict<T> {
|
|
365
|
+
readonly [key: string]: T | undefined;
|
|
366
|
+
}
|
|
760
367
|
}
|
|
761
368
|
|
|
762
|
-
interface
|
|
763
|
-
|
|
764
|
-
|
|
369
|
+
interface RequestInit extends _RequestInit {}
|
|
370
|
+
|
|
371
|
+
function fetch(
|
|
372
|
+
input: string | URL | globalThis.Request,
|
|
373
|
+
init?: RequestInit,
|
|
374
|
+
): Promise<Response>;
|
|
375
|
+
|
|
376
|
+
interface Request extends _Request {}
|
|
377
|
+
var Request: typeof globalThis extends {
|
|
378
|
+
onmessage: any;
|
|
379
|
+
Request: infer T;
|
|
380
|
+
} ? T
|
|
381
|
+
: typeof import("undici-types").Request;
|
|
382
|
+
|
|
383
|
+
interface ResponseInit extends _ResponseInit {}
|
|
384
|
+
|
|
385
|
+
interface Response extends _Response {}
|
|
386
|
+
var Response: typeof globalThis extends {
|
|
387
|
+
onmessage: any;
|
|
388
|
+
Response: infer T;
|
|
389
|
+
} ? T
|
|
390
|
+
: typeof import("undici-types").Response;
|
|
391
|
+
|
|
392
|
+
interface FormData extends _FormData {}
|
|
393
|
+
var FormData: typeof globalThis extends {
|
|
394
|
+
onmessage: any;
|
|
395
|
+
FormData: infer T;
|
|
396
|
+
} ? T
|
|
397
|
+
: typeof import("undici-types").FormData;
|
|
398
|
+
|
|
399
|
+
interface Headers extends _Headers {}
|
|
400
|
+
var Headers: typeof globalThis extends {
|
|
401
|
+
onmessage: any;
|
|
402
|
+
Headers: infer T;
|
|
403
|
+
} ? T
|
|
404
|
+
: typeof import("undici-types").Headers;
|
|
405
|
+
|
|
406
|
+
interface File extends _File {}
|
|
407
|
+
var File: typeof globalThis extends {
|
|
408
|
+
onmessage: any;
|
|
409
|
+
File: infer T;
|
|
410
|
+
} ? T
|
|
411
|
+
: typeof import("node:buffer").File;
|
|
765
412
|
}
|