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.
Files changed (932) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +21 -18
  3. data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
  4. data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -52
  5. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  6. data/lib/isomorfeus/puppetmaster.rb +6 -3
  7. data/lib/isomorfeus-puppetmaster.rb +2 -1
  8. data/node_modules/.bin/extract-zip +12 -0
  9. data/node_modules/.bin/extract-zip.cmd +17 -0
  10. data/node_modules/.bin/extract-zip.ps1 +28 -0
  11. data/node_modules/.bin/mkdirp +12 -0
  12. data/node_modules/.bin/mkdirp.cmd +17 -0
  13. data/node_modules/.bin/mkdirp.ps1 +28 -0
  14. data/node_modules/.bin/rimraf +12 -0
  15. data/node_modules/.bin/rimraf.cmd +17 -0
  16. data/node_modules/.bin/rimraf.ps1 +28 -0
  17. data/node_modules/.package-lock.json +574 -0
  18. data/node_modules/@types/node/LICENSE +21 -0
  19. data/node_modules/@types/node/README.md +16 -0
  20. data/node_modules/@types/node/assert/strict.d.ts +8 -0
  21. data/node_modules/@types/node/assert.d.ts +912 -0
  22. data/node_modules/@types/node/async_hooks.d.ts +497 -0
  23. data/node_modules/@types/node/buffer.d.ts +2142 -0
  24. data/node_modules/@types/node/child_process.d.ts +1355 -0
  25. data/node_modules/@types/node/cluster.d.ts +414 -0
  26. data/node_modules/@types/node/console.d.ts +407 -0
  27. data/node_modules/@types/node/constants.d.ts +18 -0
  28. data/node_modules/@types/node/crypto.d.ts +3224 -0
  29. data/node_modules/@types/node/dgram.d.ts +545 -0
  30. data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  31. data/node_modules/@types/node/dns/promises.d.ts +357 -0
  32. data/node_modules/@types/node/dns.d.ts +643 -0
  33. data/node_modules/@types/node/domain.d.ts +169 -0
  34. data/node_modules/@types/node/events.d.ts +623 -0
  35. data/node_modules/@types/node/fs/promises.d.ts +997 -0
  36. data/node_modules/@types/node/fs.d.ts +3723 -0
  37. data/node_modules/@types/node/globals.d.ts +285 -0
  38. data/node_modules/@types/node/globals.global.d.ts +1 -0
  39. data/node_modules/@types/node/http.d.ts +1358 -0
  40. data/node_modules/@types/node/http2.d.ts +2100 -0
  41. data/node_modules/@types/node/https.d.ts +391 -0
  42. data/node_modules/@types/node/index.d.ts +131 -0
  43. data/node_modules/@types/node/inspector.d.ts +2738 -0
  44. data/node_modules/@types/node/module.d.ts +114 -0
  45. data/node_modules/@types/node/net.d.ts +783 -0
  46. data/node_modules/@types/node/os.d.ts +455 -0
  47. data/node_modules/@types/node/package.json +230 -0
  48. data/node_modules/@types/node/path.d.ts +172 -0
  49. data/node_modules/@types/node/perf_hooks.d.ts +555 -0
  50. data/node_modules/@types/node/process.d.ts +1477 -0
  51. data/node_modules/@types/node/punycode.d.ts +117 -0
  52. data/node_modules/@types/node/querystring.d.ts +131 -0
  53. data/node_modules/@types/node/readline.d.ts +542 -0
  54. data/node_modules/@types/node/repl.d.ts +424 -0
  55. data/node_modules/@types/node/stream/consumers.d.ts +24 -0
  56. data/node_modules/@types/node/stream/promises.d.ts +42 -0
  57. data/node_modules/@types/node/stream/web.d.ts +6 -0
  58. data/node_modules/@types/node/stream.d.ts +1181 -0
  59. data/node_modules/@types/node/string_decoder.d.ts +67 -0
  60. data/node_modules/@types/node/timers/promises.d.ts +68 -0
  61. data/node_modules/@types/node/timers.d.ts +94 -0
  62. data/node_modules/@types/node/tls.d.ts +1019 -0
  63. data/node_modules/@types/node/trace_events.d.ts +161 -0
  64. data/node_modules/@types/node/tty.d.ts +206 -0
  65. data/node_modules/@types/node/url.d.ts +798 -0
  66. data/node_modules/@types/node/util.d.ts +1556 -0
  67. data/node_modules/@types/node/v8.d.ts +378 -0
  68. data/node_modules/@types/node/vm.d.ts +504 -0
  69. data/node_modules/@types/node/wasi.d.ts +153 -0
  70. data/node_modules/@types/node/worker_threads.d.ts +649 -0
  71. data/node_modules/@types/node/zlib.d.ts +517 -0
  72. data/node_modules/@types/yauzl/LICENSE +21 -0
  73. data/node_modules/@types/yauzl/README.md +16 -0
  74. data/node_modules/@types/yauzl/index.d.ts +98 -0
  75. data/node_modules/@types/yauzl/package.json +27 -0
  76. data/node_modules/agent-base/README.md +145 -0
  77. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  78. data/node_modules/agent-base/dist/src/index.js +203 -0
  79. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  80. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  81. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  82. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  83. data/node_modules/agent-base/package.json +64 -0
  84. data/node_modules/agent-base/src/index.ts +345 -0
  85. data/node_modules/agent-base/src/promisify.ts +33 -0
  86. data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  87. data/node_modules/balanced-match/LICENSE.md +21 -0
  88. data/node_modules/balanced-match/README.md +97 -0
  89. data/node_modules/balanced-match/index.js +62 -0
  90. data/node_modules/balanced-match/package.json +48 -0
  91. data/node_modules/base64-js/LICENSE +21 -0
  92. data/node_modules/base64-js/README.md +34 -0
  93. data/node_modules/base64-js/base64js.min.js +1 -0
  94. data/node_modules/base64-js/index.d.ts +3 -0
  95. data/node_modules/base64-js/index.js +150 -0
  96. data/node_modules/base64-js/package.json +47 -0
  97. data/node_modules/bl/.travis.yml +17 -0
  98. data/node_modules/bl/BufferList.js +396 -0
  99. data/node_modules/bl/LICENSE.md +13 -0
  100. data/node_modules/bl/README.md +247 -0
  101. data/node_modules/bl/bl.js +84 -0
  102. data/node_modules/bl/package.json +37 -0
  103. data/node_modules/bl/test/convert.js +21 -0
  104. data/node_modules/bl/test/indexOf.js +492 -0
  105. data/node_modules/bl/test/isBufferList.js +32 -0
  106. data/node_modules/bl/test/test.js +869 -0
  107. data/node_modules/brace-expansion/LICENSE +21 -0
  108. data/node_modules/brace-expansion/README.md +129 -0
  109. data/node_modules/brace-expansion/index.js +201 -0
  110. data/node_modules/brace-expansion/package.json +47 -0
  111. data/node_modules/buffer/AUTHORS.md +70 -0
  112. data/node_modules/buffer/LICENSE +21 -0
  113. data/node_modules/buffer/README.md +410 -0
  114. data/node_modules/buffer/index.d.ts +186 -0
  115. data/node_modules/buffer/index.js +1817 -0
  116. data/node_modules/buffer/package.json +96 -0
  117. data/node_modules/buffer-crc32/LICENSE +19 -0
  118. data/node_modules/buffer-crc32/README.md +47 -0
  119. data/node_modules/buffer-crc32/index.js +111 -0
  120. data/node_modules/buffer-crc32/package.json +39 -0
  121. data/node_modules/chownr/LICENSE +15 -0
  122. data/node_modules/chownr/README.md +3 -0
  123. data/node_modules/chownr/chownr.js +167 -0
  124. data/node_modules/chownr/package.json +29 -0
  125. data/node_modules/concat-map/.travis.yml +4 -0
  126. data/node_modules/concat-map/LICENSE +18 -0
  127. data/node_modules/concat-map/README.markdown +62 -0
  128. data/node_modules/concat-map/example/map.js +6 -0
  129. data/node_modules/concat-map/index.js +13 -0
  130. data/node_modules/concat-map/package.json +43 -0
  131. data/node_modules/concat-map/test/map.js +39 -0
  132. data/node_modules/debug/LICENSE +19 -0
  133. data/node_modules/debug/README.md +455 -0
  134. data/node_modules/debug/package.json +59 -0
  135. data/node_modules/debug/src/browser.js +269 -0
  136. data/node_modules/debug/src/common.js +261 -0
  137. data/node_modules/debug/src/index.js +10 -0
  138. data/node_modules/debug/src/node.js +263 -0
  139. data/node_modules/devtools-protocol/LICENSE +27 -0
  140. data/node_modules/devtools-protocol/README.md +12 -0
  141. data/node_modules/devtools-protocol/changelog.md +10491 -0
  142. data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
  143. data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
  144. data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
  145. data/node_modules/devtools-protocol/package.json +18 -0
  146. data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
  147. data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
  148. data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
  149. data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
  150. data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
  151. data/node_modules/end-of-stream/LICENSE +21 -0
  152. data/node_modules/end-of-stream/README.md +54 -0
  153. data/node_modules/end-of-stream/index.js +94 -0
  154. data/node_modules/end-of-stream/package.json +37 -0
  155. data/node_modules/extract-zip/LICENSE +23 -0
  156. data/node_modules/extract-zip/cli.js +19 -0
  157. data/node_modules/extract-zip/index.d.ts +21 -0
  158. data/node_modules/extract-zip/index.js +173 -0
  159. data/node_modules/extract-zip/package.json +80 -0
  160. data/node_modules/extract-zip/readme.md +57 -0
  161. data/node_modules/fd-slicer/.npmignore +2 -0
  162. data/node_modules/fd-slicer/.travis.yml +7 -0
  163. data/node_modules/fd-slicer/CHANGELOG.md +49 -0
  164. data/node_modules/fd-slicer/LICENSE +21 -0
  165. data/node_modules/fd-slicer/README.md +199 -0
  166. data/node_modules/fd-slicer/index.js +296 -0
  167. data/node_modules/fd-slicer/package.json +36 -0
  168. data/node_modules/fd-slicer/test/test.js +350 -0
  169. data/node_modules/find-up/index.d.ts +137 -0
  170. data/node_modules/find-up/index.js +89 -0
  171. data/node_modules/find-up/license +9 -0
  172. data/node_modules/find-up/package.json +53 -0
  173. data/node_modules/find-up/readme.md +156 -0
  174. data/node_modules/fs-constants/LICENSE +21 -0
  175. data/node_modules/fs-constants/README.md +26 -0
  176. data/node_modules/fs-constants/browser.js +1 -0
  177. data/node_modules/fs-constants/index.js +1 -0
  178. data/node_modules/fs-constants/package.json +19 -0
  179. data/node_modules/fs.realpath/LICENSE +43 -0
  180. data/node_modules/fs.realpath/README.md +33 -0
  181. data/node_modules/fs.realpath/index.js +66 -0
  182. data/node_modules/fs.realpath/old.js +303 -0
  183. data/node_modules/fs.realpath/package.json +26 -0
  184. data/node_modules/get-stream/buffer-stream.js +52 -0
  185. data/node_modules/get-stream/index.d.ts +108 -0
  186. data/node_modules/get-stream/index.js +60 -0
  187. data/node_modules/get-stream/license +9 -0
  188. data/node_modules/get-stream/package.json +50 -0
  189. data/node_modules/get-stream/readme.md +124 -0
  190. data/node_modules/glob/LICENSE +21 -0
  191. data/node_modules/glob/README.md +375 -0
  192. data/node_modules/glob/changelog.md +67 -0
  193. data/node_modules/glob/common.js +234 -0
  194. data/node_modules/glob/glob.js +788 -0
  195. data/node_modules/glob/package.json +51 -0
  196. data/node_modules/glob/sync.js +484 -0
  197. data/node_modules/https-proxy-agent/README.md +137 -0
  198. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  199. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  200. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  201. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  202. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  203. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  204. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  205. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  206. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  207. data/node_modules/https-proxy-agent/package.json +56 -0
  208. data/node_modules/ieee754/LICENSE +11 -0
  209. data/node_modules/ieee754/README.md +51 -0
  210. data/node_modules/ieee754/index.d.ts +10 -0
  211. data/node_modules/ieee754/index.js +85 -0
  212. data/node_modules/ieee754/package.json +52 -0
  213. data/node_modules/inflight/LICENSE +15 -0
  214. data/node_modules/inflight/README.md +37 -0
  215. data/node_modules/inflight/inflight.js +54 -0
  216. data/node_modules/inflight/package.json +29 -0
  217. data/node_modules/inherits/LICENSE +16 -0
  218. data/node_modules/inherits/README.md +42 -0
  219. data/node_modules/inherits/inherits.js +9 -0
  220. data/node_modules/inherits/inherits_browser.js +27 -0
  221. data/node_modules/inherits/package.json +29 -0
  222. data/node_modules/locate-path/index.d.ts +83 -0
  223. data/node_modules/locate-path/index.js +65 -0
  224. data/node_modules/locate-path/license +9 -0
  225. data/node_modules/locate-path/package.json +45 -0
  226. data/node_modules/locate-path/readme.md +122 -0
  227. data/node_modules/minimatch/LICENSE +15 -0
  228. data/node_modules/minimatch/README.md +209 -0
  229. data/node_modules/minimatch/minimatch.js +923 -0
  230. data/node_modules/minimatch/package.json +30 -0
  231. data/node_modules/minimist/.travis.yml +8 -0
  232. data/node_modules/minimist/LICENSE +18 -0
  233. data/node_modules/minimist/example/parse.js +2 -0
  234. data/node_modules/minimist/index.js +245 -0
  235. data/node_modules/minimist/package.json +45 -0
  236. data/node_modules/minimist/readme.markdown +95 -0
  237. data/node_modules/minimist/test/all_bool.js +32 -0
  238. data/node_modules/minimist/test/bool.js +178 -0
  239. data/node_modules/minimist/test/dash.js +31 -0
  240. data/node_modules/minimist/test/default_bool.js +35 -0
  241. data/node_modules/minimist/test/dotted.js +22 -0
  242. data/node_modules/minimist/test/kv_short.js +16 -0
  243. data/node_modules/minimist/test/long.js +31 -0
  244. data/node_modules/minimist/test/num.js +36 -0
  245. data/node_modules/minimist/test/parse.js +197 -0
  246. data/node_modules/minimist/test/parse_modified.js +9 -0
  247. data/node_modules/minimist/test/proto.js +44 -0
  248. data/node_modules/minimist/test/short.js +67 -0
  249. data/node_modules/minimist/test/stop_early.js +15 -0
  250. data/node_modules/minimist/test/unknown.js +102 -0
  251. data/node_modules/minimist/test/whitespace.js +8 -0
  252. data/node_modules/mkdirp/LICENSE +21 -0
  253. data/node_modules/mkdirp/bin/cmd.js +33 -0
  254. data/node_modules/mkdirp/bin/usage.txt +12 -0
  255. data/node_modules/mkdirp/index.js +99 -0
  256. data/node_modules/mkdirp/package.json +34 -0
  257. data/node_modules/mkdirp/readme.markdown +100 -0
  258. data/node_modules/ms/index.js +162 -0
  259. data/node_modules/ms/license.md +21 -0
  260. data/node_modules/ms/package.json +37 -0
  261. data/node_modules/ms/readme.md +60 -0
  262. data/node_modules/node-fetch/CHANGELOG.md +272 -0
  263. data/node_modules/node-fetch/LICENSE.md +22 -0
  264. data/node_modules/node-fetch/README.md +590 -0
  265. data/node_modules/node-fetch/browser.js +25 -0
  266. data/node_modules/node-fetch/lib/index.es.js +1640 -0
  267. data/node_modules/node-fetch/lib/index.js +1649 -0
  268. data/node_modules/node-fetch/lib/index.mjs +1638 -0
  269. data/node_modules/node-fetch/package.json +66 -0
  270. data/node_modules/once/LICENSE +15 -0
  271. data/node_modules/once/README.md +79 -0
  272. data/node_modules/once/once.js +42 -0
  273. data/node_modules/once/package.json +33 -0
  274. data/node_modules/p-limit/index.d.ts +38 -0
  275. data/node_modules/p-limit/index.js +57 -0
  276. data/node_modules/p-limit/license +9 -0
  277. data/node_modules/p-limit/package.json +52 -0
  278. data/node_modules/p-limit/readme.md +101 -0
  279. data/node_modules/p-locate/index.d.ts +64 -0
  280. data/node_modules/p-locate/index.js +52 -0
  281. data/node_modules/p-locate/license +9 -0
  282. data/node_modules/p-locate/package.json +53 -0
  283. data/node_modules/p-locate/readme.md +90 -0
  284. data/node_modules/p-try/index.d.ts +39 -0
  285. data/node_modules/p-try/index.js +9 -0
  286. data/node_modules/p-try/license +9 -0
  287. data/node_modules/p-try/package.json +42 -0
  288. data/node_modules/p-try/readme.md +58 -0
  289. data/node_modules/path-exists/index.d.ts +28 -0
  290. data/node_modules/path-exists/index.js +23 -0
  291. data/node_modules/path-exists/license +9 -0
  292. data/node_modules/path-exists/package.json +39 -0
  293. data/node_modules/path-exists/readme.md +52 -0
  294. data/node_modules/path-is-absolute/index.js +20 -0
  295. data/node_modules/path-is-absolute/license +21 -0
  296. data/node_modules/path-is-absolute/package.json +43 -0
  297. data/node_modules/path-is-absolute/readme.md +59 -0
  298. data/node_modules/pend/LICENSE +23 -0
  299. data/node_modules/pend/README.md +41 -0
  300. data/node_modules/pend/index.js +55 -0
  301. data/node_modules/pend/package.json +18 -0
  302. data/node_modules/pend/test.js +137 -0
  303. data/node_modules/pkg-dir/index.d.ts +44 -0
  304. data/node_modules/pkg-dir/index.js +17 -0
  305. data/node_modules/pkg-dir/license +9 -0
  306. data/node_modules/pkg-dir/package.json +56 -0
  307. data/node_modules/pkg-dir/readme.md +66 -0
  308. data/node_modules/progress/CHANGELOG.md +115 -0
  309. data/node_modules/progress/LICENSE +22 -0
  310. data/node_modules/progress/Makefile +8 -0
  311. data/node_modules/progress/Readme.md +146 -0
  312. data/node_modules/progress/index.js +1 -0
  313. data/node_modules/progress/lib/node-progress.js +235 -0
  314. data/node_modules/progress/package.json +26 -0
  315. data/node_modules/proxy-from-env/.eslintrc +29 -0
  316. data/node_modules/proxy-from-env/.travis.yml +10 -0
  317. data/node_modules/proxy-from-env/LICENSE +20 -0
  318. data/node_modules/proxy-from-env/README.md +131 -0
  319. data/node_modules/proxy-from-env/index.js +108 -0
  320. data/node_modules/proxy-from-env/package.json +34 -0
  321. data/node_modules/proxy-from-env/test.js +483 -0
  322. data/node_modules/pump/.travis.yml +5 -0
  323. data/node_modules/pump/LICENSE +21 -0
  324. data/node_modules/pump/README.md +65 -0
  325. data/node_modules/pump/index.js +82 -0
  326. data/node_modules/pump/package.json +24 -0
  327. data/node_modules/pump/test-browser.js +66 -0
  328. data/node_modules/pump/test-node.js +53 -0
  329. data/node_modules/puppeteer-core/CHANGELOG.md +226 -0
  330. data/node_modules/puppeteer-core/LICENSE +202 -0
  331. data/node_modules/puppeteer-core/README.md +483 -0
  332. data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
  333. data/node_modules/puppeteer-core/cjs-entry.js +29 -0
  334. data/node_modules/puppeteer-core/install.js +89 -0
  335. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
  336. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
  337. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
  338. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
  339. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
  340. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
  341. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
  342. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
  343. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  344. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  345. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
  346. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
  347. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +438 -0
  348. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
  349. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +528 -0
  350. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
  351. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
  352. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  353. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
  354. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
  355. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  356. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  357. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
  358. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  359. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
  360. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
  361. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
  362. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
  363. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
  364. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  365. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
  366. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
  367. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
  368. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  369. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
  370. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
  371. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +189 -0
  372. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
  373. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +329 -0
  374. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
  375. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +173 -0
  376. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
  377. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +655 -0
  378. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
  379. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
  380. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
  381. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
  382. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
  383. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  384. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  385. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +951 -0
  386. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
  387. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
  388. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
  389. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
  390. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
  391. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
  392. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
  393. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
  394. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
  395. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
  396. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
  397. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
  398. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
  399. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
  400. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
  401. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
  402. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
  403. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
  404. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
  405. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
  406. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
  407. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
  408. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
  409. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
  410. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
  411. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
  412. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  413. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
  414. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
  415. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
  416. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
  417. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
  418. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
  419. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
  420. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
  421. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
  422. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
  423. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
  424. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  425. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
  426. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
  427. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
  428. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  429. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
  430. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
  431. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
  432. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
  433. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
  434. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
  435. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +469 -0
  436. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
  437. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +803 -0
  438. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
  439. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  440. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  441. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
  442. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
  443. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
  444. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  445. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
  446. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
  447. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +97 -0
  448. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
  449. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +341 -0
  450. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
  451. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +157 -0
  452. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
  453. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
  454. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
  455. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2011 -0
  456. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
  457. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2427 -0
  458. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
  459. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
  460. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
  461. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
  462. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
  463. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
  464. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
  465. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
  466. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
  467. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  468. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  469. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
  470. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
  471. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
  472. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
  473. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
  474. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
  475. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
  476. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  477. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
  478. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
  479. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
  480. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
  481. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
  482. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
  483. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
  484. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  485. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
  486. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
  487. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
  488. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
  489. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +104 -0
  490. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
  491. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  492. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  493. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
  494. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
  495. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
  496. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
  497. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
  498. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
  499. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +22 -0
  500. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
  501. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +29 -0
  502. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
  503. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
  504. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
  505. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
  506. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
  507. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
  508. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
  509. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
  510. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
  511. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
  512. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
  513. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
  514. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
  515. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
  516. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
  517. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
  518. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
  519. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
  520. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
  521. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
  522. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
  523. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
  524. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  525. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +502 -0
  526. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
  527. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
  528. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  529. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
  530. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
  531. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
  532. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  533. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
  534. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
  535. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
  536. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
  537. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
  538. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
  539. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  540. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  541. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +42 -0
  542. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  543. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
  544. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
  545. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
  546. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
  547. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
  548. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
  549. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
  550. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
  551. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
  552. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
  553. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +160 -0
  554. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
  555. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
  556. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  557. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
  558. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
  559. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
  560. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
  561. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
  562. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
  563. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
  564. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
  565. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
  566. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
  567. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
  568. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
  569. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
  570. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
  571. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
  572. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
  573. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
  574. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
  575. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
  576. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
  577. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
  578. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
  579. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
  580. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
  581. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
  582. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
  583. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  584. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  585. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
  586. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
  587. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +438 -0
  588. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
  589. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +523 -0
  590. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
  591. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
  592. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  593. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
  594. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
  595. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  596. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  597. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
  598. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  599. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
  600. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
  601. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
  602. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
  603. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
  604. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  605. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
  606. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
  607. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
  608. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  609. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
  610. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
  611. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +189 -0
  612. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
  613. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +323 -0
  614. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
  615. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +173 -0
  616. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
  617. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +650 -0
  618. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
  619. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
  620. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
  621. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
  622. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
  623. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  624. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  625. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +948 -0
  626. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
  627. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
  628. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
  629. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
  630. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
  631. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
  632. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
  633. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
  634. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
  635. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
  636. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
  637. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
  638. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
  639. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
  640. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
  641. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
  642. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
  643. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
  644. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
  645. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
  646. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
  647. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
  648. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
  649. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
  650. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
  651. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
  652. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  653. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
  654. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
  655. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
  656. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
  657. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
  658. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
  659. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
  660. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
  661. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
  662. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
  663. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
  664. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  665. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
  666. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
  667. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
  668. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  669. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
  670. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
  671. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
  672. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
  673. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
  674. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
  675. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +469 -0
  676. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
  677. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +778 -0
  678. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
  679. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  680. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  681. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
  682. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
  683. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
  684. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  685. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
  686. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
  687. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +97 -0
  688. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
  689. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +337 -0
  690. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
  691. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +157 -0
  692. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
  693. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
  694. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
  695. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2011 -0
  696. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
  697. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2423 -0
  698. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
  699. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
  700. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
  701. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
  702. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
  703. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
  704. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
  705. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
  706. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
  707. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  708. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  709. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
  710. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
  711. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
  712. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
  713. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
  714. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
  715. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
  716. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  717. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
  718. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
  719. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
  720. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
  721. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
  722. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
  723. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
  724. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  725. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
  726. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
  727. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
  728. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
  729. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +100 -0
  730. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
  731. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  732. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  733. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
  734. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
  735. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
  736. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
  737. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
  738. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
  739. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +22 -0
  740. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
  741. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +25 -0
  742. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
  743. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
  744. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
  745. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
  746. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
  747. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
  748. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
  749. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
  750. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
  751. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
  752. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
  753. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
  754. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
  755. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
  756. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
  757. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
  758. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
  759. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
  760. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
  761. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
  762. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
  763. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
  764. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  765. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +476 -0
  766. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
  767. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
  768. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  769. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
  770. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
  771. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
  772. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  773. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
  774. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
  775. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
  776. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
  777. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
  778. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
  779. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  780. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  781. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +35 -0
  782. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  783. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
  784. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
  785. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
  786. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
  787. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
  788. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
  789. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
  790. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
  791. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
  792. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
  793. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +152 -0
  794. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
  795. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
  796. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  797. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
  798. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
  799. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
  800. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
  801. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
  802. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
  803. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
  804. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
  805. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
  806. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
  807. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
  808. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
  809. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
  810. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
  811. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
  812. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
  813. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
  814. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
  815. data/node_modules/puppeteer-core/lib/types.d.ts +6911 -0
  816. data/node_modules/puppeteer-core/package.json +122 -0
  817. data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
  818. data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  819. data/node_modules/readable-stream/GOVERNANCE.md +136 -0
  820. data/node_modules/readable-stream/LICENSE +47 -0
  821. data/node_modules/readable-stream/README.md +106 -0
  822. data/node_modules/readable-stream/errors-browser.js +127 -0
  823. data/node_modules/readable-stream/errors.js +116 -0
  824. data/node_modules/readable-stream/experimentalWarning.js +17 -0
  825. data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  826. data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  827. data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  828. data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  829. data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  830. data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  831. data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  832. data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  833. data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  834. data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  835. data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  836. data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  837. data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  838. data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  839. data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  840. data/node_modules/readable-stream/package.json +68 -0
  841. data/node_modules/readable-stream/readable-browser.js +9 -0
  842. data/node_modules/readable-stream/readable.js +16 -0
  843. data/node_modules/rimraf/CHANGELOG.md +65 -0
  844. data/node_modules/rimraf/LICENSE +15 -0
  845. data/node_modules/rimraf/README.md +101 -0
  846. data/node_modules/rimraf/bin.js +68 -0
  847. data/node_modules/rimraf/package.json +32 -0
  848. data/node_modules/rimraf/rimraf.js +360 -0
  849. data/node_modules/safe-buffer/LICENSE +21 -0
  850. data/node_modules/safe-buffer/README.md +584 -0
  851. data/node_modules/safe-buffer/index.d.ts +187 -0
  852. data/node_modules/safe-buffer/index.js +65 -0
  853. data/node_modules/safe-buffer/package.json +51 -0
  854. data/node_modules/string_decoder/LICENSE +48 -0
  855. data/node_modules/string_decoder/README.md +47 -0
  856. data/node_modules/string_decoder/lib/string_decoder.js +296 -0
  857. data/node_modules/string_decoder/package.json +34 -0
  858. data/node_modules/tar-fs/.travis.yml +5 -0
  859. data/node_modules/tar-fs/LICENSE +21 -0
  860. data/node_modules/tar-fs/README.md +163 -0
  861. data/node_modules/tar-fs/index.js +348 -0
  862. data/node_modules/tar-fs/package.json +41 -0
  863. data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  864. data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  865. data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  866. data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  867. data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  868. data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  869. data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  870. data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  871. data/node_modules/tar-fs/test/fixtures/e/file +0 -0
  872. data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  873. data/node_modules/tar-fs/test/index.js +346 -0
  874. data/node_modules/tar-stream/LICENSE +21 -0
  875. data/node_modules/tar-stream/README.md +168 -0
  876. data/node_modules/tar-stream/extract.js +257 -0
  877. data/node_modules/tar-stream/headers.js +295 -0
  878. data/node_modules/tar-stream/index.js +2 -0
  879. data/node_modules/tar-stream/pack.js +255 -0
  880. data/node_modules/tar-stream/package.json +58 -0
  881. data/node_modules/tar-stream/sandbox.js +11 -0
  882. data/node_modules/through/.travis.yml +5 -0
  883. data/node_modules/through/LICENSE.APACHE2 +15 -0
  884. data/node_modules/through/LICENSE.MIT +24 -0
  885. data/node_modules/through/index.js +108 -0
  886. data/node_modules/through/package.json +36 -0
  887. data/node_modules/through/readme.markdown +64 -0
  888. data/node_modules/through/test/async.js +28 -0
  889. data/node_modules/through/test/auto-destroy.js +30 -0
  890. data/node_modules/through/test/buffering.js +71 -0
  891. data/node_modules/through/test/end.js +45 -0
  892. data/node_modules/through/test/index.js +133 -0
  893. data/node_modules/unbzip2-stream/LICENSE +24 -0
  894. data/node_modules/unbzip2-stream/README.md +59 -0
  895. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
  896. data/node_modules/unbzip2-stream/index.js +92 -0
  897. data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
  898. data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
  899. data/node_modules/unbzip2-stream/package.json +51 -0
  900. data/node_modules/util-deprecate/History.md +16 -0
  901. data/node_modules/util-deprecate/LICENSE +24 -0
  902. data/node_modules/util-deprecate/README.md +53 -0
  903. data/node_modules/util-deprecate/browser.js +67 -0
  904. data/node_modules/util-deprecate/node.js +6 -0
  905. data/node_modules/util-deprecate/package.json +27 -0
  906. data/node_modules/wrappy/LICENSE +15 -0
  907. data/node_modules/wrappy/README.md +36 -0
  908. data/node_modules/wrappy/package.json +29 -0
  909. data/node_modules/wrappy/wrappy.js +33 -0
  910. data/node_modules/ws/LICENSE +21 -0
  911. data/node_modules/ws/README.md +496 -0
  912. data/node_modules/ws/browser.js +8 -0
  913. data/node_modules/ws/index.js +10 -0
  914. data/node_modules/ws/lib/buffer-util.js +129 -0
  915. data/node_modules/ws/lib/constants.js +10 -0
  916. data/node_modules/ws/lib/event-target.js +184 -0
  917. data/node_modules/ws/lib/extension.js +223 -0
  918. data/node_modules/ws/lib/limiter.js +55 -0
  919. data/node_modules/ws/lib/permessage-deflate.js +517 -0
  920. data/node_modules/ws/lib/receiver.js +507 -0
  921. data/node_modules/ws/lib/sender.js +405 -0
  922. data/node_modules/ws/lib/stream.js +165 -0
  923. data/node_modules/ws/lib/validation.js +104 -0
  924. data/node_modules/ws/lib/websocket-server.js +418 -0
  925. data/node_modules/ws/lib/websocket.js +942 -0
  926. data/node_modules/ws/package.json +56 -0
  927. data/node_modules/yauzl/LICENSE +21 -0
  928. data/node_modules/yauzl/README.md +658 -0
  929. data/node_modules/yauzl/index.js +796 -0
  930. data/node_modules/yauzl/package.json +40 -0
  931. data/package.json +6 -0
  932. metadata +940 -58
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/common/Browser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2CAAqC;AACrC,2CAAqC;AACrC,2CAAqC;AACrC,uDAAiD;AACjD,mDAAsE;AAkBtE,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAGnD;IACA,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,iCAAiC;IACjC,oBAAoB;IACpB,CAAC,QAAQ,EAAE,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;YACxD,IAAI,CAAC,kBAAkB;gBACrB,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,UAAU,CAAC,CAAC;YACvD,OAAO,kBAAkB,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACtD,MAAM;YACN,gBAAgB,EAAE,IAAI,CAAC,GAAG,IAAI,SAAS;YACvC,WAAW,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,wBAAwB;QAC5B,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACtD,gBAAgB,EAAE,IAAI,CAAC,GAAG,IAAI,SAAS;SACxC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK;QACT,kBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,0CAA0C,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AArJD,wCAqJC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Copyright 2020 Google Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ConnectionTransport } from './ConnectionTransport.js';
17
+ import { Browser, TargetFilterCallback } from './Browser.js';
18
+ import { Viewport } from './PuppeteerViewport.js';
19
+ /**
20
+ * Generic browser options that can be passed when launching any browser or when
21
+ * connecting to an existing browser instance.
22
+ * @public
23
+ */
24
+ export interface BrowserConnectOptions {
25
+ /**
26
+ * Whether to ignore HTTPS errors during navigation.
27
+ * @defaultValue false
28
+ */
29
+ ignoreHTTPSErrors?: boolean;
30
+ /**
31
+ * Sets the viewport for each page.
32
+ */
33
+ defaultViewport?: Viewport | null;
34
+ /**
35
+ * Slows down Puppeteer operations by the specified amount of milliseconds to
36
+ * aid debugging.
37
+ */
38
+ slowMo?: number;
39
+ /**
40
+ * Callback to decide if Puppeteer should connect to a given target or not.
41
+ */
42
+ targetFilter?: TargetFilterCallback;
43
+ }
44
+ /**
45
+ * Users should never call this directly; it's called when calling
46
+ * `puppeteer.connect`.
47
+ * @internal
48
+ */
49
+ export declare const connectToBrowser: (options: BrowserConnectOptions & {
50
+ browserWSEndpoint?: string;
51
+ browserURL?: string;
52
+ transport?: ConnectionTransport;
53
+ }) => Promise<Browser>;
54
+ //# sourceMappingURL=BrowserConnector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConnector.d.ts","sourceRoot":"","sources":["../../../../src/common/BrowserConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAK7D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC;AASD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAClB,qBAAqB,GAAG;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC,KACA,QAAQ,OAAO,CA6CjB,CAAC"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2020 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.connectToBrowser = void 0;
38
+ const Browser_js_1 = require("./Browser.js");
39
+ const assert_js_1 = require("./assert.js");
40
+ const helper_js_1 = require("../common/helper.js");
41
+ const Connection_js_1 = require("./Connection.js");
42
+ const fetch_js_1 = require("./fetch.js");
43
+ const environment_js_1 = require("../environment.js");
44
+ const getWebSocketTransportClass = async () => {
45
+ return environment_js_1.isNode
46
+ ? (await Promise.resolve().then(() => __importStar(require('../node/NodeWebSocketTransport.js')))).NodeWebSocketTransport
47
+ : (await Promise.resolve().then(() => __importStar(require('./BrowserWebSocketTransport.js'))))
48
+ .BrowserWebSocketTransport;
49
+ };
50
+ /**
51
+ * Users should never call this directly; it's called when calling
52
+ * `puppeteer.connect`.
53
+ * @internal
54
+ */
55
+ const connectToBrowser = async (options) => {
56
+ const { browserWSEndpoint, browserURL, ignoreHTTPSErrors = false, defaultViewport = { width: 800, height: 600 }, transport, slowMo = 0, targetFilter, } = options;
57
+ assert_js_1.assert(Number(!!browserWSEndpoint) + Number(!!browserURL) + Number(!!transport) ===
58
+ 1, 'Exactly one of browserWSEndpoint, browserURL or transport must be passed to puppeteer.connect');
59
+ let connection = null;
60
+ if (transport) {
61
+ connection = new Connection_js_1.Connection('', transport, slowMo);
62
+ }
63
+ else if (browserWSEndpoint) {
64
+ const WebSocketClass = await getWebSocketTransportClass();
65
+ const connectionTransport = await WebSocketClass.create(browserWSEndpoint);
66
+ connection = new Connection_js_1.Connection(browserWSEndpoint, connectionTransport, slowMo);
67
+ }
68
+ else if (browserURL) {
69
+ const connectionURL = await getWSEndpoint(browserURL);
70
+ const WebSocketClass = await getWebSocketTransportClass();
71
+ const connectionTransport = await WebSocketClass.create(connectionURL);
72
+ connection = new Connection_js_1.Connection(connectionURL, connectionTransport, slowMo);
73
+ }
74
+ const { browserContextIds } = await connection.send('Target.getBrowserContexts');
75
+ return Browser_js_1.Browser.create(connection, browserContextIds, ignoreHTTPSErrors, defaultViewport, null, () => connection.send('Browser.close').catch(helper_js_1.debugError), targetFilter);
76
+ };
77
+ exports.connectToBrowser = connectToBrowser;
78
+ async function getWSEndpoint(browserURL) {
79
+ const endpointURL = new URL('/json/version', browserURL);
80
+ const fetch = await fetch_js_1.getFetch();
81
+ try {
82
+ const result = await fetch(endpointURL.toString(), {
83
+ method: 'GET',
84
+ });
85
+ if (!result.ok) {
86
+ throw new Error(`HTTP ${result.statusText}`);
87
+ }
88
+ const data = await result.json();
89
+ return data.webSocketDebuggerUrl;
90
+ }
91
+ catch (error) {
92
+ error.message =
93
+ `Failed to fetch browser webSocket URL from ${endpointURL}: ` +
94
+ error.message;
95
+ throw error;
96
+ }
97
+ }
98
+ //# sourceMappingURL=BrowserConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConnector.js","sourceRoot":"","sources":["../../../../src/common/BrowserConnector.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAGH,6CAA6D;AAC7D,2CAAqC;AACrC,mDAAiD;AACjD,mDAA6C;AAC7C,yCAAsC;AAEtC,sDAA2C;AA4B3C,MAAM,0BAA0B,GAAG,KAAK,IAAI,EAAE;IAC5C,OAAO,uBAAM;QACX,CAAC,CAAC,CAAC,wDAAa,mCAAmC,GAAC,CAAC,CAAC,sBAAsB;QAC5E,CAAC,CAAC,CAAC,wDAAa,gCAAgC,GAAC,CAAC;aAC7C,yBAAyB,CAAC;AACnC,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,KAAK,EACnC,OAIC,EACiB,EAAE;IACpB,MAAM,EACJ,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAAG,KAAK,EACzB,eAAe,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,EAC7C,SAAS,EACT,MAAM,GAAG,CAAC,EACV,YAAY,GACb,GAAG,OAAO,CAAC;IAEZ,kBAAM,CACJ,MAAM,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7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IAEzD,MAAM,KAAK,GAAG,MAAM,mBAAQ,EAAE,CAAC;IAC/B,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;YACjD,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,QAAQ,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;SAC9C;QACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,oBAAoB,CAAC;KAClC;IAAC,OAAO,KAAK,EAAE;QACd,KAAK,CAAC,OAAO;YACX,8CAA8C,WAAW,IAAI;gBAC7D,KAAK,CAAC,OAAO,CAAC;QAChB,MAAM,KAAK,CAAC;KACb;AACH,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright 2020 Google Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ConnectionTransport } from './ConnectionTransport.js';
17
+ export declare class BrowserWebSocketTransport implements ConnectionTransport {
18
+ static create(url: string): Promise<BrowserWebSocketTransport>;
19
+ private _ws;
20
+ onmessage?: (message: string) => void;
21
+ onclose?: () => void;
22
+ constructor(ws: WebSocket);
23
+ send(message: string): void;
24
+ close(): void;
25
+ }
26
+ //# sourceMappingURL=BrowserWebSocketTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserWebSocketTransport.d.ts","sourceRoot":"","sources":["../../../../src/common/BrowserWebSocketTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,qBAAa,yBAA0B,YAAW,mBAAmB;IACnE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAW9D,OAAO,CAAC,GAAG,CAAY;IACvB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;gBAET,EAAE,EAAE,SAAS;IAczB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,KAAK,IAAI,IAAI;CAGd"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BrowserWebSocketTransport = void 0;
4
+ class BrowserWebSocketTransport {
5
+ constructor(ws) {
6
+ this._ws = ws;
7
+ this._ws.addEventListener('message', (event) => {
8
+ if (this.onmessage)
9
+ this.onmessage.call(null, event.data);
10
+ });
11
+ this._ws.addEventListener('close', () => {
12
+ if (this.onclose)
13
+ this.onclose.call(null);
14
+ });
15
+ // Silently ignore all errors - we don't know what to do with them.
16
+ this._ws.addEventListener('error', () => { });
17
+ this.onmessage = null;
18
+ this.onclose = null;
19
+ }
20
+ static create(url) {
21
+ return new Promise((resolve, reject) => {
22
+ const ws = new WebSocket(url);
23
+ ws.addEventListener('open', () => resolve(new BrowserWebSocketTransport(ws)));
24
+ ws.addEventListener('error', reject);
25
+ });
26
+ }
27
+ send(message) {
28
+ this._ws.send(message);
29
+ }
30
+ close() {
31
+ this._ws.close();
32
+ }
33
+ }
34
+ exports.BrowserWebSocketTransport = BrowserWebSocketTransport;
35
+ //# sourceMappingURL=BrowserWebSocketTransport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserWebSocketTransport.js","sourceRoot":"","sources":["../../../../src/common/BrowserWebSocketTransport.ts"],"names":[],"mappings":";;;AAiBA,MAAa,yBAAyB;IAgBpC,YAAY,EAAa;QACvB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,IAAI,IAAI,CAAC,SAAS;gBAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACtC,IAAI,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QACH,mEAAmE;QACnE,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IA3BD,MAAM,CAAC,MAAM,CAAC,GAAW;QACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,EAAE,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;YAE9B,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAC/B,OAAO,CAAC,IAAI,yBAAyB,CAAC,EAAE,CAAC,CAAC,CAC3C,CAAC;YACF,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC;IAoBD,IAAI,CAAC,OAAe;QAClB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;CACF;AArCD,8DAqCC"}
@@ -0,0 +1,130 @@
1
+ import { Protocol } from 'devtools-protocol';
2
+ import { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
3
+ import { ConnectionTransport } from './ConnectionTransport.js';
4
+ import { EventEmitter } from './EventEmitter.js';
5
+ /**
6
+ * @public
7
+ */
8
+ export { ConnectionTransport, ProtocolMapping };
9
+ /**
10
+ * @public
11
+ */
12
+ export interface ConnectionCallback {
13
+ resolve: Function;
14
+ reject: Function;
15
+ error: Error;
16
+ method: string;
17
+ }
18
+ /**
19
+ * Internal events that the Connection class emits.
20
+ *
21
+ * @internal
22
+ */
23
+ export declare const ConnectionEmittedEvents: {
24
+ readonly Disconnected: symbol;
25
+ };
26
+ /**
27
+ * @public
28
+ */
29
+ export declare class Connection extends EventEmitter {
30
+ _url: string;
31
+ _transport: ConnectionTransport;
32
+ _delay: number;
33
+ _lastId: number;
34
+ _sessions: Map<string, CDPSession>;
35
+ _closed: boolean;
36
+ _callbacks: Map<number, ConnectionCallback>;
37
+ constructor(url: string, transport: ConnectionTransport, delay?: number);
38
+ static fromSession(session: CDPSession): Connection;
39
+ /**
40
+ * @param sessionId - The session id
41
+ * @returns The current CDP session if it exists
42
+ */
43
+ session(sessionId: string): CDPSession | null;
44
+ url(): string;
45
+ send<T extends keyof ProtocolMapping.Commands>(method: T, ...paramArgs: ProtocolMapping.Commands[T]['paramsType']): Promise<ProtocolMapping.Commands[T]['returnType']>;
46
+ _rawSend(message: Record<string, unknown>): number;
47
+ _onMessage(message: string): Promise<void>;
48
+ _onClose(): void;
49
+ dispose(): void;
50
+ /**
51
+ * @param targetInfo - The target info
52
+ * @returns The CDP session that is created
53
+ */
54
+ createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>;
55
+ }
56
+ /**
57
+ * @public
58
+ */
59
+ export interface CDPSessionOnMessageObject {
60
+ id?: number;
61
+ method: string;
62
+ params: Record<string, unknown>;
63
+ error: {
64
+ message: string;
65
+ data: any;
66
+ };
67
+ result?: any;
68
+ }
69
+ /**
70
+ * Internal events that the CDPSession class emits.
71
+ *
72
+ * @internal
73
+ */
74
+ export declare const CDPSessionEmittedEvents: {
75
+ readonly Disconnected: symbol;
76
+ };
77
+ /**
78
+ * The `CDPSession` instances are used to talk raw Chrome Devtools Protocol.
79
+ *
80
+ * @remarks
81
+ *
82
+ * Protocol methods can be called with {@link CDPSession.send} method and protocol
83
+ * events can be subscribed to with `CDPSession.on` method.
84
+ *
85
+ * Useful links: {@link https://chromedevtools.github.io/devtools-protocol/ | DevTools Protocol Viewer}
86
+ * and {@link https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md | Getting Started with DevTools Protocol}.
87
+ *
88
+ * @example
89
+ * ```js
90
+ * const client = await page.target().createCDPSession();
91
+ * await client.send('Animation.enable');
92
+ * client.on('Animation.animationCreated', () => console.log('Animation created!'));
93
+ * const response = await client.send('Animation.getPlaybackRate');
94
+ * console.log('playback rate is ' + response.playbackRate);
95
+ * await client.send('Animation.setPlaybackRate', {
96
+ * playbackRate: response.playbackRate / 2
97
+ * });
98
+ * ```
99
+ *
100
+ * @public
101
+ */
102
+ export declare class CDPSession extends EventEmitter {
103
+ /**
104
+ * @internal
105
+ */
106
+ _connection: Connection;
107
+ private _sessionId;
108
+ private _targetType;
109
+ private _callbacks;
110
+ /**
111
+ * @internal
112
+ */
113
+ constructor(connection: Connection, targetType: string, sessionId: string);
114
+ connection(): Connection;
115
+ send<T extends keyof ProtocolMapping.Commands>(method: T, ...paramArgs: ProtocolMapping.Commands[T]['paramsType']): Promise<ProtocolMapping.Commands[T]['returnType']>;
116
+ /**
117
+ * @internal
118
+ */
119
+ _onMessage(object: CDPSessionOnMessageObject): void;
120
+ /**
121
+ * Detaches the cdpSession from the target. Once detached, the cdpSession object
122
+ * won't emit any events and can't be used to send messages.
123
+ */
124
+ detach(): Promise<void>;
125
+ /**
126
+ * @internal
127
+ */
128
+ _onClosed(): void;
129
+ }
130
+ //# sourceMappingURL=Connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/common/Connection.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AAEX;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,SAAK;IACZ,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAa;IAC/C,OAAO,UAAS;IAEhB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAa;gBAE5C,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,KAAK,SAAI;IAUlE,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU;IAInD;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,U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MAAM;IAOzE,UAAU,IAAI,UAAU;IAIxB,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,QAAQ,EAC3C,MAAM,EAAE,CAAC,EACT,GAAG,SAAS,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GACtD,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAsBrD;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI;IAenD;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAU7B;;OAEG;IACH,SAAS,IAAI,IAAI;CAYlB"}
@@ -0,0 +1,281 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CDPSession = exports.CDPSessionEmittedEvents = exports.Connection = exports.ConnectionEmittedEvents = void 0;
4
+ /**
5
+ * Copyright 2017 Google Inc. All rights reserved.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ const assert_js_1 = require("./assert.js");
20
+ const Debug_js_1 = require("./Debug.js");
21
+ const debugProtocolSend = Debug_js_1.debug('puppeteer:protocol:SEND ►');
22
+ const debugProtocolReceive = Debug_js_1.debug('puppeteer:protocol:RECV ◀');
23
+ const EventEmitter_js_1 = require("./EventEmitter.js");
24
+ /**
25
+ * Internal events that the Connection class emits.
26
+ *
27
+ * @internal
28
+ */
29
+ exports.ConnectionEmittedEvents = {
30
+ Disconnected: Symbol('Connection.Disconnected'),
31
+ };
32
+ /**
33
+ * @public
34
+ */
35
+ class Connection extends EventEmitter_js_1.EventEmitter {
36
+ constructor(url, transport, delay = 0) {
37
+ super();
38
+ this._lastId = 0;
39
+ this._sessions = new Map();
40
+ this._closed = false;
41
+ this._callbacks = new Map();
42
+ this._url = url;
43
+ this._delay = delay;
44
+ this._transport = transport;
45
+ this._transport.onmessage = this._onMessage.bind(this);
46
+ this._transport.onclose = this._onClose.bind(this);
47
+ }
48
+ static fromSession(session) {
49
+ return session._connection;
50
+ }
51
+ /**
52
+ * @param sessionId - The session id
53
+ * @returns The current CDP session if it exists
54
+ */
55
+ session(sessionId) {
56
+ return this._sessions.get(sessionId) || null;
57
+ }
58
+ url() {
59
+ return this._url;
60
+ }
61
+ send(method, ...paramArgs) {
62
+ // There is only ever 1 param arg passed, but the Protocol defines it as an
63
+ // array of 0 or 1 items See this comment:
64
+ // https://github.com/ChromeDevTools/devtools-protocol/pull/113#issuecomment-412603285
65
+ // which explains why the protocol defines the params this way for better
66
+ // type-inference.
67
+ // So now we check if there are any params or not and deal with them accordingly.
68
+ const params = paramArgs.length ? paramArgs[0] : undefined;
69
+ const id = this._rawSend({ method, params });
70
+ return new Promise((resolve, reject) => {
71
+ this._callbacks.set(id, { resolve, reject, error: new Error(), method });
72
+ });
73
+ }
74
+ _rawSend(message) {
75
+ const id = ++this._lastId;
76
+ const stringifiedMessage = JSON.stringify(Object.assign({}, message, { id }));
77
+ debugProtocolSend(stringifiedMessage);
78
+ this._transport.send(stringifiedMessage);
79
+ return id;
80
+ }
81
+ async _onMessage(message) {
82
+ if (this._delay)
83
+ await new Promise((f) => setTimeout(f, this._delay));
84
+ debugProtocolReceive(message);
85
+ const object = JSON.parse(message);
86
+ if (object.method === 'Target.attachedToTarget') {
87
+ const sessionId = object.params.sessionId;
88
+ const session = new CDPSession(this, object.params.targetInfo.type, sessionId);
89
+ this._sessions.set(sessionId, session);
90
+ this.emit('sessionattached', session);
91
+ const parentSession = this._sessions.get(object.sessionId);
92
+ if (parentSession) {
93
+ parentSession.emit('sessionattached', session);
94
+ }
95
+ }
96
+ else if (object.method === 'Target.detachedFromTarget') {
97
+ const session = this._sessions.get(object.params.sessionId);
98
+ if (session) {
99
+ session._onClosed();
100
+ this._sessions.delete(object.params.sessionId);
101
+ this.emit('sessiondetached', session);
102
+ const parentSession = this._sessions.get(object.sessionId);
103
+ if (parentSession) {
104
+ parentSession.emit('sessiondetached', session);
105
+ }
106
+ }
107
+ }
108
+ if (object.sessionId) {
109
+ const session = this._sessions.get(object.sessionId);
110
+ if (session)
111
+ session._onMessage(object);
112
+ }
113
+ else if (object.id) {
114
+ const callback = this._callbacks.get(object.id);
115
+ // Callbacks could be all rejected if someone has called `.dispose()`.
116
+ if (callback) {
117
+ this._callbacks.delete(object.id);
118
+ if (object.error)
119
+ callback.reject(createProtocolError(callback.error, callback.method, object));
120
+ else
121
+ callback.resolve(object.result);
122
+ }
123
+ }
124
+ else {
125
+ this.emit(object.method, object.params);
126
+ }
127
+ }
128
+ _onClose() {
129
+ if (this._closed)
130
+ return;
131
+ this._closed = true;
132
+ this._transport.onmessage = null;
133
+ this._transport.onclose = null;
134
+ for (const callback of this._callbacks.values())
135
+ callback.reject(rewriteError(callback.error, `Protocol error (${callback.method}): Target closed.`));
136
+ this._callbacks.clear();
137
+ for (const session of this._sessions.values())
138
+ session._onClosed();
139
+ this._sessions.clear();
140
+ this.emit(exports.ConnectionEmittedEvents.Disconnected);
141
+ }
142
+ dispose() {
143
+ this._onClose();
144
+ this._transport.close();
145
+ }
146
+ /**
147
+ * @param targetInfo - The target info
148
+ * @returns The CDP session that is created
149
+ */
150
+ async createSession(targetInfo) {
151
+ const { sessionId } = await this.send('Target.attachToTarget', {
152
+ targetId: targetInfo.targetId,
153
+ flatten: true,
154
+ });
155
+ return this._sessions.get(sessionId);
156
+ }
157
+ }
158
+ exports.Connection = Connection;
159
+ /**
160
+ * Internal events that the CDPSession class emits.
161
+ *
162
+ * @internal
163
+ */
164
+ exports.CDPSessionEmittedEvents = {
165
+ Disconnected: Symbol('CDPSession.Disconnected'),
166
+ };
167
+ /**
168
+ * The `CDPSession` instances are used to talk raw Chrome Devtools Protocol.
169
+ *
170
+ * @remarks
171
+ *
172
+ * Protocol methods can be called with {@link CDPSession.send} method and protocol
173
+ * events can be subscribed to with `CDPSession.on` method.
174
+ *
175
+ * Useful links: {@link https://chromedevtools.github.io/devtools-protocol/ | DevTools Protocol Viewer}
176
+ * and {@link https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md | Getting Started with DevTools Protocol}.
177
+ *
178
+ * @example
179
+ * ```js
180
+ * const client = await page.target().createCDPSession();
181
+ * await client.send('Animation.enable');
182
+ * client.on('Animation.animationCreated', () => console.log('Animation created!'));
183
+ * const response = await client.send('Animation.getPlaybackRate');
184
+ * console.log('playback rate is ' + response.playbackRate);
185
+ * await client.send('Animation.setPlaybackRate', {
186
+ * playbackRate: response.playbackRate / 2
187
+ * });
188
+ * ```
189
+ *
190
+ * @public
191
+ */
192
+ class CDPSession extends EventEmitter_js_1.EventEmitter {
193
+ /**
194
+ * @internal
195
+ */
196
+ constructor(connection, targetType, sessionId) {
197
+ super();
198
+ this._callbacks = new Map();
199
+ this._connection = connection;
200
+ this._targetType = targetType;
201
+ this._sessionId = sessionId;
202
+ }
203
+ connection() {
204
+ return this._connection;
205
+ }
206
+ send(method, ...paramArgs) {
207
+ if (!this._connection)
208
+ return Promise.reject(new Error(`Protocol error (${method}): Session closed. Most likely the ${this._targetType} has been closed.`));
209
+ // See the comment in Connection#send explaining why we do this.
210
+ const params = paramArgs.length ? paramArgs[0] : undefined;
211
+ const id = this._connection._rawSend({
212
+ sessionId: this._sessionId,
213
+ method,
214
+ params,
215
+ });
216
+ return new Promise((resolve, reject) => {
217
+ this._callbacks.set(id, { resolve, reject, error: new Error(), method });
218
+ });
219
+ }
220
+ /**
221
+ * @internal
222
+ */
223
+ _onMessage(object) {
224
+ if (object.id && this._callbacks.has(object.id)) {
225
+ const callback = this._callbacks.get(object.id);
226
+ this._callbacks.delete(object.id);
227
+ if (object.error)
228
+ callback.reject(createProtocolError(callback.error, callback.method, object));
229
+ else
230
+ callback.resolve(object.result);
231
+ }
232
+ else {
233
+ assert_js_1.assert(!object.id);
234
+ this.emit(object.method, object.params);
235
+ }
236
+ }
237
+ /**
238
+ * Detaches the cdpSession from the target. Once detached, the cdpSession object
239
+ * won't emit any events and can't be used to send messages.
240
+ */
241
+ async detach() {
242
+ if (!this._connection)
243
+ throw new Error(`Session already detached. Most likely the ${this._targetType} has been closed.`);
244
+ await this._connection.send('Target.detachFromTarget', {
245
+ sessionId: this._sessionId,
246
+ });
247
+ }
248
+ /**
249
+ * @internal
250
+ */
251
+ _onClosed() {
252
+ for (const callback of this._callbacks.values())
253
+ callback.reject(rewriteError(callback.error, `Protocol error (${callback.method}): Target closed.`));
254
+ this._callbacks.clear();
255
+ this._connection = null;
256
+ this.emit(exports.CDPSessionEmittedEvents.Disconnected);
257
+ }
258
+ }
259
+ exports.CDPSession = CDPSession;
260
+ /**
261
+ * @param {!Error} error
262
+ * @param {string} method
263
+ * @param {{error: {message: string, data: any}}} object
264
+ * @returns {!Error}
265
+ */
266
+ function createProtocolError(error, method, object) {
267
+ let message = `Protocol error (${method}): ${object.error.message}`;
268
+ if ('data' in object.error)
269
+ message += ` ${object.error.data}`;
270
+ return rewriteError(error, message);
271
+ }
272
+ /**
273
+ * @param {!Error} error
274
+ * @param {string} message
275
+ * @returns {!Error}
276
+ */
277
+ function rewriteError(error, message) {
278
+ error.message = message;
279
+ return error;
280
+ }
281
+ //# sourceMappingURL=Connection.js.map