@emulsify/cli 1.9.0 → 1.10.0
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 +37 -24
- 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 +23 -23
- 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,4 +1,3 @@
|
|
|
1
|
-
// eslint-disable-next-line @definitelytyped/dt-header
|
|
2
1
|
// Type definitions for inspector
|
|
3
2
|
|
|
4
3
|
// These definitions are auto-generated.
|
|
@@ -7,16 +6,28 @@
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
|
-
* The inspector module provides an API for interacting with the V8
|
|
9
|
+
* The `node:inspector` module provides an API for interacting with the V8
|
|
10
|
+
* inspector.
|
|
11
|
+
*
|
|
12
|
+
* It can be accessed using:
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import * as inspector from 'node:inspector/promises';
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* or
|
|
19
|
+
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import * as inspector from 'node:inspector';
|
|
22
|
+
* ```
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/inspector.js)
|
|
11
24
|
*/
|
|
12
25
|
declare module 'inspector' {
|
|
13
|
-
import EventEmitter = require('events');
|
|
14
|
-
|
|
26
|
+
import EventEmitter = require('node:events');
|
|
15
27
|
interface InspectorNotification<T> {
|
|
16
28
|
method: string;
|
|
17
29
|
params: T;
|
|
18
30
|
}
|
|
19
|
-
|
|
20
31
|
namespace Schema {
|
|
21
32
|
/**
|
|
22
33
|
* Description of the protocol domain.
|
|
@@ -31,7 +42,6 @@ declare module 'inspector' {
|
|
|
31
42
|
*/
|
|
32
43
|
version: string;
|
|
33
44
|
}
|
|
34
|
-
|
|
35
45
|
interface GetDomainsReturnType {
|
|
36
46
|
/**
|
|
37
47
|
* List of supported domains.
|
|
@@ -39,23 +49,19 @@ declare module 'inspector' {
|
|
|
39
49
|
domains: Domain[];
|
|
40
50
|
}
|
|
41
51
|
}
|
|
42
|
-
|
|
43
52
|
namespace Runtime {
|
|
44
53
|
/**
|
|
45
54
|
* Unique script identifier.
|
|
46
55
|
*/
|
|
47
56
|
type ScriptId = string;
|
|
48
|
-
|
|
49
57
|
/**
|
|
50
58
|
* Unique object identifier.
|
|
51
59
|
*/
|
|
52
60
|
type RemoteObjectId = string;
|
|
53
|
-
|
|
54
61
|
/**
|
|
55
62
|
* Primitive value which cannot be JSON-stringified.
|
|
56
63
|
*/
|
|
57
64
|
type UnserializableValue = string;
|
|
58
|
-
|
|
59
65
|
/**
|
|
60
66
|
* Mirror object referencing original JavaScript object.
|
|
61
67
|
*/
|
|
@@ -98,7 +104,6 @@ declare module 'inspector' {
|
|
|
98
104
|
*/
|
|
99
105
|
customPreview?: CustomPreview | undefined;
|
|
100
106
|
}
|
|
101
|
-
|
|
102
107
|
/**
|
|
103
108
|
* @experimental
|
|
104
109
|
*/
|
|
@@ -109,7 +114,6 @@ declare module 'inspector' {
|
|
|
109
114
|
bindRemoteObjectFunctionId: RemoteObjectId;
|
|
110
115
|
configObjectId?: RemoteObjectId | undefined;
|
|
111
116
|
}
|
|
112
|
-
|
|
113
117
|
/**
|
|
114
118
|
* Object containing abbreviated remote object value.
|
|
115
119
|
* @experimental
|
|
@@ -140,7 +144,6 @@ declare module 'inspector' {
|
|
|
140
144
|
*/
|
|
141
145
|
entries?: EntryPreview[] | undefined;
|
|
142
146
|
}
|
|
143
|
-
|
|
144
147
|
/**
|
|
145
148
|
* @experimental
|
|
146
149
|
*/
|
|
@@ -166,7 +169,6 @@ declare module 'inspector' {
|
|
|
166
169
|
*/
|
|
167
170
|
subtype?: string | undefined;
|
|
168
171
|
}
|
|
169
|
-
|
|
170
172
|
/**
|
|
171
173
|
* @experimental
|
|
172
174
|
*/
|
|
@@ -180,7 +182,6 @@ declare module 'inspector' {
|
|
|
180
182
|
*/
|
|
181
183
|
value: ObjectPreview;
|
|
182
184
|
}
|
|
183
|
-
|
|
184
185
|
/**
|
|
185
186
|
* Object property descriptor.
|
|
186
187
|
*/
|
|
@@ -226,7 +227,6 @@ declare module 'inspector' {
|
|
|
226
227
|
*/
|
|
227
228
|
symbol?: RemoteObject | undefined;
|
|
228
229
|
}
|
|
229
|
-
|
|
230
230
|
/**
|
|
231
231
|
* Object internal property descriptor. This property isn't normally visible in JavaScript code.
|
|
232
232
|
*/
|
|
@@ -240,7 +240,6 @@ declare module 'inspector' {
|
|
|
240
240
|
*/
|
|
241
241
|
value?: RemoteObject | undefined;
|
|
242
242
|
}
|
|
243
|
-
|
|
244
243
|
/**
|
|
245
244
|
* Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
|
|
246
245
|
*/
|
|
@@ -258,12 +257,10 @@ declare module 'inspector' {
|
|
|
258
257
|
*/
|
|
259
258
|
objectId?: RemoteObjectId | undefined;
|
|
260
259
|
}
|
|
261
|
-
|
|
262
260
|
/**
|
|
263
261
|
* Id of an execution context.
|
|
264
262
|
*/
|
|
265
263
|
type ExecutionContextId = number;
|
|
266
|
-
|
|
267
264
|
/**
|
|
268
265
|
* Description of an isolated world.
|
|
269
266
|
*/
|
|
@@ -285,7 +282,6 @@ declare module 'inspector' {
|
|
|
285
282
|
*/
|
|
286
283
|
auxData?: {} | undefined;
|
|
287
284
|
}
|
|
288
|
-
|
|
289
285
|
/**
|
|
290
286
|
* Detailed information about exception (or error) that was thrown during script compilation or execution.
|
|
291
287
|
*/
|
|
@@ -327,12 +323,10 @@ declare module 'inspector' {
|
|
|
327
323
|
*/
|
|
328
324
|
executionContextId?: ExecutionContextId | undefined;
|
|
329
325
|
}
|
|
330
|
-
|
|
331
326
|
/**
|
|
332
327
|
* Number of milliseconds since epoch.
|
|
333
328
|
*/
|
|
334
329
|
type Timestamp = number;
|
|
335
|
-
|
|
336
330
|
/**
|
|
337
331
|
* Stack entry for runtime errors and assertions.
|
|
338
332
|
*/
|
|
@@ -358,7 +352,6 @@ declare module 'inspector' {
|
|
|
358
352
|
*/
|
|
359
353
|
columnNumber: number;
|
|
360
354
|
}
|
|
361
|
-
|
|
362
355
|
/**
|
|
363
356
|
* Call frames for assertions or error messages.
|
|
364
357
|
*/
|
|
@@ -381,13 +374,11 @@ declare module 'inspector' {
|
|
|
381
374
|
*/
|
|
382
375
|
parentId?: StackTraceId | undefined;
|
|
383
376
|
}
|
|
384
|
-
|
|
385
377
|
/**
|
|
386
378
|
* Unique identifier of current debugger.
|
|
387
379
|
* @experimental
|
|
388
380
|
*/
|
|
389
381
|
type UniqueDebuggerId = string;
|
|
390
|
-
|
|
391
382
|
/**
|
|
392
383
|
* If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
|
|
393
384
|
* @experimental
|
|
@@ -396,7 +387,6 @@ declare module 'inspector' {
|
|
|
396
387
|
id: string;
|
|
397
388
|
debuggerId?: UniqueDebuggerId | undefined;
|
|
398
389
|
}
|
|
399
|
-
|
|
400
390
|
interface EvaluateParameterType {
|
|
401
391
|
/**
|
|
402
392
|
* Expression to evaluate.
|
|
@@ -436,7 +426,6 @@ declare module 'inspector' {
|
|
|
436
426
|
*/
|
|
437
427
|
awaitPromise?: boolean | undefined;
|
|
438
428
|
}
|
|
439
|
-
|
|
440
429
|
interface AwaitPromiseParameterType {
|
|
441
430
|
/**
|
|
442
431
|
* Identifier of the promise.
|
|
@@ -451,7 +440,6 @@ declare module 'inspector' {
|
|
|
451
440
|
*/
|
|
452
441
|
generatePreview?: boolean | undefined;
|
|
453
442
|
}
|
|
454
|
-
|
|
455
443
|
interface CallFunctionOnParameterType {
|
|
456
444
|
/**
|
|
457
445
|
* Declaration of the function to call.
|
|
@@ -495,7 +483,6 @@ declare module 'inspector' {
|
|
|
495
483
|
*/
|
|
496
484
|
objectGroup?: string | undefined;
|
|
497
485
|
}
|
|
498
|
-
|
|
499
486
|
interface GetPropertiesParameterType {
|
|
500
487
|
/**
|
|
501
488
|
* Identifier of the object to return properties for.
|
|
@@ -516,25 +503,21 @@ declare module 'inspector' {
|
|
|
516
503
|
*/
|
|
517
504
|
generatePreview?: boolean | undefined;
|
|
518
505
|
}
|
|
519
|
-
|
|
520
506
|
interface ReleaseObjectParameterType {
|
|
521
507
|
/**
|
|
522
508
|
* Identifier of the object to release.
|
|
523
509
|
*/
|
|
524
510
|
objectId: RemoteObjectId;
|
|
525
511
|
}
|
|
526
|
-
|
|
527
512
|
interface ReleaseObjectGroupParameterType {
|
|
528
513
|
/**
|
|
529
514
|
* Symbolic object group name.
|
|
530
515
|
*/
|
|
531
516
|
objectGroup: string;
|
|
532
517
|
}
|
|
533
|
-
|
|
534
518
|
interface SetCustomObjectFormatterEnabledParameterType {
|
|
535
519
|
enabled: boolean;
|
|
536
520
|
}
|
|
537
|
-
|
|
538
521
|
interface CompileScriptParameterType {
|
|
539
522
|
/**
|
|
540
523
|
* Expression to compile.
|
|
@@ -553,7 +536,6 @@ declare module 'inspector' {
|
|
|
553
536
|
*/
|
|
554
537
|
executionContextId?: ExecutionContextId | undefined;
|
|
555
538
|
}
|
|
556
|
-
|
|
557
539
|
interface RunScriptParameterType {
|
|
558
540
|
/**
|
|
559
541
|
* Id of the script to run.
|
|
@@ -588,21 +570,18 @@ declare module 'inspector' {
|
|
|
588
570
|
*/
|
|
589
571
|
awaitPromise?: boolean | undefined;
|
|
590
572
|
}
|
|
591
|
-
|
|
592
573
|
interface QueryObjectsParameterType {
|
|
593
574
|
/**
|
|
594
575
|
* Identifier of the prototype to return objects for.
|
|
595
576
|
*/
|
|
596
577
|
prototypeObjectId: RemoteObjectId;
|
|
597
578
|
}
|
|
598
|
-
|
|
599
579
|
interface GlobalLexicalScopeNamesParameterType {
|
|
600
580
|
/**
|
|
601
581
|
* Specifies in which execution context to lookup global scope variables.
|
|
602
582
|
*/
|
|
603
583
|
executionContextId?: ExecutionContextId | undefined;
|
|
604
584
|
}
|
|
605
|
-
|
|
606
585
|
interface EvaluateReturnType {
|
|
607
586
|
/**
|
|
608
587
|
* Evaluation result.
|
|
@@ -613,7 +592,6 @@ declare module 'inspector' {
|
|
|
613
592
|
*/
|
|
614
593
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
615
594
|
}
|
|
616
|
-
|
|
617
595
|
interface AwaitPromiseReturnType {
|
|
618
596
|
/**
|
|
619
597
|
* Promise result. Will contain rejected value if promise was rejected.
|
|
@@ -624,7 +602,6 @@ declare module 'inspector' {
|
|
|
624
602
|
*/
|
|
625
603
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
626
604
|
}
|
|
627
|
-
|
|
628
605
|
interface CallFunctionOnReturnType {
|
|
629
606
|
/**
|
|
630
607
|
* Call result.
|
|
@@ -635,7 +612,6 @@ declare module 'inspector' {
|
|
|
635
612
|
*/
|
|
636
613
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
637
614
|
}
|
|
638
|
-
|
|
639
615
|
interface GetPropertiesReturnType {
|
|
640
616
|
/**
|
|
641
617
|
* Object properties.
|
|
@@ -650,7 +626,6 @@ declare module 'inspector' {
|
|
|
650
626
|
*/
|
|
651
627
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
652
628
|
}
|
|
653
|
-
|
|
654
629
|
interface CompileScriptReturnType {
|
|
655
630
|
/**
|
|
656
631
|
* Id of the script.
|
|
@@ -661,7 +636,6 @@ declare module 'inspector' {
|
|
|
661
636
|
*/
|
|
662
637
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
663
638
|
}
|
|
664
|
-
|
|
665
639
|
interface RunScriptReturnType {
|
|
666
640
|
/**
|
|
667
641
|
* Run result.
|
|
@@ -672,32 +646,27 @@ declare module 'inspector' {
|
|
|
672
646
|
*/
|
|
673
647
|
exceptionDetails?: ExceptionDetails | undefined;
|
|
674
648
|
}
|
|
675
|
-
|
|
676
649
|
interface QueryObjectsReturnType {
|
|
677
650
|
/**
|
|
678
651
|
* Array with objects.
|
|
679
652
|
*/
|
|
680
653
|
objects: RemoteObject;
|
|
681
654
|
}
|
|
682
|
-
|
|
683
655
|
interface GlobalLexicalScopeNamesReturnType {
|
|
684
656
|
names: string[];
|
|
685
657
|
}
|
|
686
|
-
|
|
687
658
|
interface ExecutionContextCreatedEventDataType {
|
|
688
659
|
/**
|
|
689
660
|
* A newly created execution context.
|
|
690
661
|
*/
|
|
691
662
|
context: ExecutionContextDescription;
|
|
692
663
|
}
|
|
693
|
-
|
|
694
664
|
interface ExecutionContextDestroyedEventDataType {
|
|
695
665
|
/**
|
|
696
666
|
* Id of the destroyed context
|
|
697
667
|
*/
|
|
698
668
|
executionContextId: ExecutionContextId;
|
|
699
669
|
}
|
|
700
|
-
|
|
701
670
|
interface ExceptionThrownEventDataType {
|
|
702
671
|
/**
|
|
703
672
|
* Timestamp of the exception.
|
|
@@ -705,7 +674,6 @@ declare module 'inspector' {
|
|
|
705
674
|
timestamp: Timestamp;
|
|
706
675
|
exceptionDetails: ExceptionDetails;
|
|
707
676
|
}
|
|
708
|
-
|
|
709
677
|
interface ExceptionRevokedEventDataType {
|
|
710
678
|
/**
|
|
711
679
|
* Reason describing why exception was revoked.
|
|
@@ -716,7 +684,6 @@ declare module 'inspector' {
|
|
|
716
684
|
*/
|
|
717
685
|
exceptionId: number;
|
|
718
686
|
}
|
|
719
|
-
|
|
720
687
|
interface ConsoleAPICalledEventDataType {
|
|
721
688
|
/**
|
|
722
689
|
* Type of the call.
|
|
@@ -744,24 +711,20 @@ declare module 'inspector' {
|
|
|
744
711
|
*/
|
|
745
712
|
context?: string | undefined;
|
|
746
713
|
}
|
|
747
|
-
|
|
748
714
|
interface InspectRequestedEventDataType {
|
|
749
715
|
object: RemoteObject;
|
|
750
716
|
hints: {};
|
|
751
717
|
}
|
|
752
718
|
}
|
|
753
|
-
|
|
754
719
|
namespace Debugger {
|
|
755
720
|
/**
|
|
756
721
|
* Breakpoint identifier.
|
|
757
722
|
*/
|
|
758
723
|
type BreakpointId = string;
|
|
759
|
-
|
|
760
724
|
/**
|
|
761
725
|
* Call frame identifier.
|
|
762
726
|
*/
|
|
763
727
|
type CallFrameId = string;
|
|
764
|
-
|
|
765
728
|
/**
|
|
766
729
|
* Location in the source code.
|
|
767
730
|
*/
|
|
@@ -779,7 +742,6 @@ declare module 'inspector' {
|
|
|
779
742
|
*/
|
|
780
743
|
columnNumber?: number | undefined;
|
|
781
744
|
}
|
|
782
|
-
|
|
783
745
|
/**
|
|
784
746
|
* Location in the source code.
|
|
785
747
|
* @experimental
|
|
@@ -788,7 +750,6 @@ declare module 'inspector' {
|
|
|
788
750
|
lineNumber: number;
|
|
789
751
|
columnNumber: number;
|
|
790
752
|
}
|
|
791
|
-
|
|
792
753
|
/**
|
|
793
754
|
* JavaScript call frame. Array of call frames form the call stack.
|
|
794
755
|
*/
|
|
@@ -826,7 +787,6 @@ declare module 'inspector' {
|
|
|
826
787
|
*/
|
|
827
788
|
returnValue?: Runtime.RemoteObject | undefined;
|
|
828
789
|
}
|
|
829
|
-
|
|
830
790
|
/**
|
|
831
791
|
* Scope description.
|
|
832
792
|
*/
|
|
@@ -849,7 +809,6 @@ declare module 'inspector' {
|
|
|
849
809
|
*/
|
|
850
810
|
endLocation?: Location | undefined;
|
|
851
811
|
}
|
|
852
|
-
|
|
853
812
|
/**
|
|
854
813
|
* Search match for resource.
|
|
855
814
|
*/
|
|
@@ -863,7 +822,6 @@ declare module 'inspector' {
|
|
|
863
822
|
*/
|
|
864
823
|
lineContent: string;
|
|
865
824
|
}
|
|
866
|
-
|
|
867
825
|
interface BreakLocation {
|
|
868
826
|
/**
|
|
869
827
|
* Script identifier as reported in the <code>Debugger.scriptParsed</code>.
|
|
@@ -879,21 +837,18 @@ declare module 'inspector' {
|
|
|
879
837
|
columnNumber?: number | undefined;
|
|
880
838
|
type?: string | undefined;
|
|
881
839
|
}
|
|
882
|
-
|
|
883
840
|
interface SetBreakpointsActiveParameterType {
|
|
884
841
|
/**
|
|
885
842
|
* New value for breakpoints active state.
|
|
886
843
|
*/
|
|
887
844
|
active: boolean;
|
|
888
845
|
}
|
|
889
|
-
|
|
890
846
|
interface SetSkipAllPausesParameterType {
|
|
891
847
|
/**
|
|
892
848
|
* New value for skip pauses state.
|
|
893
849
|
*/
|
|
894
850
|
skip: boolean;
|
|
895
851
|
}
|
|
896
|
-
|
|
897
852
|
interface SetBreakpointByUrlParameterType {
|
|
898
853
|
/**
|
|
899
854
|
* Line number to set breakpoint at.
|
|
@@ -920,7 +875,6 @@ declare module 'inspector' {
|
|
|
920
875
|
*/
|
|
921
876
|
condition?: string | undefined;
|
|
922
877
|
}
|
|
923
|
-
|
|
924
878
|
interface SetBreakpointParameterType {
|
|
925
879
|
/**
|
|
926
880
|
* Location to set breakpoint in.
|
|
@@ -931,11 +885,9 @@ declare module 'inspector' {
|
|
|
931
885
|
*/
|
|
932
886
|
condition?: string | undefined;
|
|
933
887
|
}
|
|
934
|
-
|
|
935
888
|
interface RemoveBreakpointParameterType {
|
|
936
889
|
breakpointId: BreakpointId;
|
|
937
890
|
}
|
|
938
|
-
|
|
939
891
|
interface GetPossibleBreakpointsParameterType {
|
|
940
892
|
/**
|
|
941
893
|
* Start of range to search possible breakpoint locations in.
|
|
@@ -950,7 +902,6 @@ declare module 'inspector' {
|
|
|
950
902
|
*/
|
|
951
903
|
restrictToFunction?: boolean | undefined;
|
|
952
904
|
}
|
|
953
|
-
|
|
954
905
|
interface ContinueToLocationParameterType {
|
|
955
906
|
/**
|
|
956
907
|
* Location to continue to.
|
|
@@ -958,14 +909,12 @@ declare module 'inspector' {
|
|
|
958
909
|
location: Location;
|
|
959
910
|
targetCallFrames?: string | undefined;
|
|
960
911
|
}
|
|
961
|
-
|
|
962
912
|
interface PauseOnAsyncCallParameterType {
|
|
963
913
|
/**
|
|
964
914
|
* Debugger will pause when async call with given stack trace is started.
|
|
965
915
|
*/
|
|
966
916
|
parentStackTraceId: Runtime.StackTraceId;
|
|
967
917
|
}
|
|
968
|
-
|
|
969
918
|
interface StepIntoParameterType {
|
|
970
919
|
/**
|
|
971
920
|
* Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
|
|
@@ -973,11 +922,9 @@ declare module 'inspector' {
|
|
|
973
922
|
*/
|
|
974
923
|
breakOnAsyncCall?: boolean | undefined;
|
|
975
924
|
}
|
|
976
|
-
|
|
977
925
|
interface GetStackTraceParameterType {
|
|
978
926
|
stackTraceId: Runtime.StackTraceId;
|
|
979
927
|
}
|
|
980
|
-
|
|
981
928
|
interface SearchInContentParameterType {
|
|
982
929
|
/**
|
|
983
930
|
* Id of the script to search in.
|
|
@@ -996,7 +943,6 @@ declare module 'inspector' {
|
|
|
996
943
|
*/
|
|
997
944
|
isRegex?: boolean | undefined;
|
|
998
945
|
}
|
|
999
|
-
|
|
1000
946
|
interface SetScriptSourceParameterType {
|
|
1001
947
|
/**
|
|
1002
948
|
* Id of the script to edit.
|
|
@@ -1011,28 +957,24 @@ declare module 'inspector' {
|
|
|
1011
957
|
*/
|
|
1012
958
|
dryRun?: boolean | undefined;
|
|
1013
959
|
}
|
|
1014
|
-
|
|
1015
960
|
interface RestartFrameParameterType {
|
|
1016
961
|
/**
|
|
1017
962
|
* Call frame identifier to evaluate on.
|
|
1018
963
|
*/
|
|
1019
964
|
callFrameId: CallFrameId;
|
|
1020
965
|
}
|
|
1021
|
-
|
|
1022
966
|
interface GetScriptSourceParameterType {
|
|
1023
967
|
/**
|
|
1024
968
|
* Id of the script to get source for.
|
|
1025
969
|
*/
|
|
1026
970
|
scriptId: Runtime.ScriptId;
|
|
1027
971
|
}
|
|
1028
|
-
|
|
1029
972
|
interface SetPauseOnExceptionsParameterType {
|
|
1030
973
|
/**
|
|
1031
974
|
* Pause on exceptions mode.
|
|
1032
975
|
*/
|
|
1033
976
|
state: string;
|
|
1034
977
|
}
|
|
1035
|
-
|
|
1036
978
|
interface EvaluateOnCallFrameParameterType {
|
|
1037
979
|
/**
|
|
1038
980
|
* Call frame identifier to evaluate on.
|
|
@@ -1068,7 +1010,6 @@ declare module 'inspector' {
|
|
|
1068
1010
|
*/
|
|
1069
1011
|
throwOnSideEffect?: boolean | undefined;
|
|
1070
1012
|
}
|
|
1071
|
-
|
|
1072
1013
|
interface SetVariableValueParameterType {
|
|
1073
1014
|
/**
|
|
1074
1015
|
* 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
|
|
@@ -1087,28 +1028,24 @@ declare module 'inspector' {
|
|
|
1087
1028
|
*/
|
|
1088
1029
|
callFrameId: CallFrameId;
|
|
1089
1030
|
}
|
|
1090
|
-
|
|
1091
1031
|
interface SetReturnValueParameterType {
|
|
1092
1032
|
/**
|
|
1093
1033
|
* New return value.
|
|
1094
1034
|
*/
|
|
1095
1035
|
newValue: Runtime.CallArgument;
|
|
1096
1036
|
}
|
|
1097
|
-
|
|
1098
1037
|
interface SetAsyncCallStackDepthParameterType {
|
|
1099
1038
|
/**
|
|
1100
1039
|
* Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
|
|
1101
1040
|
*/
|
|
1102
1041
|
maxDepth: number;
|
|
1103
1042
|
}
|
|
1104
|
-
|
|
1105
1043
|
interface SetBlackboxPatternsParameterType {
|
|
1106
1044
|
/**
|
|
1107
1045
|
* Array of regexps that will be used to check script url for blackbox state.
|
|
1108
1046
|
*/
|
|
1109
1047
|
patterns: string[];
|
|
1110
1048
|
}
|
|
1111
|
-
|
|
1112
1049
|
interface SetBlackboxedRangesParameterType {
|
|
1113
1050
|
/**
|
|
1114
1051
|
* Id of the script.
|
|
@@ -1116,7 +1053,6 @@ declare module 'inspector' {
|
|
|
1116
1053
|
scriptId: Runtime.ScriptId;
|
|
1117
1054
|
positions: ScriptPosition[];
|
|
1118
1055
|
}
|
|
1119
|
-
|
|
1120
1056
|
interface EnableReturnType {
|
|
1121
1057
|
/**
|
|
1122
1058
|
* Unique identifier of the debugger.
|
|
@@ -1124,7 +1060,6 @@ declare module 'inspector' {
|
|
|
1124
1060
|
*/
|
|
1125
1061
|
debuggerId: Runtime.UniqueDebuggerId;
|
|
1126
1062
|
}
|
|
1127
|
-
|
|
1128
1063
|
interface SetBreakpointByUrlReturnType {
|
|
1129
1064
|
/**
|
|
1130
1065
|
* Id of the created breakpoint for further reference.
|
|
@@ -1135,7 +1070,6 @@ declare module 'inspector' {
|
|
|
1135
1070
|
*/
|
|
1136
1071
|
locations: Location[];
|
|
1137
1072
|
}
|
|
1138
|
-
|
|
1139
1073
|
interface SetBreakpointReturnType {
|
|
1140
1074
|
/**
|
|
1141
1075
|
* Id of the created breakpoint for further reference.
|
|
@@ -1146,25 +1080,21 @@ declare module 'inspector' {
|
|
|
1146
1080
|
*/
|
|
1147
1081
|
actualLocation: Location;
|
|
1148
1082
|
}
|
|
1149
|
-
|
|
1150
1083
|
interface GetPossibleBreakpointsReturnType {
|
|
1151
1084
|
/**
|
|
1152
1085
|
* List of the possible breakpoint locations.
|
|
1153
1086
|
*/
|
|
1154
1087
|
locations: BreakLocation[];
|
|
1155
1088
|
}
|
|
1156
|
-
|
|
1157
1089
|
interface GetStackTraceReturnType {
|
|
1158
1090
|
stackTrace: Runtime.StackTrace;
|
|
1159
1091
|
}
|
|
1160
|
-
|
|
1161
1092
|
interface SearchInContentReturnType {
|
|
1162
1093
|
/**
|
|
1163
1094
|
* List of search matches.
|
|
1164
1095
|
*/
|
|
1165
1096
|
result: SearchMatch[];
|
|
1166
1097
|
}
|
|
1167
|
-
|
|
1168
1098
|
interface SetScriptSourceReturnType {
|
|
1169
1099
|
/**
|
|
1170
1100
|
* New stack trace in case editing has happened while VM was stopped.
|
|
@@ -1188,7 +1118,6 @@ declare module 'inspector' {
|
|
|
1188
1118
|
*/
|
|
1189
1119
|
exceptionDetails?: Runtime.ExceptionDetails | undefined;
|
|
1190
1120
|
}
|
|
1191
|
-
|
|
1192
1121
|
interface RestartFrameReturnType {
|
|
1193
1122
|
/**
|
|
1194
1123
|
* New stack trace.
|
|
@@ -1204,14 +1133,12 @@ declare module 'inspector' {
|
|
|
1204
1133
|
*/
|
|
1205
1134
|
asyncStackTraceId?: Runtime.StackTraceId | undefined;
|
|
1206
1135
|
}
|
|
1207
|
-
|
|
1208
1136
|
interface GetScriptSourceReturnType {
|
|
1209
1137
|
/**
|
|
1210
1138
|
* Script source.
|
|
1211
1139
|
*/
|
|
1212
1140
|
scriptSource: string;
|
|
1213
1141
|
}
|
|
1214
|
-
|
|
1215
1142
|
interface EvaluateOnCallFrameReturnType {
|
|
1216
1143
|
/**
|
|
1217
1144
|
* Object wrapper for the evaluation result.
|
|
@@ -1222,7 +1149,6 @@ declare module 'inspector' {
|
|
|
1222
1149
|
*/
|
|
1223
1150
|
exceptionDetails?: Runtime.ExceptionDetails | undefined;
|
|
1224
1151
|
}
|
|
1225
|
-
|
|
1226
1152
|
interface ScriptParsedEventDataType {
|
|
1227
1153
|
/**
|
|
1228
1154
|
* Identifier of the script parsed.
|
|
@@ -1287,7 +1213,6 @@ declare module 'inspector' {
|
|
|
1287
1213
|
*/
|
|
1288
1214
|
stackTrace?: Runtime.StackTrace | undefined;
|
|
1289
1215
|
}
|
|
1290
|
-
|
|
1291
1216
|
interface ScriptFailedToParseEventDataType {
|
|
1292
1217
|
/**
|
|
1293
1218
|
* Identifier of the script parsed.
|
|
@@ -1347,7 +1272,6 @@ declare module 'inspector' {
|
|
|
1347
1272
|
*/
|
|
1348
1273
|
stackTrace?: Runtime.StackTrace | undefined;
|
|
1349
1274
|
}
|
|
1350
|
-
|
|
1351
1275
|
interface BreakpointResolvedEventDataType {
|
|
1352
1276
|
/**
|
|
1353
1277
|
* Breakpoint unique identifier.
|
|
@@ -1358,7 +1282,6 @@ declare module 'inspector' {
|
|
|
1358
1282
|
*/
|
|
1359
1283
|
location: Location;
|
|
1360
1284
|
}
|
|
1361
|
-
|
|
1362
1285
|
interface PausedEventDataType {
|
|
1363
1286
|
/**
|
|
1364
1287
|
* Call stack the virtual machine stopped on.
|
|
@@ -1392,7 +1315,6 @@ declare module 'inspector' {
|
|
|
1392
1315
|
asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
|
|
1393
1316
|
}
|
|
1394
1317
|
}
|
|
1395
|
-
|
|
1396
1318
|
namespace Console {
|
|
1397
1319
|
/**
|
|
1398
1320
|
* Console message.
|
|
@@ -1423,7 +1345,6 @@ declare module 'inspector' {
|
|
|
1423
1345
|
*/
|
|
1424
1346
|
column?: number | undefined;
|
|
1425
1347
|
}
|
|
1426
|
-
|
|
1427
1348
|
interface MessageAddedEventDataType {
|
|
1428
1349
|
/**
|
|
1429
1350
|
* Console message that has been added.
|
|
@@ -1431,7 +1352,6 @@ declare module 'inspector' {
|
|
|
1431
1352
|
message: ConsoleMessage;
|
|
1432
1353
|
}
|
|
1433
1354
|
}
|
|
1434
|
-
|
|
1435
1355
|
namespace Profiler {
|
|
1436
1356
|
/**
|
|
1437
1357
|
* Profile node. Holds callsite information, execution statistics and child nodes.
|
|
@@ -1462,7 +1382,6 @@ declare module 'inspector' {
|
|
|
1462
1382
|
*/
|
|
1463
1383
|
positionTicks?: PositionTickInfo[] | undefined;
|
|
1464
1384
|
}
|
|
1465
|
-
|
|
1466
1385
|
/**
|
|
1467
1386
|
* Profile.
|
|
1468
1387
|
*/
|
|
@@ -1488,7 +1407,6 @@ declare module 'inspector' {
|
|
|
1488
1407
|
*/
|
|
1489
1408
|
timeDeltas?: number[] | undefined;
|
|
1490
1409
|
}
|
|
1491
|
-
|
|
1492
1410
|
/**
|
|
1493
1411
|
* Specifies a number of samples attributed to a certain source position.
|
|
1494
1412
|
*/
|
|
@@ -1502,7 +1420,6 @@ declare module 'inspector' {
|
|
|
1502
1420
|
*/
|
|
1503
1421
|
ticks: number;
|
|
1504
1422
|
}
|
|
1505
|
-
|
|
1506
1423
|
/**
|
|
1507
1424
|
* Coverage data for a source range.
|
|
1508
1425
|
*/
|
|
@@ -1520,7 +1437,6 @@ declare module 'inspector' {
|
|
|
1520
1437
|
*/
|
|
1521
1438
|
count: number;
|
|
1522
1439
|
}
|
|
1523
|
-
|
|
1524
1440
|
/**
|
|
1525
1441
|
* Coverage data for a JavaScript function.
|
|
1526
1442
|
*/
|
|
@@ -1538,7 +1454,6 @@ declare module 'inspector' {
|
|
|
1538
1454
|
*/
|
|
1539
1455
|
isBlockCoverage: boolean;
|
|
1540
1456
|
}
|
|
1541
|
-
|
|
1542
1457
|
/**
|
|
1543
1458
|
* Coverage data for a JavaScript script.
|
|
1544
1459
|
*/
|
|
@@ -1556,7 +1471,6 @@ declare module 'inspector' {
|
|
|
1556
1471
|
*/
|
|
1557
1472
|
functions: FunctionCoverage[];
|
|
1558
1473
|
}
|
|
1559
|
-
|
|
1560
1474
|
/**
|
|
1561
1475
|
* Describes a type collected during runtime.
|
|
1562
1476
|
* @experimental
|
|
@@ -1567,7 +1481,6 @@ declare module 'inspector' {
|
|
|
1567
1481
|
*/
|
|
1568
1482
|
name: string;
|
|
1569
1483
|
}
|
|
1570
|
-
|
|
1571
1484
|
/**
|
|
1572
1485
|
* Source offset and types for a parameter or return value.
|
|
1573
1486
|
* @experimental
|
|
@@ -1582,7 +1495,6 @@ declare module 'inspector' {
|
|
|
1582
1495
|
*/
|
|
1583
1496
|
types: TypeObject[];
|
|
1584
1497
|
}
|
|
1585
|
-
|
|
1586
1498
|
/**
|
|
1587
1499
|
* Type profile data collected during runtime for a JavaScript script.
|
|
1588
1500
|
* @experimental
|
|
@@ -1601,14 +1513,12 @@ declare module 'inspector' {
|
|
|
1601
1513
|
*/
|
|
1602
1514
|
entries: TypeProfileEntry[];
|
|
1603
1515
|
}
|
|
1604
|
-
|
|
1605
1516
|
interface SetSamplingIntervalParameterType {
|
|
1606
1517
|
/**
|
|
1607
1518
|
* New sampling interval in microseconds.
|
|
1608
1519
|
*/
|
|
1609
1520
|
interval: number;
|
|
1610
1521
|
}
|
|
1611
|
-
|
|
1612
1522
|
interface StartPreciseCoverageParameterType {
|
|
1613
1523
|
/**
|
|
1614
1524
|
* Collect accurate call counts beyond simple 'covered' or 'not covered'.
|
|
@@ -1619,35 +1529,30 @@ declare module 'inspector' {
|
|
|
1619
1529
|
*/
|
|
1620
1530
|
detailed?: boolean | undefined;
|
|
1621
1531
|
}
|
|
1622
|
-
|
|
1623
1532
|
interface StopReturnType {
|
|
1624
1533
|
/**
|
|
1625
1534
|
* Recorded profile.
|
|
1626
1535
|
*/
|
|
1627
1536
|
profile: Profile;
|
|
1628
1537
|
}
|
|
1629
|
-
|
|
1630
1538
|
interface TakePreciseCoverageReturnType {
|
|
1631
1539
|
/**
|
|
1632
1540
|
* Coverage data for the current isolate.
|
|
1633
1541
|
*/
|
|
1634
1542
|
result: ScriptCoverage[];
|
|
1635
1543
|
}
|
|
1636
|
-
|
|
1637
1544
|
interface GetBestEffortCoverageReturnType {
|
|
1638
1545
|
/**
|
|
1639
1546
|
* Coverage data for the current isolate.
|
|
1640
1547
|
*/
|
|
1641
1548
|
result: ScriptCoverage[];
|
|
1642
1549
|
}
|
|
1643
|
-
|
|
1644
1550
|
interface TakeTypeProfileReturnType {
|
|
1645
1551
|
/**
|
|
1646
1552
|
* Type profile for all scripts since startTypeProfile() was turned on.
|
|
1647
1553
|
*/
|
|
1648
1554
|
result: ScriptTypeProfile[];
|
|
1649
1555
|
}
|
|
1650
|
-
|
|
1651
1556
|
interface ConsoleProfileStartedEventDataType {
|
|
1652
1557
|
id: string;
|
|
1653
1558
|
/**
|
|
@@ -1659,7 +1564,6 @@ declare module 'inspector' {
|
|
|
1659
1564
|
*/
|
|
1660
1565
|
title?: string | undefined;
|
|
1661
1566
|
}
|
|
1662
|
-
|
|
1663
1567
|
interface ConsoleProfileFinishedEventDataType {
|
|
1664
1568
|
id: string;
|
|
1665
1569
|
/**
|
|
@@ -1673,13 +1577,11 @@ declare module 'inspector' {
|
|
|
1673
1577
|
title?: string | undefined;
|
|
1674
1578
|
}
|
|
1675
1579
|
}
|
|
1676
|
-
|
|
1677
1580
|
namespace HeapProfiler {
|
|
1678
1581
|
/**
|
|
1679
1582
|
* Heap snapshot object id.
|
|
1680
1583
|
*/
|
|
1681
1584
|
type HeapSnapshotObjectId = string;
|
|
1682
|
-
|
|
1683
1585
|
/**
|
|
1684
1586
|
* Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
|
|
1685
1587
|
*/
|
|
@@ -1697,32 +1599,27 @@ declare module 'inspector' {
|
|
|
1697
1599
|
*/
|
|
1698
1600
|
children: SamplingHeapProfileNode[];
|
|
1699
1601
|
}
|
|
1700
|
-
|
|
1701
1602
|
/**
|
|
1702
1603
|
* Profile.
|
|
1703
1604
|
*/
|
|
1704
1605
|
interface SamplingHeapProfile {
|
|
1705
1606
|
head: SamplingHeapProfileNode;
|
|
1706
1607
|
}
|
|
1707
|
-
|
|
1708
1608
|
interface StartTrackingHeapObjectsParameterType {
|
|
1709
1609
|
trackAllocations?: boolean | undefined;
|
|
1710
1610
|
}
|
|
1711
|
-
|
|
1712
1611
|
interface StopTrackingHeapObjectsParameterType {
|
|
1713
1612
|
/**
|
|
1714
1613
|
* If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
|
|
1715
1614
|
*/
|
|
1716
1615
|
reportProgress?: boolean | undefined;
|
|
1717
1616
|
}
|
|
1718
|
-
|
|
1719
1617
|
interface TakeHeapSnapshotParameterType {
|
|
1720
1618
|
/**
|
|
1721
1619
|
* If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
|
|
1722
1620
|
*/
|
|
1723
1621
|
reportProgress?: boolean | undefined;
|
|
1724
1622
|
}
|
|
1725
|
-
|
|
1726
1623
|
interface GetObjectByHeapObjectIdParameterType {
|
|
1727
1624
|
objectId: HeapSnapshotObjectId;
|
|
1728
1625
|
/**
|
|
@@ -1730,71 +1627,60 @@ declare module 'inspector' {
|
|
|
1730
1627
|
*/
|
|
1731
1628
|
objectGroup?: string | undefined;
|
|
1732
1629
|
}
|
|
1733
|
-
|
|
1734
1630
|
interface AddInspectedHeapObjectParameterType {
|
|
1735
1631
|
/**
|
|
1736
1632
|
* Heap snapshot object id to be accessible by means of $x command line API.
|
|
1737
1633
|
*/
|
|
1738
1634
|
heapObjectId: HeapSnapshotObjectId;
|
|
1739
1635
|
}
|
|
1740
|
-
|
|
1741
1636
|
interface GetHeapObjectIdParameterType {
|
|
1742
1637
|
/**
|
|
1743
1638
|
* Identifier of the object to get heap object id for.
|
|
1744
1639
|
*/
|
|
1745
1640
|
objectId: Runtime.RemoteObjectId;
|
|
1746
1641
|
}
|
|
1747
|
-
|
|
1748
1642
|
interface StartSamplingParameterType {
|
|
1749
1643
|
/**
|
|
1750
1644
|
* Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
|
|
1751
1645
|
*/
|
|
1752
1646
|
samplingInterval?: number | undefined;
|
|
1753
1647
|
}
|
|
1754
|
-
|
|
1755
1648
|
interface GetObjectByHeapObjectIdReturnType {
|
|
1756
1649
|
/**
|
|
1757
1650
|
* Evaluation result.
|
|
1758
1651
|
*/
|
|
1759
1652
|
result: Runtime.RemoteObject;
|
|
1760
1653
|
}
|
|
1761
|
-
|
|
1762
1654
|
interface GetHeapObjectIdReturnType {
|
|
1763
1655
|
/**
|
|
1764
1656
|
* Id of the heap snapshot object corresponding to the passed remote object id.
|
|
1765
1657
|
*/
|
|
1766
1658
|
heapSnapshotObjectId: HeapSnapshotObjectId;
|
|
1767
1659
|
}
|
|
1768
|
-
|
|
1769
1660
|
interface StopSamplingReturnType {
|
|
1770
1661
|
/**
|
|
1771
1662
|
* Recorded sampling heap profile.
|
|
1772
1663
|
*/
|
|
1773
1664
|
profile: SamplingHeapProfile;
|
|
1774
1665
|
}
|
|
1775
|
-
|
|
1776
1666
|
interface GetSamplingProfileReturnType {
|
|
1777
1667
|
/**
|
|
1778
1668
|
* Return the sampling profile being collected.
|
|
1779
1669
|
*/
|
|
1780
1670
|
profile: SamplingHeapProfile;
|
|
1781
1671
|
}
|
|
1782
|
-
|
|
1783
1672
|
interface AddHeapSnapshotChunkEventDataType {
|
|
1784
1673
|
chunk: string;
|
|
1785
1674
|
}
|
|
1786
|
-
|
|
1787
1675
|
interface ReportHeapSnapshotProgressEventDataType {
|
|
1788
1676
|
done: number;
|
|
1789
1677
|
total: number;
|
|
1790
1678
|
finished?: boolean | undefined;
|
|
1791
1679
|
}
|
|
1792
|
-
|
|
1793
1680
|
interface LastSeenObjectIdEventDataType {
|
|
1794
1681
|
lastSeenObjectId: number;
|
|
1795
1682
|
timestamp: number;
|
|
1796
1683
|
}
|
|
1797
|
-
|
|
1798
1684
|
interface HeapStatsUpdateEventDataType {
|
|
1799
1685
|
/**
|
|
1800
1686
|
* An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
|
|
@@ -1802,7 +1688,6 @@ declare module 'inspector' {
|
|
|
1802
1688
|
statsUpdate: number[];
|
|
1803
1689
|
}
|
|
1804
1690
|
}
|
|
1805
|
-
|
|
1806
1691
|
namespace NodeTracing {
|
|
1807
1692
|
interface TraceConfig {
|
|
1808
1693
|
/**
|
|
@@ -1814,38 +1699,31 @@ declare module 'inspector' {
|
|
|
1814
1699
|
*/
|
|
1815
1700
|
includedCategories: string[];
|
|
1816
1701
|
}
|
|
1817
|
-
|
|
1818
1702
|
interface StartParameterType {
|
|
1819
1703
|
traceConfig: TraceConfig;
|
|
1820
1704
|
}
|
|
1821
|
-
|
|
1822
1705
|
interface GetCategoriesReturnType {
|
|
1823
1706
|
/**
|
|
1824
1707
|
* A list of supported tracing categories.
|
|
1825
1708
|
*/
|
|
1826
1709
|
categories: string[];
|
|
1827
1710
|
}
|
|
1828
|
-
|
|
1829
1711
|
interface DataCollectedEventDataType {
|
|
1830
1712
|
value: Array<{}>;
|
|
1831
1713
|
}
|
|
1832
1714
|
}
|
|
1833
|
-
|
|
1834
1715
|
namespace NodeWorker {
|
|
1835
1716
|
type WorkerID = string;
|
|
1836
|
-
|
|
1837
1717
|
/**
|
|
1838
1718
|
* Unique identifier of attached debugging session.
|
|
1839
1719
|
*/
|
|
1840
1720
|
type SessionID = string;
|
|
1841
|
-
|
|
1842
1721
|
interface WorkerInfo {
|
|
1843
1722
|
workerId: WorkerID;
|
|
1844
1723
|
type: string;
|
|
1845
1724
|
title: string;
|
|
1846
1725
|
url: string;
|
|
1847
1726
|
}
|
|
1848
|
-
|
|
1849
1727
|
interface SendMessageToWorkerParameterType {
|
|
1850
1728
|
message: string;
|
|
1851
1729
|
/**
|
|
@@ -1853,7 +1731,6 @@ declare module 'inspector' {
|
|
|
1853
1731
|
*/
|
|
1854
1732
|
sessionId: SessionID;
|
|
1855
1733
|
}
|
|
1856
|
-
|
|
1857
1734
|
interface EnableParameterType {
|
|
1858
1735
|
/**
|
|
1859
1736
|
* Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
|
|
@@ -1861,11 +1738,9 @@ declare module 'inspector' {
|
|
|
1861
1738
|
*/
|
|
1862
1739
|
waitForDebuggerOnStart: boolean;
|
|
1863
1740
|
}
|
|
1864
|
-
|
|
1865
1741
|
interface DetachParameterType {
|
|
1866
1742
|
sessionId: SessionID;
|
|
1867
1743
|
}
|
|
1868
|
-
|
|
1869
1744
|
interface AttachedToWorkerEventDataType {
|
|
1870
1745
|
/**
|
|
1871
1746
|
* Identifier assigned to the session used to send/receive messages.
|
|
@@ -1874,14 +1749,12 @@ declare module 'inspector' {
|
|
|
1874
1749
|
workerInfo: WorkerInfo;
|
|
1875
1750
|
waitingForDebugger: boolean;
|
|
1876
1751
|
}
|
|
1877
|
-
|
|
1878
1752
|
interface DetachedFromWorkerEventDataType {
|
|
1879
1753
|
/**
|
|
1880
1754
|
* Detached session identifier.
|
|
1881
1755
|
*/
|
|
1882
1756
|
sessionId: SessionID;
|
|
1883
1757
|
}
|
|
1884
|
-
|
|
1885
1758
|
interface ReceivedMessageFromWorkerEventDataType {
|
|
1886
1759
|
/**
|
|
1887
1760
|
* Identifier of a session which sends a message.
|
|
@@ -1890,15 +1763,14 @@ declare module 'inspector' {
|
|
|
1890
1763
|
message: string;
|
|
1891
1764
|
}
|
|
1892
1765
|
}
|
|
1893
|
-
|
|
1894
1766
|
namespace NodeRuntime {
|
|
1895
1767
|
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
1896
1768
|
enabled: boolean;
|
|
1897
1769
|
}
|
|
1898
1770
|
}
|
|
1899
|
-
|
|
1900
1771
|
/**
|
|
1901
|
-
* The inspector.Session is used for dispatching messages to the V8 inspector
|
|
1772
|
+
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
1773
|
+
* back-end and receiving message responses and notifications.
|
|
1902
1774
|
*/
|
|
1903
1775
|
class Session extends EventEmitter {
|
|
1904
1776
|
/**
|
|
@@ -1906,1145 +1778,969 @@ declare module 'inspector' {
|
|
|
1906
1778
|
* The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
|
|
1907
1779
|
*/
|
|
1908
1780
|
constructor();
|
|
1909
|
-
|
|
1910
1781
|
/**
|
|
1911
1782
|
* Connects a session to the inspector back-end.
|
|
1783
|
+
* @since v8.0.0
|
|
1912
1784
|
*/
|
|
1913
1785
|
connect(): void;
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* Connects a session to the main thread inspector back-end.
|
|
1917
|
-
* An exception will be thrown if this API was not called on a Worker
|
|
1918
|
-
* thread.
|
|
1919
|
-
* @since v12.11.0
|
|
1920
|
-
*/
|
|
1921
|
-
connectToMainThread(): void;
|
|
1922
|
-
|
|
1923
1786
|
/**
|
|
1924
|
-
* Immediately close the session. All pending message callbacks will be called
|
|
1925
|
-
* session.connect() will need to be called to be able to send
|
|
1926
|
-
* Reconnected session will lose all inspector state, such as
|
|
1787
|
+
* Immediately close the session. All pending message callbacks will be called
|
|
1788
|
+
* with an error. `session.connect()` will need to be called to be able to send
|
|
1789
|
+
* messages again. Reconnected session will lose all inspector state, such as
|
|
1790
|
+
* enabled agents or configured breakpoints.
|
|
1791
|
+
* @since v8.0.0
|
|
1927
1792
|
*/
|
|
1928
1793
|
disconnect(): void;
|
|
1929
|
-
|
|
1930
1794
|
/**
|
|
1931
|
-
* Posts a message to the inspector back-end. callback will be notified when
|
|
1932
|
-
* callback is a function that accepts two optional
|
|
1795
|
+
* Posts a message to the inspector back-end. `callback` will be notified when
|
|
1796
|
+
* a response is received. `callback` is a function that accepts two optional
|
|
1797
|
+
* arguments: error and message-specific result.
|
|
1798
|
+
*
|
|
1799
|
+
* ```js
|
|
1800
|
+
* session.post('Runtime.evaluate', { expression: '2 + 2' },
|
|
1801
|
+
* (error, { result }) => console.log(result));
|
|
1802
|
+
* // Output: { type: 'number', value: 4, description: '4' }
|
|
1803
|
+
* ```
|
|
1804
|
+
*
|
|
1805
|
+
* The latest version of the V8 inspector protocol is published on the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
|
|
1806
|
+
*
|
|
1807
|
+
* Node.js inspector supports all the Chrome DevTools Protocol domains declared
|
|
1808
|
+
* by V8\. Chrome DevTools Protocol domain provides an interface for interacting
|
|
1809
|
+
* with one of the runtime agents used to inspect the application state and listen
|
|
1810
|
+
* to the run-time events.
|
|
1811
|
+
*
|
|
1812
|
+
* ## Example usage
|
|
1813
|
+
*
|
|
1814
|
+
* Apart from the debugger, various V8 Profilers are available through the DevTools
|
|
1815
|
+
* protocol.
|
|
1816
|
+
* @since v8.0.0
|
|
1933
1817
|
*/
|
|
1934
1818
|
post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
|
|
1935
1819
|
post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
|
|
1936
|
-
|
|
1937
1820
|
/**
|
|
1938
1821
|
* Returns supported domains.
|
|
1939
1822
|
*/
|
|
1940
|
-
post(method:
|
|
1941
|
-
|
|
1823
|
+
post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
|
|
1942
1824
|
/**
|
|
1943
1825
|
* Evaluates expression on global object.
|
|
1944
1826
|
*/
|
|
1945
|
-
post(method:
|
|
1946
|
-
post(method:
|
|
1947
|
-
|
|
1827
|
+
post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
1828
|
+
post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
|
|
1948
1829
|
/**
|
|
1949
1830
|
* Add handler to promise with given promise object id.
|
|
1950
1831
|
*/
|
|
1951
|
-
post(method:
|
|
1952
|
-
post(method:
|
|
1953
|
-
|
|
1832
|
+
post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
1833
|
+
post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
|
|
1954
1834
|
/**
|
|
1955
1835
|
* Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
|
|
1956
1836
|
*/
|
|
1957
|
-
post(method:
|
|
1958
|
-
post(method:
|
|
1959
|
-
|
|
1837
|
+
post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
1838
|
+
post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
|
|
1960
1839
|
/**
|
|
1961
1840
|
* Returns properties of a given object. Object group of the result is inherited from the target object.
|
|
1962
1841
|
*/
|
|
1963
|
-
post(method:
|
|
1964
|
-
post(method:
|
|
1965
|
-
|
|
1842
|
+
post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
1843
|
+
post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
|
|
1966
1844
|
/**
|
|
1967
1845
|
* Releases remote object with given id.
|
|
1968
1846
|
*/
|
|
1969
|
-
post(method:
|
|
1970
|
-
post(method:
|
|
1971
|
-
|
|
1847
|
+
post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
1848
|
+
post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
|
|
1972
1849
|
/**
|
|
1973
1850
|
* Releases all remote objects that belong to a given group.
|
|
1974
1851
|
*/
|
|
1975
|
-
post(method:
|
|
1976
|
-
post(method:
|
|
1977
|
-
|
|
1852
|
+
post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
|
|
1853
|
+
post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
|
|
1978
1854
|
/**
|
|
1979
1855
|
* Tells inspected instance to run if it was waiting for debugger to attach.
|
|
1980
1856
|
*/
|
|
1981
|
-
post(method:
|
|
1982
|
-
|
|
1857
|
+
post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
|
|
1983
1858
|
/**
|
|
1984
1859
|
* Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
|
|
1985
1860
|
*/
|
|
1986
|
-
post(method:
|
|
1987
|
-
|
|
1861
|
+
post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
|
|
1988
1862
|
/**
|
|
1989
1863
|
* Disables reporting of execution contexts creation.
|
|
1990
1864
|
*/
|
|
1991
|
-
post(method:
|
|
1992
|
-
|
|
1865
|
+
post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
|
|
1993
1866
|
/**
|
|
1994
1867
|
* Discards collected exceptions and console API calls.
|
|
1995
1868
|
*/
|
|
1996
|
-
post(method:
|
|
1997
|
-
|
|
1869
|
+
post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
|
|
1998
1870
|
/**
|
|
1999
1871
|
* @experimental
|
|
2000
1872
|
*/
|
|
2001
|
-
post(method:
|
|
2002
|
-
post(method:
|
|
2003
|
-
|
|
1873
|
+
post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
|
|
1874
|
+
post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
|
|
2004
1875
|
/**
|
|
2005
1876
|
* Compiles expression.
|
|
2006
1877
|
*/
|
|
2007
|
-
post(method:
|
|
2008
|
-
post(method:
|
|
2009
|
-
|
|
1878
|
+
post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
1879
|
+
post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
|
|
2010
1880
|
/**
|
|
2011
1881
|
* Runs script with given id in a given context.
|
|
2012
1882
|
*/
|
|
2013
|
-
post(method:
|
|
2014
|
-
post(method:
|
|
2015
|
-
|
|
2016
|
-
post(method:
|
|
2017
|
-
post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2018
|
-
|
|
1883
|
+
post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
1884
|
+
post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
|
|
1885
|
+
post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
1886
|
+
post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
|
|
2019
1887
|
/**
|
|
2020
1888
|
* Returns all let, const and class variables from global scope.
|
|
2021
1889
|
*/
|
|
2022
1890
|
post(
|
|
2023
|
-
method:
|
|
1891
|
+
method: 'Runtime.globalLexicalScopeNames',
|
|
2024
1892
|
params?: Runtime.GlobalLexicalScopeNamesParameterType,
|
|
2025
1893
|
callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
|
|
2026
1894
|
): void;
|
|
2027
|
-
post(method:
|
|
2028
|
-
|
|
1895
|
+
post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
|
|
2029
1896
|
/**
|
|
2030
1897
|
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
|
|
2031
1898
|
*/
|
|
2032
|
-
post(method:
|
|
2033
|
-
|
|
1899
|
+
post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
|
|
2034
1900
|
/**
|
|
2035
1901
|
* Disables debugger for given page.
|
|
2036
1902
|
*/
|
|
2037
|
-
post(method:
|
|
2038
|
-
|
|
1903
|
+
post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
|
|
2039
1904
|
/**
|
|
2040
1905
|
* Activates / deactivates all breakpoints on the page.
|
|
2041
1906
|
*/
|
|
2042
|
-
post(method:
|
|
2043
|
-
post(method:
|
|
2044
|
-
|
|
1907
|
+
post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
|
|
1908
|
+
post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
|
|
2045
1909
|
/**
|
|
2046
1910
|
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
|
2047
1911
|
*/
|
|
2048
|
-
post(method:
|
|
2049
|
-
post(method:
|
|
2050
|
-
|
|
1912
|
+
post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
|
|
1913
|
+
post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
|
|
2051
1914
|
/**
|
|
2052
1915
|
* Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
|
|
2053
1916
|
*/
|
|
2054
|
-
post(method:
|
|
2055
|
-
post(method:
|
|
2056
|
-
|
|
1917
|
+
post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
1918
|
+
post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
|
|
2057
1919
|
/**
|
|
2058
1920
|
* Sets JavaScript breakpoint at a given location.
|
|
2059
1921
|
*/
|
|
2060
|
-
post(method:
|
|
2061
|
-
post(method:
|
|
2062
|
-
|
|
1922
|
+
post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
|
|
1923
|
+
post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
|
|
2063
1924
|
/**
|
|
2064
1925
|
* Removes JavaScript breakpoint.
|
|
2065
1926
|
*/
|
|
2066
|
-
post(method:
|
|
2067
|
-
post(method:
|
|
2068
|
-
|
|
1927
|
+
post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
|
|
1928
|
+
post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
|
|
2069
1929
|
/**
|
|
2070
1930
|
* Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
|
|
2071
1931
|
*/
|
|
2072
1932
|
post(
|
|
2073
|
-
method:
|
|
1933
|
+
method: 'Debugger.getPossibleBreakpoints',
|
|
2074
1934
|
params?: Debugger.GetPossibleBreakpointsParameterType,
|
|
2075
1935
|
callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
|
|
2076
1936
|
): void;
|
|
2077
|
-
post(method:
|
|
2078
|
-
|
|
1937
|
+
post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
|
|
2079
1938
|
/**
|
|
2080
1939
|
* Continues execution until specific location is reached.
|
|
2081
1940
|
*/
|
|
2082
|
-
post(method:
|
|
2083
|
-
post(method:
|
|
2084
|
-
|
|
1941
|
+
post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
|
|
1942
|
+
post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
|
|
2085
1943
|
/**
|
|
2086
1944
|
* @experimental
|
|
2087
1945
|
*/
|
|
2088
|
-
post(method:
|
|
2089
|
-
post(method:
|
|
2090
|
-
|
|
1946
|
+
post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
|
|
1947
|
+
post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
|
|
2091
1948
|
/**
|
|
2092
1949
|
* Steps over the statement.
|
|
2093
1950
|
*/
|
|
2094
|
-
post(method:
|
|
2095
|
-
|
|
1951
|
+
post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
|
|
2096
1952
|
/**
|
|
2097
1953
|
* Steps into the function call.
|
|
2098
1954
|
*/
|
|
2099
|
-
post(method:
|
|
2100
|
-
post(method:
|
|
2101
|
-
|
|
1955
|
+
post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
|
|
1956
|
+
post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
|
|
2102
1957
|
/**
|
|
2103
1958
|
* Steps out of the function call.
|
|
2104
1959
|
*/
|
|
2105
|
-
post(method:
|
|
2106
|
-
|
|
1960
|
+
post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
|
|
2107
1961
|
/**
|
|
2108
1962
|
* Stops on the next JavaScript statement.
|
|
2109
1963
|
*/
|
|
2110
|
-
post(method:
|
|
2111
|
-
|
|
1964
|
+
post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
|
|
2112
1965
|
/**
|
|
2113
1966
|
* This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
|
|
2114
1967
|
* @experimental
|
|
2115
1968
|
*/
|
|
2116
|
-
post(method:
|
|
2117
|
-
|
|
1969
|
+
post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
|
|
2118
1970
|
/**
|
|
2119
1971
|
* Resumes JavaScript execution.
|
|
2120
1972
|
*/
|
|
2121
|
-
post(method:
|
|
2122
|
-
|
|
1973
|
+
post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
|
|
2123
1974
|
/**
|
|
2124
1975
|
* Returns stack trace with given <code>stackTraceId</code>.
|
|
2125
1976
|
* @experimental
|
|
2126
1977
|
*/
|
|
2127
|
-
post(method:
|
|
2128
|
-
post(method:
|
|
2129
|
-
|
|
1978
|
+
post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
1979
|
+
post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
|
|
2130
1980
|
/**
|
|
2131
1981
|
* Searches for given string in script content.
|
|
2132
1982
|
*/
|
|
2133
|
-
post(method:
|
|
2134
|
-
post(method:
|
|
2135
|
-
|
|
1983
|
+
post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
1984
|
+
post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
|
|
2136
1985
|
/**
|
|
2137
1986
|
* Edits JavaScript source live.
|
|
2138
1987
|
*/
|
|
2139
|
-
post(method:
|
|
2140
|
-
post(method:
|
|
2141
|
-
|
|
1988
|
+
post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
1989
|
+
post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
|
|
2142
1990
|
/**
|
|
2143
1991
|
* Restarts particular call frame from the beginning.
|
|
2144
1992
|
*/
|
|
2145
|
-
post(method:
|
|
2146
|
-
post(method:
|
|
2147
|
-
|
|
1993
|
+
post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
1994
|
+
post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
|
|
2148
1995
|
/**
|
|
2149
1996
|
* Returns source for the script with given id.
|
|
2150
1997
|
*/
|
|
2151
|
-
post(method:
|
|
2152
|
-
post(method:
|
|
2153
|
-
|
|
1998
|
+
post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
1999
|
+
post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
|
|
2154
2000
|
/**
|
|
2155
2001
|
* Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
|
|
2156
2002
|
*/
|
|
2157
|
-
post(method:
|
|
2158
|
-
post(method:
|
|
2159
|
-
|
|
2003
|
+
post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
|
|
2004
|
+
post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
|
|
2160
2005
|
/**
|
|
2161
2006
|
* Evaluates expression on a given call frame.
|
|
2162
2007
|
*/
|
|
2163
|
-
post(method:
|
|
2164
|
-
post(method:
|
|
2165
|
-
|
|
2008
|
+
post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2009
|
+
post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
|
|
2166
2010
|
/**
|
|
2167
2011
|
* Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
|
|
2168
2012
|
*/
|
|
2169
|
-
post(method:
|
|
2170
|
-
post(method:
|
|
2171
|
-
|
|
2013
|
+
post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2014
|
+
post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
|
|
2172
2015
|
/**
|
|
2173
2016
|
* Changes return value in top frame. Available only at return break position.
|
|
2174
2017
|
* @experimental
|
|
2175
2018
|
*/
|
|
2176
|
-
post(method:
|
|
2177
|
-
post(method:
|
|
2178
|
-
|
|
2019
|
+
post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
|
|
2020
|
+
post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
|
|
2179
2021
|
/**
|
|
2180
2022
|
* Enables or disables async call stacks tracking.
|
|
2181
2023
|
*/
|
|
2182
|
-
post(method:
|
|
2183
|
-
post(method:
|
|
2184
|
-
|
|
2024
|
+
post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
|
|
2025
|
+
post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
|
|
2185
2026
|
/**
|
|
2186
2027
|
* Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
|
2187
2028
|
* @experimental
|
|
2188
2029
|
*/
|
|
2189
|
-
post(method:
|
|
2190
|
-
post(method:
|
|
2191
|
-
|
|
2030
|
+
post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
|
|
2031
|
+
post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
|
|
2192
2032
|
/**
|
|
2193
2033
|
* Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
|
|
2194
2034
|
* @experimental
|
|
2195
2035
|
*/
|
|
2196
|
-
post(method:
|
|
2197
|
-
post(method:
|
|
2198
|
-
|
|
2036
|
+
post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
|
|
2037
|
+
post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
|
|
2199
2038
|
/**
|
|
2200
2039
|
* Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
|
|
2201
2040
|
*/
|
|
2202
|
-
post(method:
|
|
2203
|
-
|
|
2041
|
+
post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
|
|
2204
2042
|
/**
|
|
2205
2043
|
* Disables console domain, prevents further console messages from being reported to the client.
|
|
2206
2044
|
*/
|
|
2207
|
-
post(method:
|
|
2208
|
-
|
|
2045
|
+
post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
|
|
2209
2046
|
/**
|
|
2210
2047
|
* Does nothing.
|
|
2211
2048
|
*/
|
|
2212
|
-
post(method:
|
|
2213
|
-
|
|
2214
|
-
post(method:
|
|
2215
|
-
|
|
2216
|
-
post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
|
|
2217
|
-
|
|
2049
|
+
post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
|
|
2050
|
+
post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
|
|
2051
|
+
post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
|
|
2218
2052
|
/**
|
|
2219
2053
|
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
|
|
2220
2054
|
*/
|
|
2221
|
-
post(method:
|
|
2222
|
-
post(method:
|
|
2223
|
-
|
|
2224
|
-
post(method:
|
|
2225
|
-
|
|
2226
|
-
post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
|
|
2227
|
-
|
|
2055
|
+
post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
|
|
2056
|
+
post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
|
|
2057
|
+
post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
|
|
2058
|
+
post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
|
|
2228
2059
|
/**
|
|
2229
2060
|
* Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
|
|
2230
2061
|
*/
|
|
2231
|
-
post(method:
|
|
2232
|
-
post(method:
|
|
2233
|
-
|
|
2062
|
+
post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
|
|
2063
|
+
post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
|
|
2234
2064
|
/**
|
|
2235
2065
|
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
|
|
2236
2066
|
*/
|
|
2237
|
-
post(method:
|
|
2238
|
-
|
|
2067
|
+
post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
|
|
2239
2068
|
/**
|
|
2240
2069
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
|
|
2241
2070
|
*/
|
|
2242
|
-
post(method:
|
|
2243
|
-
|
|
2071
|
+
post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
|
|
2244
2072
|
/**
|
|
2245
2073
|
* Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
|
|
2246
2074
|
*/
|
|
2247
|
-
post(method:
|
|
2248
|
-
|
|
2075
|
+
post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
|
|
2249
2076
|
/**
|
|
2250
2077
|
* Enable type profile.
|
|
2251
2078
|
* @experimental
|
|
2252
2079
|
*/
|
|
2253
|
-
post(method:
|
|
2254
|
-
|
|
2080
|
+
post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void;
|
|
2255
2081
|
/**
|
|
2256
2082
|
* Disable type profile. Disabling releases type profile data collected so far.
|
|
2257
2083
|
* @experimental
|
|
2258
2084
|
*/
|
|
2259
|
-
post(method:
|
|
2260
|
-
|
|
2085
|
+
post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void;
|
|
2261
2086
|
/**
|
|
2262
2087
|
* Collect type profile.
|
|
2263
2088
|
* @experimental
|
|
2264
2089
|
*/
|
|
2265
|
-
post(method:
|
|
2266
|
-
|
|
2267
|
-
post(method:
|
|
2268
|
-
|
|
2269
|
-
post(method:
|
|
2270
|
-
|
|
2271
|
-
post(method:
|
|
2272
|
-
post(method:
|
|
2273
|
-
|
|
2274
|
-
post(method:
|
|
2275
|
-
post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
|
|
2276
|
-
|
|
2277
|
-
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2278
|
-
post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
|
|
2279
|
-
|
|
2280
|
-
post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
|
|
2281
|
-
|
|
2090
|
+
post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
|
|
2091
|
+
post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
|
|
2092
|
+
post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
|
|
2093
|
+
post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2094
|
+
post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
|
|
2095
|
+
post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
|
|
2096
|
+
post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
|
|
2097
|
+
post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2098
|
+
post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
|
|
2099
|
+
post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
|
|
2282
2100
|
post(
|
|
2283
|
-
method:
|
|
2101
|
+
method: 'HeapProfiler.getObjectByHeapObjectId',
|
|
2284
2102
|
params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
|
|
2285
2103
|
callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
|
|
2286
2104
|
): void;
|
|
2287
|
-
post(method:
|
|
2288
|
-
|
|
2105
|
+
post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
|
|
2289
2106
|
/**
|
|
2290
2107
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
|
|
2291
2108
|
*/
|
|
2292
|
-
post(method:
|
|
2293
|
-
post(method:
|
|
2294
|
-
|
|
2295
|
-
post(method:
|
|
2296
|
-
post(method:
|
|
2297
|
-
|
|
2298
|
-
post(method:
|
|
2299
|
-
post(method:
|
|
2300
|
-
|
|
2301
|
-
post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
|
|
2302
|
-
|
|
2303
|
-
post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2304
|
-
|
|
2109
|
+
post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
|
|
2110
|
+
post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
|
|
2111
|
+
post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2112
|
+
post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
|
|
2113
|
+
post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
|
|
2114
|
+
post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
|
|
2115
|
+
post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
|
|
2116
|
+
post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2305
2117
|
/**
|
|
2306
2118
|
* Gets supported tracing categories.
|
|
2307
2119
|
*/
|
|
2308
|
-
post(method:
|
|
2309
|
-
|
|
2120
|
+
post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
|
|
2310
2121
|
/**
|
|
2311
2122
|
* Start trace events collection.
|
|
2312
2123
|
*/
|
|
2313
|
-
post(method:
|
|
2314
|
-
post(method:
|
|
2315
|
-
|
|
2124
|
+
post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
|
|
2125
|
+
post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
|
|
2316
2126
|
/**
|
|
2317
2127
|
* Stop trace events collection. Remaining collected events will be sent as a sequence of
|
|
2318
2128
|
* dataCollected events followed by tracingComplete event.
|
|
2319
2129
|
*/
|
|
2320
|
-
post(method:
|
|
2321
|
-
|
|
2130
|
+
post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
|
|
2322
2131
|
/**
|
|
2323
2132
|
* Sends protocol message over session with given id.
|
|
2324
2133
|
*/
|
|
2325
|
-
post(method:
|
|
2326
|
-
post(method:
|
|
2327
|
-
|
|
2134
|
+
post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
|
|
2135
|
+
post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
|
|
2328
2136
|
/**
|
|
2329
2137
|
* Instructs the inspector to attach to running workers. Will also attach to new workers
|
|
2330
2138
|
* as they start
|
|
2331
2139
|
*/
|
|
2332
|
-
post(method:
|
|
2333
|
-
post(method:
|
|
2334
|
-
|
|
2140
|
+
post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
|
|
2141
|
+
post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
|
|
2335
2142
|
/**
|
|
2336
2143
|
* Detaches from all running workers and disables attaching to new workers as they are started.
|
|
2337
2144
|
*/
|
|
2338
|
-
post(method:
|
|
2339
|
-
|
|
2145
|
+
post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
|
|
2340
2146
|
/**
|
|
2341
2147
|
* Detached from the worker with given sessionId.
|
|
2342
2148
|
*/
|
|
2343
|
-
post(method:
|
|
2344
|
-
post(method:
|
|
2345
|
-
|
|
2149
|
+
post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
|
|
2150
|
+
post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
|
|
2346
2151
|
/**
|
|
2347
2152
|
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
2348
2153
|
*/
|
|
2349
|
-
post(method:
|
|
2350
|
-
post(method:
|
|
2351
|
-
|
|
2154
|
+
post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
|
|
2155
|
+
post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
|
|
2352
2156
|
// Events
|
|
2353
|
-
|
|
2354
2157
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
2355
|
-
|
|
2356
2158
|
/**
|
|
2357
2159
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2358
2160
|
*/
|
|
2359
|
-
addListener(event:
|
|
2360
|
-
|
|
2161
|
+
addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
|
|
2361
2162
|
/**
|
|
2362
2163
|
* Issued when new execution context is created.
|
|
2363
2164
|
*/
|
|
2364
|
-
addListener(event:
|
|
2365
|
-
|
|
2165
|
+
addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2366
2166
|
/**
|
|
2367
2167
|
* Issued when execution context is destroyed.
|
|
2368
2168
|
*/
|
|
2369
|
-
addListener(event:
|
|
2370
|
-
|
|
2169
|
+
addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2371
2170
|
/**
|
|
2372
2171
|
* Issued when all executionContexts were cleared in browser
|
|
2373
2172
|
*/
|
|
2374
|
-
addListener(event:
|
|
2375
|
-
|
|
2173
|
+
addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
|
|
2376
2174
|
/**
|
|
2377
2175
|
* Issued when exception was thrown and unhandled.
|
|
2378
2176
|
*/
|
|
2379
|
-
addListener(event:
|
|
2380
|
-
|
|
2177
|
+
addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2381
2178
|
/**
|
|
2382
2179
|
* Issued when unhandled exception was revoked.
|
|
2383
2180
|
*/
|
|
2384
|
-
addListener(event:
|
|
2385
|
-
|
|
2181
|
+
addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2386
2182
|
/**
|
|
2387
2183
|
* Issued when console API was called.
|
|
2388
2184
|
*/
|
|
2389
|
-
addListener(event:
|
|
2390
|
-
|
|
2185
|
+
addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2391
2186
|
/**
|
|
2392
2187
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2393
2188
|
*/
|
|
2394
|
-
addListener(event:
|
|
2395
|
-
|
|
2189
|
+
addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2396
2190
|
/**
|
|
2397
2191
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2398
2192
|
*/
|
|
2399
|
-
addListener(event:
|
|
2400
|
-
|
|
2193
|
+
addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2401
2194
|
/**
|
|
2402
2195
|
* Fired when virtual machine fails to parse the script.
|
|
2403
2196
|
*/
|
|
2404
|
-
addListener(event:
|
|
2405
|
-
|
|
2197
|
+
addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2406
2198
|
/**
|
|
2407
2199
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2408
2200
|
*/
|
|
2409
|
-
addListener(event:
|
|
2410
|
-
|
|
2201
|
+
addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2411
2202
|
/**
|
|
2412
2203
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2413
2204
|
*/
|
|
2414
|
-
addListener(event:
|
|
2415
|
-
|
|
2205
|
+
addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2416
2206
|
/**
|
|
2417
2207
|
* Fired when the virtual machine resumed execution.
|
|
2418
2208
|
*/
|
|
2419
|
-
addListener(event:
|
|
2420
|
-
|
|
2209
|
+
addListener(event: 'Debugger.resumed', listener: () => void): this;
|
|
2421
2210
|
/**
|
|
2422
2211
|
* Issued when new console message is added.
|
|
2423
2212
|
*/
|
|
2424
|
-
addListener(event:
|
|
2425
|
-
|
|
2213
|
+
addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2426
2214
|
/**
|
|
2427
2215
|
* Sent when new profile recording is started using console.profile() call.
|
|
2428
2216
|
*/
|
|
2429
|
-
addListener(event:
|
|
2430
|
-
|
|
2431
|
-
addListener(event:
|
|
2432
|
-
addListener(event:
|
|
2433
|
-
addListener(event:
|
|
2434
|
-
addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2435
|
-
|
|
2217
|
+
addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2218
|
+
addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2219
|
+
addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2220
|
+
addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
|
|
2221
|
+
addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2436
2222
|
/**
|
|
2437
2223
|
* If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2438
2224
|
*/
|
|
2439
|
-
addListener(event:
|
|
2440
|
-
|
|
2225
|
+
addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2441
2226
|
/**
|
|
2442
2227
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2443
2228
|
*/
|
|
2444
|
-
addListener(event:
|
|
2445
|
-
|
|
2229
|
+
addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2446
2230
|
/**
|
|
2447
2231
|
* Contains an bucket of collected trace events.
|
|
2448
2232
|
*/
|
|
2449
|
-
addListener(event:
|
|
2450
|
-
|
|
2233
|
+
addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2451
2234
|
/**
|
|
2452
2235
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2453
2236
|
* delivered via dataCollected events.
|
|
2454
2237
|
*/
|
|
2455
|
-
addListener(event:
|
|
2456
|
-
|
|
2238
|
+
addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
|
|
2457
2239
|
/**
|
|
2458
2240
|
* Issued when attached to a worker.
|
|
2459
2241
|
*/
|
|
2460
|
-
addListener(event:
|
|
2461
|
-
|
|
2242
|
+
addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2462
2243
|
/**
|
|
2463
2244
|
* Issued when detached from the worker.
|
|
2464
2245
|
*/
|
|
2465
|
-
addListener(event:
|
|
2466
|
-
|
|
2246
|
+
addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2467
2247
|
/**
|
|
2468
2248
|
* Notifies about a new protocol message received from the session
|
|
2469
2249
|
* (session ID is provided in attachedToWorker notification).
|
|
2470
2250
|
*/
|
|
2471
|
-
addListener(event:
|
|
2472
|
-
|
|
2251
|
+
addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2473
2252
|
/**
|
|
2474
2253
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2475
2254
|
* enabled.
|
|
2476
2255
|
* It is fired when the Node process finished all code execution and is
|
|
2477
2256
|
* waiting for all frontends to disconnect.
|
|
2478
2257
|
*/
|
|
2479
|
-
addListener(event:
|
|
2480
|
-
|
|
2258
|
+
addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
2481
2259
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2482
|
-
emit(event:
|
|
2483
|
-
emit(event:
|
|
2484
|
-
emit(event:
|
|
2485
|
-
emit(event:
|
|
2486
|
-
emit(event:
|
|
2487
|
-
emit(event:
|
|
2488
|
-
emit(event:
|
|
2489
|
-
emit(event:
|
|
2490
|
-
emit(event:
|
|
2491
|
-
emit(event:
|
|
2492
|
-
emit(event:
|
|
2493
|
-
emit(event:
|
|
2494
|
-
emit(event:
|
|
2495
|
-
emit(event:
|
|
2496
|
-
emit(event:
|
|
2497
|
-
emit(event:
|
|
2498
|
-
emit(event:
|
|
2499
|
-
emit(event:
|
|
2500
|
-
emit(event:
|
|
2501
|
-
emit(event:
|
|
2502
|
-
emit(event:
|
|
2503
|
-
emit(event:
|
|
2504
|
-
emit(event:
|
|
2505
|
-
emit(event:
|
|
2506
|
-
emit(event:
|
|
2507
|
-
emit(event:
|
|
2508
|
-
emit(event:
|
|
2509
|
-
|
|
2260
|
+
emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean;
|
|
2261
|
+
emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
2262
|
+
emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
2263
|
+
emit(event: 'Runtime.executionContextsCleared'): boolean;
|
|
2264
|
+
emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
|
|
2265
|
+
emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
|
|
2266
|
+
emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
|
|
2267
|
+
emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
2268
|
+
emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
|
|
2269
|
+
emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
|
|
2270
|
+
emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
|
|
2271
|
+
emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
|
|
2272
|
+
emit(event: 'Debugger.resumed'): boolean;
|
|
2273
|
+
emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
|
|
2274
|
+
emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
|
|
2275
|
+
emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
|
|
2276
|
+
emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
|
|
2277
|
+
emit(event: 'HeapProfiler.resetProfiles'): boolean;
|
|
2278
|
+
emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
2279
|
+
emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
2280
|
+
emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
2281
|
+
emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
2282
|
+
emit(event: 'NodeTracing.tracingComplete'): boolean;
|
|
2283
|
+
emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
2284
|
+
emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
2285
|
+
emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
2286
|
+
emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
|
|
2510
2287
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2511
|
-
|
|
2512
2288
|
/**
|
|
2513
2289
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2514
2290
|
*/
|
|
2515
|
-
on(event:
|
|
2516
|
-
|
|
2291
|
+
on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
|
|
2517
2292
|
/**
|
|
2518
2293
|
* Issued when new execution context is created.
|
|
2519
2294
|
*/
|
|
2520
|
-
on(event:
|
|
2521
|
-
|
|
2295
|
+
on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2522
2296
|
/**
|
|
2523
2297
|
* Issued when execution context is destroyed.
|
|
2524
2298
|
*/
|
|
2525
|
-
on(event:
|
|
2526
|
-
|
|
2299
|
+
on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2527
2300
|
/**
|
|
2528
2301
|
* Issued when all executionContexts were cleared in browser
|
|
2529
2302
|
*/
|
|
2530
|
-
on(event:
|
|
2531
|
-
|
|
2303
|
+
on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
|
|
2532
2304
|
/**
|
|
2533
2305
|
* Issued when exception was thrown and unhandled.
|
|
2534
2306
|
*/
|
|
2535
|
-
on(event:
|
|
2536
|
-
|
|
2307
|
+
on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2537
2308
|
/**
|
|
2538
2309
|
* Issued when unhandled exception was revoked.
|
|
2539
2310
|
*/
|
|
2540
|
-
on(event:
|
|
2541
|
-
|
|
2311
|
+
on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2542
2312
|
/**
|
|
2543
2313
|
* Issued when console API was called.
|
|
2544
2314
|
*/
|
|
2545
|
-
on(event:
|
|
2546
|
-
|
|
2315
|
+
on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2547
2316
|
/**
|
|
2548
2317
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2549
2318
|
*/
|
|
2550
|
-
on(event:
|
|
2551
|
-
|
|
2319
|
+
on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2552
2320
|
/**
|
|
2553
2321
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2554
2322
|
*/
|
|
2555
|
-
on(event:
|
|
2556
|
-
|
|
2323
|
+
on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2557
2324
|
/**
|
|
2558
2325
|
* Fired when virtual machine fails to parse the script.
|
|
2559
2326
|
*/
|
|
2560
|
-
on(event:
|
|
2561
|
-
|
|
2327
|
+
on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2562
2328
|
/**
|
|
2563
2329
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2564
2330
|
*/
|
|
2565
|
-
on(event:
|
|
2566
|
-
|
|
2331
|
+
on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2567
2332
|
/**
|
|
2568
2333
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2569
2334
|
*/
|
|
2570
|
-
on(event:
|
|
2571
|
-
|
|
2335
|
+
on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2572
2336
|
/**
|
|
2573
2337
|
* Fired when the virtual machine resumed execution.
|
|
2574
2338
|
*/
|
|
2575
|
-
on(event:
|
|
2576
|
-
|
|
2339
|
+
on(event: 'Debugger.resumed', listener: () => void): this;
|
|
2577
2340
|
/**
|
|
2578
2341
|
* Issued when new console message is added.
|
|
2579
2342
|
*/
|
|
2580
|
-
on(event:
|
|
2581
|
-
|
|
2343
|
+
on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2582
2344
|
/**
|
|
2583
2345
|
* Sent when new profile recording is started using console.profile() call.
|
|
2584
2346
|
*/
|
|
2585
|
-
on(event:
|
|
2586
|
-
|
|
2587
|
-
on(event:
|
|
2588
|
-
on(event:
|
|
2589
|
-
on(event:
|
|
2590
|
-
on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2591
|
-
|
|
2347
|
+
on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2348
|
+
on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2349
|
+
on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2350
|
+
on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
|
|
2351
|
+
on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2592
2352
|
/**
|
|
2593
2353
|
* If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2594
2354
|
*/
|
|
2595
|
-
on(event:
|
|
2596
|
-
|
|
2355
|
+
on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2597
2356
|
/**
|
|
2598
2357
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2599
2358
|
*/
|
|
2600
|
-
on(event:
|
|
2601
|
-
|
|
2359
|
+
on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2602
2360
|
/**
|
|
2603
2361
|
* Contains an bucket of collected trace events.
|
|
2604
2362
|
*/
|
|
2605
|
-
on(event:
|
|
2606
|
-
|
|
2363
|
+
on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2607
2364
|
/**
|
|
2608
2365
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2609
2366
|
* delivered via dataCollected events.
|
|
2610
2367
|
*/
|
|
2611
|
-
on(event:
|
|
2612
|
-
|
|
2368
|
+
on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
|
|
2613
2369
|
/**
|
|
2614
2370
|
* Issued when attached to a worker.
|
|
2615
2371
|
*/
|
|
2616
|
-
on(event:
|
|
2617
|
-
|
|
2372
|
+
on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2618
2373
|
/**
|
|
2619
2374
|
* Issued when detached from the worker.
|
|
2620
2375
|
*/
|
|
2621
|
-
on(event:
|
|
2622
|
-
|
|
2376
|
+
on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2623
2377
|
/**
|
|
2624
2378
|
* Notifies about a new protocol message received from the session
|
|
2625
2379
|
* (session ID is provided in attachedToWorker notification).
|
|
2626
2380
|
*/
|
|
2627
|
-
on(event:
|
|
2628
|
-
|
|
2381
|
+
on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2629
2382
|
/**
|
|
2630
2383
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2631
2384
|
* enabled.
|
|
2632
2385
|
* It is fired when the Node process finished all code execution and is
|
|
2633
2386
|
* waiting for all frontends to disconnect.
|
|
2634
2387
|
*/
|
|
2635
|
-
on(event:
|
|
2636
|
-
|
|
2388
|
+
on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
2637
2389
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2638
|
-
|
|
2639
2390
|
/**
|
|
2640
2391
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2641
2392
|
*/
|
|
2642
|
-
once(event:
|
|
2643
|
-
|
|
2393
|
+
once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
|
|
2644
2394
|
/**
|
|
2645
2395
|
* Issued when new execution context is created.
|
|
2646
2396
|
*/
|
|
2647
|
-
once(event:
|
|
2648
|
-
|
|
2397
|
+
once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2649
2398
|
/**
|
|
2650
2399
|
* Issued when execution context is destroyed.
|
|
2651
2400
|
*/
|
|
2652
|
-
once(event:
|
|
2653
|
-
|
|
2401
|
+
once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2654
2402
|
/**
|
|
2655
2403
|
* Issued when all executionContexts were cleared in browser
|
|
2656
2404
|
*/
|
|
2657
|
-
once(event:
|
|
2658
|
-
|
|
2405
|
+
once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
|
|
2659
2406
|
/**
|
|
2660
2407
|
* Issued when exception was thrown and unhandled.
|
|
2661
2408
|
*/
|
|
2662
|
-
once(event:
|
|
2663
|
-
|
|
2409
|
+
once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2664
2410
|
/**
|
|
2665
2411
|
* Issued when unhandled exception was revoked.
|
|
2666
2412
|
*/
|
|
2667
|
-
once(event:
|
|
2668
|
-
|
|
2413
|
+
once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2669
2414
|
/**
|
|
2670
2415
|
* Issued when console API was called.
|
|
2671
2416
|
*/
|
|
2672
|
-
once(event:
|
|
2673
|
-
|
|
2417
|
+
once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2674
2418
|
/**
|
|
2675
2419
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2676
2420
|
*/
|
|
2677
|
-
once(event:
|
|
2678
|
-
|
|
2421
|
+
once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2679
2422
|
/**
|
|
2680
2423
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2681
2424
|
*/
|
|
2682
|
-
once(event:
|
|
2683
|
-
|
|
2425
|
+
once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2684
2426
|
/**
|
|
2685
2427
|
* Fired when virtual machine fails to parse the script.
|
|
2686
2428
|
*/
|
|
2687
|
-
once(event:
|
|
2688
|
-
|
|
2429
|
+
once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2689
2430
|
/**
|
|
2690
2431
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2691
2432
|
*/
|
|
2692
|
-
once(event:
|
|
2693
|
-
|
|
2433
|
+
once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2694
2434
|
/**
|
|
2695
2435
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2696
2436
|
*/
|
|
2697
|
-
once(event:
|
|
2698
|
-
|
|
2437
|
+
once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2699
2438
|
/**
|
|
2700
2439
|
* Fired when the virtual machine resumed execution.
|
|
2701
2440
|
*/
|
|
2702
|
-
once(event:
|
|
2703
|
-
|
|
2441
|
+
once(event: 'Debugger.resumed', listener: () => void): this;
|
|
2704
2442
|
/**
|
|
2705
2443
|
* Issued when new console message is added.
|
|
2706
2444
|
*/
|
|
2707
|
-
once(event:
|
|
2708
|
-
|
|
2445
|
+
once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2709
2446
|
/**
|
|
2710
2447
|
* Sent when new profile recording is started using console.profile() call.
|
|
2711
2448
|
*/
|
|
2712
|
-
once(event:
|
|
2713
|
-
|
|
2714
|
-
once(event:
|
|
2715
|
-
once(event:
|
|
2716
|
-
once(event:
|
|
2717
|
-
once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2718
|
-
|
|
2449
|
+
once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2450
|
+
once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2451
|
+
once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2452
|
+
once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
|
|
2453
|
+
once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2719
2454
|
/**
|
|
2720
2455
|
* If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2721
2456
|
*/
|
|
2722
|
-
once(event:
|
|
2723
|
-
|
|
2457
|
+
once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2724
2458
|
/**
|
|
2725
2459
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2726
2460
|
*/
|
|
2727
|
-
once(event:
|
|
2728
|
-
|
|
2461
|
+
once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2729
2462
|
/**
|
|
2730
2463
|
* Contains an bucket of collected trace events.
|
|
2731
2464
|
*/
|
|
2732
|
-
once(event:
|
|
2733
|
-
|
|
2465
|
+
once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2734
2466
|
/**
|
|
2735
2467
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2736
2468
|
* delivered via dataCollected events.
|
|
2737
2469
|
*/
|
|
2738
|
-
once(event:
|
|
2739
|
-
|
|
2470
|
+
once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
|
|
2740
2471
|
/**
|
|
2741
2472
|
* Issued when attached to a worker.
|
|
2742
2473
|
*/
|
|
2743
|
-
once(event:
|
|
2744
|
-
|
|
2474
|
+
once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2745
2475
|
/**
|
|
2746
2476
|
* Issued when detached from the worker.
|
|
2747
2477
|
*/
|
|
2748
|
-
once(event:
|
|
2749
|
-
|
|
2478
|
+
once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2750
2479
|
/**
|
|
2751
2480
|
* Notifies about a new protocol message received from the session
|
|
2752
2481
|
* (session ID is provided in attachedToWorker notification).
|
|
2753
2482
|
*/
|
|
2754
|
-
once(event:
|
|
2755
|
-
|
|
2483
|
+
once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2756
2484
|
/**
|
|
2757
2485
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2758
2486
|
* enabled.
|
|
2759
2487
|
* It is fired when the Node process finished all code execution and is
|
|
2760
2488
|
* waiting for all frontends to disconnect.
|
|
2761
2489
|
*/
|
|
2762
|
-
once(event:
|
|
2763
|
-
|
|
2490
|
+
once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
2764
2491
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2765
|
-
|
|
2766
2492
|
/**
|
|
2767
2493
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2768
2494
|
*/
|
|
2769
|
-
prependListener(event:
|
|
2770
|
-
|
|
2495
|
+
prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
|
|
2771
2496
|
/**
|
|
2772
2497
|
* Issued when new execution context is created.
|
|
2773
2498
|
*/
|
|
2774
|
-
prependListener(event:
|
|
2775
|
-
|
|
2499
|
+
prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2776
2500
|
/**
|
|
2777
2501
|
* Issued when execution context is destroyed.
|
|
2778
2502
|
*/
|
|
2779
|
-
prependListener(event:
|
|
2780
|
-
|
|
2503
|
+
prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2781
2504
|
/**
|
|
2782
2505
|
* Issued when all executionContexts were cleared in browser
|
|
2783
2506
|
*/
|
|
2784
|
-
prependListener(event:
|
|
2785
|
-
|
|
2507
|
+
prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
|
|
2786
2508
|
/**
|
|
2787
2509
|
* Issued when exception was thrown and unhandled.
|
|
2788
2510
|
*/
|
|
2789
|
-
prependListener(event:
|
|
2790
|
-
|
|
2511
|
+
prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2791
2512
|
/**
|
|
2792
2513
|
* Issued when unhandled exception was revoked.
|
|
2793
2514
|
*/
|
|
2794
|
-
prependListener(event:
|
|
2795
|
-
|
|
2515
|
+
prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2796
2516
|
/**
|
|
2797
2517
|
* Issued when console API was called.
|
|
2798
2518
|
*/
|
|
2799
|
-
prependListener(event:
|
|
2800
|
-
|
|
2519
|
+
prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2801
2520
|
/**
|
|
2802
2521
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2803
2522
|
*/
|
|
2804
|
-
prependListener(event:
|
|
2805
|
-
|
|
2523
|
+
prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2806
2524
|
/**
|
|
2807
2525
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2808
2526
|
*/
|
|
2809
|
-
prependListener(event:
|
|
2810
|
-
|
|
2527
|
+
prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2811
2528
|
/**
|
|
2812
2529
|
* Fired when virtual machine fails to parse the script.
|
|
2813
2530
|
*/
|
|
2814
|
-
prependListener(event:
|
|
2815
|
-
|
|
2531
|
+
prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2816
2532
|
/**
|
|
2817
2533
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2818
2534
|
*/
|
|
2819
|
-
prependListener(event:
|
|
2820
|
-
|
|
2535
|
+
prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2821
2536
|
/**
|
|
2822
2537
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2823
2538
|
*/
|
|
2824
|
-
prependListener(event:
|
|
2825
|
-
|
|
2539
|
+
prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2826
2540
|
/**
|
|
2827
2541
|
* Fired when the virtual machine resumed execution.
|
|
2828
2542
|
*/
|
|
2829
|
-
prependListener(event:
|
|
2830
|
-
|
|
2543
|
+
prependListener(event: 'Debugger.resumed', listener: () => void): this;
|
|
2831
2544
|
/**
|
|
2832
2545
|
* Issued when new console message is added.
|
|
2833
2546
|
*/
|
|
2834
|
-
prependListener(event:
|
|
2835
|
-
|
|
2547
|
+
prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2836
2548
|
/**
|
|
2837
2549
|
* Sent when new profile recording is started using console.profile() call.
|
|
2838
2550
|
*/
|
|
2839
|
-
prependListener(event:
|
|
2840
|
-
|
|
2841
|
-
prependListener(event:
|
|
2842
|
-
prependListener(event:
|
|
2843
|
-
prependListener(event:
|
|
2844
|
-
prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2845
|
-
|
|
2551
|
+
prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2552
|
+
prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2553
|
+
prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2554
|
+
prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
|
|
2555
|
+
prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2846
2556
|
/**
|
|
2847
2557
|
* If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2848
2558
|
*/
|
|
2849
|
-
prependListener(event:
|
|
2850
|
-
|
|
2559
|
+
prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2851
2560
|
/**
|
|
2852
2561
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2853
2562
|
*/
|
|
2854
|
-
prependListener(event:
|
|
2855
|
-
|
|
2563
|
+
prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2856
2564
|
/**
|
|
2857
2565
|
* Contains an bucket of collected trace events.
|
|
2858
2566
|
*/
|
|
2859
|
-
prependListener(event:
|
|
2860
|
-
|
|
2567
|
+
prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2861
2568
|
/**
|
|
2862
2569
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2863
2570
|
* delivered via dataCollected events.
|
|
2864
2571
|
*/
|
|
2865
|
-
prependListener(event:
|
|
2866
|
-
|
|
2572
|
+
prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
|
|
2867
2573
|
/**
|
|
2868
2574
|
* Issued when attached to a worker.
|
|
2869
2575
|
*/
|
|
2870
|
-
prependListener(event:
|
|
2871
|
-
|
|
2576
|
+
prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2872
2577
|
/**
|
|
2873
2578
|
* Issued when detached from the worker.
|
|
2874
2579
|
*/
|
|
2875
|
-
prependListener(event:
|
|
2876
|
-
|
|
2580
|
+
prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2877
2581
|
/**
|
|
2878
2582
|
* Notifies about a new protocol message received from the session
|
|
2879
2583
|
* (session ID is provided in attachedToWorker notification).
|
|
2880
2584
|
*/
|
|
2881
|
-
prependListener(event:
|
|
2882
|
-
|
|
2585
|
+
prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2883
2586
|
/**
|
|
2884
2587
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2885
2588
|
* enabled.
|
|
2886
2589
|
* It is fired when the Node process finished all code execution and is
|
|
2887
2590
|
* waiting for all frontends to disconnect.
|
|
2888
2591
|
*/
|
|
2889
|
-
prependListener(event:
|
|
2890
|
-
|
|
2592
|
+
prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
2891
2593
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
2892
|
-
|
|
2893
2594
|
/**
|
|
2894
2595
|
* Emitted when any notification from the V8 Inspector is received.
|
|
2895
2596
|
*/
|
|
2896
|
-
prependOnceListener(event:
|
|
2897
|
-
|
|
2597
|
+
prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
|
|
2898
2598
|
/**
|
|
2899
2599
|
* Issued when new execution context is created.
|
|
2900
2600
|
*/
|
|
2901
|
-
prependOnceListener(event:
|
|
2902
|
-
|
|
2601
|
+
prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
|
|
2903
2602
|
/**
|
|
2904
2603
|
* Issued when execution context is destroyed.
|
|
2905
2604
|
*/
|
|
2906
|
-
prependOnceListener(event:
|
|
2907
|
-
|
|
2605
|
+
prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
|
|
2908
2606
|
/**
|
|
2909
2607
|
* Issued when all executionContexts were cleared in browser
|
|
2910
2608
|
*/
|
|
2911
|
-
prependOnceListener(event:
|
|
2912
|
-
|
|
2609
|
+
prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
|
|
2913
2610
|
/**
|
|
2914
2611
|
* Issued when exception was thrown and unhandled.
|
|
2915
2612
|
*/
|
|
2916
|
-
prependOnceListener(event:
|
|
2917
|
-
|
|
2613
|
+
prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
|
|
2918
2614
|
/**
|
|
2919
2615
|
* Issued when unhandled exception was revoked.
|
|
2920
2616
|
*/
|
|
2921
|
-
prependOnceListener(event:
|
|
2922
|
-
|
|
2617
|
+
prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
|
|
2923
2618
|
/**
|
|
2924
2619
|
* Issued when console API was called.
|
|
2925
2620
|
*/
|
|
2926
|
-
prependOnceListener(event:
|
|
2927
|
-
|
|
2621
|
+
prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
|
|
2928
2622
|
/**
|
|
2929
2623
|
* Issued when object should be inspected (for example, as a result of inspect() command line API call).
|
|
2930
2624
|
*/
|
|
2931
|
-
prependOnceListener(event:
|
|
2932
|
-
|
|
2625
|
+
prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2933
2626
|
/**
|
|
2934
2627
|
* Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
|
|
2935
2628
|
*/
|
|
2936
|
-
prependOnceListener(event:
|
|
2937
|
-
|
|
2629
|
+
prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
|
|
2938
2630
|
/**
|
|
2939
2631
|
* Fired when virtual machine fails to parse the script.
|
|
2940
2632
|
*/
|
|
2941
|
-
prependOnceListener(event:
|
|
2942
|
-
|
|
2633
|
+
prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
|
|
2943
2634
|
/**
|
|
2944
2635
|
* Fired when breakpoint is resolved to an actual script and location.
|
|
2945
2636
|
*/
|
|
2946
|
-
prependOnceListener(event:
|
|
2947
|
-
|
|
2637
|
+
prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
|
|
2948
2638
|
/**
|
|
2949
2639
|
* Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
|
|
2950
2640
|
*/
|
|
2951
|
-
prependOnceListener(event:
|
|
2952
|
-
|
|
2641
|
+
prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
|
|
2953
2642
|
/**
|
|
2954
2643
|
* Fired when the virtual machine resumed execution.
|
|
2955
2644
|
*/
|
|
2956
|
-
prependOnceListener(event:
|
|
2957
|
-
|
|
2645
|
+
prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
|
|
2958
2646
|
/**
|
|
2959
2647
|
* Issued when new console message is added.
|
|
2960
2648
|
*/
|
|
2961
|
-
prependOnceListener(event:
|
|
2962
|
-
|
|
2649
|
+
prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
|
|
2963
2650
|
/**
|
|
2964
2651
|
* Sent when new profile recording is started using console.profile() call.
|
|
2965
2652
|
*/
|
|
2966
|
-
prependOnceListener(event:
|
|
2967
|
-
|
|
2968
|
-
prependOnceListener(event:
|
|
2969
|
-
prependOnceListener(event:
|
|
2970
|
-
prependOnceListener(event:
|
|
2971
|
-
prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2972
|
-
|
|
2653
|
+
prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
|
|
2654
|
+
prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
|
|
2655
|
+
prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
|
|
2656
|
+
prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
|
|
2657
|
+
prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
|
|
2973
2658
|
/**
|
|
2974
2659
|
* If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
|
|
2975
2660
|
*/
|
|
2976
|
-
prependOnceListener(event:
|
|
2977
|
-
|
|
2661
|
+
prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
|
|
2978
2662
|
/**
|
|
2979
2663
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2980
2664
|
*/
|
|
2981
|
-
prependOnceListener(event:
|
|
2982
|
-
|
|
2665
|
+
prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2983
2666
|
/**
|
|
2984
2667
|
* Contains an bucket of collected trace events.
|
|
2985
2668
|
*/
|
|
2986
|
-
prependOnceListener(event:
|
|
2987
|
-
|
|
2669
|
+
prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2988
2670
|
/**
|
|
2989
2671
|
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2990
2672
|
* delivered via dataCollected events.
|
|
2991
2673
|
*/
|
|
2992
|
-
prependOnceListener(event:
|
|
2993
|
-
|
|
2674
|
+
prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
|
|
2994
2675
|
/**
|
|
2995
2676
|
* Issued when attached to a worker.
|
|
2996
2677
|
*/
|
|
2997
|
-
prependOnceListener(event:
|
|
2998
|
-
|
|
2678
|
+
prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2999
2679
|
/**
|
|
3000
2680
|
* Issued when detached from the worker.
|
|
3001
2681
|
*/
|
|
3002
|
-
prependOnceListener(event:
|
|
3003
|
-
|
|
2682
|
+
prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3004
2683
|
/**
|
|
3005
2684
|
* Notifies about a new protocol message received from the session
|
|
3006
2685
|
* (session ID is provided in attachedToWorker notification).
|
|
3007
2686
|
*/
|
|
3008
|
-
prependOnceListener(event:
|
|
3009
|
-
|
|
2687
|
+
prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3010
2688
|
/**
|
|
3011
2689
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3012
2690
|
* enabled.
|
|
3013
2691
|
* It is fired when the Node process finished all code execution and is
|
|
3014
2692
|
* waiting for all frontends to disconnect.
|
|
3015
2693
|
*/
|
|
3016
|
-
prependOnceListener(event:
|
|
2694
|
+
prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
|
|
3017
2695
|
}
|
|
3018
|
-
|
|
3019
|
-
// Top Level API
|
|
3020
|
-
|
|
3021
2696
|
/**
|
|
3022
|
-
* Activate inspector on host and port. Equivalent to node --inspect=[[host:]port]
|
|
3023
|
-
*
|
|
3024
|
-
*
|
|
3025
|
-
*
|
|
3026
|
-
*
|
|
2697
|
+
* Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
|
|
2698
|
+
* started.
|
|
2699
|
+
*
|
|
2700
|
+
* If wait is `true`, will block until a client has connected to the inspect port
|
|
2701
|
+
* and flow control has been passed to the debugger client.
|
|
2702
|
+
*
|
|
2703
|
+
* See the `security warning` regarding the `host` parameter usage.
|
|
2704
|
+
* @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional.
|
|
2705
|
+
* @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional.
|
|
2706
|
+
* @param [wait=false] Block until a client has connected. Optional.
|
|
2707
|
+
* @returns Disposable that calls `inspector.close()`.
|
|
3027
2708
|
*/
|
|
3028
|
-
function open(port?: number, host?: string, wait?: boolean):
|
|
3029
|
-
|
|
2709
|
+
function open(port?: number, host?: string, wait?: boolean): Disposable;
|
|
3030
2710
|
/**
|
|
3031
2711
|
* Deactivate the inspector. Blocks until there are no active connections.
|
|
3032
2712
|
*/
|
|
3033
2713
|
function close(): void;
|
|
3034
|
-
|
|
3035
2714
|
/**
|
|
3036
2715
|
* Return the URL of the active inspector, or `undefined` if there is none.
|
|
2716
|
+
*
|
|
2717
|
+
* ```console
|
|
2718
|
+
* $ node --inspect -p 'inspector.url()'
|
|
2719
|
+
* Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
|
|
2720
|
+
* For help, see: https://nodejs.org/en/docs/inspector
|
|
2721
|
+
* ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
|
|
2722
|
+
*
|
|
2723
|
+
* $ node --inspect=localhost:3000 -p 'inspector.url()'
|
|
2724
|
+
* Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
|
|
2725
|
+
* For help, see: https://nodejs.org/en/docs/inspector
|
|
2726
|
+
* ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
|
|
2727
|
+
*
|
|
2728
|
+
* $ node -p 'inspector.url()'
|
|
2729
|
+
* undefined
|
|
2730
|
+
* ```
|
|
3037
2731
|
*/
|
|
3038
2732
|
function url(): string | undefined;
|
|
3039
|
-
|
|
3040
2733
|
/**
|
|
3041
|
-
* Blocks until a client (existing or connected later) has sent
|
|
3042
|
-
*
|
|
2734
|
+
* Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
|
|
2735
|
+
*
|
|
3043
2736
|
* An exception will be thrown if there is no active inspector.
|
|
2737
|
+
* @since v12.7.0
|
|
3044
2738
|
*/
|
|
3045
2739
|
function waitForDebugger(): void;
|
|
3046
2740
|
}
|
|
2741
|
+
/**
|
|
2742
|
+
* The inspector module provides an API for interacting with the V8 inspector.
|
|
2743
|
+
*/
|
|
3047
2744
|
declare module 'node:inspector' {
|
|
3048
|
-
|
|
3049
|
-
export = EventEmitter;
|
|
2745
|
+
export * from 'inspector';
|
|
3050
2746
|
}
|