isomorfeus-puppetmaster 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +21 -18
- data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
- data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -52
- data/lib/isomorfeus/puppetmaster/version.rb +1 -1
- data/lib/isomorfeus/puppetmaster.rb +6 -3
- data/lib/isomorfeus-puppetmaster.rb +2 -1
- data/node_modules/.bin/extract-zip +12 -0
- data/node_modules/.bin/extract-zip.cmd +17 -0
- data/node_modules/.bin/extract-zip.ps1 +28 -0
- data/node_modules/.bin/mkdirp +12 -0
- data/node_modules/.bin/mkdirp.cmd +17 -0
- data/node_modules/.bin/mkdirp.ps1 +28 -0
- data/node_modules/.bin/rimraf +12 -0
- data/node_modules/.bin/rimraf.cmd +17 -0
- data/node_modules/.bin/rimraf.ps1 +28 -0
- data/node_modules/.package-lock.json +574 -0
- data/node_modules/@types/node/LICENSE +21 -0
- data/node_modules/@types/node/README.md +16 -0
- data/node_modules/@types/node/assert/strict.d.ts +8 -0
- data/node_modules/@types/node/assert.d.ts +912 -0
- data/node_modules/@types/node/async_hooks.d.ts +497 -0
- data/node_modules/@types/node/buffer.d.ts +2142 -0
- data/node_modules/@types/node/child_process.d.ts +1355 -0
- data/node_modules/@types/node/cluster.d.ts +414 -0
- data/node_modules/@types/node/console.d.ts +407 -0
- data/node_modules/@types/node/constants.d.ts +18 -0
- data/node_modules/@types/node/crypto.d.ts +3224 -0
- data/node_modules/@types/node/dgram.d.ts +545 -0
- data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
- data/node_modules/@types/node/dns/promises.d.ts +357 -0
- data/node_modules/@types/node/dns.d.ts +643 -0
- data/node_modules/@types/node/domain.d.ts +169 -0
- data/node_modules/@types/node/events.d.ts +623 -0
- data/node_modules/@types/node/fs/promises.d.ts +997 -0
- data/node_modules/@types/node/fs.d.ts +3723 -0
- data/node_modules/@types/node/globals.d.ts +285 -0
- data/node_modules/@types/node/globals.global.d.ts +1 -0
- data/node_modules/@types/node/http.d.ts +1358 -0
- data/node_modules/@types/node/http2.d.ts +2100 -0
- data/node_modules/@types/node/https.d.ts +391 -0
- data/node_modules/@types/node/index.d.ts +131 -0
- data/node_modules/@types/node/inspector.d.ts +2738 -0
- data/node_modules/@types/node/module.d.ts +114 -0
- data/node_modules/@types/node/net.d.ts +783 -0
- data/node_modules/@types/node/os.d.ts +455 -0
- data/node_modules/@types/node/package.json +230 -0
- data/node_modules/@types/node/path.d.ts +172 -0
- data/node_modules/@types/node/perf_hooks.d.ts +555 -0
- data/node_modules/@types/node/process.d.ts +1477 -0
- data/node_modules/@types/node/punycode.d.ts +117 -0
- data/node_modules/@types/node/querystring.d.ts +131 -0
- data/node_modules/@types/node/readline.d.ts +542 -0
- data/node_modules/@types/node/repl.d.ts +424 -0
- data/node_modules/@types/node/stream/consumers.d.ts +24 -0
- data/node_modules/@types/node/stream/promises.d.ts +42 -0
- data/node_modules/@types/node/stream/web.d.ts +6 -0
- data/node_modules/@types/node/stream.d.ts +1181 -0
- data/node_modules/@types/node/string_decoder.d.ts +67 -0
- data/node_modules/@types/node/timers/promises.d.ts +68 -0
- data/node_modules/@types/node/timers.d.ts +94 -0
- data/node_modules/@types/node/tls.d.ts +1019 -0
- data/node_modules/@types/node/trace_events.d.ts +161 -0
- data/node_modules/@types/node/tty.d.ts +206 -0
- data/node_modules/@types/node/url.d.ts +798 -0
- data/node_modules/@types/node/util.d.ts +1556 -0
- data/node_modules/@types/node/v8.d.ts +378 -0
- data/node_modules/@types/node/vm.d.ts +504 -0
- data/node_modules/@types/node/wasi.d.ts +153 -0
- data/node_modules/@types/node/worker_threads.d.ts +649 -0
- data/node_modules/@types/node/zlib.d.ts +517 -0
- data/node_modules/@types/yauzl/LICENSE +21 -0
- data/node_modules/@types/yauzl/README.md +16 -0
- data/node_modules/@types/yauzl/index.d.ts +98 -0
- data/node_modules/@types/yauzl/package.json +27 -0
- data/node_modules/agent-base/README.md +145 -0
- data/node_modules/agent-base/dist/src/index.d.ts +78 -0
- data/node_modules/agent-base/dist/src/index.js +203 -0
- data/node_modules/agent-base/dist/src/index.js.map +1 -0
- data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- data/node_modules/agent-base/dist/src/promisify.js +18 -0
- data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- data/node_modules/agent-base/package.json +64 -0
- data/node_modules/agent-base/src/index.ts +345 -0
- data/node_modules/agent-base/src/promisify.ts +33 -0
- data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- data/node_modules/balanced-match/LICENSE.md +21 -0
- data/node_modules/balanced-match/README.md +97 -0
- data/node_modules/balanced-match/index.js +62 -0
- data/node_modules/balanced-match/package.json +48 -0
- data/node_modules/base64-js/LICENSE +21 -0
- data/node_modules/base64-js/README.md +34 -0
- data/node_modules/base64-js/base64js.min.js +1 -0
- data/node_modules/base64-js/index.d.ts +3 -0
- data/node_modules/base64-js/index.js +150 -0
- data/node_modules/base64-js/package.json +47 -0
- data/node_modules/bl/.travis.yml +17 -0
- data/node_modules/bl/BufferList.js +396 -0
- data/node_modules/bl/LICENSE.md +13 -0
- data/node_modules/bl/README.md +247 -0
- data/node_modules/bl/bl.js +84 -0
- data/node_modules/bl/package.json +37 -0
- data/node_modules/bl/test/convert.js +21 -0
- data/node_modules/bl/test/indexOf.js +492 -0
- data/node_modules/bl/test/isBufferList.js +32 -0
- data/node_modules/bl/test/test.js +869 -0
- data/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/buffer/AUTHORS.md +70 -0
- data/node_modules/buffer/LICENSE +21 -0
- data/node_modules/buffer/README.md +410 -0
- data/node_modules/buffer/index.d.ts +186 -0
- data/node_modules/buffer/index.js +1817 -0
- data/node_modules/buffer/package.json +96 -0
- data/node_modules/buffer-crc32/LICENSE +19 -0
- data/node_modules/buffer-crc32/README.md +47 -0
- data/node_modules/buffer-crc32/index.js +111 -0
- data/node_modules/buffer-crc32/package.json +39 -0
- data/node_modules/chownr/LICENSE +15 -0
- data/node_modules/chownr/README.md +3 -0
- data/node_modules/chownr/chownr.js +167 -0
- data/node_modules/chownr/package.json +29 -0
- data/node_modules/concat-map/.travis.yml +4 -0
- data/node_modules/concat-map/LICENSE +18 -0
- data/node_modules/concat-map/README.markdown +62 -0
- data/node_modules/concat-map/example/map.js +6 -0
- data/node_modules/concat-map/index.js +13 -0
- data/node_modules/concat-map/package.json +43 -0
- data/node_modules/concat-map/test/map.js +39 -0
- data/node_modules/debug/LICENSE +19 -0
- data/node_modules/debug/README.md +455 -0
- data/node_modules/debug/package.json +59 -0
- data/node_modules/debug/src/browser.js +269 -0
- data/node_modules/debug/src/common.js +261 -0
- data/node_modules/debug/src/index.js +10 -0
- data/node_modules/debug/src/node.js +263 -0
- data/node_modules/devtools-protocol/LICENSE +27 -0
- data/node_modules/devtools-protocol/README.md +12 -0
- data/node_modules/devtools-protocol/changelog.md +10491 -0
- data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
- data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
- data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
- data/node_modules/devtools-protocol/package.json +18 -0
- data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
- data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
- data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
- data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
- data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
- data/node_modules/end-of-stream/LICENSE +21 -0
- data/node_modules/end-of-stream/README.md +54 -0
- data/node_modules/end-of-stream/index.js +94 -0
- data/node_modules/end-of-stream/package.json +37 -0
- data/node_modules/extract-zip/LICENSE +23 -0
- data/node_modules/extract-zip/cli.js +19 -0
- data/node_modules/extract-zip/index.d.ts +21 -0
- data/node_modules/extract-zip/index.js +173 -0
- data/node_modules/extract-zip/package.json +80 -0
- data/node_modules/extract-zip/readme.md +57 -0
- data/node_modules/fd-slicer/.npmignore +2 -0
- data/node_modules/fd-slicer/.travis.yml +7 -0
- data/node_modules/fd-slicer/CHANGELOG.md +49 -0
- data/node_modules/fd-slicer/LICENSE +21 -0
- data/node_modules/fd-slicer/README.md +199 -0
- data/node_modules/fd-slicer/index.js +296 -0
- data/node_modules/fd-slicer/package.json +36 -0
- data/node_modules/fd-slicer/test/test.js +350 -0
- data/node_modules/find-up/index.d.ts +137 -0
- data/node_modules/find-up/index.js +89 -0
- data/node_modules/find-up/license +9 -0
- data/node_modules/find-up/package.json +53 -0
- data/node_modules/find-up/readme.md +156 -0
- data/node_modules/fs-constants/LICENSE +21 -0
- data/node_modules/fs-constants/README.md +26 -0
- data/node_modules/fs-constants/browser.js +1 -0
- data/node_modules/fs-constants/index.js +1 -0
- data/node_modules/fs-constants/package.json +19 -0
- data/node_modules/fs.realpath/LICENSE +43 -0
- data/node_modules/fs.realpath/README.md +33 -0
- data/node_modules/fs.realpath/index.js +66 -0
- data/node_modules/fs.realpath/old.js +303 -0
- data/node_modules/fs.realpath/package.json +26 -0
- data/node_modules/get-stream/buffer-stream.js +52 -0
- data/node_modules/get-stream/index.d.ts +108 -0
- data/node_modules/get-stream/index.js +60 -0
- data/node_modules/get-stream/license +9 -0
- data/node_modules/get-stream/package.json +50 -0
- data/node_modules/get-stream/readme.md +124 -0
- data/node_modules/glob/LICENSE +21 -0
- data/node_modules/glob/README.md +375 -0
- data/node_modules/glob/changelog.md +67 -0
- data/node_modules/glob/common.js +234 -0
- data/node_modules/glob/glob.js +788 -0
- data/node_modules/glob/package.json +51 -0
- data/node_modules/glob/sync.js +484 -0
- data/node_modules/https-proxy-agent/README.md +137 -0
- data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- data/node_modules/https-proxy-agent/dist/agent.js +180 -0
- data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- data/node_modules/https-proxy-agent/dist/index.js +14 -0
- data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- data/node_modules/https-proxy-agent/package.json +56 -0
- data/node_modules/ieee754/LICENSE +11 -0
- data/node_modules/ieee754/README.md +51 -0
- data/node_modules/ieee754/index.d.ts +10 -0
- data/node_modules/ieee754/index.js +85 -0
- data/node_modules/ieee754/package.json +52 -0
- data/node_modules/inflight/LICENSE +15 -0
- data/node_modules/inflight/README.md +37 -0
- data/node_modules/inflight/inflight.js +54 -0
- data/node_modules/inflight/package.json +29 -0
- data/node_modules/inherits/LICENSE +16 -0
- data/node_modules/inherits/README.md +42 -0
- data/node_modules/inherits/inherits.js +9 -0
- data/node_modules/inherits/inherits_browser.js +27 -0
- data/node_modules/inherits/package.json +29 -0
- data/node_modules/locate-path/index.d.ts +83 -0
- data/node_modules/locate-path/index.js +65 -0
- data/node_modules/locate-path/license +9 -0
- data/node_modules/locate-path/package.json +45 -0
- data/node_modules/locate-path/readme.md +122 -0
- data/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/minimatch/README.md +209 -0
- data/node_modules/minimatch/minimatch.js +923 -0
- data/node_modules/minimatch/package.json +30 -0
- data/node_modules/minimist/.travis.yml +8 -0
- data/node_modules/minimist/LICENSE +18 -0
- data/node_modules/minimist/example/parse.js +2 -0
- data/node_modules/minimist/index.js +245 -0
- data/node_modules/minimist/package.json +45 -0
- data/node_modules/minimist/readme.markdown +95 -0
- data/node_modules/minimist/test/all_bool.js +32 -0
- data/node_modules/minimist/test/bool.js +178 -0
- data/node_modules/minimist/test/dash.js +31 -0
- data/node_modules/minimist/test/default_bool.js +35 -0
- data/node_modules/minimist/test/dotted.js +22 -0
- data/node_modules/minimist/test/kv_short.js +16 -0
- data/node_modules/minimist/test/long.js +31 -0
- data/node_modules/minimist/test/num.js +36 -0
- data/node_modules/minimist/test/parse.js +197 -0
- data/node_modules/minimist/test/parse_modified.js +9 -0
- data/node_modules/minimist/test/proto.js +44 -0
- data/node_modules/minimist/test/short.js +67 -0
- data/node_modules/minimist/test/stop_early.js +15 -0
- data/node_modules/minimist/test/unknown.js +102 -0
- data/node_modules/minimist/test/whitespace.js +8 -0
- data/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/mkdirp/bin/cmd.js +33 -0
- data/node_modules/mkdirp/bin/usage.txt +12 -0
- data/node_modules/mkdirp/index.js +99 -0
- data/node_modules/mkdirp/package.json +34 -0
- data/node_modules/mkdirp/readme.markdown +100 -0
- data/node_modules/ms/index.js +162 -0
- data/node_modules/ms/license.md +21 -0
- data/node_modules/ms/package.json +37 -0
- data/node_modules/ms/readme.md +60 -0
- data/node_modules/node-fetch/CHANGELOG.md +272 -0
- data/node_modules/node-fetch/LICENSE.md +22 -0
- data/node_modules/node-fetch/README.md +590 -0
- data/node_modules/node-fetch/browser.js +25 -0
- data/node_modules/node-fetch/lib/index.es.js +1640 -0
- data/node_modules/node-fetch/lib/index.js +1649 -0
- data/node_modules/node-fetch/lib/index.mjs +1638 -0
- data/node_modules/node-fetch/package.json +66 -0
- data/node_modules/once/LICENSE +15 -0
- data/node_modules/once/README.md +79 -0
- data/node_modules/once/once.js +42 -0
- data/node_modules/once/package.json +33 -0
- data/node_modules/p-limit/index.d.ts +38 -0
- data/node_modules/p-limit/index.js +57 -0
- data/node_modules/p-limit/license +9 -0
- data/node_modules/p-limit/package.json +52 -0
- data/node_modules/p-limit/readme.md +101 -0
- data/node_modules/p-locate/index.d.ts +64 -0
- data/node_modules/p-locate/index.js +52 -0
- data/node_modules/p-locate/license +9 -0
- data/node_modules/p-locate/package.json +53 -0
- data/node_modules/p-locate/readme.md +90 -0
- data/node_modules/p-try/index.d.ts +39 -0
- data/node_modules/p-try/index.js +9 -0
- data/node_modules/p-try/license +9 -0
- data/node_modules/p-try/package.json +42 -0
- data/node_modules/p-try/readme.md +58 -0
- data/node_modules/path-exists/index.d.ts +28 -0
- data/node_modules/path-exists/index.js +23 -0
- data/node_modules/path-exists/license +9 -0
- data/node_modules/path-exists/package.json +39 -0
- data/node_modules/path-exists/readme.md +52 -0
- data/node_modules/path-is-absolute/index.js +20 -0
- data/node_modules/path-is-absolute/license +21 -0
- data/node_modules/path-is-absolute/package.json +43 -0
- data/node_modules/path-is-absolute/readme.md +59 -0
- data/node_modules/pend/LICENSE +23 -0
- data/node_modules/pend/README.md +41 -0
- data/node_modules/pend/index.js +55 -0
- data/node_modules/pend/package.json +18 -0
- data/node_modules/pend/test.js +137 -0
- data/node_modules/pkg-dir/index.d.ts +44 -0
- data/node_modules/pkg-dir/index.js +17 -0
- data/node_modules/pkg-dir/license +9 -0
- data/node_modules/pkg-dir/package.json +56 -0
- data/node_modules/pkg-dir/readme.md +66 -0
- data/node_modules/progress/CHANGELOG.md +115 -0
- data/node_modules/progress/LICENSE +22 -0
- data/node_modules/progress/Makefile +8 -0
- data/node_modules/progress/Readme.md +146 -0
- data/node_modules/progress/index.js +1 -0
- data/node_modules/progress/lib/node-progress.js +235 -0
- data/node_modules/progress/package.json +26 -0
- data/node_modules/proxy-from-env/.eslintrc +29 -0
- data/node_modules/proxy-from-env/.travis.yml +10 -0
- data/node_modules/proxy-from-env/LICENSE +20 -0
- data/node_modules/proxy-from-env/README.md +131 -0
- data/node_modules/proxy-from-env/index.js +108 -0
- data/node_modules/proxy-from-env/package.json +34 -0
- data/node_modules/proxy-from-env/test.js +483 -0
- data/node_modules/pump/.travis.yml +5 -0
- data/node_modules/pump/LICENSE +21 -0
- data/node_modules/pump/README.md +65 -0
- data/node_modules/pump/index.js +82 -0
- data/node_modules/pump/package.json +24 -0
- data/node_modules/pump/test-browser.js +66 -0
- data/node_modules/pump/test-node.js +53 -0
- data/node_modules/puppeteer-core/CHANGELOG.md +226 -0
- data/node_modules/puppeteer-core/LICENSE +202 -0
- data/node_modules/puppeteer-core/README.md +483 -0
- data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
- data/node_modules/puppeteer-core/cjs-entry.js +29 -0
- data/node_modules/puppeteer-core/install.js +89 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +438 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +528 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +189 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +329 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +173 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +655 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +951 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +469 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +803 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +97 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +341 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +157 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2011 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2427 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +104 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +29 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +502 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +42 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +160 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +438 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +523 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +189 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +323 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +173 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +650 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +948 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +469 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +778 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +97 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +337 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +157 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2011 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2423 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +100 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +476 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +35 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +152 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
- data/node_modules/puppeteer-core/lib/types.d.ts +6911 -0
- data/node_modules/puppeteer-core/package.json +122 -0
- data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
- data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- data/node_modules/readable-stream/GOVERNANCE.md +136 -0
- data/node_modules/readable-stream/LICENSE +47 -0
- data/node_modules/readable-stream/README.md +106 -0
- data/node_modules/readable-stream/errors-browser.js +127 -0
- data/node_modules/readable-stream/errors.js +116 -0
- data/node_modules/readable-stream/experimentalWarning.js +17 -0
- data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- data/node_modules/readable-stream/package.json +68 -0
- data/node_modules/readable-stream/readable-browser.js +9 -0
- data/node_modules/readable-stream/readable.js +16 -0
- data/node_modules/rimraf/CHANGELOG.md +65 -0
- data/node_modules/rimraf/LICENSE +15 -0
- data/node_modules/rimraf/README.md +101 -0
- data/node_modules/rimraf/bin.js +68 -0
- data/node_modules/rimraf/package.json +32 -0
- data/node_modules/rimraf/rimraf.js +360 -0
- data/node_modules/safe-buffer/LICENSE +21 -0
- data/node_modules/safe-buffer/README.md +584 -0
- data/node_modules/safe-buffer/index.d.ts +187 -0
- data/node_modules/safe-buffer/index.js +65 -0
- data/node_modules/safe-buffer/package.json +51 -0
- data/node_modules/string_decoder/LICENSE +48 -0
- data/node_modules/string_decoder/README.md +47 -0
- data/node_modules/string_decoder/lib/string_decoder.js +296 -0
- data/node_modules/string_decoder/package.json +34 -0
- data/node_modules/tar-fs/.travis.yml +5 -0
- data/node_modules/tar-fs/LICENSE +21 -0
- data/node_modules/tar-fs/README.md +163 -0
- data/node_modules/tar-fs/index.js +348 -0
- data/node_modules/tar-fs/package.json +41 -0
- data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- data/node_modules/tar-fs/test/fixtures/e/file +0 -0
- data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- data/node_modules/tar-fs/test/index.js +346 -0
- data/node_modules/tar-stream/LICENSE +21 -0
- data/node_modules/tar-stream/README.md +168 -0
- data/node_modules/tar-stream/extract.js +257 -0
- data/node_modules/tar-stream/headers.js +295 -0
- data/node_modules/tar-stream/index.js +2 -0
- data/node_modules/tar-stream/pack.js +255 -0
- data/node_modules/tar-stream/package.json +58 -0
- data/node_modules/tar-stream/sandbox.js +11 -0
- data/node_modules/through/.travis.yml +5 -0
- data/node_modules/through/LICENSE.APACHE2 +15 -0
- data/node_modules/through/LICENSE.MIT +24 -0
- data/node_modules/through/index.js +108 -0
- data/node_modules/through/package.json +36 -0
- data/node_modules/through/readme.markdown +64 -0
- data/node_modules/through/test/async.js +28 -0
- data/node_modules/through/test/auto-destroy.js +30 -0
- data/node_modules/through/test/buffering.js +71 -0
- data/node_modules/through/test/end.js +45 -0
- data/node_modules/through/test/index.js +133 -0
- data/node_modules/unbzip2-stream/LICENSE +24 -0
- data/node_modules/unbzip2-stream/README.md +59 -0
- data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
- data/node_modules/unbzip2-stream/index.js +92 -0
- data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
- data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
- data/node_modules/unbzip2-stream/package.json +51 -0
- data/node_modules/util-deprecate/History.md +16 -0
- data/node_modules/util-deprecate/LICENSE +24 -0
- data/node_modules/util-deprecate/README.md +53 -0
- data/node_modules/util-deprecate/browser.js +67 -0
- data/node_modules/util-deprecate/node.js +6 -0
- data/node_modules/util-deprecate/package.json +27 -0
- data/node_modules/wrappy/LICENSE +15 -0
- data/node_modules/wrappy/README.md +36 -0
- data/node_modules/wrappy/package.json +29 -0
- data/node_modules/wrappy/wrappy.js +33 -0
- data/node_modules/ws/LICENSE +21 -0
- data/node_modules/ws/README.md +496 -0
- data/node_modules/ws/browser.js +8 -0
- data/node_modules/ws/index.js +10 -0
- data/node_modules/ws/lib/buffer-util.js +129 -0
- data/node_modules/ws/lib/constants.js +10 -0
- data/node_modules/ws/lib/event-target.js +184 -0
- data/node_modules/ws/lib/extension.js +223 -0
- data/node_modules/ws/lib/limiter.js +55 -0
- data/node_modules/ws/lib/permessage-deflate.js +517 -0
- data/node_modules/ws/lib/receiver.js +507 -0
- data/node_modules/ws/lib/sender.js +405 -0
- data/node_modules/ws/lib/stream.js +165 -0
- data/node_modules/ws/lib/validation.js +104 -0
- data/node_modules/ws/lib/websocket-server.js +418 -0
- data/node_modules/ws/lib/websocket.js +942 -0
- data/node_modules/ws/package.json +56 -0
- data/node_modules/yauzl/LICENSE +21 -0
- data/node_modules/yauzl/README.md +658 -0
- data/node_modules/yauzl/index.js +796 -0
- data/node_modules/yauzl/package.json +40 -0
- data/package.json +6 -0
- metadata +940 -58
@@ -0,0 +1,153 @@
|
|
1
|
+
/**
|
2
|
+
* The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/)specification. WASI gives sandboxed WebAssembly applications access to the
|
3
|
+
* underlying operating system via a collection of POSIX-like functions.
|
4
|
+
*
|
5
|
+
* ```js
|
6
|
+
* import fs from 'fs';
|
7
|
+
* import { WASI } from 'wasi';
|
8
|
+
* import { argv, env } from 'process';
|
9
|
+
*
|
10
|
+
* const wasi = new WASI({
|
11
|
+
* args: argv,
|
12
|
+
* env,
|
13
|
+
* preopens: {
|
14
|
+
* '/sandbox': '/some/real/path/that/wasm/can/access'
|
15
|
+
* }
|
16
|
+
* });
|
17
|
+
* const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
|
18
|
+
*
|
19
|
+
* const wasm = await WebAssembly.compile(fs.readFileSync('./demo.wasm'));
|
20
|
+
* const instance = await WebAssembly.instantiate(wasm, importObject);
|
21
|
+
*
|
22
|
+
* wasi.start(instance);
|
23
|
+
* ```
|
24
|
+
*
|
25
|
+
* To run the above example, create a new WebAssembly text format file named`demo.wat`:
|
26
|
+
*
|
27
|
+
* ```text
|
28
|
+
* (module
|
29
|
+
* ;; Import the required fd_write WASI function which will write the given io vectors to stdout
|
30
|
+
* ;; The function signature for fd_write is:
|
31
|
+
* ;; (File Descriptor, *iovs, iovs_len, nwritten) -> Returns number of bytes written
|
32
|
+
* (import "wasi_snapshot_preview1" "fd_write" (func $fd_write (param i32 i32 i32 i32) (result i32)))
|
33
|
+
*
|
34
|
+
* (memory 1)
|
35
|
+
* (export "memory" (memory 0))
|
36
|
+
*
|
37
|
+
* ;; Write 'hello world\n' to memory at an offset of 8 bytes
|
38
|
+
* ;; Note the trailing newline which is required for the text to appear
|
39
|
+
* (data (i32.const 8) "hello world\n")
|
40
|
+
*
|
41
|
+
* (func $main (export "_start")
|
42
|
+
* ;; Creating a new io vector within linear memory
|
43
|
+
* (i32.store (i32.const 0) (i32.const 8)) ;; iov.iov_base - This is a pointer to the start of the 'hello world\n' string
|
44
|
+
* (i32.store (i32.const 4) (i32.const 12)) ;; iov.iov_len - The length of the 'hello world\n' string
|
45
|
+
*
|
46
|
+
* (call $fd_write
|
47
|
+
* (i32.const 1) ;; file_descriptor - 1 for stdout
|
48
|
+
* (i32.const 0) ;; *iovs - The pointer to the iov array, which is stored at memory location 0
|
49
|
+
* (i32.const 1) ;; iovs_len - We're printing 1 string stored in an iov - so one.
|
50
|
+
* (i32.const 20) ;; nwritten - A place in memory to store the number of bytes written
|
51
|
+
* )
|
52
|
+
* drop ;; Discard the number of bytes written from the top of the stack
|
53
|
+
* )
|
54
|
+
* )
|
55
|
+
* ```
|
56
|
+
*
|
57
|
+
* Use [wabt](https://github.com/WebAssembly/wabt) to compile `.wat` to `.wasm`
|
58
|
+
*
|
59
|
+
* ```console
|
60
|
+
* $ wat2wasm demo.wat
|
61
|
+
* ```
|
62
|
+
*
|
63
|
+
* The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
|
64
|
+
* example to run.
|
65
|
+
* @experimental
|
66
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/wasi.js)
|
67
|
+
*/
|
68
|
+
declare module 'wasi' {
|
69
|
+
interface WASIOptions {
|
70
|
+
/**
|
71
|
+
* An array of strings that the WebAssembly application will
|
72
|
+
* see as command line arguments. The first argument is the virtual path to the
|
73
|
+
* WASI command itself.
|
74
|
+
*/
|
75
|
+
args?: string[] | undefined;
|
76
|
+
/**
|
77
|
+
* An object similar to `process.env` that the WebAssembly
|
78
|
+
* application will see as its environment.
|
79
|
+
*/
|
80
|
+
env?: object | undefined;
|
81
|
+
/**
|
82
|
+
* This object represents the WebAssembly application's
|
83
|
+
* sandbox directory structure. The string keys of `preopens` are treated as
|
84
|
+
* directories within the sandbox. The corresponding values in `preopens` are
|
85
|
+
* the real paths to those directories on the host machine.
|
86
|
+
*/
|
87
|
+
preopens?: NodeJS.Dict<string> | undefined;
|
88
|
+
/**
|
89
|
+
* By default, WASI applications terminate the Node.js
|
90
|
+
* process via the `__wasi_proc_exit()` function. Setting this option to `true`
|
91
|
+
* causes `wasi.start()` to return the exit code rather than terminate the
|
92
|
+
* process.
|
93
|
+
* @default false
|
94
|
+
*/
|
95
|
+
returnOnExit?: boolean | undefined;
|
96
|
+
/**
|
97
|
+
* The file descriptor used as standard input in the WebAssembly application.
|
98
|
+
* @default 0
|
99
|
+
*/
|
100
|
+
stdin?: number | undefined;
|
101
|
+
/**
|
102
|
+
* The file descriptor used as standard output in the WebAssembly application.
|
103
|
+
* @default 1
|
104
|
+
*/
|
105
|
+
stdout?: number | undefined;
|
106
|
+
/**
|
107
|
+
* The file descriptor used as standard error in the WebAssembly application.
|
108
|
+
* @default 2
|
109
|
+
*/
|
110
|
+
stderr?: number | undefined;
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* The `WASI` class provides the WASI system call API and additional convenience
|
114
|
+
* methods for working with WASI-based applications. Each `WASI` instance
|
115
|
+
* represents a distinct sandbox environment. For security purposes, each `WASI`instance must have its command-line arguments, environment variables, and
|
116
|
+
* sandbox directory structure configured explicitly.
|
117
|
+
* @since v13.3.0, v12.16.0
|
118
|
+
*/
|
119
|
+
class WASI {
|
120
|
+
constructor(options?: WASIOptions);
|
121
|
+
/**
|
122
|
+
* Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
|
123
|
+
* export, then an exception is thrown.
|
124
|
+
*
|
125
|
+
* `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. If
|
126
|
+
* `instance` does not have a `memory` export an exception is thrown.
|
127
|
+
*
|
128
|
+
* If `start()` is called more than once, an exception is thrown.
|
129
|
+
* @since v13.3.0, v12.16.0
|
130
|
+
*/
|
131
|
+
start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
|
132
|
+
/**
|
133
|
+
* Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.
|
134
|
+
*
|
135
|
+
* `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`.
|
136
|
+
* If `instance` does not have a `memory` export an exception is thrown.
|
137
|
+
*
|
138
|
+
* If `initialize()` is called more than once, an exception is thrown.
|
139
|
+
* @since v14.6.0, v12.19.0
|
140
|
+
*/
|
141
|
+
initialize(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
|
142
|
+
/**
|
143
|
+
* `wasiImport` is an object that implements the WASI system call API. This object
|
144
|
+
* should be passed as the `wasi_snapshot_preview1` import during the instantiation
|
145
|
+
* of a [`WebAssembly.Instance`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance).
|
146
|
+
* @since v13.3.0, v12.16.0
|
147
|
+
*/
|
148
|
+
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
|
149
|
+
}
|
150
|
+
}
|
151
|
+
declare module 'node:wasi' {
|
152
|
+
export * from 'wasi';
|
153
|
+
}
|
@@ -0,0 +1,649 @@
|
|
1
|
+
/**
|
2
|
+
* The `worker_threads` module enables the use of threads that execute JavaScript
|
3
|
+
* in parallel. To access it:
|
4
|
+
*
|
5
|
+
* ```js
|
6
|
+
* const worker = require('worker_threads');
|
7
|
+
* ```
|
8
|
+
*
|
9
|
+
* Workers (threads) are useful for performing CPU-intensive JavaScript operations.
|
10
|
+
* They do not help much with I/O-intensive work. The Node.js built-in
|
11
|
+
* asynchronous I/O operations are more efficient than Workers can be.
|
12
|
+
*
|
13
|
+
* Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
|
14
|
+
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer`instances.
|
15
|
+
*
|
16
|
+
* ```js
|
17
|
+
* const {
|
18
|
+
* Worker, isMainThread, parentPort, workerData
|
19
|
+
* } = require('worker_threads');
|
20
|
+
*
|
21
|
+
* if (isMainThread) {
|
22
|
+
* module.exports = function parseJSAsync(script) {
|
23
|
+
* return new Promise((resolve, reject) => {
|
24
|
+
* const worker = new Worker(__filename, {
|
25
|
+
* workerData: script
|
26
|
+
* });
|
27
|
+
* worker.on('message', resolve);
|
28
|
+
* worker.on('error', reject);
|
29
|
+
* worker.on('exit', (code) => {
|
30
|
+
* if (code !== 0)
|
31
|
+
* reject(new Error(`Worker stopped with exit code ${code}`));
|
32
|
+
* });
|
33
|
+
* });
|
34
|
+
* };
|
35
|
+
* } else {
|
36
|
+
* const { parse } = require('some-js-parsing-library');
|
37
|
+
* const script = workerData;
|
38
|
+
* parentPort.postMessage(parse(script));
|
39
|
+
* }
|
40
|
+
* ```
|
41
|
+
*
|
42
|
+
* The above example spawns a Worker thread for each `parse()` call. In actual
|
43
|
+
* practice, use a pool of Workers for these kinds of tasks. Otherwise, the
|
44
|
+
* overhead of creating Workers would likely exceed their benefit.
|
45
|
+
*
|
46
|
+
* When implementing a worker pool, use the `AsyncResource` API to inform
|
47
|
+
* diagnostic tools (e.g. to provide asynchronous stack traces) about the
|
48
|
+
* correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
|
49
|
+
*
|
50
|
+
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
51
|
+
* specifically `argv` and `execArgv` options.
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/worker_threads.js)
|
53
|
+
*/
|
54
|
+
declare module 'worker_threads' {
|
55
|
+
import { Blob } from 'node:buffer';
|
56
|
+
import { Context } from 'node:vm';
|
57
|
+
import { EventEmitter } from 'node:events';
|
58
|
+
import { EventLoopUtilityFunction } from 'node:perf_hooks';
|
59
|
+
import { FileHandle } from 'node:fs/promises';
|
60
|
+
import { Readable, Writable } from 'node:stream';
|
61
|
+
import { URL } from 'node:url';
|
62
|
+
import { X509Certificate } from 'node:crypto';
|
63
|
+
const isMainThread: boolean;
|
64
|
+
const parentPort: null | MessagePort;
|
65
|
+
const resourceLimits: ResourceLimits;
|
66
|
+
const SHARE_ENV: unique symbol;
|
67
|
+
const threadId: number;
|
68
|
+
const workerData: any;
|
69
|
+
/**
|
70
|
+
* Instances of the `worker.MessageChannel` class represent an asynchronous,
|
71
|
+
* two-way communications channel.
|
72
|
+
* The `MessageChannel` has no methods of its own. `new MessageChannel()`yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
73
|
+
*
|
74
|
+
* ```js
|
75
|
+
* const { MessageChannel } = require('worker_threads');
|
76
|
+
*
|
77
|
+
* const { port1, port2 } = new MessageChannel();
|
78
|
+
* port1.on('message', (message) => console.log('received', message));
|
79
|
+
* port2.postMessage({ foo: 'bar' });
|
80
|
+
* // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
|
81
|
+
* ```
|
82
|
+
* @since v10.5.0
|
83
|
+
*/
|
84
|
+
class MessageChannel {
|
85
|
+
readonly port1: MessagePort;
|
86
|
+
readonly port2: MessagePort;
|
87
|
+
}
|
88
|
+
interface WorkerPerformance {
|
89
|
+
eventLoopUtilization: EventLoopUtilityFunction;
|
90
|
+
}
|
91
|
+
type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob;
|
92
|
+
/**
|
93
|
+
* Instances of the `worker.MessagePort` class represent one end of an
|
94
|
+
* asynchronous, two-way communications channel. It can be used to transfer
|
95
|
+
* structured data, memory regions and other `MessagePort`s between different `Worker` s.
|
96
|
+
*
|
97
|
+
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort)s.
|
98
|
+
* @since v10.5.0
|
99
|
+
*/
|
100
|
+
class MessagePort extends EventEmitter {
|
101
|
+
/**
|
102
|
+
* Disables further sending of messages on either side of the connection.
|
103
|
+
* This method can be called when no further communication will happen over this`MessagePort`.
|
104
|
+
*
|
105
|
+
* The `'close' event` is emitted on both `MessagePort` instances that
|
106
|
+
* are part of the channel.
|
107
|
+
* @since v10.5.0
|
108
|
+
*/
|
109
|
+
close(): void;
|
110
|
+
/**
|
111
|
+
* Sends a JavaScript value to the receiving side of this channel.`value` is transferred in a way which is compatible with
|
112
|
+
* the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
113
|
+
*
|
114
|
+
* In particular, the significant differences to `JSON` are:
|
115
|
+
*
|
116
|
+
* * `value` may contain circular references.
|
117
|
+
* * `value` may contain instances of builtin JS types such as `RegExp`s,`BigInt`s, `Map`s, `Set`s, etc.
|
118
|
+
* * `value` may contain typed arrays, both using `ArrayBuffer`s
|
119
|
+
* and `SharedArrayBuffer`s.
|
120
|
+
* * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
|
121
|
+
* * `value` may not contain native (C++-backed) objects other than:
|
122
|
+
*
|
123
|
+
* ```js
|
124
|
+
* const { MessageChannel } = require('worker_threads');
|
125
|
+
* const { port1, port2 } = new MessageChannel();
|
126
|
+
*
|
127
|
+
* port1.on('message', (message) => console.log(message));
|
128
|
+
*
|
129
|
+
* const circularData = {};
|
130
|
+
* circularData.foo = circularData;
|
131
|
+
* // Prints: { foo: [Circular] }
|
132
|
+
* port2.postMessage(circularData);
|
133
|
+
* ```
|
134
|
+
*
|
135
|
+
* `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort` and `FileHandle` objects.
|
136
|
+
* After transferring, they are not usable on the sending side of the channel
|
137
|
+
* anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
|
138
|
+
* not supported.
|
139
|
+
*
|
140
|
+
* If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
|
141
|
+
* from either thread. They cannot be listed in `transferList`.
|
142
|
+
*
|
143
|
+
* `value` may still contain `ArrayBuffer` instances that are not in`transferList`; in that case, the underlying memory is copied rather than moved.
|
144
|
+
*
|
145
|
+
* ```js
|
146
|
+
* const { MessageChannel } = require('worker_threads');
|
147
|
+
* const { port1, port2 } = new MessageChannel();
|
148
|
+
*
|
149
|
+
* port1.on('message', (message) => console.log(message));
|
150
|
+
*
|
151
|
+
* const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
|
152
|
+
* // This posts a copy of `uint8Array`:
|
153
|
+
* port2.postMessage(uint8Array);
|
154
|
+
* // This does not copy data, but renders `uint8Array` unusable:
|
155
|
+
* port2.postMessage(uint8Array, [ uint8Array.buffer ]);
|
156
|
+
*
|
157
|
+
* // The memory for the `sharedUint8Array` is accessible from both the
|
158
|
+
* // original and the copy received by `.on('message')`:
|
159
|
+
* const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
|
160
|
+
* port2.postMessage(sharedUint8Array);
|
161
|
+
*
|
162
|
+
* // This transfers a freshly created message port to the receiver.
|
163
|
+
* // This can be used, for example, to create communication channels between
|
164
|
+
* // multiple `Worker` threads that are children of the same parent thread.
|
165
|
+
* const otherChannel = new MessageChannel();
|
166
|
+
* port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
|
167
|
+
* ```
|
168
|
+
*
|
169
|
+
* The message object is cloned immediately, and can be modified after
|
170
|
+
* posting without having side effects.
|
171
|
+
*
|
172
|
+
* For more information on the serialization and deserialization mechanisms
|
173
|
+
* behind this API, see the `serialization API of the v8 module`.
|
174
|
+
* @since v10.5.0
|
175
|
+
*/
|
176
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
177
|
+
/**
|
178
|
+
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does_not_ let the program exit if it's the only active handle left (the default
|
179
|
+
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
180
|
+
*
|
181
|
+
* If listeners are attached or removed using `.on('message')`, the port
|
182
|
+
* is `ref()`ed and `unref()`ed automatically depending on whether
|
183
|
+
* listeners for the event exist.
|
184
|
+
* @since v10.5.0
|
185
|
+
*/
|
186
|
+
ref(): void;
|
187
|
+
/**
|
188
|
+
* Calling `unref()` on a port allows the thread to exit if this is the only
|
189
|
+
* active handle in the event system. If the port is already `unref()`ed calling`unref()` again has no effect.
|
190
|
+
*
|
191
|
+
* If listeners are attached or removed using `.on('message')`, the port is`ref()`ed and `unref()`ed automatically depending on whether
|
192
|
+
* listeners for the event exist.
|
193
|
+
* @since v10.5.0
|
194
|
+
*/
|
195
|
+
unref(): void;
|
196
|
+
/**
|
197
|
+
* Starts receiving messages on this `MessagePort`. When using this port
|
198
|
+
* as an event emitter, this is called automatically once `'message'`listeners are attached.
|
199
|
+
*
|
200
|
+
* This method exists for parity with the Web `MessagePort` API. In Node.js,
|
201
|
+
* it is only useful for ignoring messages when no event listener is present.
|
202
|
+
* Node.js also diverges in its handling of `.onmessage`. Setting it
|
203
|
+
* automatically calls `.start()`, but unsetting it lets messages queue up
|
204
|
+
* until a new handler is set or the port is discarded.
|
205
|
+
* @since v10.5.0
|
206
|
+
*/
|
207
|
+
start(): void;
|
208
|
+
addListener(event: 'close', listener: () => void): this;
|
209
|
+
addListener(event: 'message', listener: (value: any) => void): this;
|
210
|
+
addListener(event: 'messageerror', listener: (error: Error) => void): this;
|
211
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
212
|
+
emit(event: 'close'): boolean;
|
213
|
+
emit(event: 'message', value: any): boolean;
|
214
|
+
emit(event: 'messageerror', error: Error): boolean;
|
215
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
216
|
+
on(event: 'close', listener: () => void): this;
|
217
|
+
on(event: 'message', listener: (value: any) => void): this;
|
218
|
+
on(event: 'messageerror', listener: (error: Error) => void): this;
|
219
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
220
|
+
once(event: 'close', listener: () => void): this;
|
221
|
+
once(event: 'message', listener: (value: any) => void): this;
|
222
|
+
once(event: 'messageerror', listener: (error: Error) => void): this;
|
223
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
224
|
+
prependListener(event: 'close', listener: () => void): this;
|
225
|
+
prependListener(event: 'message', listener: (value: any) => void): this;
|
226
|
+
prependListener(event: 'messageerror', listener: (error: Error) => void): this;
|
227
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
228
|
+
prependOnceListener(event: 'close', listener: () => void): this;
|
229
|
+
prependOnceListener(event: 'message', listener: (value: any) => void): this;
|
230
|
+
prependOnceListener(event: 'messageerror', listener: (error: Error) => void): this;
|
231
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
232
|
+
removeListener(event: 'close', listener: () => void): this;
|
233
|
+
removeListener(event: 'message', listener: (value: any) => void): this;
|
234
|
+
removeListener(event: 'messageerror', listener: (error: Error) => void): this;
|
235
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
236
|
+
off(event: 'close', listener: () => void): this;
|
237
|
+
off(event: 'message', listener: (value: any) => void): this;
|
238
|
+
off(event: 'messageerror', listener: (error: Error) => void): this;
|
239
|
+
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
240
|
+
}
|
241
|
+
interface WorkerOptions {
|
242
|
+
/**
|
243
|
+
* List of arguments which would be stringified and appended to
|
244
|
+
* `process.argv` in the worker. This is mostly similar to the `workerData`
|
245
|
+
* but the values will be available on the global `process.argv` as if they
|
246
|
+
* were passed as CLI options to the script.
|
247
|
+
*/
|
248
|
+
argv?: any[] | undefined;
|
249
|
+
env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
|
250
|
+
eval?: boolean | undefined;
|
251
|
+
workerData?: any;
|
252
|
+
stdin?: boolean | undefined;
|
253
|
+
stdout?: boolean | undefined;
|
254
|
+
stderr?: boolean | undefined;
|
255
|
+
execArgv?: string[] | undefined;
|
256
|
+
resourceLimits?: ResourceLimits | undefined;
|
257
|
+
/**
|
258
|
+
* Additional data to send in the first worker message.
|
259
|
+
*/
|
260
|
+
transferList?: TransferListItem[] | undefined;
|
261
|
+
/**
|
262
|
+
* @default true
|
263
|
+
*/
|
264
|
+
trackUnmanagedFds?: boolean | undefined;
|
265
|
+
}
|
266
|
+
interface ResourceLimits {
|
267
|
+
/**
|
268
|
+
* The maximum size of a heap space for recently created objects.
|
269
|
+
*/
|
270
|
+
maxYoungGenerationSizeMb?: number | undefined;
|
271
|
+
/**
|
272
|
+
* The maximum size of the main heap in MB.
|
273
|
+
*/
|
274
|
+
maxOldGenerationSizeMb?: number | undefined;
|
275
|
+
/**
|
276
|
+
* The size of a pre-allocated memory range used for generated code.
|
277
|
+
*/
|
278
|
+
codeRangeSizeMb?: number | undefined;
|
279
|
+
/**
|
280
|
+
* The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
|
281
|
+
* @default 4
|
282
|
+
*/
|
283
|
+
stackSizeMb?: number | undefined;
|
284
|
+
}
|
285
|
+
/**
|
286
|
+
* The `Worker` class represents an independent JavaScript execution thread.
|
287
|
+
* Most Node.js APIs are available inside of it.
|
288
|
+
*
|
289
|
+
* Notable differences inside a Worker environment are:
|
290
|
+
*
|
291
|
+
* * The `process.stdin`, `process.stdout` and `process.stderr` may be redirected by the parent thread.
|
292
|
+
* * The `require('worker_threads').isMainThread` property is set to `false`.
|
293
|
+
* * The `require('worker_threads').parentPort` message port is available.
|
294
|
+
* * `process.exit()` does not stop the whole program, just the single thread,
|
295
|
+
* and `process.abort()` is not available.
|
296
|
+
* * `process.chdir()` and `process` methods that set group or user ids
|
297
|
+
* are not available.
|
298
|
+
* * `process.env` is a copy of the parent thread's environment variables,
|
299
|
+
* unless otherwise specified. Changes to one copy are not visible in other
|
300
|
+
* threads, and are not visible to native add-ons (unless `worker.SHARE_ENV` is passed as the `env` option to the `Worker` constructor).
|
301
|
+
* * `process.title` cannot be modified.
|
302
|
+
* * Signals are not delivered through `process.on('...')`.
|
303
|
+
* * Execution may stop at any point as a result of `worker.terminate()` being invoked.
|
304
|
+
* * IPC channels from parent processes are not accessible.
|
305
|
+
* * The `trace_events` module is not supported.
|
306
|
+
* * Native add-ons can only be loaded from multiple threads if they fulfill `certain conditions`.
|
307
|
+
*
|
308
|
+
* Creating `Worker` instances inside of other `Worker`s is possible.
|
309
|
+
*
|
310
|
+
* Like [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and the `cluster module`, two-way communication can be
|
311
|
+
* achieved through inter-thread message passing. Internally, a `Worker` has a
|
312
|
+
* built-in pair of `MessagePort` s that are already associated with each other
|
313
|
+
* when the `Worker` is created. While the `MessagePort` object on the parent side
|
314
|
+
* is not directly exposed, its functionalities are exposed through `worker.postMessage()` and the `worker.on('message')` event
|
315
|
+
* on the `Worker` object for the parent thread.
|
316
|
+
*
|
317
|
+
* To create custom messaging channels (which is encouraged over using the default
|
318
|
+
* global channel because it facilitates separation of concerns), users can create
|
319
|
+
* a `MessageChannel` object on either thread and pass one of the`MessagePort`s on that `MessageChannel` to the other thread through a
|
320
|
+
* pre-existing channel, such as the global one.
|
321
|
+
*
|
322
|
+
* See `port.postMessage()` for more information on how messages are passed,
|
323
|
+
* and what kind of JavaScript values can be successfully transported through
|
324
|
+
* the thread barrier.
|
325
|
+
*
|
326
|
+
* ```js
|
327
|
+
* const assert = require('assert');
|
328
|
+
* const {
|
329
|
+
* Worker, MessageChannel, MessagePort, isMainThread, parentPort
|
330
|
+
* } = require('worker_threads');
|
331
|
+
* if (isMainThread) {
|
332
|
+
* const worker = new Worker(__filename);
|
333
|
+
* const subChannel = new MessageChannel();
|
334
|
+
* worker.postMessage({ hereIsYourPort: subChannel.port1 }, [subChannel.port1]);
|
335
|
+
* subChannel.port2.on('message', (value) => {
|
336
|
+
* console.log('received:', value);
|
337
|
+
* });
|
338
|
+
* } else {
|
339
|
+
* parentPort.once('message', (value) => {
|
340
|
+
* assert(value.hereIsYourPort instanceof MessagePort);
|
341
|
+
* value.hereIsYourPort.postMessage('the worker is sending this');
|
342
|
+
* value.hereIsYourPort.close();
|
343
|
+
* });
|
344
|
+
* }
|
345
|
+
* ```
|
346
|
+
* @since v10.5.0
|
347
|
+
*/
|
348
|
+
class Worker extends EventEmitter {
|
349
|
+
/**
|
350
|
+
* If `stdin: true` was passed to the `Worker` constructor, this is a
|
351
|
+
* writable stream. The data written to this stream will be made available in
|
352
|
+
* the worker thread as `process.stdin`.
|
353
|
+
* @since v10.5.0
|
354
|
+
*/
|
355
|
+
readonly stdin: Writable | null;
|
356
|
+
/**
|
357
|
+
* This is a readable stream which contains data written to `process.stdout` inside the worker thread. If `stdout: true` was not passed to the `Worker` constructor, then data is piped to the
|
358
|
+
* parent thread's `process.stdout` stream.
|
359
|
+
* @since v10.5.0
|
360
|
+
*/
|
361
|
+
readonly stdout: Readable;
|
362
|
+
/**
|
363
|
+
* This is a readable stream which contains data written to `process.stderr` inside the worker thread. If `stderr: true` was not passed to the `Worker` constructor, then data is piped to the
|
364
|
+
* parent thread's `process.stderr` stream.
|
365
|
+
* @since v10.5.0
|
366
|
+
*/
|
367
|
+
readonly stderr: Readable;
|
368
|
+
/**
|
369
|
+
* An integer identifier for the referenced thread. Inside the worker thread,
|
370
|
+
* it is available as `require('worker_threads').threadId`.
|
371
|
+
* This value is unique for each `Worker` instance inside a single process.
|
372
|
+
* @since v10.5.0
|
373
|
+
*/
|
374
|
+
readonly threadId: number;
|
375
|
+
/**
|
376
|
+
* Provides the set of JS engine resource constraints for this Worker thread.
|
377
|
+
* If the `resourceLimits` option was passed to the `Worker` constructor,
|
378
|
+
* this matches its values.
|
379
|
+
*
|
380
|
+
* If the worker has stopped, the return value is an empty object.
|
381
|
+
* @since v13.2.0, v12.16.0
|
382
|
+
*/
|
383
|
+
readonly resourceLimits?: ResourceLimits | undefined;
|
384
|
+
/**
|
385
|
+
* An object that can be used to query performance information from a worker
|
386
|
+
* instance. Similar to `perf_hooks.performance`.
|
387
|
+
* @since v15.1.0, v12.22.0
|
388
|
+
*/
|
389
|
+
readonly performance: WorkerPerformance;
|
390
|
+
/**
|
391
|
+
* @param filename The path to the Worker’s main script or module.
|
392
|
+
* Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
|
393
|
+
* or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
|
394
|
+
*/
|
395
|
+
constructor(filename: string | URL, options?: WorkerOptions);
|
396
|
+
/**
|
397
|
+
* Send a message to the worker that is received via `require('worker_threads').parentPort.on('message')`.
|
398
|
+
* See `port.postMessage()` for more details.
|
399
|
+
* @since v10.5.0
|
400
|
+
*/
|
401
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
402
|
+
/**
|
403
|
+
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does_not_ let the program exit if it's the only active handle left (the default
|
404
|
+
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
405
|
+
* no effect.
|
406
|
+
* @since v10.5.0
|
407
|
+
*/
|
408
|
+
ref(): void;
|
409
|
+
/**
|
410
|
+
* Calling `unref()` on a worker allows the thread to exit if this is the only
|
411
|
+
* active handle in the event system. If the worker is already `unref()`ed calling`unref()` again has no effect.
|
412
|
+
* @since v10.5.0
|
413
|
+
*/
|
414
|
+
unref(): void;
|
415
|
+
/**
|
416
|
+
* Stop all JavaScript execution in the worker thread as soon as possible.
|
417
|
+
* Returns a Promise for the exit code that is fulfilled when the `'exit' event` is emitted.
|
418
|
+
* @since v10.5.0
|
419
|
+
*/
|
420
|
+
terminate(): Promise<number>;
|
421
|
+
/**
|
422
|
+
* Returns a readable stream for a V8 snapshot of the current state of the Worker.
|
423
|
+
* See `v8.getHeapSnapshot()` for more details.
|
424
|
+
*
|
425
|
+
* If the Worker thread is no longer running, which may occur before the `'exit' event` is emitted, the returned `Promise` is rejected
|
426
|
+
* immediately with an `ERR_WORKER_NOT_RUNNING` error.
|
427
|
+
* @since v13.9.0, v12.17.0
|
428
|
+
* @return A promise for a Readable Stream containing a V8 heap snapshot
|
429
|
+
*/
|
430
|
+
getHeapSnapshot(): Promise<Readable>;
|
431
|
+
addListener(event: 'error', listener: (err: Error) => void): this;
|
432
|
+
addListener(event: 'exit', listener: (exitCode: number) => void): this;
|
433
|
+
addListener(event: 'message', listener: (value: any) => void): this;
|
434
|
+
addListener(event: 'messageerror', listener: (error: Error) => void): this;
|
435
|
+
addListener(event: 'online', listener: () => void): this;
|
436
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
437
|
+
emit(event: 'error', err: Error): boolean;
|
438
|
+
emit(event: 'exit', exitCode: number): boolean;
|
439
|
+
emit(event: 'message', value: any): boolean;
|
440
|
+
emit(event: 'messageerror', error: Error): boolean;
|
441
|
+
emit(event: 'online'): boolean;
|
442
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
443
|
+
on(event: 'error', listener: (err: Error) => void): this;
|
444
|
+
on(event: 'exit', listener: (exitCode: number) => void): this;
|
445
|
+
on(event: 'message', listener: (value: any) => void): this;
|
446
|
+
on(event: 'messageerror', listener: (error: Error) => void): this;
|
447
|
+
on(event: 'online', listener: () => void): this;
|
448
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
449
|
+
once(event: 'error', listener: (err: Error) => void): this;
|
450
|
+
once(event: 'exit', listener: (exitCode: number) => void): this;
|
451
|
+
once(event: 'message', listener: (value: any) => void): this;
|
452
|
+
once(event: 'messageerror', listener: (error: Error) => void): this;
|
453
|
+
once(event: 'online', listener: () => void): this;
|
454
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
455
|
+
prependListener(event: 'error', listener: (err: Error) => void): this;
|
456
|
+
prependListener(event: 'exit', listener: (exitCode: number) => void): this;
|
457
|
+
prependListener(event: 'message', listener: (value: any) => void): this;
|
458
|
+
prependListener(event: 'messageerror', listener: (error: Error) => void): this;
|
459
|
+
prependListener(event: 'online', listener: () => void): this;
|
460
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
461
|
+
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
462
|
+
prependOnceListener(event: 'exit', listener: (exitCode: number) => void): this;
|
463
|
+
prependOnceListener(event: 'message', listener: (value: any) => void): this;
|
464
|
+
prependOnceListener(event: 'messageerror', listener: (error: Error) => void): this;
|
465
|
+
prependOnceListener(event: 'online', listener: () => void): this;
|
466
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
467
|
+
removeListener(event: 'error', listener: (err: Error) => void): this;
|
468
|
+
removeListener(event: 'exit', listener: (exitCode: number) => void): this;
|
469
|
+
removeListener(event: 'message', listener: (value: any) => void): this;
|
470
|
+
removeListener(event: 'messageerror', listener: (error: Error) => void): this;
|
471
|
+
removeListener(event: 'online', listener: () => void): this;
|
472
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
473
|
+
off(event: 'error', listener: (err: Error) => void): this;
|
474
|
+
off(event: 'exit', listener: (exitCode: number) => void): this;
|
475
|
+
off(event: 'message', listener: (value: any) => void): this;
|
476
|
+
off(event: 'messageerror', listener: (error: Error) => void): this;
|
477
|
+
off(event: 'online', listener: () => void): this;
|
478
|
+
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
479
|
+
}
|
480
|
+
interface BroadcastChannel extends NodeJS.RefCounted {}
|
481
|
+
/**
|
482
|
+
* Instances of `BroadcastChannel` allow asynchronous one-to-many communication
|
483
|
+
* with all other `BroadcastChannel` instances bound to the same channel name.
|
484
|
+
*
|
485
|
+
* ```js
|
486
|
+
* 'use strict';
|
487
|
+
*
|
488
|
+
* const {
|
489
|
+
* isMainThread,
|
490
|
+
* BroadcastChannel,
|
491
|
+
* Worker
|
492
|
+
* } = require('worker_threads');
|
493
|
+
*
|
494
|
+
* const bc = new BroadcastChannel('hello');
|
495
|
+
*
|
496
|
+
* if (isMainThread) {
|
497
|
+
* let c = 0;
|
498
|
+
* bc.onmessage = (event) => {
|
499
|
+
* console.log(event.data);
|
500
|
+
* if (++c === 10) bc.close();
|
501
|
+
* };
|
502
|
+
* for (let n = 0; n < 10; n++)
|
503
|
+
* new Worker(__filename);
|
504
|
+
* } else {
|
505
|
+
* bc.postMessage('hello from every worker');
|
506
|
+
* bc.close();
|
507
|
+
* }
|
508
|
+
* ```
|
509
|
+
* @since v15.4.0
|
510
|
+
* @experimental
|
511
|
+
*/
|
512
|
+
class BroadcastChannel {
|
513
|
+
readonly name: string;
|
514
|
+
/**
|
515
|
+
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
516
|
+
* @since v15.4.0
|
517
|
+
*/
|
518
|
+
onmessage: (message: unknown) => void;
|
519
|
+
/**
|
520
|
+
* Invoked with a received message cannot be deserialized.
|
521
|
+
* @since v15.4.0
|
522
|
+
*/
|
523
|
+
onmessageerror: (message: unknown) => void;
|
524
|
+
constructor(name: string);
|
525
|
+
/**
|
526
|
+
* Closes the `BroadcastChannel` connection.
|
527
|
+
* @since v15.4.0
|
528
|
+
*/
|
529
|
+
close(): void;
|
530
|
+
/**
|
531
|
+
* @since v15.4.0
|
532
|
+
* @param message Any cloneable JavaScript value.
|
533
|
+
*/
|
534
|
+
postMessage(message: unknown): void;
|
535
|
+
}
|
536
|
+
/**
|
537
|
+
* Mark an object as not transferable. If `object` occurs in the transfer list of
|
538
|
+
* a `port.postMessage()` call, it is ignored.
|
539
|
+
*
|
540
|
+
* In particular, this makes sense for objects that can be cloned, rather than
|
541
|
+
* transferred, and which are used by other objects on the sending side.
|
542
|
+
* For example, Node.js marks the `ArrayBuffer`s it uses for its `Buffer pool` with this.
|
543
|
+
*
|
544
|
+
* This operation cannot be undone.
|
545
|
+
*
|
546
|
+
* ```js
|
547
|
+
* const { MessageChannel, markAsUntransferable } = require('worker_threads');
|
548
|
+
*
|
549
|
+
* const pooledBuffer = new ArrayBuffer(8);
|
550
|
+
* const typedArray1 = new Uint8Array(pooledBuffer);
|
551
|
+
* const typedArray2 = new Float64Array(pooledBuffer);
|
552
|
+
*
|
553
|
+
* markAsUntransferable(pooledBuffer);
|
554
|
+
*
|
555
|
+
* const { port1 } = new MessageChannel();
|
556
|
+
* port1.postMessage(typedArray1, [ typedArray1.buffer ]);
|
557
|
+
*
|
558
|
+
* // The following line prints the contents of typedArray1 -- it still owns
|
559
|
+
* // its memory and has been cloned, not transferred. Without
|
560
|
+
* // `markAsUntransferable()`, this would print an empty Uint8Array.
|
561
|
+
* // typedArray2 is intact as well.
|
562
|
+
* console.log(typedArray1);
|
563
|
+
* console.log(typedArray2);
|
564
|
+
* ```
|
565
|
+
*
|
566
|
+
* There is no equivalent to this API in browsers.
|
567
|
+
* @since v14.5.0, v12.19.0
|
568
|
+
*/
|
569
|
+
function markAsUntransferable(object: object): void;
|
570
|
+
/**
|
571
|
+
* Transfer a `MessagePort` to a different `vm` Context. The original `port`object is rendered unusable, and the returned `MessagePort` instance
|
572
|
+
* takes its place.
|
573
|
+
*
|
574
|
+
* The returned `MessagePort` is an object in the target context and
|
575
|
+
* inherits from its global `Object` class. Objects passed to the[`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
|
576
|
+
* target context
|
577
|
+
* and inherit from its global `Object` class.
|
578
|
+
*
|
579
|
+
* However, the created `MessagePort` no longer inherits from[`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
|
580
|
+
* [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
|
581
|
+
* events using it.
|
582
|
+
* @since v11.13.0
|
583
|
+
* @param port The message port to transfer.
|
584
|
+
* @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method.
|
585
|
+
*/
|
586
|
+
function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
|
587
|
+
/**
|
588
|
+
* Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
|
589
|
+
* that contains the message payload, corresponding to the oldest message in the`MessagePort`’s queue.
|
590
|
+
*
|
591
|
+
* ```js
|
592
|
+
* const { MessageChannel, receiveMessageOnPort } = require('worker_threads');
|
593
|
+
* const { port1, port2 } = new MessageChannel();
|
594
|
+
* port1.postMessage({ hello: 'world' });
|
595
|
+
*
|
596
|
+
* console.log(receiveMessageOnPort(port2));
|
597
|
+
* // Prints: { message: { hello: 'world' } }
|
598
|
+
* console.log(receiveMessageOnPort(port2));
|
599
|
+
* // Prints: undefined
|
600
|
+
* ```
|
601
|
+
*
|
602
|
+
* When this function is used, no `'message'` event is emitted and the`onmessage` listener is not invoked.
|
603
|
+
* @since v12.3.0
|
604
|
+
*/
|
605
|
+
function receiveMessageOnPort(port: MessagePort):
|
606
|
+
| {
|
607
|
+
message: any;
|
608
|
+
}
|
609
|
+
| undefined;
|
610
|
+
type Serializable = string | object | number | boolean | bigint;
|
611
|
+
/**
|
612
|
+
* Within a worker thread, `worker.getEnvironmentData()` returns a clone
|
613
|
+
* of data passed to the spawning thread's `worker.setEnvironmentData()`.
|
614
|
+
* Every new `Worker` receives its own copy of the environment data
|
615
|
+
* automatically.
|
616
|
+
*
|
617
|
+
* ```js
|
618
|
+
* const {
|
619
|
+
* Worker,
|
620
|
+
* isMainThread,
|
621
|
+
* setEnvironmentData,
|
622
|
+
* getEnvironmentData,
|
623
|
+
* } = require('worker_threads');
|
624
|
+
*
|
625
|
+
* if (isMainThread) {
|
626
|
+
* setEnvironmentData('Hello', 'World!');
|
627
|
+
* const worker = new Worker(__filename);
|
628
|
+
* } else {
|
629
|
+
* console.log(getEnvironmentData('Hello')); // Prints 'World!'.
|
630
|
+
* }
|
631
|
+
* ```
|
632
|
+
* @since v15.12.0
|
633
|
+
* @experimental
|
634
|
+
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
635
|
+
*/
|
636
|
+
function getEnvironmentData(key: Serializable): Serializable;
|
637
|
+
/**
|
638
|
+
* The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
|
639
|
+
* @since v15.12.0
|
640
|
+
* @experimental
|
641
|
+
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
642
|
+
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
643
|
+
* for the `key` will be deleted.
|
644
|
+
*/
|
645
|
+
function setEnvironmentData(key: Serializable, value: Serializable): void;
|
646
|
+
}
|
647
|
+
declare module 'node:worker_threads' {
|
648
|
+
export * from 'worker_threads';
|
649
|
+
}
|