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,13 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
=====================
|
3
|
+
|
4
|
+
Copyright (c) 2013-2019 bl contributors
|
5
|
+
----------------------------------
|
6
|
+
|
7
|
+
*bl contributors listed at <https://github.com/rvagg/bl#contributors>*
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,247 @@
|
|
1
|
+
# bl *(BufferList)*
|
2
|
+
|
3
|
+
[![Build Status](https://api.travis-ci.com/rvagg/bl.svg?branch=master)](https://travis-ci.com/rvagg/bl/)
|
4
|
+
|
5
|
+
**A Node.js Buffer list collector, reader and streamer thingy.**
|
6
|
+
|
7
|
+
[![NPM](https://nodei.co/npm/bl.svg)](https://nodei.co/npm/bl/)
|
8
|
+
|
9
|
+
**bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them!
|
10
|
+
|
11
|
+
The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently.
|
12
|
+
|
13
|
+
```js
|
14
|
+
const { BufferList } = require('bl')
|
15
|
+
|
16
|
+
const bl = new BufferList()
|
17
|
+
bl.append(Buffer.from('abcd'))
|
18
|
+
bl.append(Buffer.from('efg'))
|
19
|
+
bl.append('hi') // bl will also accept & convert Strings
|
20
|
+
bl.append(Buffer.from('j'))
|
21
|
+
bl.append(Buffer.from([ 0x3, 0x4 ]))
|
22
|
+
|
23
|
+
console.log(bl.length) // 12
|
24
|
+
|
25
|
+
console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij'
|
26
|
+
console.log(bl.slice(3, 10).toString('ascii')) // 'defghij'
|
27
|
+
console.log(bl.slice(3, 6).toString('ascii')) // 'def'
|
28
|
+
console.log(bl.slice(3, 8).toString('ascii')) // 'defgh'
|
29
|
+
console.log(bl.slice(5, 10).toString('ascii')) // 'fghij'
|
30
|
+
|
31
|
+
console.log(bl.indexOf('def')) // 3
|
32
|
+
console.log(bl.indexOf('asdf')) // -1
|
33
|
+
|
34
|
+
// or just use toString!
|
35
|
+
console.log(bl.toString()) // 'abcdefghij\u0003\u0004'
|
36
|
+
console.log(bl.toString('ascii', 3, 8)) // 'defgh'
|
37
|
+
console.log(bl.toString('ascii', 5, 10)) // 'fghij'
|
38
|
+
|
39
|
+
// other standard Buffer readables
|
40
|
+
console.log(bl.readUInt16BE(10)) // 0x0304
|
41
|
+
console.log(bl.readUInt16LE(10)) // 0x0403
|
42
|
+
```
|
43
|
+
|
44
|
+
Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**:
|
45
|
+
|
46
|
+
```js
|
47
|
+
const { BufferListStream } = require('bl')
|
48
|
+
const fs = require('fs')
|
49
|
+
|
50
|
+
fs.createReadStream('README.md')
|
51
|
+
.pipe(BufferListStream((err, data) => { // note 'new' isn't strictly required
|
52
|
+
// `data` is a complete Buffer object containing the full data
|
53
|
+
console.log(data.toString())
|
54
|
+
}))
|
55
|
+
```
|
56
|
+
|
57
|
+
Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream.
|
58
|
+
|
59
|
+
Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!):
|
60
|
+
|
61
|
+
```js
|
62
|
+
const hyperquest = require('hyperquest')
|
63
|
+
const { BufferListStream } = require('bl')
|
64
|
+
|
65
|
+
const url = 'https://raw.github.com/rvagg/bl/master/README.md'
|
66
|
+
|
67
|
+
hyperquest(url).pipe(BufferListStream((err, data) => {
|
68
|
+
console.log(data.toString())
|
69
|
+
}))
|
70
|
+
```
|
71
|
+
|
72
|
+
Or, use it as a readable stream to recompose a list of Buffers to an output source:
|
73
|
+
|
74
|
+
```js
|
75
|
+
const { BufferListStream } = require('bl')
|
76
|
+
const fs = require('fs')
|
77
|
+
|
78
|
+
var bl = new BufferListStream()
|
79
|
+
bl.append(Buffer.from('abcd'))
|
80
|
+
bl.append(Buffer.from('efg'))
|
81
|
+
bl.append(Buffer.from('hi'))
|
82
|
+
bl.append(Buffer.from('j'))
|
83
|
+
|
84
|
+
bl.pipe(fs.createWriteStream('gibberish.txt'))
|
85
|
+
```
|
86
|
+
|
87
|
+
## API
|
88
|
+
|
89
|
+
* <a href="#ctor"><code><b>new BufferList([ buf ])</b></code></a>
|
90
|
+
* <a href="#isBufferList"><code><b>BufferList.isBufferList(obj)</b></code></a>
|
91
|
+
* <a href="#length"><code>bl.<b>length</b></code></a>
|
92
|
+
* <a href="#append"><code>bl.<b>append(buffer)</b></code></a>
|
93
|
+
* <a href="#get"><code>bl.<b>get(index)</b></code></a>
|
94
|
+
* <a href="#indexOf"><code>bl.<b>indexOf(value[, byteOffset][, encoding])</b></code></a>
|
95
|
+
* <a href="#slice"><code>bl.<b>slice([ start[, end ] ])</b></code></a>
|
96
|
+
* <a href="#shallowSlice"><code>bl.<b>shallowSlice([ start[, end ] ])</b></code></a>
|
97
|
+
* <a href="#copy"><code>bl.<b>copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])</b></code></a>
|
98
|
+
* <a href="#duplicate"><code>bl.<b>duplicate()</b></code></a>
|
99
|
+
* <a href="#consume"><code>bl.<b>consume(bytes)</b></code></a>
|
100
|
+
* <a href="#toString"><code>bl.<b>toString([encoding, [ start, [ end ]]])</b></code></a>
|
101
|
+
* <a href="#readXX"><code>bl.<b>readDoubleBE()</b></code>, <code>bl.<b>readDoubleLE()</b></code>, <code>bl.<b>readFloatBE()</b></code>, <code>bl.<b>readFloatLE()</b></code>, <code>bl.<b>readInt32BE()</b></code>, <code>bl.<b>readInt32LE()</b></code>, <code>bl.<b>readUInt32BE()</b></code>, <code>bl.<b>readUInt32LE()</b></code>, <code>bl.<b>readInt16BE()</b></code>, <code>bl.<b>readInt16LE()</b></code>, <code>bl.<b>readUInt16BE()</b></code>, <code>bl.<b>readUInt16LE()</b></code>, <code>bl.<b>readInt8()</b></code>, <code>bl.<b>readUInt8()</b></code></a>
|
102
|
+
* <a href="#ctorStream"><code><b>new BufferListStream([ callback ])</b></code></a>
|
103
|
+
|
104
|
+
--------------------------------------------------------
|
105
|
+
<a name="ctor"></a>
|
106
|
+
### new BufferList([ Buffer | Buffer array | BufferList | BufferList array | String ])
|
107
|
+
No arguments are _required_ for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` objects.
|
108
|
+
|
109
|
+
`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with:
|
110
|
+
|
111
|
+
```js
|
112
|
+
const { BufferList } = require('bl')
|
113
|
+
const bl = BufferList()
|
114
|
+
|
115
|
+
// equivalent to:
|
116
|
+
|
117
|
+
const { BufferList } = require('bl')
|
118
|
+
const bl = new BufferList()
|
119
|
+
```
|
120
|
+
|
121
|
+
--------------------------------------------------------
|
122
|
+
<a name="isBufferList"></a>
|
123
|
+
### BufferList.isBufferList(obj)
|
124
|
+
Determines if the passed object is a `BufferList`. It will return `true` if the passed object is an instance of `BufferList` **or** `BufferListStream` and `false` otherwise.
|
125
|
+
|
126
|
+
N.B. this won't return `true` for `BufferList` or `BufferListStream` instances created by versions of this library before this static method was added.
|
127
|
+
|
128
|
+
--------------------------------------------------------
|
129
|
+
<a name="length"></a>
|
130
|
+
### bl.length
|
131
|
+
Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list.
|
132
|
+
|
133
|
+
--------------------------------------------------------
|
134
|
+
<a name="append"></a>
|
135
|
+
### bl.append(Buffer | Buffer array | BufferList | BufferList array | String)
|
136
|
+
`append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained.
|
137
|
+
|
138
|
+
--------------------------------------------------------
|
139
|
+
<a name="get"></a>
|
140
|
+
### bl.get(index)
|
141
|
+
`get()` will return the byte at the specified index.
|
142
|
+
|
143
|
+
--------------------------------------------------------
|
144
|
+
<a name="indexOf"></a>
|
145
|
+
### bl.indexOf(value[, byteOffset][, encoding])
|
146
|
+
`get()` will return the byte at the specified index.
|
147
|
+
`indexOf()` method returns the first index at which a given element can be found in the BufferList, or -1 if it is not present.
|
148
|
+
|
149
|
+
--------------------------------------------------------
|
150
|
+
<a name="slice"></a>
|
151
|
+
### bl.slice([ start, [ end ] ])
|
152
|
+
`slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively.
|
153
|
+
|
154
|
+
If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer.
|
155
|
+
|
156
|
+
--------------------------------------------------------
|
157
|
+
<a name="shallowSlice"></a>
|
158
|
+
### bl.shallowSlice([ start, [ end ] ])
|
159
|
+
`shallowSlice()` returns a new `BufferList` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively.
|
160
|
+
|
161
|
+
No copies will be performed. All buffers in the result share memory with the original list.
|
162
|
+
|
163
|
+
--------------------------------------------------------
|
164
|
+
<a name="copy"></a>
|
165
|
+
### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])
|
166
|
+
`copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively.
|
167
|
+
|
168
|
+
--------------------------------------------------------
|
169
|
+
<a name="duplicate"></a>
|
170
|
+
### bl.duplicate()
|
171
|
+
`duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example:
|
172
|
+
|
173
|
+
```js
|
174
|
+
var bl = new BufferListStream()
|
175
|
+
|
176
|
+
bl.append('hello')
|
177
|
+
bl.append(' world')
|
178
|
+
bl.append('\n')
|
179
|
+
|
180
|
+
bl.duplicate().pipe(process.stdout, { end: false })
|
181
|
+
|
182
|
+
console.log(bl.toString())
|
183
|
+
```
|
184
|
+
|
185
|
+
--------------------------------------------------------
|
186
|
+
<a name="consume"></a>
|
187
|
+
### bl.consume(bytes)
|
188
|
+
`consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers—initial offsets will be calculated accordingly in order to give you a consistent view of the data.
|
189
|
+
|
190
|
+
--------------------------------------------------------
|
191
|
+
<a name="toString"></a>
|
192
|
+
### bl.toString([encoding, [ start, [ end ]]])
|
193
|
+
`toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information.
|
194
|
+
|
195
|
+
--------------------------------------------------------
|
196
|
+
<a name="readXX"></a>
|
197
|
+
### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8()
|
198
|
+
|
199
|
+
All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently.
|
200
|
+
|
201
|
+
See the <b><code>[Buffer](http://nodejs.org/docs/latest/api/buffer.html)</code></b> documentation for how these work.
|
202
|
+
|
203
|
+
--------------------------------------------------------
|
204
|
+
<a name="ctorStream"></a>
|
205
|
+
### new BufferListStream([ callback | Buffer | Buffer array | BufferList | BufferList array | String ])
|
206
|
+
**BufferListStream** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **BufferListStream** instance.
|
207
|
+
|
208
|
+
The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream.
|
209
|
+
|
210
|
+
Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object.
|
211
|
+
|
212
|
+
`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with:
|
213
|
+
|
214
|
+
```js
|
215
|
+
const { BufferListStream } = require('bl')
|
216
|
+
const bl = BufferListStream()
|
217
|
+
|
218
|
+
// equivalent to:
|
219
|
+
|
220
|
+
const { BufferListStream } = require('bl')
|
221
|
+
const bl = new BufferListStream()
|
222
|
+
```
|
223
|
+
|
224
|
+
N.B. For backwards compatibility reasons, `BufferListStream` is the **default** export when you `require('bl')`:
|
225
|
+
|
226
|
+
```js
|
227
|
+
const { BufferListStream } = require('bl')
|
228
|
+
// equivalent to:
|
229
|
+
const BufferListStream = require('bl')
|
230
|
+
```
|
231
|
+
|
232
|
+
--------------------------------------------------------
|
233
|
+
|
234
|
+
## Contributors
|
235
|
+
|
236
|
+
**bl** is brought to you by the following hackers:
|
237
|
+
|
238
|
+
* [Rod Vagg](https://github.com/rvagg)
|
239
|
+
* [Matteo Collina](https://github.com/mcollina)
|
240
|
+
* [Jarett Cruger](https://github.com/jcrugzz)
|
241
|
+
|
242
|
+
<a name="license"></a>
|
243
|
+
## License & copyright
|
244
|
+
|
245
|
+
Copyright (c) 2013-2019 bl contributors (listed above).
|
246
|
+
|
247
|
+
bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
|
@@ -0,0 +1,84 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
const DuplexStream = require('readable-stream').Duplex
|
4
|
+
const inherits = require('inherits')
|
5
|
+
const BufferList = require('./BufferList')
|
6
|
+
|
7
|
+
function BufferListStream (callback) {
|
8
|
+
if (!(this instanceof BufferListStream)) {
|
9
|
+
return new BufferListStream(callback)
|
10
|
+
}
|
11
|
+
|
12
|
+
if (typeof callback === 'function') {
|
13
|
+
this._callback = callback
|
14
|
+
|
15
|
+
const piper = function piper (err) {
|
16
|
+
if (this._callback) {
|
17
|
+
this._callback(err)
|
18
|
+
this._callback = null
|
19
|
+
}
|
20
|
+
}.bind(this)
|
21
|
+
|
22
|
+
this.on('pipe', function onPipe (src) {
|
23
|
+
src.on('error', piper)
|
24
|
+
})
|
25
|
+
this.on('unpipe', function onUnpipe (src) {
|
26
|
+
src.removeListener('error', piper)
|
27
|
+
})
|
28
|
+
|
29
|
+
callback = null
|
30
|
+
}
|
31
|
+
|
32
|
+
BufferList._init.call(this, callback)
|
33
|
+
DuplexStream.call(this)
|
34
|
+
}
|
35
|
+
|
36
|
+
inherits(BufferListStream, DuplexStream)
|
37
|
+
Object.assign(BufferListStream.prototype, BufferList.prototype)
|
38
|
+
|
39
|
+
BufferListStream.prototype._new = function _new (callback) {
|
40
|
+
return new BufferListStream(callback)
|
41
|
+
}
|
42
|
+
|
43
|
+
BufferListStream.prototype._write = function _write (buf, encoding, callback) {
|
44
|
+
this._appendBuffer(buf)
|
45
|
+
|
46
|
+
if (typeof callback === 'function') {
|
47
|
+
callback()
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
BufferListStream.prototype._read = function _read (size) {
|
52
|
+
if (!this.length) {
|
53
|
+
return this.push(null)
|
54
|
+
}
|
55
|
+
|
56
|
+
size = Math.min(size, this.length)
|
57
|
+
this.push(this.slice(0, size))
|
58
|
+
this.consume(size)
|
59
|
+
}
|
60
|
+
|
61
|
+
BufferListStream.prototype.end = function end (chunk) {
|
62
|
+
DuplexStream.prototype.end.call(this, chunk)
|
63
|
+
|
64
|
+
if (this._callback) {
|
65
|
+
this._callback(null, this.slice())
|
66
|
+
this._callback = null
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
BufferListStream.prototype._destroy = function _destroy (err, cb) {
|
71
|
+
this._bufs.length = 0
|
72
|
+
this.length = 0
|
73
|
+
cb(err)
|
74
|
+
}
|
75
|
+
|
76
|
+
BufferListStream.prototype._isBufferList = function _isBufferList (b) {
|
77
|
+
return b instanceof BufferListStream || b instanceof BufferList || BufferListStream.isBufferList(b)
|
78
|
+
}
|
79
|
+
|
80
|
+
BufferListStream.isBufferList = BufferList.isBufferList
|
81
|
+
|
82
|
+
module.exports = BufferListStream
|
83
|
+
module.exports.BufferListStream = BufferListStream
|
84
|
+
module.exports.BufferList = BufferList
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"name": "bl",
|
3
|
+
"version": "4.1.0",
|
4
|
+
"description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!",
|
5
|
+
"license": "MIT",
|
6
|
+
"main": "bl.js",
|
7
|
+
"scripts": {
|
8
|
+
"lint": "standard *.js test/*.js",
|
9
|
+
"test": "npm run lint && node test/test.js | faucet"
|
10
|
+
},
|
11
|
+
"repository": {
|
12
|
+
"type": "git",
|
13
|
+
"url": "https://github.com/rvagg/bl.git"
|
14
|
+
},
|
15
|
+
"homepage": "https://github.com/rvagg/bl",
|
16
|
+
"authors": [
|
17
|
+
"Rod Vagg <rod@vagg.org> (https://github.com/rvagg)",
|
18
|
+
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
|
19
|
+
"Jarett Cruger <jcrugzz@gmail.com> (https://github.com/jcrugzz)"
|
20
|
+
],
|
21
|
+
"keywords": [
|
22
|
+
"buffer",
|
23
|
+
"buffers",
|
24
|
+
"stream",
|
25
|
+
"awesomesauce"
|
26
|
+
],
|
27
|
+
"dependencies": {
|
28
|
+
"buffer": "^5.5.0",
|
29
|
+
"inherits": "^2.0.4",
|
30
|
+
"readable-stream": "^3.4.0"
|
31
|
+
},
|
32
|
+
"devDependencies": {
|
33
|
+
"faucet": "~0.0.1",
|
34
|
+
"standard": "^14.3.0",
|
35
|
+
"tape": "^4.11.0"
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
const tape = require('tape')
|
4
|
+
const { BufferList, BufferListStream } = require('../')
|
5
|
+
const { Buffer } = require('buffer')
|
6
|
+
|
7
|
+
tape('convert from BufferList to BufferListStream', (t) => {
|
8
|
+
const data = Buffer.from(`TEST-${Date.now()}`)
|
9
|
+
const bl = new BufferList(data)
|
10
|
+
const bls = new BufferListStream(bl)
|
11
|
+
t.ok(bl.slice().equals(bls.slice()))
|
12
|
+
t.end()
|
13
|
+
})
|
14
|
+
|
15
|
+
tape('convert from BufferListStream to BufferList', (t) => {
|
16
|
+
const data = Buffer.from(`TEST-${Date.now()}`)
|
17
|
+
const bls = new BufferListStream(data)
|
18
|
+
const bl = new BufferList(bls)
|
19
|
+
t.ok(bl.slice().equals(bls.slice()))
|
20
|
+
t.end()
|
21
|
+
})
|
@@ -0,0 +1,492 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
const tape = require('tape')
|
4
|
+
const BufferList = require('../')
|
5
|
+
const { Buffer } = require('buffer')
|
6
|
+
|
7
|
+
tape('indexOf single byte needle', (t) => {
|
8
|
+
const bl = new BufferList(['abcdefg', 'abcdefg', '12345'])
|
9
|
+
|
10
|
+
t.equal(bl.indexOf('e'), 4)
|
11
|
+
t.equal(bl.indexOf('e', 5), 11)
|
12
|
+
t.equal(bl.indexOf('e', 12), -1)
|
13
|
+
t.equal(bl.indexOf('5'), 18)
|
14
|
+
|
15
|
+
t.end()
|
16
|
+
})
|
17
|
+
|
18
|
+
tape('indexOf multiple byte needle', (t) => {
|
19
|
+
const bl = new BufferList(['abcdefg', 'abcdefg'])
|
20
|
+
|
21
|
+
t.equal(bl.indexOf('ef'), 4)
|
22
|
+
t.equal(bl.indexOf('ef', 5), 11)
|
23
|
+
|
24
|
+
t.end()
|
25
|
+
})
|
26
|
+
|
27
|
+
tape('indexOf multiple byte needles across buffer boundaries', (t) => {
|
28
|
+
const bl = new BufferList(['abcdefg', 'abcdefg'])
|
29
|
+
|
30
|
+
t.equal(bl.indexOf('fgabc'), 5)
|
31
|
+
|
32
|
+
t.end()
|
33
|
+
})
|
34
|
+
|
35
|
+
tape('indexOf takes a Uint8Array search', (t) => {
|
36
|
+
const bl = new BufferList(['abcdefg', 'abcdefg'])
|
37
|
+
const search = new Uint8Array([102, 103, 97, 98, 99]) // fgabc
|
38
|
+
|
39
|
+
t.equal(bl.indexOf(search), 5)
|
40
|
+
|
41
|
+
t.end()
|
42
|
+
})
|
43
|
+
|
44
|
+
tape('indexOf takes a buffer list search', (t) => {
|
45
|
+
const bl = new BufferList(['abcdefg', 'abcdefg'])
|
46
|
+
const search = new BufferList('fgabc')
|
47
|
+
|
48
|
+
t.equal(bl.indexOf(search), 5)
|
49
|
+
|
50
|
+
t.end()
|
51
|
+
})
|
52
|
+
|
53
|
+
tape('indexOf a zero byte needle', (t) => {
|
54
|
+
const b = new BufferList('abcdef')
|
55
|
+
const bufEmpty = Buffer.from('')
|
56
|
+
|
57
|
+
t.equal(b.indexOf(''), 0)
|
58
|
+
t.equal(b.indexOf('', 1), 1)
|
59
|
+
t.equal(b.indexOf('', b.length + 1), b.length)
|
60
|
+
t.equal(b.indexOf('', Infinity), b.length)
|
61
|
+
t.equal(b.indexOf(bufEmpty), 0)
|
62
|
+
t.equal(b.indexOf(bufEmpty, 1), 1)
|
63
|
+
t.equal(b.indexOf(bufEmpty, b.length + 1), b.length)
|
64
|
+
t.equal(b.indexOf(bufEmpty, Infinity), b.length)
|
65
|
+
|
66
|
+
t.end()
|
67
|
+
})
|
68
|
+
|
69
|
+
tape('indexOf buffers smaller and larger than the needle', (t) => {
|
70
|
+
const bl = new BufferList(['abcdefg', 'a', 'bcdefg', 'a', 'bcfgab'])
|
71
|
+
|
72
|
+
t.equal(bl.indexOf('fgabc'), 5)
|
73
|
+
t.equal(bl.indexOf('fgabc', 6), 12)
|
74
|
+
t.equal(bl.indexOf('fgabc', 13), -1)
|
75
|
+
|
76
|
+
t.end()
|
77
|
+
})
|
78
|
+
|
79
|
+
// only present in node 6+
|
80
|
+
;(process.version.substr(1).split('.')[0] >= 6) && tape('indexOf latin1 and binary encoding', (t) => {
|
81
|
+
const b = new BufferList('abcdef')
|
82
|
+
|
83
|
+
// test latin1 encoding
|
84
|
+
t.equal(
|
85
|
+
new BufferList(Buffer.from(b.toString('latin1'), 'latin1'))
|
86
|
+
.indexOf('d', 0, 'latin1'),
|
87
|
+
3
|
88
|
+
)
|
89
|
+
t.equal(
|
90
|
+
new BufferList(Buffer.from(b.toString('latin1'), 'latin1'))
|
91
|
+
.indexOf(Buffer.from('d', 'latin1'), 0, 'latin1'),
|
92
|
+
3
|
93
|
+
)
|
94
|
+
t.equal(
|
95
|
+
new BufferList(Buffer.from('aa\u00e8aa', 'latin1'))
|
96
|
+
.indexOf('\u00e8', 'latin1'),
|
97
|
+
2
|
98
|
+
)
|
99
|
+
t.equal(
|
100
|
+
new BufferList(Buffer.from('\u00e8', 'latin1'))
|
101
|
+
.indexOf('\u00e8', 'latin1'),
|
102
|
+
0
|
103
|
+
)
|
104
|
+
t.equal(
|
105
|
+
new BufferList(Buffer.from('\u00e8', 'latin1'))
|
106
|
+
.indexOf(Buffer.from('\u00e8', 'latin1'), 'latin1'),
|
107
|
+
0
|
108
|
+
)
|
109
|
+
|
110
|
+
// test binary encoding
|
111
|
+
t.equal(
|
112
|
+
new BufferList(Buffer.from(b.toString('binary'), 'binary'))
|
113
|
+
.indexOf('d', 0, 'binary'),
|
114
|
+
3
|
115
|
+
)
|
116
|
+
t.equal(
|
117
|
+
new BufferList(Buffer.from(b.toString('binary'), 'binary'))
|
118
|
+
.indexOf(Buffer.from('d', 'binary'), 0, 'binary'),
|
119
|
+
3
|
120
|
+
)
|
121
|
+
t.equal(
|
122
|
+
new BufferList(Buffer.from('aa\u00e8aa', 'binary'))
|
123
|
+
.indexOf('\u00e8', 'binary'),
|
124
|
+
2
|
125
|
+
)
|
126
|
+
t.equal(
|
127
|
+
new BufferList(Buffer.from('\u00e8', 'binary'))
|
128
|
+
.indexOf('\u00e8', 'binary'),
|
129
|
+
0
|
130
|
+
)
|
131
|
+
t.equal(
|
132
|
+
new BufferList(Buffer.from('\u00e8', 'binary'))
|
133
|
+
.indexOf(Buffer.from('\u00e8', 'binary'), 'binary'),
|
134
|
+
0
|
135
|
+
)
|
136
|
+
|
137
|
+
t.end()
|
138
|
+
})
|
139
|
+
|
140
|
+
tape('indexOf the entire nodejs10 buffer test suite', (t) => {
|
141
|
+
const b = new BufferList('abcdef')
|
142
|
+
const bufA = Buffer.from('a')
|
143
|
+
const bufBc = Buffer.from('bc')
|
144
|
+
const bufF = Buffer.from('f')
|
145
|
+
const bufZ = Buffer.from('z')
|
146
|
+
|
147
|
+
const stringComparison = 'abcdef'
|
148
|
+
|
149
|
+
t.equal(b.indexOf('a'), 0)
|
150
|
+
t.equal(b.indexOf('a', 1), -1)
|
151
|
+
t.equal(b.indexOf('a', -1), -1)
|
152
|
+
t.equal(b.indexOf('a', -4), -1)
|
153
|
+
t.equal(b.indexOf('a', -b.length), 0)
|
154
|
+
t.equal(b.indexOf('a', NaN), 0)
|
155
|
+
t.equal(b.indexOf('a', -Infinity), 0)
|
156
|
+
t.equal(b.indexOf('a', Infinity), -1)
|
157
|
+
t.equal(b.indexOf('bc'), 1)
|
158
|
+
t.equal(b.indexOf('bc', 2), -1)
|
159
|
+
t.equal(b.indexOf('bc', -1), -1)
|
160
|
+
t.equal(b.indexOf('bc', -3), -1)
|
161
|
+
t.equal(b.indexOf('bc', -5), 1)
|
162
|
+
t.equal(b.indexOf('bc', NaN), 1)
|
163
|
+
t.equal(b.indexOf('bc', -Infinity), 1)
|
164
|
+
t.equal(b.indexOf('bc', Infinity), -1)
|
165
|
+
t.equal(b.indexOf('f'), b.length - 1)
|
166
|
+
t.equal(b.indexOf('z'), -1)
|
167
|
+
|
168
|
+
// empty search tests
|
169
|
+
t.equal(b.indexOf(bufA), 0)
|
170
|
+
t.equal(b.indexOf(bufA, 1), -1)
|
171
|
+
t.equal(b.indexOf(bufA, -1), -1)
|
172
|
+
t.equal(b.indexOf(bufA, -4), -1)
|
173
|
+
t.equal(b.indexOf(bufA, -b.length), 0)
|
174
|
+
t.equal(b.indexOf(bufA, NaN), 0)
|
175
|
+
t.equal(b.indexOf(bufA, -Infinity), 0)
|
176
|
+
t.equal(b.indexOf(bufA, Infinity), -1)
|
177
|
+
t.equal(b.indexOf(bufBc), 1)
|
178
|
+
t.equal(b.indexOf(bufBc, 2), -1)
|
179
|
+
t.equal(b.indexOf(bufBc, -1), -1)
|
180
|
+
t.equal(b.indexOf(bufBc, -3), -1)
|
181
|
+
t.equal(b.indexOf(bufBc, -5), 1)
|
182
|
+
t.equal(b.indexOf(bufBc, NaN), 1)
|
183
|
+
t.equal(b.indexOf(bufBc, -Infinity), 1)
|
184
|
+
t.equal(b.indexOf(bufBc, Infinity), -1)
|
185
|
+
t.equal(b.indexOf(bufF), b.length - 1)
|
186
|
+
t.equal(b.indexOf(bufZ), -1)
|
187
|
+
t.equal(b.indexOf(0x61), 0)
|
188
|
+
t.equal(b.indexOf(0x61, 1), -1)
|
189
|
+
t.equal(b.indexOf(0x61, -1), -1)
|
190
|
+
t.equal(b.indexOf(0x61, -4), -1)
|
191
|
+
t.equal(b.indexOf(0x61, -b.length), 0)
|
192
|
+
t.equal(b.indexOf(0x61, NaN), 0)
|
193
|
+
t.equal(b.indexOf(0x61, -Infinity), 0)
|
194
|
+
t.equal(b.indexOf(0x61, Infinity), -1)
|
195
|
+
t.equal(b.indexOf(0x0), -1)
|
196
|
+
|
197
|
+
// test offsets
|
198
|
+
t.equal(b.indexOf('d', 2), 3)
|
199
|
+
t.equal(b.indexOf('f', 5), 5)
|
200
|
+
t.equal(b.indexOf('f', -1), 5)
|
201
|
+
t.equal(b.indexOf('f', 6), -1)
|
202
|
+
|
203
|
+
t.equal(b.indexOf(Buffer.from('d'), 2), 3)
|
204
|
+
t.equal(b.indexOf(Buffer.from('f'), 5), 5)
|
205
|
+
t.equal(b.indexOf(Buffer.from('f'), -1), 5)
|
206
|
+
t.equal(b.indexOf(Buffer.from('f'), 6), -1)
|
207
|
+
|
208
|
+
t.equal(Buffer.from('ff').indexOf(Buffer.from('f'), 1, 'ucs2'), -1)
|
209
|
+
|
210
|
+
// test invalid and uppercase encoding
|
211
|
+
t.equal(b.indexOf('b', 'utf8'), 1)
|
212
|
+
t.equal(b.indexOf('b', 'UTF8'), 1)
|
213
|
+
t.equal(b.indexOf('62', 'HEX'), 1)
|
214
|
+
t.throws(() => b.indexOf('bad', 'enc'), TypeError)
|
215
|
+
|
216
|
+
// test hex encoding
|
217
|
+
t.equal(
|
218
|
+
Buffer.from(b.toString('hex'), 'hex')
|
219
|
+
.indexOf('64', 0, 'hex'),
|
220
|
+
3
|
221
|
+
)
|
222
|
+
t.equal(
|
223
|
+
Buffer.from(b.toString('hex'), 'hex')
|
224
|
+
.indexOf(Buffer.from('64', 'hex'), 0, 'hex'),
|
225
|
+
3
|
226
|
+
)
|
227
|
+
|
228
|
+
// test base64 encoding
|
229
|
+
t.equal(
|
230
|
+
Buffer.from(b.toString('base64'), 'base64')
|
231
|
+
.indexOf('ZA==', 0, 'base64'),
|
232
|
+
3
|
233
|
+
)
|
234
|
+
t.equal(
|
235
|
+
Buffer.from(b.toString('base64'), 'base64')
|
236
|
+
.indexOf(Buffer.from('ZA==', 'base64'), 0, 'base64'),
|
237
|
+
3
|
238
|
+
)
|
239
|
+
|
240
|
+
// test ascii encoding
|
241
|
+
t.equal(
|
242
|
+
Buffer.from(b.toString('ascii'), 'ascii')
|
243
|
+
.indexOf('d', 0, 'ascii'),
|
244
|
+
3
|
245
|
+
)
|
246
|
+
t.equal(
|
247
|
+
Buffer.from(b.toString('ascii'), 'ascii')
|
248
|
+
.indexOf(Buffer.from('d', 'ascii'), 0, 'ascii'),
|
249
|
+
3
|
250
|
+
)
|
251
|
+
|
252
|
+
// test optional offset with passed encoding
|
253
|
+
t.equal(Buffer.from('aaaa0').indexOf('30', 'hex'), 4)
|
254
|
+
t.equal(Buffer.from('aaaa00a').indexOf('3030', 'hex'), 4)
|
255
|
+
|
256
|
+
{
|
257
|
+
// test usc2 encoding
|
258
|
+
const twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2')
|
259
|
+
|
260
|
+
t.equal(8, twoByteString.indexOf('\u0395', 4, 'ucs2'))
|
261
|
+
t.equal(6, twoByteString.indexOf('\u03a3', -4, 'ucs2'))
|
262
|
+
t.equal(4, twoByteString.indexOf('\u03a3', -6, 'ucs2'))
|
263
|
+
t.equal(4, twoByteString.indexOf(
|
264
|
+
Buffer.from('\u03a3', 'ucs2'), -6, 'ucs2'))
|
265
|
+
t.equal(-1, twoByteString.indexOf('\u03a3', -2, 'ucs2'))
|
266
|
+
}
|
267
|
+
|
268
|
+
const mixedByteStringUcs2 =
|
269
|
+
Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395', 'ucs2')
|
270
|
+
|
271
|
+
t.equal(6, mixedByteStringUcs2.indexOf('bc', 0, 'ucs2'))
|
272
|
+
t.equal(10, mixedByteStringUcs2.indexOf('\u03a3', 0, 'ucs2'))
|
273
|
+
t.equal(-1, mixedByteStringUcs2.indexOf('\u0396', 0, 'ucs2'))
|
274
|
+
|
275
|
+
t.equal(
|
276
|
+
6, mixedByteStringUcs2.indexOf(Buffer.from('bc', 'ucs2'), 0, 'ucs2'))
|
277
|
+
t.equal(
|
278
|
+
10, mixedByteStringUcs2.indexOf(Buffer.from('\u03a3', 'ucs2'), 0, 'ucs2'))
|
279
|
+
t.equal(
|
280
|
+
-1, mixedByteStringUcs2.indexOf(Buffer.from('\u0396', 'ucs2'), 0, 'ucs2'))
|
281
|
+
|
282
|
+
{
|
283
|
+
const twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2')
|
284
|
+
|
285
|
+
// Test single char pattern
|
286
|
+
t.equal(0, twoByteString.indexOf('\u039a', 0, 'ucs2'))
|
287
|
+
let index = twoByteString.indexOf('\u0391', 0, 'ucs2')
|
288
|
+
t.equal(2, index, `Alpha - at index ${index}`)
|
289
|
+
index = twoByteString.indexOf('\u03a3', 0, 'ucs2')
|
290
|
+
t.equal(4, index, `First Sigma - at index ${index}`)
|
291
|
+
index = twoByteString.indexOf('\u03a3', 6, 'ucs2')
|
292
|
+
t.equal(6, index, `Second Sigma - at index ${index}`)
|
293
|
+
index = twoByteString.indexOf('\u0395', 0, 'ucs2')
|
294
|
+
t.equal(8, index, `Epsilon - at index ${index}`)
|
295
|
+
index = twoByteString.indexOf('\u0392', 0, 'ucs2')
|
296
|
+
t.equal(-1, index, `Not beta - at index ${index}`)
|
297
|
+
|
298
|
+
// Test multi-char pattern
|
299
|
+
index = twoByteString.indexOf('\u039a\u0391', 0, 'ucs2')
|
300
|
+
t.equal(0, index, `Lambda Alpha - at index ${index}`)
|
301
|
+
index = twoByteString.indexOf('\u0391\u03a3', 0, 'ucs2')
|
302
|
+
t.equal(2, index, `Alpha Sigma - at index ${index}`)
|
303
|
+
index = twoByteString.indexOf('\u03a3\u03a3', 0, 'ucs2')
|
304
|
+
t.equal(4, index, `Sigma Sigma - at index ${index}`)
|
305
|
+
index = twoByteString.indexOf('\u03a3\u0395', 0, 'ucs2')
|
306
|
+
t.equal(6, index, `Sigma Epsilon - at index ${index}`)
|
307
|
+
}
|
308
|
+
|
309
|
+
const mixedByteStringUtf8 = Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395')
|
310
|
+
|
311
|
+
t.equal(5, mixedByteStringUtf8.indexOf('bc'))
|
312
|
+
t.equal(5, mixedByteStringUtf8.indexOf('bc', 5))
|
313
|
+
t.equal(5, mixedByteStringUtf8.indexOf('bc', -8))
|
314
|
+
t.equal(7, mixedByteStringUtf8.indexOf('\u03a3'))
|
315
|
+
t.equal(-1, mixedByteStringUtf8.indexOf('\u0396'))
|
316
|
+
|
317
|
+
// Test complex string indexOf algorithms. Only trigger for long strings.
|
318
|
+
// Long string that isn't a simple repeat of a shorter string.
|
319
|
+
let longString = 'A'
|
320
|
+
for (let i = 66; i < 76; i++) { // from 'B' to 'K'
|
321
|
+
longString = longString + String.fromCharCode(i) + longString
|
322
|
+
}
|
323
|
+
|
324
|
+
const longBufferString = Buffer.from(longString)
|
325
|
+
|
326
|
+
// pattern of 15 chars, repeated every 16 chars in long
|
327
|
+
let pattern = 'ABACABADABACABA'
|
328
|
+
for (let i = 0; i < longBufferString.length - pattern.length; i += 7) {
|
329
|
+
const index = longBufferString.indexOf(pattern, i)
|
330
|
+
t.equal((i + 15) & ~0xf, index,
|
331
|
+
`Long ABACABA...-string at index ${i}`)
|
332
|
+
}
|
333
|
+
|
334
|
+
let index = longBufferString.indexOf('AJABACA')
|
335
|
+
t.equal(510, index, `Long AJABACA, First J - at index ${index}`)
|
336
|
+
index = longBufferString.indexOf('AJABACA', 511)
|
337
|
+
t.equal(1534, index, `Long AJABACA, Second J - at index ${index}`)
|
338
|
+
|
339
|
+
pattern = 'JABACABADABACABA'
|
340
|
+
index = longBufferString.indexOf(pattern)
|
341
|
+
t.equal(511, index, `Long JABACABA..., First J - at index ${index}`)
|
342
|
+
index = longBufferString.indexOf(pattern, 512)
|
343
|
+
t.equal(
|
344
|
+
1535, index, `Long JABACABA..., Second J - at index ${index}`)
|
345
|
+
|
346
|
+
// Search for a non-ASCII string in a pure ASCII string.
|
347
|
+
const asciiString = Buffer.from(
|
348
|
+
'somethingnotatallsinisterwhichalsoworks')
|
349
|
+
t.equal(-1, asciiString.indexOf('\x2061'))
|
350
|
+
t.equal(3, asciiString.indexOf('eth', 0))
|
351
|
+
|
352
|
+
// Search in string containing many non-ASCII chars.
|
353
|
+
const allCodePoints = []
|
354
|
+
for (let i = 0; i < 65536; i++) {
|
355
|
+
allCodePoints[i] = i
|
356
|
+
}
|
357
|
+
|
358
|
+
const allCharsString = String.fromCharCode.apply(String, allCodePoints)
|
359
|
+
const allCharsBufferUtf8 = Buffer.from(allCharsString)
|
360
|
+
const allCharsBufferUcs2 = Buffer.from(allCharsString, 'ucs2')
|
361
|
+
|
362
|
+
// Search for string long enough to trigger complex search with ASCII pattern
|
363
|
+
// and UC16 subject.
|
364
|
+
t.equal(-1, allCharsBufferUtf8.indexOf('notfound'))
|
365
|
+
t.equal(-1, allCharsBufferUcs2.indexOf('notfound'))
|
366
|
+
|
367
|
+
// Needle is longer than haystack, but only because it's encoded as UTF-16
|
368
|
+
t.equal(Buffer.from('aaaa').indexOf('a'.repeat(4), 'ucs2'), -1)
|
369
|
+
|
370
|
+
t.equal(Buffer.from('aaaa').indexOf('a'.repeat(4), 'utf8'), 0)
|
371
|
+
t.equal(Buffer.from('aaaa').indexOf('你好', 'ucs2'), -1)
|
372
|
+
|
373
|
+
// Haystack has odd length, but the needle is UCS2.
|
374
|
+
t.equal(Buffer.from('aaaaa').indexOf('b', 'ucs2'), -1)
|
375
|
+
|
376
|
+
{
|
377
|
+
// Find substrings in Utf8.
|
378
|
+
const lengths = [1, 3, 15] // Single char, simple and complex.
|
379
|
+
const indices = [0x5, 0x60, 0x400, 0x680, 0x7ee, 0xFF02, 0x16610, 0x2f77b]
|
380
|
+
for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
|
381
|
+
for (let i = 0; i < indices.length; i++) {
|
382
|
+
const index = indices[i]
|
383
|
+
let length = lengths[lengthIndex]
|
384
|
+
|
385
|
+
if (index + length > 0x7F) {
|
386
|
+
length = 2 * length
|
387
|
+
}
|
388
|
+
|
389
|
+
if (index + length > 0x7FF) {
|
390
|
+
length = 3 * length
|
391
|
+
}
|
392
|
+
|
393
|
+
if (index + length > 0xFFFF) {
|
394
|
+
length = 4 * length
|
395
|
+
}
|
396
|
+
|
397
|
+
const patternBufferUtf8 = allCharsBufferUtf8.slice(index, index + length)
|
398
|
+
t.equal(index, allCharsBufferUtf8.indexOf(patternBufferUtf8))
|
399
|
+
|
400
|
+
const patternStringUtf8 = patternBufferUtf8.toString()
|
401
|
+
t.equal(index, allCharsBufferUtf8.indexOf(patternStringUtf8))
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
406
|
+
{
|
407
|
+
// Find substrings in Usc2.
|
408
|
+
const lengths = [2, 4, 16] // Single char, simple and complex.
|
409
|
+
const indices = [0x5, 0x65, 0x105, 0x205, 0x285, 0x2005, 0x2085, 0xfff0]
|
410
|
+
|
411
|
+
for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
|
412
|
+
for (let i = 0; i < indices.length; i++) {
|
413
|
+
const index = indices[i] * 2
|
414
|
+
const length = lengths[lengthIndex]
|
415
|
+
|
416
|
+
const patternBufferUcs2 =
|
417
|
+
allCharsBufferUcs2.slice(index, index + length)
|
418
|
+
t.equal(
|
419
|
+
index, allCharsBufferUcs2.indexOf(patternBufferUcs2, 0, 'ucs2'))
|
420
|
+
|
421
|
+
const patternStringUcs2 = patternBufferUcs2.toString('ucs2')
|
422
|
+
t.equal(
|
423
|
+
index, allCharsBufferUcs2.indexOf(patternStringUcs2, 0, 'ucs2'))
|
424
|
+
}
|
425
|
+
}
|
426
|
+
}
|
427
|
+
|
428
|
+
[
|
429
|
+
() => {},
|
430
|
+
{},
|
431
|
+
[]
|
432
|
+
].forEach((val) => {
|
433
|
+
t.throws(() => b.indexOf(val), TypeError, `"${JSON.stringify(val)}" should throw`)
|
434
|
+
})
|
435
|
+
|
436
|
+
// Test weird offset arguments.
|
437
|
+
// The following offsets coerce to NaN or 0, searching the whole Buffer
|
438
|
+
t.equal(b.indexOf('b', undefined), 1)
|
439
|
+
t.equal(b.indexOf('b', {}), 1)
|
440
|
+
t.equal(b.indexOf('b', 0), 1)
|
441
|
+
t.equal(b.indexOf('b', null), 1)
|
442
|
+
t.equal(b.indexOf('b', []), 1)
|
443
|
+
|
444
|
+
// The following offset coerces to 2, in other words +[2] === 2
|
445
|
+
t.equal(b.indexOf('b', [2]), -1)
|
446
|
+
|
447
|
+
// Behavior should match String.indexOf()
|
448
|
+
t.equal(
|
449
|
+
b.indexOf('b', undefined),
|
450
|
+
stringComparison.indexOf('b', undefined))
|
451
|
+
t.equal(
|
452
|
+
b.indexOf('b', {}),
|
453
|
+
stringComparison.indexOf('b', {}))
|
454
|
+
t.equal(
|
455
|
+
b.indexOf('b', 0),
|
456
|
+
stringComparison.indexOf('b', 0))
|
457
|
+
t.equal(
|
458
|
+
b.indexOf('b', null),
|
459
|
+
stringComparison.indexOf('b', null))
|
460
|
+
t.equal(
|
461
|
+
b.indexOf('b', []),
|
462
|
+
stringComparison.indexOf('b', []))
|
463
|
+
t.equal(
|
464
|
+
b.indexOf('b', [2]),
|
465
|
+
stringComparison.indexOf('b', [2]))
|
466
|
+
|
467
|
+
// test truncation of Number arguments to uint8
|
468
|
+
{
|
469
|
+
const buf = Buffer.from('this is a test')
|
470
|
+
|
471
|
+
t.equal(buf.indexOf(0x6973), 3)
|
472
|
+
t.equal(buf.indexOf(0x697320), 4)
|
473
|
+
t.equal(buf.indexOf(0x69732069), 2)
|
474
|
+
t.equal(buf.indexOf(0x697374657374), 0)
|
475
|
+
t.equal(buf.indexOf(0x69737374), 0)
|
476
|
+
t.equal(buf.indexOf(0x69737465), 11)
|
477
|
+
t.equal(buf.indexOf(0x69737465), 11)
|
478
|
+
t.equal(buf.indexOf(-140), 0)
|
479
|
+
t.equal(buf.indexOf(-152), 1)
|
480
|
+
t.equal(buf.indexOf(0xff), -1)
|
481
|
+
t.equal(buf.indexOf(0xffff), -1)
|
482
|
+
}
|
483
|
+
|
484
|
+
// Test that Uint8Array arguments are okay.
|
485
|
+
{
|
486
|
+
const needle = new Uint8Array([0x66, 0x6f, 0x6f])
|
487
|
+
const haystack = new BufferList(Buffer.from('a foo b foo'))
|
488
|
+
t.equal(haystack.indexOf(needle), 2)
|
489
|
+
}
|
490
|
+
|
491
|
+
t.end()
|
492
|
+
})
|