@azuro-org/images-generator 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2307) hide show
  1. package/README.md +1 -1
  2. package/dist/index-13c8d604.js +4198 -0
  3. package/{foo/node_modules/@azuro-org/images-generator/src/index.ts → dist/index.d.ts} +1 -1
  4. package/dist/index.es.js +128 -0
  5. package/dist/templates/_template/index.d.ts +4 -0
  6. package/dist/templates/bet-nft/index.d.ts +27 -0
  7. package/dist/templates/bet-nft/index.js +47 -0
  8. package/dist/templates/bet-og/index.d.ts +15 -0
  9. package/dist/templates/bet-og/index.js +39 -0
  10. package/dist/utils/generateImage.d.ts +21 -0
  11. package/dist/utils/index.d.ts +5 -0
  12. package/dist/utils/types.d.ts +8 -0
  13. package/lib/templates/bet-nft/index.js +7 -9
  14. package/lib/templates/bet-og/index.js +6 -6
  15. package/package.json +1 -1
  16. package/.tool-versions +0 -1
  17. package/foo/index.js +0 -28
  18. package/foo/node_modules/.package-lock.json +0 -845
  19. package/foo/node_modules/@azuro-org/images-generator/.nvmrc +0 -1
  20. package/foo/node_modules/@azuro-org/images-generator/.tool-versions +0 -1
  21. package/foo/node_modules/@azuro-org/images-generator/README.md +0 -126
  22. package/foo/node_modules/@azuro-org/images-generator/package.json +0 -44
  23. package/foo/node_modules/@azuro-org/images-generator/rollup.config.js +0 -107
  24. package/foo/node_modules/@azuro-org/images-generator/src/fonts/fivo-sans-modern/bold.woff +0 -0
  25. package/foo/node_modules/@azuro-org/images-generator/src/fonts/fivo-sans-modern/bold.woff2 +0 -0
  26. package/foo/node_modules/@azuro-org/images-generator/src/templates/_template/index.css +0 -13
  27. package/foo/node_modules/@azuro-org/images-generator/src/templates/_template/index.html +0 -13
  28. package/foo/node_modules/@azuro-org/images-generator/src/templates/_template/index.ts +0 -22
  29. package/foo/node_modules/@azuro-org/images-generator/src/templates/bet-nft/example.png +0 -0
  30. package/foo/node_modules/@azuro-org/images-generator/src/templates/bet-nft/index.ts +0 -69
  31. package/foo/node_modules/@azuro-org/images-generator/src/templates/bet-og/example.jpeg +0 -0
  32. package/foo/node_modules/@azuro-org/images-generator/src/templates/bet-og/index.ts +0 -57
  33. package/foo/node_modules/@azuro-org/images-generator/src/utils/generateImage.ts +0 -89
  34. package/foo/node_modules/@azuro-org/images-generator/src/utils/index.ts +0 -37
  35. package/foo/node_modules/@azuro-org/images-generator/src/utils/types.ts +0 -8
  36. package/foo/node_modules/@azuro-org/images-generator/tsconfig.json +0 -20
  37. package/foo/node_modules/@babel/code-frame/LICENSE +0 -22
  38. package/foo/node_modules/@babel/code-frame/README.md +0 -19
  39. package/foo/node_modules/@babel/code-frame/lib/index.js +0 -163
  40. package/foo/node_modules/@babel/code-frame/package.json +0 -30
  41. package/foo/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
  42. package/foo/node_modules/@babel/helper-validator-identifier/README.md +0 -19
  43. package/foo/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -86
  44. package/foo/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  45. package/foo/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -59
  46. package/foo/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  47. package/foo/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -40
  48. package/foo/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  49. package/foo/node_modules/@babel/helper-validator-identifier/package.json +0 -28
  50. package/foo/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -75
  51. package/foo/node_modules/@babel/highlight/LICENSE +0 -22
  52. package/foo/node_modules/@babel/highlight/README.md +0 -19
  53. package/foo/node_modules/@babel/highlight/lib/index.js +0 -116
  54. package/foo/node_modules/@babel/highlight/package.json +0 -30
  55. package/foo/node_modules/@types/node/LICENSE +0 -21
  56. package/foo/node_modules/@types/node/README.md +0 -16
  57. package/foo/node_modules/@types/node/assert/strict.d.ts +0 -8
  58. package/foo/node_modules/@types/node/assert.d.ts +0 -961
  59. package/foo/node_modules/@types/node/async_hooks.d.ts +0 -513
  60. package/foo/node_modules/@types/node/buffer.d.ts +0 -2282
  61. package/foo/node_modules/@types/node/child_process.d.ts +0 -1369
  62. package/foo/node_modules/@types/node/cluster.d.ts +0 -410
  63. package/foo/node_modules/@types/node/console.d.ts +0 -412
  64. package/foo/node_modules/@types/node/constants.d.ts +0 -18
  65. package/foo/node_modules/@types/node/crypto.d.ts +0 -3964
  66. package/foo/node_modules/@types/node/dgram.d.ts +0 -545
  67. package/foo/node_modules/@types/node/diagnostics_channel.d.ts +0 -153
  68. package/foo/node_modules/@types/node/dns/promises.d.ts +0 -370
  69. package/foo/node_modules/@types/node/dns.d.ts +0 -659
  70. package/foo/node_modules/@types/node/dom-events.d.ts +0 -126
  71. package/foo/node_modules/@types/node/domain.d.ts +0 -170
  72. package/foo/node_modules/@types/node/events.d.ts +0 -678
  73. package/foo/node_modules/@types/node/fs/promises.d.ts +0 -1138
  74. package/foo/node_modules/@types/node/fs.d.ts +0 -3872
  75. package/foo/node_modules/@types/node/globals.d.ts +0 -300
  76. package/foo/node_modules/@types/node/globals.global.d.ts +0 -1
  77. package/foo/node_modules/@types/node/http.d.ts +0 -1651
  78. package/foo/node_modules/@types/node/http2.d.ts +0 -2134
  79. package/foo/node_modules/@types/node/https.d.ts +0 -542
  80. package/foo/node_modules/@types/node/index.d.ts +0 -134
  81. package/foo/node_modules/@types/node/inspector.d.ts +0 -2741
  82. package/foo/node_modules/@types/node/module.d.ts +0 -115
  83. package/foo/node_modules/@types/node/net.d.ts +0 -877
  84. package/foo/node_modules/@types/node/os.d.ts +0 -466
  85. package/foo/node_modules/@types/node/package.json +0 -237
  86. package/foo/node_modules/@types/node/path.d.ts +0 -191
  87. package/foo/node_modules/@types/node/perf_hooks.d.ts +0 -625
  88. package/foo/node_modules/@types/node/process.d.ts +0 -1482
  89. package/foo/node_modules/@types/node/punycode.d.ts +0 -117
  90. package/foo/node_modules/@types/node/querystring.d.ts +0 -131
  91. package/foo/node_modules/@types/node/readline/promises.d.ts +0 -143
  92. package/foo/node_modules/@types/node/readline.d.ts +0 -653
  93. package/foo/node_modules/@types/node/repl.d.ts +0 -424
  94. package/foo/node_modules/@types/node/stream/consumers.d.ts +0 -12
  95. package/foo/node_modules/@types/node/stream/promises.d.ts +0 -42
  96. package/foo/node_modules/@types/node/stream/web.d.ts +0 -330
  97. package/foo/node_modules/@types/node/stream.d.ts +0 -1340
  98. package/foo/node_modules/@types/node/string_decoder.d.ts +0 -67
  99. package/foo/node_modules/@types/node/test.d.ts +0 -692
  100. package/foo/node_modules/@types/node/timers/promises.d.ts +0 -93
  101. package/foo/node_modules/@types/node/timers.d.ts +0 -94
  102. package/foo/node_modules/@types/node/tls.d.ts +0 -1107
  103. package/foo/node_modules/@types/node/trace_events.d.ts +0 -171
  104. package/foo/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  105. package/foo/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  106. package/foo/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -513
  107. package/foo/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2283
  108. package/foo/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1369
  109. package/foo/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  110. package/foo/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  111. package/foo/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  112. package/foo/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3964
  113. package/foo/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  114. package/foo/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -153
  115. package/foo/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  116. package/foo/node_modules/@types/node/ts4.8/dns.d.ts +0 -659
  117. package/foo/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  118. package/foo/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  119. package/foo/node_modules/@types/node/ts4.8/events.d.ts +0 -678
  120. package/foo/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  121. package/foo/node_modules/@types/node/ts4.8/fs.d.ts +0 -3872
  122. package/foo/node_modules/@types/node/ts4.8/globals.d.ts +0 -294
  123. package/foo/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  124. package/foo/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  125. package/foo/node_modules/@types/node/ts4.8/http2.d.ts +0 -2134
  126. package/foo/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  127. package/foo/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  128. package/foo/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  129. package/foo/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  130. package/foo/node_modules/@types/node/ts4.8/net.d.ts +0 -877
  131. package/foo/node_modules/@types/node/ts4.8/os.d.ts +0 -466
  132. package/foo/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  133. package/foo/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  134. package/foo/node_modules/@types/node/ts4.8/process.d.ts +0 -1482
  135. package/foo/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  136. package/foo/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  137. package/foo/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  138. package/foo/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  139. package/foo/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  140. package/foo/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  141. package/foo/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  142. package/foo/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  143. package/foo/node_modules/@types/node/ts4.8/stream.d.ts +0 -1340
  144. package/foo/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  145. package/foo/node_modules/@types/node/ts4.8/test.d.ts +0 -692
  146. package/foo/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  147. package/foo/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  148. package/foo/node_modules/@types/node/ts4.8/tls.d.ts +0 -1107
  149. package/foo/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  150. package/foo/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  151. package/foo/node_modules/@types/node/ts4.8/url.d.ts +0 -897
  152. package/foo/node_modules/@types/node/ts4.8/util.d.ts +0 -2011
  153. package/foo/node_modules/@types/node/ts4.8/v8.d.ts +0 -396
  154. package/foo/node_modules/@types/node/ts4.8/vm.d.ts +0 -509
  155. package/foo/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  156. package/foo/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -689
  157. package/foo/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  158. package/foo/node_modules/@types/node/tty.d.ts +0 -206
  159. package/foo/node_modules/@types/node/url.d.ts +0 -897
  160. package/foo/node_modules/@types/node/util.d.ts +0 -2011
  161. package/foo/node_modules/@types/node/v8.d.ts +0 -396
  162. package/foo/node_modules/@types/node/vm.d.ts +0 -509
  163. package/foo/node_modules/@types/node/wasi.d.ts +0 -158
  164. package/foo/node_modules/@types/node/worker_threads.d.ts +0 -689
  165. package/foo/node_modules/@types/node/zlib.d.ts +0 -517
  166. package/foo/node_modules/@types/yauzl/LICENSE +0 -21
  167. package/foo/node_modules/@types/yauzl/README.md +0 -16
  168. package/foo/node_modules/@types/yauzl/index.d.ts +0 -98
  169. package/foo/node_modules/@types/yauzl/package.json +0 -27
  170. package/foo/node_modules/agent-base/README.md +0 -145
  171. package/foo/node_modules/agent-base/dist/src/index.d.ts +0 -78
  172. package/foo/node_modules/agent-base/dist/src/index.js +0 -203
  173. package/foo/node_modules/agent-base/dist/src/index.js.map +0 -1
  174. package/foo/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
  175. package/foo/node_modules/agent-base/dist/src/promisify.js +0 -18
  176. package/foo/node_modules/agent-base/dist/src/promisify.js.map +0 -1
  177. package/foo/node_modules/agent-base/package.json +0 -64
  178. package/foo/node_modules/agent-base/src/index.ts +0 -345
  179. package/foo/node_modules/agent-base/src/promisify.ts +0 -33
  180. package/foo/node_modules/ansi-styles/index.js +0 -165
  181. package/foo/node_modules/ansi-styles/license +0 -9
  182. package/foo/node_modules/ansi-styles/package.json +0 -56
  183. package/foo/node_modules/ansi-styles/readme.md +0 -147
  184. package/foo/node_modules/argparse/CHANGELOG.md +0 -216
  185. package/foo/node_modules/argparse/LICENSE +0 -254
  186. package/foo/node_modules/argparse/README.md +0 -84
  187. package/foo/node_modules/argparse/argparse.js +0 -3707
  188. package/foo/node_modules/argparse/lib/sub.js +0 -67
  189. package/foo/node_modules/argparse/lib/textwrap.js +0 -440
  190. package/foo/node_modules/argparse/package.json +0 -31
  191. package/foo/node_modules/axios/CHANGELOG.md +0 -906
  192. package/foo/node_modules/axios/LICENSE +0 -19
  193. package/foo/node_modules/axios/README.md +0 -909
  194. package/foo/node_modules/axios/SECURITY.md +0 -5
  195. package/foo/node_modules/axios/UPGRADE_GUIDE.md +0 -168
  196. package/foo/node_modules/axios/dist/axios.js +0 -2293
  197. package/foo/node_modules/axios/dist/axios.map +0 -1
  198. package/foo/node_modules/axios/dist/axios.min.js +0 -2
  199. package/foo/node_modules/axios/dist/axios.min.map +0 -1
  200. package/foo/node_modules/axios/index.d.ts +0 -221
  201. package/foo/node_modules/axios/index.js +0 -1
  202. package/foo/node_modules/axios/lib/adapters/README.md +0 -37
  203. package/foo/node_modules/axios/lib/adapters/http.js +0 -404
  204. package/foo/node_modules/axios/lib/adapters/xhr.js +0 -212
  205. package/foo/node_modules/axios/lib/axios.js +0 -57
  206. package/foo/node_modules/axios/lib/cancel/Cancel.js +0 -19
  207. package/foo/node_modules/axios/lib/cancel/CancelToken.js +0 -119
  208. package/foo/node_modules/axios/lib/cancel/isCancel.js +0 -5
  209. package/foo/node_modules/axios/lib/core/Axios.js +0 -148
  210. package/foo/node_modules/axios/lib/core/InterceptorManager.js +0 -54
  211. package/foo/node_modules/axios/lib/core/README.md +0 -8
  212. package/foo/node_modules/axios/lib/core/buildFullPath.js +0 -20
  213. package/foo/node_modules/axios/lib/core/createError.js +0 -18
  214. package/foo/node_modules/axios/lib/core/dispatchRequest.js +0 -87
  215. package/foo/node_modules/axios/lib/core/enhanceError.js +0 -43
  216. package/foo/node_modules/axios/lib/core/mergeConfig.js +0 -99
  217. package/foo/node_modules/axios/lib/core/settle.js +0 -25
  218. package/foo/node_modules/axios/lib/core/transformData.js +0 -22
  219. package/foo/node_modules/axios/lib/defaults/index.js +0 -131
  220. package/foo/node_modules/axios/lib/defaults/transitional.js +0 -7
  221. package/foo/node_modules/axios/lib/env/README.md +0 -3
  222. package/foo/node_modules/axios/lib/env/data.js +0 -3
  223. package/foo/node_modules/axios/lib/helpers/README.md +0 -7
  224. package/foo/node_modules/axios/lib/helpers/bind.js +0 -11
  225. package/foo/node_modules/axios/lib/helpers/buildURL.js +0 -70
  226. package/foo/node_modules/axios/lib/helpers/combineURLs.js +0 -14
  227. package/foo/node_modules/axios/lib/helpers/cookies.js +0 -53
  228. package/foo/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
  229. package/foo/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
  230. package/foo/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
  231. package/foo/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
  232. package/foo/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  233. package/foo/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
  234. package/foo/node_modules/axios/lib/helpers/spread.js +0 -27
  235. package/foo/node_modules/axios/lib/helpers/toFormData.js +0 -55
  236. package/foo/node_modules/axios/lib/helpers/validator.js +0 -82
  237. package/foo/node_modules/axios/lib/utils.js +0 -349
  238. package/foo/node_modules/axios/package.json +0 -86
  239. package/foo/node_modules/axios/tsconfig.json +0 -14
  240. package/foo/node_modules/axios/tslint.json +0 -6
  241. package/foo/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  242. package/foo/node_modules/balanced-match/LICENSE.md +0 -21
  243. package/foo/node_modules/balanced-match/README.md +0 -97
  244. package/foo/node_modules/balanced-match/index.js +0 -62
  245. package/foo/node_modules/balanced-match/package.json +0 -48
  246. package/foo/node_modules/base64-js/LICENSE +0 -21
  247. package/foo/node_modules/base64-js/README.md +0 -34
  248. package/foo/node_modules/base64-js/base64js.min.js +0 -1
  249. package/foo/node_modules/base64-js/index.d.ts +0 -3
  250. package/foo/node_modules/base64-js/index.js +0 -150
  251. package/foo/node_modules/base64-js/package.json +0 -47
  252. package/foo/node_modules/bl/.travis.yml +0 -17
  253. package/foo/node_modules/bl/BufferList.js +0 -396
  254. package/foo/node_modules/bl/LICENSE.md +0 -13
  255. package/foo/node_modules/bl/README.md +0 -247
  256. package/foo/node_modules/bl/bl.js +0 -84
  257. package/foo/node_modules/bl/package.json +0 -37
  258. package/foo/node_modules/bl/test/convert.js +0 -21
  259. package/foo/node_modules/bl/test/indexOf.js +0 -492
  260. package/foo/node_modules/bl/test/isBufferList.js +0 -32
  261. package/foo/node_modules/bl/test/test.js +0 -869
  262. package/foo/node_modules/brace-expansion/LICENSE +0 -21
  263. package/foo/node_modules/brace-expansion/README.md +0 -129
  264. package/foo/node_modules/brace-expansion/index.js +0 -201
  265. package/foo/node_modules/brace-expansion/package.json +0 -47
  266. package/foo/node_modules/buffer/AUTHORS.md +0 -70
  267. package/foo/node_modules/buffer/LICENSE +0 -21
  268. package/foo/node_modules/buffer/README.md +0 -410
  269. package/foo/node_modules/buffer/index.d.ts +0 -186
  270. package/foo/node_modules/buffer/index.js +0 -1817
  271. package/foo/node_modules/buffer/package.json +0 -96
  272. package/foo/node_modules/buffer-crc32/LICENSE +0 -19
  273. package/foo/node_modules/buffer-crc32/README.md +0 -47
  274. package/foo/node_modules/buffer-crc32/index.js +0 -111
  275. package/foo/node_modules/buffer-crc32/package.json +0 -39
  276. package/foo/node_modules/builtin-modules/builtin-modules.json +0 -43
  277. package/foo/node_modules/builtin-modules/index.d.ts +0 -14
  278. package/foo/node_modules/builtin-modules/index.js +0 -11
  279. package/foo/node_modules/builtin-modules/license +0 -9
  280. package/foo/node_modules/builtin-modules/package.json +0 -44
  281. package/foo/node_modules/builtin-modules/readme.md +0 -44
  282. package/foo/node_modules/builtin-modules/static.d.ts +0 -14
  283. package/foo/node_modules/builtin-modules/static.js +0 -2
  284. package/foo/node_modules/callsites/index.d.ts +0 -96
  285. package/foo/node_modules/callsites/index.js +0 -13
  286. package/foo/node_modules/callsites/license +0 -9
  287. package/foo/node_modules/callsites/package.json +0 -39
  288. package/foo/node_modules/callsites/readme.md +0 -48
  289. package/foo/node_modules/chalk/index.js +0 -228
  290. package/foo/node_modules/chalk/index.js.flow +0 -93
  291. package/foo/node_modules/chalk/license +0 -9
  292. package/foo/node_modules/chalk/package.json +0 -71
  293. package/foo/node_modules/chalk/readme.md +0 -314
  294. package/foo/node_modules/chalk/templates.js +0 -128
  295. package/foo/node_modules/chalk/types/index.d.ts +0 -97
  296. package/foo/node_modules/chownr/LICENSE +0 -15
  297. package/foo/node_modules/chownr/README.md +0 -3
  298. package/foo/node_modules/chownr/chownr.js +0 -167
  299. package/foo/node_modules/chownr/package.json +0 -29
  300. package/foo/node_modules/chromium-bidi/LICENSE +0 -201
  301. package/foo/node_modules/chromium-bidi/README.md +0 -395
  302. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts +0 -40
  303. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js +0 -89
  304. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map +0 -1
  305. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts +0 -22
  306. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js +0 -19
  307. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js.map +0 -1
  308. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CdpConnection.d.ts +0 -32
  309. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CdpConnection.js +0 -19
  310. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CdpConnection.js.map +0 -1
  311. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts +0 -46
  312. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js +0 -136
  313. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map +0 -1
  314. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingBidiMessage.d.ts +0 -25
  315. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingBidiMessage.js +0 -42
  316. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingBidiMessage.js.map +0 -1
  317. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/bidiMapper.d.ts +0 -25
  318. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/bidiMapper.js +0 -24
  319. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/bidiMapper.js.map +0 -1
  320. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextImpl.d.ts +0 -43
  321. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextImpl.js +0 -375
  322. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextImpl.js.map +0 -1
  323. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextProcessor.d.ts +0 -47
  324. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextProcessor.js +0 -238
  325. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextProcessor.js.map +0 -1
  326. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextStorage.d.ts +0 -26
  327. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextStorage.js +0 -50
  328. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/browsingContextStorage.js.map +0 -1
  329. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.d.ts +0 -32
  330. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js +0 -167
  331. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js.map +0 -1
  332. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.d.ts +0 -25
  333. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js +0 -128
  334. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js.map +0 -1
  335. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.spec.d.ts +0 -16
  336. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.spec.js +0 -175
  337. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.spec.js.map +0 -1
  338. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper.d.ts +0 -23
  339. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper.js +0 -176
  340. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper.js.map +0 -1
  341. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_getRemoteValuesText.spec.d.ts +0 -17
  342. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_getRemoteValuesText.spec.js +0 -65
  343. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_getRemoteValuesText.spec.js.map +0 -1
  344. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_logMessageFormatter.spec.d.ts +0 -17
  345. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_logMessageFormatter.spec.js +0 -378
  346. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logHelper_logMessageFormatter.spec.js.map +0 -1
  347. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logManager.d.ts +0 -8
  348. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logManager.js +0 -136
  349. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/logManager.js.map +0 -1
  350. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realm.d.ts +0 -56
  351. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realm.js +0 -185
  352. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realm.js.map +0 -1
  353. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realmStorage.d.ts +0 -38
  354. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realmStorage.js +0 -72
  355. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/realmStorage.js.map +0 -1
  356. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/scriptEvaluator.d.ts +0 -41
  357. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/scriptEvaluator.js +0 -365
  358. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/scriptEvaluator.js.map +0 -1
  359. package/foo/node_modules/chromium-bidi/lib/cjs/bidiMapper/tsconfig.tsbuildinfo +0 -1
  360. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/bidiServerRunner.d.ts +0 -29
  361. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/bidiServerRunner.js +0 -157
  362. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/bidiServerRunner.js.map +0 -1
  363. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/index.d.ts +0 -17
  364. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js +0 -112
  365. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js.map +0 -1
  366. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperReader.d.ts +0 -17
  367. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperReader.js +0 -28
  368. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperReader.js.map +0 -1
  369. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperServer.d.ts +0 -32
  370. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperServer.js +0 -139
  371. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/mapperServer.js.map +0 -1
  372. package/foo/node_modules/chromium-bidi/lib/cjs/bidiServer/tsconfig.tsbuildinfo +0 -1
  373. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts +0 -30
  374. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js +0 -248
  375. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map +0 -1
  376. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.d.ts +0 -19
  377. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js +0 -74
  378. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js.map +0 -1
  379. package/foo/node_modules/chromium-bidi/lib/cjs/bidiTab/tsconfig.tsbuildinfo +0 -1
  380. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.d.ts +0 -41
  381. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.js +0 -50
  382. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.js.map +0 -1
  383. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.spec.d.ts +0 -17
  384. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.spec.js +0 -194
  385. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpClient.spec.js.map +0 -1
  386. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.d.ts +0 -42
  387. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.js +0 -121
  388. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.js.map +0 -1
  389. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.spec.d.ts +0 -17
  390. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.spec.js +0 -154
  391. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpConnection.spec.js.map +0 -1
  392. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.d.ts +0 -28
  393. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js +0 -19
  394. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js.map +0 -1
  395. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/index.d.ts +0 -19
  396. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/index.js +0 -26
  397. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/index.js.map +0 -1
  398. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/stubTransport.spec.d.ts +0 -28
  399. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/stubTransport.spec.js +0 -44
  400. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/stubTransport.spec.js.map +0 -1
  401. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/tsconfig.tsbuildinfo +0 -1
  402. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/websocketTransport.d.ts +0 -26
  403. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/websocketTransport.js +0 -43
  404. package/foo/node_modules/chromium-bidi/lib/cjs/cdp/websocketTransport.js.map +0 -1
  405. package/foo/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts +0 -518
  406. package/foo/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js +0 -101
  407. package/foo/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map +0 -1
  408. package/foo/node_modules/chromium-bidi/lib/cjs/protocol/tsconfig.tsbuildinfo +0 -1
  409. package/foo/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts +0 -765
  410. package/foo/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js +0 -385
  411. package/foo/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map +0 -1
  412. package/foo/node_modules/chromium-bidi/lib/cjs/protocol-parser/tsconfig.tsbuildinfo +0 -1
  413. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.d.ts +0 -51
  414. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js +0 -59
  415. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js.map +0 -1
  416. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.spec.d.ts +0 -16
  417. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.spec.js +0 -109
  418. package/foo/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.spec.js.map +0 -1
  419. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.d.ts +0 -29
  420. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.js +0 -49
  421. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.js.map +0 -1
  422. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.spec.d.ts +0 -17
  423. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.spec.js +0 -68
  424. package/foo/node_modules/chromium-bidi/lib/cjs/utils/buffer.spec.js.map +0 -1
  425. package/foo/node_modules/chromium-bidi/lib/cjs/utils/deferred.d.ts +0 -27
  426. package/foo/node_modules/chromium-bidi/lib/cjs/utils/deferred.js +0 -54
  427. package/foo/node_modules/chromium-bidi/lib/cjs/utils/deferred.js.map +0 -1
  428. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.d.ts +0 -24
  429. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.js +0 -34
  430. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.js.map +0 -1
  431. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.spec.d.ts +0 -17
  432. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.spec.js +0 -53
  433. package/foo/node_modules/chromium-bidi/lib/cjs/utils/idWrapper.spec.js.map +0 -1
  434. package/foo/node_modules/chromium-bidi/lib/cjs/utils/log.d.ts +0 -23
  435. package/foo/node_modules/chromium-bidi/lib/cjs/utils/log.js +0 -27
  436. package/foo/node_modules/chromium-bidi/lib/cjs/utils/log.js.map +0 -1
  437. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.d.ts +0 -22
  438. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.js +0 -60
  439. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.js.map +0 -1
  440. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.spec.d.ts +0 -17
  441. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.spec.js +0 -105
  442. package/foo/node_modules/chromium-bidi/lib/cjs/utils/processingQueue.spec.js.map +0 -1
  443. package/foo/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts +0 -25
  444. package/foo/node_modules/chromium-bidi/lib/cjs/utils/transport.js +0 -19
  445. package/foo/node_modules/chromium-bidi/lib/cjs/utils/transport.js.map +0 -1
  446. package/foo/node_modules/chromium-bidi/lib/cjs/utils/tsconfig.tsbuildinfo +0 -1
  447. package/foo/node_modules/chromium-bidi/lib/iife/mapperTab.js +0 -21
  448. package/foo/node_modules/chromium-bidi/lib/iife/mapperTab.js.map +0 -1
  449. package/foo/node_modules/chromium-bidi/package.json +0 -78
  450. package/foo/node_modules/color-convert/CHANGELOG.md +0 -54
  451. package/foo/node_modules/color-convert/LICENSE +0 -21
  452. package/foo/node_modules/color-convert/README.md +0 -68
  453. package/foo/node_modules/color-convert/conversions.js +0 -868
  454. package/foo/node_modules/color-convert/index.js +0 -78
  455. package/foo/node_modules/color-convert/package.json +0 -46
  456. package/foo/node_modules/color-convert/route.js +0 -97
  457. package/foo/node_modules/color-name/.eslintrc.json +0 -43
  458. package/foo/node_modules/color-name/LICENSE +0 -8
  459. package/foo/node_modules/color-name/README.md +0 -11
  460. package/foo/node_modules/color-name/index.js +0 -152
  461. package/foo/node_modules/color-name/package.json +0 -25
  462. package/foo/node_modules/color-name/test.js +0 -7
  463. package/foo/node_modules/concat-map/.travis.yml +0 -4
  464. package/foo/node_modules/concat-map/LICENSE +0 -18
  465. package/foo/node_modules/concat-map/README.markdown +0 -62
  466. package/foo/node_modules/concat-map/example/map.js +0 -6
  467. package/foo/node_modules/concat-map/index.js +0 -13
  468. package/foo/node_modules/concat-map/package.json +0 -43
  469. package/foo/node_modules/concat-map/test/map.js +0 -39
  470. package/foo/node_modules/cosmiconfig/LICENSE +0 -22
  471. package/foo/node_modules/cosmiconfig/README.md +0 -582
  472. package/foo/node_modules/cosmiconfig/dist/Explorer.d.ts +0 -14
  473. package/foo/node_modules/cosmiconfig/dist/Explorer.d.ts.map +0 -1
  474. package/foo/node_modules/cosmiconfig/dist/Explorer.js +0 -123
  475. package/foo/node_modules/cosmiconfig/dist/Explorer.js.map +0 -1
  476. package/foo/node_modules/cosmiconfig/dist/ExplorerBase.d.ts +0 -21
  477. package/foo/node_modules/cosmiconfig/dist/ExplorerBase.d.ts.map +0 -1
  478. package/foo/node_modules/cosmiconfig/dist/ExplorerBase.js +0 -142
  479. package/foo/node_modules/cosmiconfig/dist/ExplorerBase.js.map +0 -1
  480. package/foo/node_modules/cosmiconfig/dist/ExplorerSync.d.ts +0 -14
  481. package/foo/node_modules/cosmiconfig/dist/ExplorerSync.d.ts.map +0 -1
  482. package/foo/node_modules/cosmiconfig/dist/ExplorerSync.js +0 -123
  483. package/foo/node_modules/cosmiconfig/dist/ExplorerSync.js.map +0 -1
  484. package/foo/node_modules/cosmiconfig/dist/cacheWrapper.d.ts +0 -5
  485. package/foo/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map +0 -1
  486. package/foo/node_modules/cosmiconfig/dist/cacheWrapper.js +0 -32
  487. package/foo/node_modules/cosmiconfig/dist/cacheWrapper.js.map +0 -1
  488. package/foo/node_modules/cosmiconfig/dist/getDirectory.d.ts +0 -4
  489. package/foo/node_modules/cosmiconfig/dist/getDirectory.d.ts.map +0 -1
  490. package/foo/node_modules/cosmiconfig/dist/getDirectory.js +0 -38
  491. package/foo/node_modules/cosmiconfig/dist/getDirectory.js.map +0 -1
  492. package/foo/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts +0 -5
  493. package/foo/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map +0 -1
  494. package/foo/node_modules/cosmiconfig/dist/getPropertyByPath.js +0 -28
  495. package/foo/node_modules/cosmiconfig/dist/getPropertyByPath.js.map +0 -1
  496. package/foo/node_modules/cosmiconfig/dist/index.d.ts +0 -45
  497. package/foo/node_modules/cosmiconfig/dist/index.d.ts.map +0 -1
  498. package/foo/node_modules/cosmiconfig/dist/index.js +0 -82
  499. package/foo/node_modules/cosmiconfig/dist/index.js.map +0 -1
  500. package/foo/node_modules/cosmiconfig/dist/loaders.d.ts +0 -4
  501. package/foo/node_modules/cosmiconfig/dist/loaders.d.ts.map +0 -1
  502. package/foo/node_modules/cosmiconfig/dist/loaders.js +0 -58
  503. package/foo/node_modules/cosmiconfig/dist/loaders.js.map +0 -1
  504. package/foo/node_modules/cosmiconfig/dist/readFile.d.ts +0 -7
  505. package/foo/node_modules/cosmiconfig/dist/readFile.d.ts.map +0 -1
  506. package/foo/node_modules/cosmiconfig/dist/readFile.js +0 -56
  507. package/foo/node_modules/cosmiconfig/dist/readFile.js.map +0 -1
  508. package/foo/node_modules/cosmiconfig/dist/types.d.ts +0 -20
  509. package/foo/node_modules/cosmiconfig/dist/types.d.ts.map +0 -1
  510. package/foo/node_modules/cosmiconfig/dist/types.js +0 -6
  511. package/foo/node_modules/cosmiconfig/dist/types.js.map +0 -1
  512. package/foo/node_modules/cosmiconfig/package.json +0 -146
  513. package/foo/node_modules/cross-fetch/LICENSE +0 -21
  514. package/foo/node_modules/cross-fetch/README.md +0 -169
  515. package/foo/node_modules/cross-fetch/dist/browser-polyfill.js +0 -532
  516. package/foo/node_modules/cross-fetch/dist/browser-ponyfill.js +0 -554
  517. package/foo/node_modules/cross-fetch/dist/cross-fetch.js +0 -2
  518. package/foo/node_modules/cross-fetch/dist/cross-fetch.js.map +0 -1
  519. package/foo/node_modules/cross-fetch/dist/node-polyfill.js +0 -11
  520. package/foo/node_modules/cross-fetch/dist/node-ponyfill.js +0 -22
  521. package/foo/node_modules/cross-fetch/dist/react-native-polyfill.js +0 -12
  522. package/foo/node_modules/cross-fetch/dist/react-native-ponyfill.js +0 -6
  523. package/foo/node_modules/cross-fetch/index.d.ts +0 -14
  524. package/foo/node_modules/cross-fetch/package.json +0 -129
  525. package/foo/node_modules/cross-fetch/polyfill/package.json +0 -8
  526. package/foo/node_modules/dayjs/.editorconfig +0 -6
  527. package/foo/node_modules/dayjs/CHANGELOG.md +0 -877
  528. package/foo/node_modules/dayjs/LICENSE +0 -21
  529. package/foo/node_modules/dayjs/README.md +0 -140
  530. package/foo/node_modules/dayjs/dayjs.min.js +0 -1
  531. package/foo/node_modules/dayjs/esm/constant.js +0 -25
  532. package/foo/node_modules/dayjs/esm/index.d.ts +0 -429
  533. package/foo/node_modules/dayjs/esm/index.js +0 -441
  534. package/foo/node_modules/dayjs/esm/locale/af.js +0 -39
  535. package/foo/node_modules/dayjs/esm/locale/am.js +0 -40
  536. package/foo/node_modules/dayjs/esm/locale/ar-dz.js +0 -41
  537. package/foo/node_modules/dayjs/esm/locale/ar-iq.js +0 -42
  538. package/foo/node_modules/dayjs/esm/locale/ar-kw.js +0 -41
  539. package/foo/node_modules/dayjs/esm/locale/ar-ly.js +0 -27
  540. package/foo/node_modules/dayjs/esm/locale/ar-ma.js +0 -42
  541. package/foo/node_modules/dayjs/esm/locale/ar-sa.js +0 -41
  542. package/foo/node_modules/dayjs/esm/locale/ar-tn.js +0 -42
  543. package/foo/node_modules/dayjs/esm/locale/ar.js +0 -74
  544. package/foo/node_modules/dayjs/esm/locale/az.js +0 -39
  545. package/foo/node_modules/dayjs/esm/locale/be.js +0 -24
  546. package/foo/node_modules/dayjs/esm/locale/bg.js +0 -55
  547. package/foo/node_modules/dayjs/esm/locale/bi.js +0 -39
  548. package/foo/node_modules/dayjs/esm/locale/bm.js +0 -39
  549. package/foo/node_modules/dayjs/esm/locale/bn-bd.js +0 -81
  550. package/foo/node_modules/dayjs/esm/locale/bn.js +0 -72
  551. package/foo/node_modules/dayjs/esm/locale/bo.js +0 -38
  552. package/foo/node_modules/dayjs/esm/locale/br.js +0 -93
  553. package/foo/node_modules/dayjs/esm/locale/bs.js +0 -24
  554. package/foo/node_modules/dayjs/esm/locale/ca.js +0 -44
  555. package/foo/node_modules/dayjs/esm/locale/cs.js +0 -120
  556. package/foo/node_modules/dayjs/esm/locale/cv.js +0 -24
  557. package/foo/node_modules/dayjs/esm/locale/cy.js +0 -39
  558. package/foo/node_modules/dayjs/esm/locale/da.js +0 -39
  559. package/foo/node_modules/dayjs/esm/locale/de-at.js +0 -63
  560. package/foo/node_modules/dayjs/esm/locale/de-ch.js +0 -63
  561. package/foo/node_modules/dayjs/esm/locale/de.js +0 -64
  562. package/foo/node_modules/dayjs/esm/locale/dv.js +0 -39
  563. package/foo/node_modules/dayjs/esm/locale/el.js +0 -39
  564. package/foo/node_modules/dayjs/esm/locale/en-au.js +0 -39
  565. package/foo/node_modules/dayjs/esm/locale/en-ca.js +0 -38
  566. package/foo/node_modules/dayjs/esm/locale/en-gb.js +0 -42
  567. package/foo/node_modules/dayjs/esm/locale/en-ie.js +0 -39
  568. package/foo/node_modules/dayjs/esm/locale/en-il.js +0 -38
  569. package/foo/node_modules/dayjs/esm/locale/en-in.js +0 -42
  570. package/foo/node_modules/dayjs/esm/locale/en-nz.js +0 -41
  571. package/foo/node_modules/dayjs/esm/locale/en-sg.js +0 -39
  572. package/foo/node_modules/dayjs/esm/locale/en-tt.js +0 -42
  573. package/foo/node_modules/dayjs/esm/locale/en.js +0 -12
  574. package/foo/node_modules/dayjs/esm/locale/eo.js +0 -39
  575. package/foo/node_modules/dayjs/esm/locale/es-do.js +0 -39
  576. package/foo/node_modules/dayjs/esm/locale/es-mx.js +0 -38
  577. package/foo/node_modules/dayjs/esm/locale/es-pr.js +0 -39
  578. package/foo/node_modules/dayjs/esm/locale/es-us.js +0 -38
  579. package/foo/node_modules/dayjs/esm/locale/es.js +0 -39
  580. package/foo/node_modules/dayjs/esm/locale/et.js +0 -65
  581. package/foo/node_modules/dayjs/esm/locale/eu.js +0 -43
  582. package/foo/node_modules/dayjs/esm/locale/fa.js +0 -39
  583. package/foo/node_modules/dayjs/esm/locale/fi.js +0 -88
  584. package/foo/node_modules/dayjs/esm/locale/fo.js +0 -39
  585. package/foo/node_modules/dayjs/esm/locale/fr-ca.js +0 -38
  586. package/foo/node_modules/dayjs/esm/locale/fr-ch.js +0 -39
  587. package/foo/node_modules/dayjs/esm/locale/fr.js +0 -41
  588. package/foo/node_modules/dayjs/esm/locale/fy.js +0 -39
  589. package/foo/node_modules/dayjs/esm/locale/ga.js +0 -39
  590. package/foo/node_modules/dayjs/esm/locale/gd.js +0 -39
  591. package/foo/node_modules/dayjs/esm/locale/gl.js +0 -39
  592. package/foo/node_modules/dayjs/esm/locale/gom-latn.js +0 -25
  593. package/foo/node_modules/dayjs/esm/locale/gu.js +0 -38
  594. package/foo/node_modules/dayjs/esm/locale/he.js +0 -78
  595. package/foo/node_modules/dayjs/esm/locale/hi.js +0 -38
  596. package/foo/node_modules/dayjs/esm/locale/hr.js +0 -53
  597. package/foo/node_modules/dayjs/esm/locale/ht.js +0 -38
  598. package/foo/node_modules/dayjs/esm/locale/hu.js +0 -61
  599. package/foo/node_modules/dayjs/esm/locale/hy-am.js +0 -39
  600. package/foo/node_modules/dayjs/esm/locale/id.js +0 -39
  601. package/foo/node_modules/dayjs/esm/locale/index.d.ts +0 -11
  602. package/foo/node_modules/dayjs/esm/locale/is.js +0 -68
  603. package/foo/node_modules/dayjs/esm/locale/it-ch.js +0 -39
  604. package/foo/node_modules/dayjs/esm/locale/it.js +0 -39
  605. package/foo/node_modules/dayjs/esm/locale/ja.js +0 -45
  606. package/foo/node_modules/dayjs/esm/locale/jv.js +0 -39
  607. package/foo/node_modules/dayjs/esm/locale/ka.js +0 -39
  608. package/foo/node_modules/dayjs/esm/locale/kk.js +0 -39
  609. package/foo/node_modules/dayjs/esm/locale/km.js +0 -39
  610. package/foo/node_modules/dayjs/esm/locale/kn.js +0 -38
  611. package/foo/node_modules/dayjs/esm/locale/ko.js +0 -45
  612. package/foo/node_modules/dayjs/esm/locale/ku.js +0 -77
  613. package/foo/node_modules/dayjs/esm/locale/ky.js +0 -39
  614. package/foo/node_modules/dayjs/esm/locale/lb.js +0 -24
  615. package/foo/node_modules/dayjs/esm/locale/lo.js +0 -38
  616. package/foo/node_modules/dayjs/esm/locale/lt.js +0 -70
  617. package/foo/node_modules/dayjs/esm/locale/lv.js +0 -39
  618. package/foo/node_modules/dayjs/esm/locale/me.js +0 -24
  619. package/foo/node_modules/dayjs/esm/locale/mi.js +0 -39
  620. package/foo/node_modules/dayjs/esm/locale/mk.js +0 -39
  621. package/foo/node_modules/dayjs/esm/locale/ml.js +0 -38
  622. package/foo/node_modules/dayjs/esm/locale/mn.js +0 -38
  623. package/foo/node_modules/dayjs/esm/locale/mr.js +0 -23
  624. package/foo/node_modules/dayjs/esm/locale/ms-my.js +0 -39
  625. package/foo/node_modules/dayjs/esm/locale/ms.js +0 -39
  626. package/foo/node_modules/dayjs/esm/locale/mt.js +0 -39
  627. package/foo/node_modules/dayjs/esm/locale/my.js +0 -39
  628. package/foo/node_modules/dayjs/esm/locale/nb.js +0 -40
  629. package/foo/node_modules/dayjs/esm/locale/ne.js +0 -40
  630. package/foo/node_modules/dayjs/esm/locale/nl-be.js +0 -39
  631. package/foo/node_modules/dayjs/esm/locale/nl.js +0 -40
  632. package/foo/node_modules/dayjs/esm/locale/nn.js +0 -39
  633. package/foo/node_modules/dayjs/esm/locale/oc-lnc.js +0 -39
  634. package/foo/node_modules/dayjs/esm/locale/pa-in.js +0 -38
  635. package/foo/node_modules/dayjs/esm/locale/pl.js +0 -87
  636. package/foo/node_modules/dayjs/esm/locale/pt-br.js +0 -38
  637. package/foo/node_modules/dayjs/esm/locale/pt.js +0 -40
  638. package/foo/node_modules/dayjs/esm/locale/rn.js +0 -39
  639. package/foo/node_modules/dayjs/esm/locale/ro.js +0 -39
  640. package/foo/node_modules/dayjs/esm/locale/ru.js +0 -99
  641. package/foo/node_modules/dayjs/esm/locale/rw.js +0 -35
  642. package/foo/node_modules/dayjs/esm/locale/sd.js +0 -39
  643. package/foo/node_modules/dayjs/esm/locale/se.js +0 -39
  644. package/foo/node_modules/dayjs/esm/locale/si.js +0 -38
  645. package/foo/node_modules/dayjs/esm/locale/sk.js +0 -121
  646. package/foo/node_modules/dayjs/esm/locale/sl.js +0 -39
  647. package/foo/node_modules/dayjs/esm/locale/sq.js +0 -39
  648. package/foo/node_modules/dayjs/esm/locale/sr-cyrl.js +0 -74
  649. package/foo/node_modules/dayjs/esm/locale/sr.js +0 -74
  650. package/foo/node_modules/dayjs/esm/locale/ss.js +0 -39
  651. package/foo/node_modules/dayjs/esm/locale/sv-fi.js +0 -46
  652. package/foo/node_modules/dayjs/esm/locale/sv.js +0 -44
  653. package/foo/node_modules/dayjs/esm/locale/sw.js +0 -39
  654. package/foo/node_modules/dayjs/esm/locale/ta.js +0 -38
  655. package/foo/node_modules/dayjs/esm/locale/te.js +0 -38
  656. package/foo/node_modules/dayjs/esm/locale/tet.js +0 -39
  657. package/foo/node_modules/dayjs/esm/locale/tg.js +0 -39
  658. package/foo/node_modules/dayjs/esm/locale/th.js +0 -38
  659. package/foo/node_modules/dayjs/esm/locale/tk.js +0 -39
  660. package/foo/node_modules/dayjs/esm/locale/tl-ph.js +0 -39
  661. package/foo/node_modules/dayjs/esm/locale/tlh.js +0 -24
  662. package/foo/node_modules/dayjs/esm/locale/tr.js +0 -39
  663. package/foo/node_modules/dayjs/esm/locale/types.d.ts +0 -33
  664. package/foo/node_modules/dayjs/esm/locale/tzl.js +0 -24
  665. package/foo/node_modules/dayjs/esm/locale/tzm-latn.js +0 -39
  666. package/foo/node_modules/dayjs/esm/locale/tzm.js +0 -39
  667. package/foo/node_modules/dayjs/esm/locale/ug-cn.js +0 -39
  668. package/foo/node_modules/dayjs/esm/locale/uk.js +0 -77
  669. package/foo/node_modules/dayjs/esm/locale/ur.js +0 -39
  670. package/foo/node_modules/dayjs/esm/locale/uz-latn.js +0 -39
  671. package/foo/node_modules/dayjs/esm/locale/uz.js +0 -39
  672. package/foo/node_modules/dayjs/esm/locale/vi.js +0 -43
  673. package/foo/node_modules/dayjs/esm/locale/x-pseudo.js +0 -39
  674. package/foo/node_modules/dayjs/esm/locale/yo.js +0 -39
  675. package/foo/node_modules/dayjs/esm/locale/zh-cn.js +0 -67
  676. package/foo/node_modules/dayjs/esm/locale/zh-hk.js +0 -44
  677. package/foo/node_modules/dayjs/esm/locale/zh-tw.js +0 -65
  678. package/foo/node_modules/dayjs/esm/locale/zh.js +0 -67
  679. package/foo/node_modules/dayjs/esm/plugin/advancedFormat/index.d.ts +0 -4
  680. package/foo/node_modules/dayjs/esm/plugin/advancedFormat/index.js +0 -66
  681. package/foo/node_modules/dayjs/esm/plugin/arraySupport/index.d.ts +0 -10
  682. package/foo/node_modules/dayjs/esm/plugin/arraySupport/index.js +0 -33
  683. package/foo/node_modules/dayjs/esm/plugin/badMutable/index.d.ts +0 -4
  684. package/foo/node_modules/dayjs/esm/plugin/badMutable/index.js +0 -61
  685. package/foo/node_modules/dayjs/esm/plugin/bigIntSupport/index.d.ts +0 -11
  686. package/foo/node_modules/dayjs/esm/plugin/bigIntSupport/index.js +0 -32
  687. package/foo/node_modules/dayjs/esm/plugin/buddhistEra/index.d.ts +0 -4
  688. package/foo/node_modules/dayjs/esm/plugin/buddhistEra/index.js +0 -21
  689. package/foo/node_modules/dayjs/esm/plugin/calendar/index.d.ts +0 -10
  690. package/foo/node_modules/dayjs/esm/plugin/calendar/index.js +0 -32
  691. package/foo/node_modules/dayjs/esm/plugin/customParseFormat/index.d.ts +0 -8
  692. package/foo/node_modules/dayjs/esm/plugin/customParseFormat/index.js +0 -320
  693. package/foo/node_modules/dayjs/esm/plugin/dayOfYear/index.d.ts +0 -11
  694. package/foo/node_modules/dayjs/esm/plugin/dayOfYear/index.js +0 -9
  695. package/foo/node_modules/dayjs/esm/plugin/devHelper/index.d.ts +0 -4
  696. package/foo/node_modules/dayjs/esm/plugin/devHelper/index.js +0 -38
  697. package/foo/node_modules/dayjs/esm/plugin/duration/index.d.ts +0 -88
  698. package/foo/node_modules/dayjs/esm/plugin/duration/index.js +0 -341
  699. package/foo/node_modules/dayjs/esm/plugin/isBetween/index.d.ts +0 -10
  700. package/foo/node_modules/dayjs/esm/plugin/isBetween/index.js +0 -10
  701. package/foo/node_modules/dayjs/esm/plugin/isLeapYear/index.d.ts +0 -10
  702. package/foo/node_modules/dayjs/esm/plugin/isLeapYear/index.js +0 -7
  703. package/foo/node_modules/dayjs/esm/plugin/isMoment/index.d.ts +0 -10
  704. package/foo/node_modules/dayjs/esm/plugin/isMoment/index.js +0 -5
  705. package/foo/node_modules/dayjs/esm/plugin/isSameOrAfter/index.d.ts +0 -10
  706. package/foo/node_modules/dayjs/esm/plugin/isSameOrAfter/index.js +0 -5
  707. package/foo/node_modules/dayjs/esm/plugin/isSameOrBefore/index.d.ts +0 -10
  708. package/foo/node_modules/dayjs/esm/plugin/isSameOrBefore/index.js +0 -5
  709. package/foo/node_modules/dayjs/esm/plugin/isToday/index.d.ts +0 -10
  710. package/foo/node_modules/dayjs/esm/plugin/isToday/index.js +0 -9
  711. package/foo/node_modules/dayjs/esm/plugin/isTomorrow/index.d.ts +0 -10
  712. package/foo/node_modules/dayjs/esm/plugin/isTomorrow/index.js +0 -9
  713. package/foo/node_modules/dayjs/esm/plugin/isYesterday/index.d.ts +0 -10
  714. package/foo/node_modules/dayjs/esm/plugin/isYesterday/index.js +0 -9
  715. package/foo/node_modules/dayjs/esm/plugin/isoWeek/index.d.ts +0 -27
  716. package/foo/node_modules/dayjs/esm/plugin/isoWeek/index.js +0 -57
  717. package/foo/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts +0 -10
  718. package/foo/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.js +0 -15
  719. package/foo/node_modules/dayjs/esm/plugin/localeData/index.d.ts +0 -44
  720. package/foo/node_modules/dayjs/esm/plugin/localeData/index.js +0 -114
  721. package/foo/node_modules/dayjs/esm/plugin/localizedFormat/index.d.ts +0 -4
  722. package/foo/node_modules/dayjs/esm/plugin/localizedFormat/index.js +0 -20
  723. package/foo/node_modules/dayjs/esm/plugin/localizedFormat/utils.js +0 -20
  724. package/foo/node_modules/dayjs/esm/plugin/minMax/index.d.ts +0 -11
  725. package/foo/node_modules/dayjs/esm/plugin/minMax/index.js +0 -36
  726. package/foo/node_modules/dayjs/esm/plugin/objectSupport/index.d.ts +0 -48
  727. package/foo/node_modules/dayjs/esm/plugin/objectSupport/index.js +0 -97
  728. package/foo/node_modules/dayjs/esm/plugin/pluralGetSet/index.d.ts +0 -44
  729. package/foo/node_modules/dayjs/esm/plugin/pluralGetSet/index.js +0 -7
  730. package/foo/node_modules/dayjs/esm/plugin/preParsePostFormat/index.d.ts +0 -4
  731. package/foo/node_modules/dayjs/esm/plugin/preParsePostFormat/index.js +0 -40
  732. package/foo/node_modules/dayjs/esm/plugin/quarterOfYear/index.d.ts +0 -26
  733. package/foo/node_modules/dayjs/esm/plugin/quarterOfYear/index.js +0 -41
  734. package/foo/node_modules/dayjs/esm/plugin/relativeTime/index.d.ts +0 -24
  735. package/foo/node_modules/dayjs/esm/plugin/relativeTime/index.js +0 -130
  736. package/foo/node_modules/dayjs/esm/plugin/timezone/index.d.ts +0 -20
  737. package/foo/node_modules/dayjs/esm/plugin/timezone/index.js +0 -185
  738. package/foo/node_modules/dayjs/esm/plugin/toArray/index.d.ts +0 -10
  739. package/foo/node_modules/dayjs/esm/plugin/toArray/index.js +0 -7
  740. package/foo/node_modules/dayjs/esm/plugin/toObject/index.d.ts +0 -20
  741. package/foo/node_modules/dayjs/esm/plugin/toObject/index.js +0 -15
  742. package/foo/node_modules/dayjs/esm/plugin/updateLocale/index.d.ts +0 -8
  743. package/foo/node_modules/dayjs/esm/plugin/updateLocale/index.js +0 -12
  744. package/foo/node_modules/dayjs/esm/plugin/utc/index.d.ts +0 -19
  745. package/foo/node_modules/dayjs/esm/plugin/utc/index.js +0 -188
  746. package/foo/node_modules/dayjs/esm/plugin/weekOfYear/index.d.ts +0 -12
  747. package/foo/node_modules/dayjs/esm/plugin/weekOfYear/index.js +0 -44
  748. package/foo/node_modules/dayjs/esm/plugin/weekYear/index.d.ts +0 -10
  749. package/foo/node_modules/dayjs/esm/plugin/weekYear/index.js +0 -19
  750. package/foo/node_modules/dayjs/esm/plugin/weekday/index.d.ts +0 -12
  751. package/foo/node_modules/dayjs/esm/plugin/weekday/index.js +0 -15
  752. package/foo/node_modules/dayjs/esm/utils.js +0 -58
  753. package/foo/node_modules/dayjs/index.d.ts +0 -429
  754. package/foo/node_modules/dayjs/locale/af.js +0 -1
  755. package/foo/node_modules/dayjs/locale/am.js +0 -1
  756. package/foo/node_modules/dayjs/locale/ar-dz.js +0 -1
  757. package/foo/node_modules/dayjs/locale/ar-iq.js +0 -1
  758. package/foo/node_modules/dayjs/locale/ar-kw.js +0 -1
  759. package/foo/node_modules/dayjs/locale/ar-ly.js +0 -1
  760. package/foo/node_modules/dayjs/locale/ar-ma.js +0 -1
  761. package/foo/node_modules/dayjs/locale/ar-sa.js +0 -1
  762. package/foo/node_modules/dayjs/locale/ar-tn.js +0 -1
  763. package/foo/node_modules/dayjs/locale/ar.js +0 -1
  764. package/foo/node_modules/dayjs/locale/az.js +0 -1
  765. package/foo/node_modules/dayjs/locale/be.js +0 -1
  766. package/foo/node_modules/dayjs/locale/bg.js +0 -1
  767. package/foo/node_modules/dayjs/locale/bi.js +0 -1
  768. package/foo/node_modules/dayjs/locale/bm.js +0 -1
  769. package/foo/node_modules/dayjs/locale/bn-bd.js +0 -1
  770. package/foo/node_modules/dayjs/locale/bn.js +0 -1
  771. package/foo/node_modules/dayjs/locale/bo.js +0 -1
  772. package/foo/node_modules/dayjs/locale/br.js +0 -1
  773. package/foo/node_modules/dayjs/locale/bs.js +0 -1
  774. package/foo/node_modules/dayjs/locale/ca.js +0 -1
  775. package/foo/node_modules/dayjs/locale/cs.js +0 -1
  776. package/foo/node_modules/dayjs/locale/cv.js +0 -1
  777. package/foo/node_modules/dayjs/locale/cy.js +0 -1
  778. package/foo/node_modules/dayjs/locale/da.js +0 -1
  779. package/foo/node_modules/dayjs/locale/de-at.js +0 -1
  780. package/foo/node_modules/dayjs/locale/de-ch.js +0 -1
  781. package/foo/node_modules/dayjs/locale/de.js +0 -1
  782. package/foo/node_modules/dayjs/locale/dv.js +0 -1
  783. package/foo/node_modules/dayjs/locale/el.js +0 -1
  784. package/foo/node_modules/dayjs/locale/en-au.js +0 -1
  785. package/foo/node_modules/dayjs/locale/en-ca.js +0 -1
  786. package/foo/node_modules/dayjs/locale/en-gb.js +0 -1
  787. package/foo/node_modules/dayjs/locale/en-ie.js +0 -1
  788. package/foo/node_modules/dayjs/locale/en-il.js +0 -1
  789. package/foo/node_modules/dayjs/locale/en-in.js +0 -1
  790. package/foo/node_modules/dayjs/locale/en-nz.js +0 -1
  791. package/foo/node_modules/dayjs/locale/en-sg.js +0 -1
  792. package/foo/node_modules/dayjs/locale/en-tt.js +0 -1
  793. package/foo/node_modules/dayjs/locale/en.js +0 -1
  794. package/foo/node_modules/dayjs/locale/eo.js +0 -1
  795. package/foo/node_modules/dayjs/locale/es-do.js +0 -1
  796. package/foo/node_modules/dayjs/locale/es-mx.js +0 -1
  797. package/foo/node_modules/dayjs/locale/es-pr.js +0 -1
  798. package/foo/node_modules/dayjs/locale/es-us.js +0 -1
  799. package/foo/node_modules/dayjs/locale/es.js +0 -1
  800. package/foo/node_modules/dayjs/locale/et.js +0 -1
  801. package/foo/node_modules/dayjs/locale/eu.js +0 -1
  802. package/foo/node_modules/dayjs/locale/fa.js +0 -1
  803. package/foo/node_modules/dayjs/locale/fi.js +0 -1
  804. package/foo/node_modules/dayjs/locale/fo.js +0 -1
  805. package/foo/node_modules/dayjs/locale/fr-ca.js +0 -1
  806. package/foo/node_modules/dayjs/locale/fr-ch.js +0 -1
  807. package/foo/node_modules/dayjs/locale/fr.js +0 -1
  808. package/foo/node_modules/dayjs/locale/fy.js +0 -1
  809. package/foo/node_modules/dayjs/locale/ga.js +0 -1
  810. package/foo/node_modules/dayjs/locale/gd.js +0 -1
  811. package/foo/node_modules/dayjs/locale/gl.js +0 -1
  812. package/foo/node_modules/dayjs/locale/gom-latn.js +0 -1
  813. package/foo/node_modules/dayjs/locale/gu.js +0 -1
  814. package/foo/node_modules/dayjs/locale/he.js +0 -1
  815. package/foo/node_modules/dayjs/locale/hi.js +0 -1
  816. package/foo/node_modules/dayjs/locale/hr.js +0 -1
  817. package/foo/node_modules/dayjs/locale/ht.js +0 -1
  818. package/foo/node_modules/dayjs/locale/hu.js +0 -1
  819. package/foo/node_modules/dayjs/locale/hy-am.js +0 -1
  820. package/foo/node_modules/dayjs/locale/id.js +0 -1
  821. package/foo/node_modules/dayjs/locale/index.d.ts +0 -11
  822. package/foo/node_modules/dayjs/locale/is.js +0 -1
  823. package/foo/node_modules/dayjs/locale/it-ch.js +0 -1
  824. package/foo/node_modules/dayjs/locale/it.js +0 -1
  825. package/foo/node_modules/dayjs/locale/ja.js +0 -1
  826. package/foo/node_modules/dayjs/locale/jv.js +0 -1
  827. package/foo/node_modules/dayjs/locale/ka.js +0 -1
  828. package/foo/node_modules/dayjs/locale/kk.js +0 -1
  829. package/foo/node_modules/dayjs/locale/km.js +0 -1
  830. package/foo/node_modules/dayjs/locale/kn.js +0 -1
  831. package/foo/node_modules/dayjs/locale/ko.js +0 -1
  832. package/foo/node_modules/dayjs/locale/ku.js +0 -1
  833. package/foo/node_modules/dayjs/locale/ky.js +0 -1
  834. package/foo/node_modules/dayjs/locale/lb.js +0 -1
  835. package/foo/node_modules/dayjs/locale/lo.js +0 -1
  836. package/foo/node_modules/dayjs/locale/lt.js +0 -1
  837. package/foo/node_modules/dayjs/locale/lv.js +0 -1
  838. package/foo/node_modules/dayjs/locale/me.js +0 -1
  839. package/foo/node_modules/dayjs/locale/mi.js +0 -1
  840. package/foo/node_modules/dayjs/locale/mk.js +0 -1
  841. package/foo/node_modules/dayjs/locale/ml.js +0 -1
  842. package/foo/node_modules/dayjs/locale/mn.js +0 -1
  843. package/foo/node_modules/dayjs/locale/mr.js +0 -1
  844. package/foo/node_modules/dayjs/locale/ms-my.js +0 -1
  845. package/foo/node_modules/dayjs/locale/ms.js +0 -1
  846. package/foo/node_modules/dayjs/locale/mt.js +0 -1
  847. package/foo/node_modules/dayjs/locale/my.js +0 -1
  848. package/foo/node_modules/dayjs/locale/nb.js +0 -1
  849. package/foo/node_modules/dayjs/locale/ne.js +0 -1
  850. package/foo/node_modules/dayjs/locale/nl-be.js +0 -1
  851. package/foo/node_modules/dayjs/locale/nl.js +0 -1
  852. package/foo/node_modules/dayjs/locale/nn.js +0 -1
  853. package/foo/node_modules/dayjs/locale/oc-lnc.js +0 -1
  854. package/foo/node_modules/dayjs/locale/pa-in.js +0 -1
  855. package/foo/node_modules/dayjs/locale/pl.js +0 -1
  856. package/foo/node_modules/dayjs/locale/pt-br.js +0 -1
  857. package/foo/node_modules/dayjs/locale/pt.js +0 -1
  858. package/foo/node_modules/dayjs/locale/rn.js +0 -1
  859. package/foo/node_modules/dayjs/locale/ro.js +0 -1
  860. package/foo/node_modules/dayjs/locale/ru.js +0 -1
  861. package/foo/node_modules/dayjs/locale/rw.js +0 -1
  862. package/foo/node_modules/dayjs/locale/sd.js +0 -1
  863. package/foo/node_modules/dayjs/locale/se.js +0 -1
  864. package/foo/node_modules/dayjs/locale/si.js +0 -1
  865. package/foo/node_modules/dayjs/locale/sk.js +0 -1
  866. package/foo/node_modules/dayjs/locale/sl.js +0 -1
  867. package/foo/node_modules/dayjs/locale/sq.js +0 -1
  868. package/foo/node_modules/dayjs/locale/sr-cyrl.js +0 -1
  869. package/foo/node_modules/dayjs/locale/sr.js +0 -1
  870. package/foo/node_modules/dayjs/locale/ss.js +0 -1
  871. package/foo/node_modules/dayjs/locale/sv-fi.js +0 -1
  872. package/foo/node_modules/dayjs/locale/sv.js +0 -1
  873. package/foo/node_modules/dayjs/locale/sw.js +0 -1
  874. package/foo/node_modules/dayjs/locale/ta.js +0 -1
  875. package/foo/node_modules/dayjs/locale/te.js +0 -1
  876. package/foo/node_modules/dayjs/locale/tet.js +0 -1
  877. package/foo/node_modules/dayjs/locale/tg.js +0 -1
  878. package/foo/node_modules/dayjs/locale/th.js +0 -1
  879. package/foo/node_modules/dayjs/locale/tk.js +0 -1
  880. package/foo/node_modules/dayjs/locale/tl-ph.js +0 -1
  881. package/foo/node_modules/dayjs/locale/tlh.js +0 -1
  882. package/foo/node_modules/dayjs/locale/tr.js +0 -1
  883. package/foo/node_modules/dayjs/locale/types.d.ts +0 -33
  884. package/foo/node_modules/dayjs/locale/tzl.js +0 -1
  885. package/foo/node_modules/dayjs/locale/tzm-latn.js +0 -1
  886. package/foo/node_modules/dayjs/locale/tzm.js +0 -1
  887. package/foo/node_modules/dayjs/locale/ug-cn.js +0 -1
  888. package/foo/node_modules/dayjs/locale/uk.js +0 -1
  889. package/foo/node_modules/dayjs/locale/ur.js +0 -1
  890. package/foo/node_modules/dayjs/locale/uz-latn.js +0 -1
  891. package/foo/node_modules/dayjs/locale/uz.js +0 -1
  892. package/foo/node_modules/dayjs/locale/vi.js +0 -1
  893. package/foo/node_modules/dayjs/locale/x-pseudo.js +0 -1
  894. package/foo/node_modules/dayjs/locale/yo.js +0 -1
  895. package/foo/node_modules/dayjs/locale/zh-cn.js +0 -1
  896. package/foo/node_modules/dayjs/locale/zh-hk.js +0 -1
  897. package/foo/node_modules/dayjs/locale/zh-tw.js +0 -1
  898. package/foo/node_modules/dayjs/locale/zh.js +0 -1
  899. package/foo/node_modules/dayjs/locale.json +0 -1
  900. package/foo/node_modules/dayjs/package.json +0 -99
  901. package/foo/node_modules/dayjs/plugin/advancedFormat.d.ts +0 -4
  902. package/foo/node_modules/dayjs/plugin/advancedFormat.js +0 -1
  903. package/foo/node_modules/dayjs/plugin/arraySupport.d.ts +0 -10
  904. package/foo/node_modules/dayjs/plugin/arraySupport.js +0 -1
  905. package/foo/node_modules/dayjs/plugin/badMutable.d.ts +0 -4
  906. package/foo/node_modules/dayjs/plugin/badMutable.js +0 -1
  907. package/foo/node_modules/dayjs/plugin/bigIntSupport.d.ts +0 -11
  908. package/foo/node_modules/dayjs/plugin/bigIntSupport.js +0 -1
  909. package/foo/node_modules/dayjs/plugin/buddhistEra.d.ts +0 -4
  910. package/foo/node_modules/dayjs/plugin/buddhistEra.js +0 -1
  911. package/foo/node_modules/dayjs/plugin/calendar.d.ts +0 -10
  912. package/foo/node_modules/dayjs/plugin/calendar.js +0 -1
  913. package/foo/node_modules/dayjs/plugin/customParseFormat.d.ts +0 -8
  914. package/foo/node_modules/dayjs/plugin/customParseFormat.js +0 -1
  915. package/foo/node_modules/dayjs/plugin/dayOfYear.d.ts +0 -11
  916. package/foo/node_modules/dayjs/plugin/dayOfYear.js +0 -1
  917. package/foo/node_modules/dayjs/plugin/devHelper.d.ts +0 -4
  918. package/foo/node_modules/dayjs/plugin/devHelper.js +0 -1
  919. package/foo/node_modules/dayjs/plugin/duration.d.ts +0 -88
  920. package/foo/node_modules/dayjs/plugin/duration.js +0 -1
  921. package/foo/node_modules/dayjs/plugin/isBetween.d.ts +0 -10
  922. package/foo/node_modules/dayjs/plugin/isBetween.js +0 -1
  923. package/foo/node_modules/dayjs/plugin/isLeapYear.d.ts +0 -10
  924. package/foo/node_modules/dayjs/plugin/isLeapYear.js +0 -1
  925. package/foo/node_modules/dayjs/plugin/isMoment.d.ts +0 -10
  926. package/foo/node_modules/dayjs/plugin/isMoment.js +0 -1
  927. package/foo/node_modules/dayjs/plugin/isSameOrAfter.d.ts +0 -10
  928. package/foo/node_modules/dayjs/plugin/isSameOrAfter.js +0 -1
  929. package/foo/node_modules/dayjs/plugin/isSameOrBefore.d.ts +0 -10
  930. package/foo/node_modules/dayjs/plugin/isSameOrBefore.js +0 -1
  931. package/foo/node_modules/dayjs/plugin/isToday.d.ts +0 -10
  932. package/foo/node_modules/dayjs/plugin/isToday.js +0 -1
  933. package/foo/node_modules/dayjs/plugin/isTomorrow.d.ts +0 -10
  934. package/foo/node_modules/dayjs/plugin/isTomorrow.js +0 -1
  935. package/foo/node_modules/dayjs/plugin/isYesterday.d.ts +0 -10
  936. package/foo/node_modules/dayjs/plugin/isYesterday.js +0 -1
  937. package/foo/node_modules/dayjs/plugin/isoWeek.d.ts +0 -27
  938. package/foo/node_modules/dayjs/plugin/isoWeek.js +0 -1
  939. package/foo/node_modules/dayjs/plugin/isoWeeksInYear.d.ts +0 -10
  940. package/foo/node_modules/dayjs/plugin/isoWeeksInYear.js +0 -1
  941. package/foo/node_modules/dayjs/plugin/localeData.d.ts +0 -44
  942. package/foo/node_modules/dayjs/plugin/localeData.js +0 -1
  943. package/foo/node_modules/dayjs/plugin/localizedFormat.d.ts +0 -4
  944. package/foo/node_modules/dayjs/plugin/localizedFormat.js +0 -1
  945. package/foo/node_modules/dayjs/plugin/minMax.d.ts +0 -11
  946. package/foo/node_modules/dayjs/plugin/minMax.js +0 -1
  947. package/foo/node_modules/dayjs/plugin/objectSupport.d.ts +0 -48
  948. package/foo/node_modules/dayjs/plugin/objectSupport.js +0 -1
  949. package/foo/node_modules/dayjs/plugin/pluralGetSet.d.ts +0 -44
  950. package/foo/node_modules/dayjs/plugin/pluralGetSet.js +0 -1
  951. package/foo/node_modules/dayjs/plugin/preParsePostFormat.d.ts +0 -4
  952. package/foo/node_modules/dayjs/plugin/preParsePostFormat.js +0 -1
  953. package/foo/node_modules/dayjs/plugin/quarterOfYear.d.ts +0 -26
  954. package/foo/node_modules/dayjs/plugin/quarterOfYear.js +0 -1
  955. package/foo/node_modules/dayjs/plugin/relativeTime.d.ts +0 -24
  956. package/foo/node_modules/dayjs/plugin/relativeTime.js +0 -1
  957. package/foo/node_modules/dayjs/plugin/timezone.d.ts +0 -20
  958. package/foo/node_modules/dayjs/plugin/timezone.js +0 -1
  959. package/foo/node_modules/dayjs/plugin/toArray.d.ts +0 -10
  960. package/foo/node_modules/dayjs/plugin/toArray.js +0 -1
  961. package/foo/node_modules/dayjs/plugin/toObject.d.ts +0 -20
  962. package/foo/node_modules/dayjs/plugin/toObject.js +0 -1
  963. package/foo/node_modules/dayjs/plugin/updateLocale.d.ts +0 -8
  964. package/foo/node_modules/dayjs/plugin/updateLocale.js +0 -1
  965. package/foo/node_modules/dayjs/plugin/utc.d.ts +0 -19
  966. package/foo/node_modules/dayjs/plugin/utc.js +0 -1
  967. package/foo/node_modules/dayjs/plugin/weekOfYear.d.ts +0 -12
  968. package/foo/node_modules/dayjs/plugin/weekOfYear.js +0 -1
  969. package/foo/node_modules/dayjs/plugin/weekYear.d.ts +0 -10
  970. package/foo/node_modules/dayjs/plugin/weekYear.js +0 -1
  971. package/foo/node_modules/dayjs/plugin/weekday.d.ts +0 -12
  972. package/foo/node_modules/dayjs/plugin/weekday.js +0 -1
  973. package/foo/node_modules/debug/LICENSE +0 -20
  974. package/foo/node_modules/debug/README.md +0 -481
  975. package/foo/node_modules/debug/package.json +0 -59
  976. package/foo/node_modules/debug/src/browser.js +0 -269
  977. package/foo/node_modules/debug/src/common.js +0 -274
  978. package/foo/node_modules/debug/src/index.js +0 -10
  979. package/foo/node_modules/debug/src/node.js +0 -263
  980. package/foo/node_modules/devtools-protocol/LICENSE +0 -27
  981. package/foo/node_modules/devtools-protocol/README.md +0 -11
  982. package/foo/node_modules/devtools-protocol/json/browser_protocol.json +0 -22787
  983. package/foo/node_modules/devtools-protocol/json/js_protocol.json +0 -3696
  984. package/foo/node_modules/devtools-protocol/package.json +0 -17
  985. package/foo/node_modules/devtools-protocol/pdl/browser_protocol.pdl +0 -10788
  986. package/foo/node_modules/devtools-protocol/pdl/js_protocol.pdl +0 -1775
  987. package/foo/node_modules/devtools-protocol/types/protocol-mapping.d.ts +0 -4585
  988. package/foo/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +0 -3899
  989. package/foo/node_modules/devtools-protocol/types/protocol.d.ts +0 -16828
  990. package/foo/node_modules/end-of-stream/LICENSE +0 -21
  991. package/foo/node_modules/end-of-stream/README.md +0 -54
  992. package/foo/node_modules/end-of-stream/index.js +0 -94
  993. package/foo/node_modules/end-of-stream/package.json +0 -37
  994. package/foo/node_modules/error-ex/LICENSE +0 -21
  995. package/foo/node_modules/error-ex/README.md +0 -144
  996. package/foo/node_modules/error-ex/index.js +0 -141
  997. package/foo/node_modules/error-ex/package.json +0 -46
  998. package/foo/node_modules/escape-string-regexp/index.js +0 -11
  999. package/foo/node_modules/escape-string-regexp/license +0 -21
  1000. package/foo/node_modules/escape-string-regexp/package.json +0 -41
  1001. package/foo/node_modules/escape-string-regexp/readme.md +0 -27
  1002. package/foo/node_modules/extract-zip/LICENSE +0 -23
  1003. package/foo/node_modules/extract-zip/cli.js +0 -19
  1004. package/foo/node_modules/extract-zip/index.d.ts +0 -21
  1005. package/foo/node_modules/extract-zip/index.js +0 -173
  1006. package/foo/node_modules/extract-zip/package.json +0 -80
  1007. package/foo/node_modules/extract-zip/readme.md +0 -57
  1008. package/foo/node_modules/fd-slicer/.travis.yml +0 -7
  1009. package/foo/node_modules/fd-slicer/CHANGELOG.md +0 -49
  1010. package/foo/node_modules/fd-slicer/LICENSE +0 -21
  1011. package/foo/node_modules/fd-slicer/README.md +0 -199
  1012. package/foo/node_modules/fd-slicer/index.js +0 -296
  1013. package/foo/node_modules/fd-slicer/package.json +0 -36
  1014. package/foo/node_modules/fd-slicer/test/test.js +0 -350
  1015. package/foo/node_modules/follow-redirects/LICENSE +0 -18
  1016. package/foo/node_modules/follow-redirects/README.md +0 -155
  1017. package/foo/node_modules/follow-redirects/debug.js +0 -15
  1018. package/foo/node_modules/follow-redirects/http.js +0 -1
  1019. package/foo/node_modules/follow-redirects/https.js +0 -1
  1020. package/foo/node_modules/follow-redirects/index.js +0 -621
  1021. package/foo/node_modules/follow-redirects/package.json +0 -59
  1022. package/foo/node_modules/fs-constants/LICENSE +0 -21
  1023. package/foo/node_modules/fs-constants/README.md +0 -26
  1024. package/foo/node_modules/fs-constants/browser.js +0 -1
  1025. package/foo/node_modules/fs-constants/index.js +0 -1
  1026. package/foo/node_modules/fs-constants/package.json +0 -19
  1027. package/foo/node_modules/fs.realpath/LICENSE +0 -43
  1028. package/foo/node_modules/fs.realpath/README.md +0 -33
  1029. package/foo/node_modules/fs.realpath/index.js +0 -66
  1030. package/foo/node_modules/fs.realpath/old.js +0 -303
  1031. package/foo/node_modules/fs.realpath/package.json +0 -26
  1032. package/foo/node_modules/get-stream/buffer-stream.js +0 -52
  1033. package/foo/node_modules/get-stream/index.d.ts +0 -108
  1034. package/foo/node_modules/get-stream/index.js +0 -60
  1035. package/foo/node_modules/get-stream/license +0 -9
  1036. package/foo/node_modules/get-stream/package.json +0 -50
  1037. package/foo/node_modules/get-stream/readme.md +0 -124
  1038. package/foo/node_modules/glob/LICENSE +0 -21
  1039. package/foo/node_modules/glob/README.md +0 -378
  1040. package/foo/node_modules/glob/common.js +0 -238
  1041. package/foo/node_modules/glob/glob.js +0 -790
  1042. package/foo/node_modules/glob/package.json +0 -55
  1043. package/foo/node_modules/glob/sync.js +0 -486
  1044. package/foo/node_modules/has-flag/index.js +0 -8
  1045. package/foo/node_modules/has-flag/license +0 -9
  1046. package/foo/node_modules/has-flag/package.json +0 -44
  1047. package/foo/node_modules/has-flag/readme.md +0 -70
  1048. package/foo/node_modules/https-proxy-agent/README.md +0 -137
  1049. package/foo/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
  1050. package/foo/node_modules/https-proxy-agent/dist/agent.js +0 -177
  1051. package/foo/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
  1052. package/foo/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
  1053. package/foo/node_modules/https-proxy-agent/dist/index.js +0 -14
  1054. package/foo/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  1055. package/foo/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  1056. package/foo/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  1057. package/foo/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  1058. package/foo/node_modules/https-proxy-agent/package.json +0 -56
  1059. package/foo/node_modules/ieee754/LICENSE +0 -11
  1060. package/foo/node_modules/ieee754/README.md +0 -51
  1061. package/foo/node_modules/ieee754/index.d.ts +0 -10
  1062. package/foo/node_modules/ieee754/index.js +0 -85
  1063. package/foo/node_modules/ieee754/package.json +0 -52
  1064. package/foo/node_modules/import-fresh/index.d.ts +0 -30
  1065. package/foo/node_modules/import-fresh/index.js +0 -33
  1066. package/foo/node_modules/import-fresh/license +0 -9
  1067. package/foo/node_modules/import-fresh/package.json +0 -43
  1068. package/foo/node_modules/import-fresh/readme.md +0 -48
  1069. package/foo/node_modules/inflight/LICENSE +0 -15
  1070. package/foo/node_modules/inflight/README.md +0 -37
  1071. package/foo/node_modules/inflight/inflight.js +0 -54
  1072. package/foo/node_modules/inflight/package.json +0 -29
  1073. package/foo/node_modules/inherits/LICENSE +0 -16
  1074. package/foo/node_modules/inherits/README.md +0 -42
  1075. package/foo/node_modules/inherits/inherits.js +0 -9
  1076. package/foo/node_modules/inherits/inherits_browser.js +0 -27
  1077. package/foo/node_modules/inherits/package.json +0 -29
  1078. package/foo/node_modules/is-arrayish/.editorconfig +0 -18
  1079. package/foo/node_modules/is-arrayish/.istanbul.yml +0 -4
  1080. package/foo/node_modules/is-arrayish/.travis.yml +0 -17
  1081. package/foo/node_modules/is-arrayish/LICENSE +0 -21
  1082. package/foo/node_modules/is-arrayish/README.md +0 -16
  1083. package/foo/node_modules/is-arrayish/index.js +0 -10
  1084. package/foo/node_modules/is-arrayish/package.json +0 -34
  1085. package/foo/node_modules/js-tokens/CHANGELOG.md +0 -151
  1086. package/foo/node_modules/js-tokens/LICENSE +0 -21
  1087. package/foo/node_modules/js-tokens/README.md +0 -240
  1088. package/foo/node_modules/js-tokens/index.js +0 -23
  1089. package/foo/node_modules/js-tokens/package.json +0 -30
  1090. package/foo/node_modules/js-yaml/CHANGELOG.md +0 -616
  1091. package/foo/node_modules/js-yaml/LICENSE +0 -21
  1092. package/foo/node_modules/js-yaml/README.md +0 -246
  1093. package/foo/node_modules/js-yaml/bin/js-yaml.js +0 -126
  1094. package/foo/node_modules/js-yaml/dist/js-yaml.js +0 -3874
  1095. package/foo/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  1096. package/foo/node_modules/js-yaml/dist/js-yaml.mjs +0 -3851
  1097. package/foo/node_modules/js-yaml/index.js +0 -47
  1098. package/foo/node_modules/js-yaml/lib/common.js +0 -59
  1099. package/foo/node_modules/js-yaml/lib/dumper.js +0 -965
  1100. package/foo/node_modules/js-yaml/lib/exception.js +0 -55
  1101. package/foo/node_modules/js-yaml/lib/loader.js +0 -1727
  1102. package/foo/node_modules/js-yaml/lib/schema/core.js +0 -11
  1103. package/foo/node_modules/js-yaml/lib/schema/default.js +0 -22
  1104. package/foo/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  1105. package/foo/node_modules/js-yaml/lib/schema/json.js +0 -19
  1106. package/foo/node_modules/js-yaml/lib/schema.js +0 -121
  1107. package/foo/node_modules/js-yaml/lib/snippet.js +0 -101
  1108. package/foo/node_modules/js-yaml/lib/type/binary.js +0 -125
  1109. package/foo/node_modules/js-yaml/lib/type/bool.js +0 -35
  1110. package/foo/node_modules/js-yaml/lib/type/float.js +0 -97
  1111. package/foo/node_modules/js-yaml/lib/type/int.js +0 -156
  1112. package/foo/node_modules/js-yaml/lib/type/map.js +0 -8
  1113. package/foo/node_modules/js-yaml/lib/type/merge.js +0 -12
  1114. package/foo/node_modules/js-yaml/lib/type/null.js +0 -35
  1115. package/foo/node_modules/js-yaml/lib/type/omap.js +0 -44
  1116. package/foo/node_modules/js-yaml/lib/type/pairs.js +0 -53
  1117. package/foo/node_modules/js-yaml/lib/type/seq.js +0 -8
  1118. package/foo/node_modules/js-yaml/lib/type/set.js +0 -29
  1119. package/foo/node_modules/js-yaml/lib/type/str.js +0 -8
  1120. package/foo/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  1121. package/foo/node_modules/js-yaml/lib/type.js +0 -66
  1122. package/foo/node_modules/js-yaml/package.json +0 -66
  1123. package/foo/node_modules/json-parse-even-better-errors/CHANGELOG.md +0 -50
  1124. package/foo/node_modules/json-parse-even-better-errors/LICENSE.md +0 -25
  1125. package/foo/node_modules/json-parse-even-better-errors/README.md +0 -96
  1126. package/foo/node_modules/json-parse-even-better-errors/index.js +0 -121
  1127. package/foo/node_modules/json-parse-even-better-errors/package.json +0 -33
  1128. package/foo/node_modules/lines-and-columns/LICENSE +0 -21
  1129. package/foo/node_modules/lines-and-columns/README.md +0 -33
  1130. package/foo/node_modules/lines-and-columns/build/index.d.ts +0 -13
  1131. package/foo/node_modules/lines-and-columns/build/index.js +0 -62
  1132. package/foo/node_modules/lines-and-columns/package.json +0 -49
  1133. package/foo/node_modules/minimatch/LICENSE +0 -15
  1134. package/foo/node_modules/minimatch/README.md +0 -230
  1135. package/foo/node_modules/minimatch/minimatch.js +0 -947
  1136. package/foo/node_modules/minimatch/package.json +0 -33
  1137. package/foo/node_modules/mitt/LICENSE +0 -21
  1138. package/foo/node_modules/mitt/README.md +0 -205
  1139. package/foo/node_modules/mitt/dist/mitt.js +0 -2
  1140. package/foo/node_modules/mitt/dist/mitt.js.map +0 -1
  1141. package/foo/node_modules/mitt/dist/mitt.mjs +0 -2
  1142. package/foo/node_modules/mitt/dist/mitt.mjs.map +0 -1
  1143. package/foo/node_modules/mitt/dist/mitt.umd.js +0 -2
  1144. package/foo/node_modules/mitt/dist/mitt.umd.js.map +0 -1
  1145. package/foo/node_modules/mitt/index.d.ts +0 -21
  1146. package/foo/node_modules/mitt/package.json +0 -113
  1147. package/foo/node_modules/mkdirp-classic/LICENSE +0 -21
  1148. package/foo/node_modules/mkdirp-classic/README.md +0 -18
  1149. package/foo/node_modules/mkdirp-classic/index.js +0 -98
  1150. package/foo/node_modules/mkdirp-classic/package.json +0 -18
  1151. package/foo/node_modules/ms/index.js +0 -162
  1152. package/foo/node_modules/ms/license.md +0 -21
  1153. package/foo/node_modules/ms/package.json +0 -37
  1154. package/foo/node_modules/ms/readme.md +0 -60
  1155. package/foo/node_modules/node-fetch/LICENSE.md +0 -22
  1156. package/foo/node_modules/node-fetch/README.md +0 -590
  1157. package/foo/node_modules/node-fetch/browser.js +0 -25
  1158. package/foo/node_modules/node-fetch/lib/index.es.js +0 -1688
  1159. package/foo/node_modules/node-fetch/lib/index.js +0 -1697
  1160. package/foo/node_modules/node-fetch/lib/index.mjs +0 -1686
  1161. package/foo/node_modules/node-fetch/package.json +0 -76
  1162. package/foo/node_modules/once/LICENSE +0 -15
  1163. package/foo/node_modules/once/README.md +0 -79
  1164. package/foo/node_modules/once/once.js +0 -42
  1165. package/foo/node_modules/once/package.json +0 -33
  1166. package/foo/node_modules/parent-module/index.js +0 -37
  1167. package/foo/node_modules/parent-module/license +0 -9
  1168. package/foo/node_modules/parent-module/package.json +0 -46
  1169. package/foo/node_modules/parent-module/readme.md +0 -67
  1170. package/foo/node_modules/parse-json/index.js +0 -54
  1171. package/foo/node_modules/parse-json/license +0 -9
  1172. package/foo/node_modules/parse-json/package.json +0 -45
  1173. package/foo/node_modules/parse-json/readme.md +0 -119
  1174. package/foo/node_modules/path-is-absolute/index.js +0 -20
  1175. package/foo/node_modules/path-is-absolute/license +0 -21
  1176. package/foo/node_modules/path-is-absolute/package.json +0 -43
  1177. package/foo/node_modules/path-is-absolute/readme.md +0 -59
  1178. package/foo/node_modules/path-type/index.d.ts +0 -51
  1179. package/foo/node_modules/path-type/index.js +0 -43
  1180. package/foo/node_modules/path-type/license +0 -9
  1181. package/foo/node_modules/path-type/package.json +0 -45
  1182. package/foo/node_modules/path-type/readme.md +0 -72
  1183. package/foo/node_modules/pend/LICENSE +0 -23
  1184. package/foo/node_modules/pend/README.md +0 -41
  1185. package/foo/node_modules/pend/index.js +0 -55
  1186. package/foo/node_modules/pend/package.json +0 -18
  1187. package/foo/node_modules/pend/test.js +0 -137
  1188. package/foo/node_modules/progress/CHANGELOG.md +0 -115
  1189. package/foo/node_modules/progress/LICENSE +0 -22
  1190. package/foo/node_modules/progress/Makefile +0 -8
  1191. package/foo/node_modules/progress/Readme.md +0 -146
  1192. package/foo/node_modules/progress/index.js +0 -1
  1193. package/foo/node_modules/progress/lib/node-progress.js +0 -236
  1194. package/foo/node_modules/progress/package.json +0 -26
  1195. package/foo/node_modules/proxy-from-env/.eslintrc +0 -29
  1196. package/foo/node_modules/proxy-from-env/.travis.yml +0 -10
  1197. package/foo/node_modules/proxy-from-env/LICENSE +0 -20
  1198. package/foo/node_modules/proxy-from-env/README.md +0 -131
  1199. package/foo/node_modules/proxy-from-env/index.js +0 -108
  1200. package/foo/node_modules/proxy-from-env/package.json +0 -34
  1201. package/foo/node_modules/proxy-from-env/test.js +0 -483
  1202. package/foo/node_modules/pump/.travis.yml +0 -5
  1203. package/foo/node_modules/pump/LICENSE +0 -21
  1204. package/foo/node_modules/pump/README.md +0 -65
  1205. package/foo/node_modules/pump/index.js +0 -82
  1206. package/foo/node_modules/pump/package.json +0 -24
  1207. package/foo/node_modules/pump/test-browser.js +0 -66
  1208. package/foo/node_modules/pump/test-node.js +0 -53
  1209. package/foo/node_modules/puppeteer/README.md +0 -236
  1210. package/foo/node_modules/puppeteer/install.js +0 -40
  1211. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts +0 -6
  1212. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts.map +0 -1
  1213. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js +0 -59
  1214. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js.map +0 -1
  1215. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts +0 -20
  1216. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts.map +0 -1
  1217. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js +0 -174
  1218. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js.map +0 -1
  1219. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.d.ts +0 -25
  1220. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.d.ts.map +0 -1
  1221. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js +0 -46
  1222. package/foo/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js.map +0 -1
  1223. package/foo/node_modules/puppeteer/lib/esm/package.json +0 -1
  1224. package/foo/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.d.ts +0 -6
  1225. package/foo/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.d.ts.map +0 -1
  1226. package/foo/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js +0 -55
  1227. package/foo/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js.map +0 -1
  1228. package/foo/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts +0 -20
  1229. package/foo/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts.map +0 -1
  1230. package/foo/node_modules/puppeteer/lib/esm/puppeteer/node/install.js +0 -167
  1231. package/foo/node_modules/puppeteer/lib/esm/puppeteer/node/install.js.map +0 -1
  1232. package/foo/node_modules/puppeteer/lib/esm/puppeteer/puppeteer.d.ts +0 -25
  1233. package/foo/node_modules/puppeteer/lib/esm/puppeteer/puppeteer.d.ts.map +0 -1
  1234. package/foo/node_modules/puppeteer/lib/esm/puppeteer/puppeteer.js +0 -29
  1235. package/foo/node_modules/puppeteer/lib/esm/puppeteer/puppeteer.js.map +0 -1
  1236. package/foo/node_modules/puppeteer/lib/types.d.ts +0 -6919
  1237. package/foo/node_modules/puppeteer/package.json +0 -127
  1238. package/foo/node_modules/puppeteer-core/README.md +0 -236
  1239. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts +0 -337
  1240. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts.map +0 -1
  1241. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js +0 -248
  1242. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js.map +0 -1
  1243. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/BrowserContext.d.ts +0 -148
  1244. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +0 -1
  1245. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/BrowserContext.js +0 -135
  1246. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/BrowserContext.js.map +0 -1
  1247. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts +0 -521
  1248. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +0 -1
  1249. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js +0 -199
  1250. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js.map +0 -1
  1251. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/JSHandle.d.ts +0 -135
  1252. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/JSHandle.d.ts.map +0 -1
  1253. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/JSHandle.js +0 -142
  1254. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/JSHandle.js.map +0 -1
  1255. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts +0 -2098
  1256. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts.map +0 -1
  1257. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js +0 -536
  1258. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js.map +0 -1
  1259. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/api.d.ts +0 -21
  1260. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/api.d.ts.map +0 -1
  1261. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/api.js +0 -37
  1262. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/api/api.js.map +0 -1
  1263. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +0 -176
  1264. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +0 -1
  1265. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +0 -428
  1266. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +0 -1
  1267. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +0 -27
  1268. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +0 -1
  1269. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +0 -88
  1270. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +0 -1
  1271. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Binding.d.ts +0 -18
  1272. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Binding.d.ts.map +0 -1
  1273. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Binding.js +0 -114
  1274. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Binding.js.map +0 -1
  1275. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +0 -290
  1276. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +0 -1
  1277. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +0 -586
  1278. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +0 -1
  1279. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +0 -61
  1280. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +0 -1
  1281. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +0 -113
  1282. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +0 -1
  1283. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +0 -29
  1284. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +0 -1
  1285. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +0 -54
  1286. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +0 -1
  1287. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts +0 -37
  1288. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +0 -1
  1289. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ChromeTargetManager.js +0 -306
  1290. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +0 -1
  1291. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts +0 -133
  1292. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts.map +0 -1
  1293. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.js +0 -18
  1294. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.js.map +0 -1
  1295. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +0 -187
  1296. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +0 -1
  1297. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +0 -406
  1298. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +0 -1
  1299. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +0 -25
  1300. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +0 -1
  1301. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +0 -18
  1302. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +0 -1
  1303. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +0 -70
  1304. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +0 -1
  1305. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +0 -83
  1306. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +0 -1
  1307. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +0 -191
  1308. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +0 -1
  1309. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +0 -375
  1310. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +0 -1
  1311. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CustomQueryHandler.d.ts +0 -124
  1312. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CustomQueryHandler.d.ts.map +0 -1
  1313. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CustomQueryHandler.js +0 -193
  1314. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CustomQueryHandler.js.map +0 -1
  1315. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +0 -70
  1316. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +0 -1
  1317. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +0 -150
  1318. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +0 -1
  1319. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Device.d.ts +0 -52
  1320. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Device.d.ts.map +0 -1
  1321. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Device.js +0 -1433
  1322. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Device.js.map +0 -1
  1323. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +0 -73
  1324. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +0 -1
  1325. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +0 -117
  1326. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +0 -1
  1327. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ElementHandle.d.ts +0 -112
  1328. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +0 -1
  1329. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ElementHandle.js +0 -617
  1330. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ElementHandle.js.map +0 -1
  1331. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +0 -11
  1332. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +0 -1
  1333. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +0 -55
  1334. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +0 -1
  1335. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +0 -98
  1336. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +0 -1
  1337. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +0 -127
  1338. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +0 -1
  1339. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +0 -111
  1340. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +0 -1
  1341. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +0 -133
  1342. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +0 -1
  1343. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +0 -163
  1344. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +0 -1
  1345. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +0 -316
  1346. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +0 -1
  1347. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +0 -65
  1348. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +0 -1
  1349. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +0 -95
  1350. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +0 -1
  1351. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +0 -46
  1352. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +0 -1
  1353. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FirefoxTargetManager.js +0 -197
  1354. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FirefoxTargetManager.js.map +0 -1
  1355. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Frame.d.ts +0 -655
  1356. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Frame.d.ts.map +0 -1
  1357. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Frame.js +0 -833
  1358. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Frame.js.map +0 -1
  1359. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +0 -66
  1360. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +0 -1
  1361. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +0 -372
  1362. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +0 -1
  1363. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameTree.d.ts +0 -39
  1364. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameTree.d.ts.map +0 -1
  1365. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameTree.js +0 -120
  1366. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameTree.js.map +0 -1
  1367. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/GetQueryHandler.d.ts +0 -38
  1368. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/GetQueryHandler.d.ts.map +0 -1
  1369. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/GetQueryHandler.js +0 -65
  1370. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/GetQueryHandler.js.map +0 -1
  1371. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +0 -376
  1372. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +0 -1
  1373. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +0 -656
  1374. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +0 -1
  1375. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +0 -123
  1376. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +0 -1
  1377. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +0 -222
  1378. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +0 -1
  1379. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HandleIterator.d.ts +0 -22
  1380. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HandleIterator.d.ts.map +0 -1
  1381. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HandleIterator.js +0 -67
  1382. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HandleIterator.js.map +0 -1
  1383. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +0 -398
  1384. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +0 -1
  1385. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +0 -649
  1386. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +0 -1
  1387. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorld.d.ts +0 -119
  1388. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +0 -1
  1389. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorld.js +0 -340
  1390. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorld.js.map +0 -1
  1391. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorlds.d.ts +0 -30
  1392. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorlds.d.ts.map +0 -1
  1393. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorlds.js +0 -33
  1394. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/IsolatedWorlds.js.map +0 -1
  1395. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +0 -59
  1396. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +0 -1
  1397. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +0 -131
  1398. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +0 -1
  1399. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LazyArg.d.ts +0 -26
  1400. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LazyArg.d.ts.map +0 -1
  1401. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LazyArg.js +0 -50
  1402. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LazyArg.js.map +0 -1
  1403. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +0 -41
  1404. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +0 -1
  1405. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +0 -219
  1406. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +0 -1
  1407. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +0 -67
  1408. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +0 -1
  1409. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkEventManager.js +0 -149
  1410. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkEventManager.js.map +0 -1
  1411. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +0 -79
  1412. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +0 -1
  1413. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +0 -443
  1414. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +0 -1
  1415. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.d.ts +0 -30
  1416. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.d.ts.map +0 -1
  1417. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.js +0 -82
  1418. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.js.map +0 -1
  1419. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +0 -168
  1420. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +0 -1
  1421. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +0 -35
  1422. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +0 -1
  1423. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PQueryHandler.d.ts +0 -24
  1424. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PQueryHandler.d.ts.map +0 -1
  1425. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PQueryHandler.js +0 -32
  1426. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PQueryHandler.js.map +0 -1
  1427. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +0 -173
  1428. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +0 -1
  1429. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +0 -1141
  1430. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +0 -1
  1431. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PierceQueryHandler.d.ts +0 -25
  1432. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PierceQueryHandler.d.ts.map +0 -1
  1433. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PierceQueryHandler.js +0 -32
  1434. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PierceQueryHandler.js.map +0 -1
  1435. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PredefinedNetworkConditions.d.ts +0 -52
  1436. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PredefinedNetworkConditions.d.ts.map +0 -1
  1437. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PredefinedNetworkConditions.js +0 -59
  1438. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PredefinedNetworkConditions.js.map +0 -1
  1439. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +0 -21
  1440. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +0 -1
  1441. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +0 -18
  1442. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +0 -1
  1443. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +0 -117
  1444. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +0 -1
  1445. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +0 -106
  1446. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +0 -1
  1447. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +0 -52
  1448. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +0 -1
  1449. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +0 -3
  1450. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +0 -1
  1451. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +0 -58
  1452. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +0 -1
  1453. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +0 -146
  1454. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +0 -1
  1455. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ScriptInjector.d.ts +0 -12
  1456. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ScriptInjector.d.ts.map +0 -1
  1457. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ScriptInjector.js +0 -60
  1458. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ScriptInjector.js.map +0 -1
  1459. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +0 -56
  1460. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +0 -1
  1461. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +0 -96
  1462. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +0 -1
  1463. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +0 -117
  1464. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +0 -1
  1465. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +0 -211
  1466. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +0 -1
  1467. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TargetManager.d.ts +0 -55
  1468. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TargetManager.d.ts.map +0 -1
  1469. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TargetManager.js +0 -18
  1470. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TargetManager.js.map +0 -1
  1471. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts +0 -24
  1472. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +0 -1
  1473. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js +0 -51
  1474. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js.map +0 -1
  1475. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TextQueryHandler.d.ts +0 -23
  1476. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TextQueryHandler.d.ts.map +0 -1
  1477. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TextQueryHandler.js +0 -29
  1478. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TextQueryHandler.js.map +0 -1
  1479. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +0 -27
  1480. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +0 -1
  1481. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +0 -66
  1482. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +0 -1
  1483. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +0 -47
  1484. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +0 -1
  1485. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +0 -139
  1486. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +0 -1
  1487. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +0 -40
  1488. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +0 -1
  1489. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +0 -407
  1490. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +0 -1
  1491. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.d.ts +0 -51
  1492. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.d.ts.map +0 -1
  1493. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js +0 -198
  1494. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js.map +0 -1
  1495. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +0 -100
  1496. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +0 -1
  1497. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +0 -123
  1498. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +0 -1
  1499. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/XPathQueryHandler.d.ts +0 -23
  1500. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/XPathQueryHandler.d.ts.map +0 -1
  1501. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/XPathQueryHandler.js +0 -29
  1502. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/XPathQueryHandler.js.map +0 -1
  1503. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BidiOverCDP.d.ts +0 -7
  1504. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BidiOverCDP.d.ts.map +0 -1
  1505. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BidiOverCDP.js +0 -169
  1506. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BidiOverCDP.js.map +0 -1
  1507. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts +0 -45
  1508. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map +0 -1
  1509. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js +0 -78
  1510. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js.map +0 -1
  1511. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts +0 -28
  1512. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts.map +0 -1
  1513. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BrowserContext.js +0 -52
  1514. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/BrowserContext.js.map +0 -1
  1515. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Connection.d.ts +0 -81
  1516. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Connection.d.ts.map +0 -1
  1517. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Connection.js +0 -137
  1518. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Connection.js.map +0 -1
  1519. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/JSHandle.d.ts +0 -41
  1520. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/JSHandle.d.ts.map +0 -1
  1521. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/JSHandle.js +0 -128
  1522. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/JSHandle.js.map +0 -1
  1523. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Page.d.ts +0 -37
  1524. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Page.d.ts.map +0 -1
  1525. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Page.js +0 -158
  1526. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Page.js.map +0 -1
  1527. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Serializer.d.ts +0 -22
  1528. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Serializer.d.ts.map +0 -1
  1529. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Serializer.js +0 -224
  1530. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Serializer.js.map +0 -1
  1531. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/bidi.d.ts +0 -21
  1532. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/bidi.d.ts.map +0 -1
  1533. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/bidi.js +0 -37
  1534. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/bidi.js.map +0 -1
  1535. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/utils.d.ts +0 -26
  1536. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/utils.d.ts.map +0 -1
  1537. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/utils.js +0 -43
  1538. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/utils.js.map +0 -1
  1539. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/common.d.ts +0 -70
  1540. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/common.d.ts.map +0 -1
  1541. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/common.js +0 -86
  1542. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/common.js.map +0 -1
  1543. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +0 -22
  1544. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +0 -1
  1545. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +0 -51
  1546. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +0 -1
  1547. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts +0 -106
  1548. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts.map +0 -1
  1549. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.js +0 -18
  1550. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.js.map +0 -1
  1551. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts +0 -117
  1552. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts.map +0 -1
  1553. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js +0 -389
  1554. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js.map +0 -1
  1555. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +0 -24
  1556. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +0 -1
  1557. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +0 -30
  1558. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +0 -1
  1559. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts +0 -9
  1560. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts.map +0 -1
  1561. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js +0 -12
  1562. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js.map +0 -1
  1563. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts +0 -5
  1564. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts.map +0 -1
  1565. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js +0 -8
  1566. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js.map +0 -1
  1567. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/ARIAQuerySelector.d.ts +0 -30
  1568. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/ARIAQuerySelector.d.ts.map +0 -1
  1569. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/ARIAQuerySelector.js +0 -27
  1570. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/ARIAQuerySelector.js.map +0 -1
  1571. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/CustomQuerySelector.d.ts +0 -34
  1572. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/CustomQuerySelector.d.ts.map +0 -1
  1573. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/CustomQuerySelector.js +0 -69
  1574. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/CustomQuerySelector.js.map +0 -1
  1575. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PQuerySelector.d.ts +0 -14
  1576. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PQuerySelector.d.ts.map +0 -1
  1577. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PQuerySelector.js +0 -168
  1578. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PQuerySelector.js.map +0 -1
  1579. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PSelectorParser.d.ts +0 -23
  1580. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PSelectorParser.d.ts.map +0 -1
  1581. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PSelectorParser.js +0 -153
  1582. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PSelectorParser.js.map +0 -1
  1583. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts +0 -9
  1584. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts.map +0 -1
  1585. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PierceQuerySelector.js +0 -71
  1586. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/PierceQuerySelector.js.map +0 -1
  1587. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/Poller.d.ts +0 -54
  1588. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/Poller.d.ts.map +0 -1
  1589. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/Poller.js +0 -171
  1590. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/Poller.js.map +0 -1
  1591. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextContent.d.ts +0 -39
  1592. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextContent.d.ts.map +0 -1
  1593. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextContent.js +0 -133
  1594. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextContent.js.map +0 -1
  1595. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts +0 -22
  1596. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +0 -1
  1597. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextQuerySelector.js +0 -53
  1598. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/TextQuerySelector.js.map +0 -1
  1599. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts +0 -20
  1600. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +0 -1
  1601. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/XPathQuerySelector.js +0 -31
  1602. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +0 -1
  1603. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts +0 -57
  1604. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts.map +0 -1
  1605. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.js +0 -75
  1606. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.js.map +0 -1
  1607. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/util.d.ts +0 -13
  1608. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/util.d.ts.map +0 -1
  1609. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/util.js +0 -57
  1610. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/util.js.map +0 -1
  1611. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +0 -169
  1612. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +0 -1
  1613. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +0 -577
  1614. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +0 -1
  1615. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +0 -45
  1616. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +0 -1
  1617. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +0 -344
  1618. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +0 -1
  1619. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +0 -15
  1620. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +0 -1
  1621. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js +0 -277
  1622. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js.map +0 -1
  1623. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +0 -35
  1624. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +0 -1
  1625. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js +0 -391
  1626. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +0 -1
  1627. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +0 -135
  1628. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +0 -1
  1629. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +0 -18
  1630. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +0 -1
  1631. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +0 -29
  1632. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +0 -1
  1633. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +0 -75
  1634. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +0 -1
  1635. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts +0 -43
  1636. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +0 -1
  1637. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js +0 -143
  1638. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js.map +0 -1
  1639. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +0 -189
  1640. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +0 -1
  1641. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js +0 -276
  1642. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js.map +0 -1
  1643. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/node.d.ts +0 -24
  1644. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/node.d.ts.map +0 -1
  1645. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/node.js +0 -40
  1646. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/node.js.map +0 -1
  1647. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/puppeteer-core.d.ts +0 -33
  1648. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/puppeteer-core.d.ts.map +0 -1
  1649. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/puppeteer-core.js +0 -51
  1650. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/puppeteer-core.js.map +0 -1
  1651. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +0 -23
  1652. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +0 -1
  1653. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +0 -26
  1654. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +0 -1
  1655. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/AsyncIterableUtil.d.ts +0 -26
  1656. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/AsyncIterableUtil.d.ts.map +0 -1
  1657. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/AsyncIterableUtil.js +0 -33
  1658. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/AsyncIterableUtil.js.map +0 -1
  1659. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts +0 -9
  1660. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts.map +0 -1
  1661. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js +0 -22
  1662. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js.map +0 -1
  1663. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DeferredPromise.d.ts +0 -27
  1664. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +0 -1
  1665. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DeferredPromise.js +0 -51
  1666. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DeferredPromise.js.map +0 -1
  1667. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/ErrorLike.d.ts +0 -17
  1668. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +0 -1
  1669. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/ErrorLike.js +0 -22
  1670. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/ErrorLike.js.map +0 -1
  1671. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Function.d.ts +0 -34
  1672. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Function.d.ts.map +0 -1
  1673. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Function.js +0 -85
  1674. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Function.js.map +0 -1
  1675. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.d.ts +0 -24
  1676. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.d.ts.map +0 -1
  1677. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js +0 -32
  1678. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js.map +0 -1
  1679. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts +0 -21
  1680. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts.map +0 -1
  1681. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js +0 -37
  1682. package/foo/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js.map +0 -1
  1683. package/foo/node_modules/puppeteer-core/lib/cjs/third_party/mitt/index.d.ts +0 -17
  1684. package/foo/node_modules/puppeteer-core/lib/cjs/third_party/mitt/index.js +0 -5
  1685. package/foo/node_modules/puppeteer-core/lib/esm/package.json +0 -1
  1686. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts +0 -337
  1687. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts.map +0 -1
  1688. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -244
  1689. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js.map +0 -1
  1690. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.d.ts +0 -148
  1691. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.d.ts.map +0 -1
  1692. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -131
  1693. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js.map +0 -1
  1694. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts +0 -521
  1695. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts.map +0 -1
  1696. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -195
  1697. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js.map +0 -1
  1698. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.d.ts +0 -135
  1699. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.d.ts.map +0 -1
  1700. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -138
  1701. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js.map +0 -1
  1702. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts +0 -2098
  1703. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts.map +0 -1
  1704. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -532
  1705. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js.map +0 -1
  1706. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.d.ts +0 -21
  1707. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.d.ts.map +0 -1
  1708. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -21
  1709. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js.map +0 -1
  1710. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +0 -176
  1711. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +0 -1
  1712. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +0 -424
  1713. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +0 -1
  1714. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +0 -27
  1715. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +0 -1
  1716. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -84
  1717. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +0 -1
  1718. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Binding.d.ts +0 -18
  1719. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Binding.d.ts.map +0 -1
  1720. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Binding.js +0 -110
  1721. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Binding.js.map +0 -1
  1722. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +0 -290
  1723. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +0 -1
  1724. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +0 -581
  1725. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +0 -1
  1726. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +0 -61
  1727. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +0 -1
  1728. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -86
  1729. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +0 -1
  1730. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +0 -29
  1731. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +0 -1
  1732. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -50
  1733. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +0 -1
  1734. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ChromeTargetManager.d.ts +0 -37
  1735. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +0 -1
  1736. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ChromeTargetManager.js +0 -302
  1737. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ChromeTargetManager.js.map +0 -1
  1738. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts +0 -133
  1739. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts.map +0 -1
  1740. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.js +0 -17
  1741. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.js.map +0 -1
  1742. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +0 -187
  1743. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +0 -1
  1744. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +0 -399
  1745. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +0 -1
  1746. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +0 -25
  1747. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +0 -1
  1748. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +0 -17
  1749. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +0 -1
  1750. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +0 -70
  1751. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +0 -1
  1752. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -79
  1753. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +0 -1
  1754. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +0 -191
  1755. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +0 -1
  1756. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +0 -369
  1757. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +0 -1
  1758. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.d.ts +0 -124
  1759. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.d.ts.map +0 -1
  1760. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -185
  1761. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js.map +0 -1
  1762. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +0 -70
  1763. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +0 -1
  1764. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -120
  1765. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +0 -1
  1766. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.d.ts +0 -52
  1767. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.d.ts.map +0 -1
  1768. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1430
  1769. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js.map +0 -1
  1770. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +0 -73
  1771. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +0 -1
  1772. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +0 -113
  1773. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +0 -1
  1774. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ElementHandle.d.ts +0 -112
  1775. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ElementHandle.d.ts.map +0 -1
  1776. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ElementHandle.js +0 -590
  1777. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ElementHandle.js.map +0 -1
  1778. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +0 -11
  1779. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +0 -1
  1780. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +0 -51
  1781. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +0 -1
  1782. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +0 -98
  1783. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +0 -1
  1784. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -121
  1785. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +0 -1
  1786. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +0 -111
  1787. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +0 -1
  1788. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -126
  1789. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +0 -1
  1790. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +0 -163
  1791. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +0 -1
  1792. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +0 -312
  1793. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +0 -1
  1794. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +0 -65
  1795. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +0 -1
  1796. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -91
  1797. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +0 -1
  1798. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +0 -46
  1799. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +0 -1
  1800. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FirefoxTargetManager.js +0 -193
  1801. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FirefoxTargetManager.js.map +0 -1
  1802. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.d.ts +0 -655
  1803. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.d.ts.map +0 -1
  1804. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js +0 -806
  1805. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js.map +0 -1
  1806. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +0 -66
  1807. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +0 -1
  1808. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +0 -368
  1809. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +0 -1
  1810. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameTree.d.ts +0 -39
  1811. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameTree.d.ts.map +0 -1
  1812. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameTree.js +0 -116
  1813. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameTree.js.map +0 -1
  1814. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.d.ts +0 -38
  1815. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.d.ts.map +0 -1
  1816. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -60
  1817. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js.map +0 -1
  1818. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +0 -376
  1819. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +0 -1
  1820. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +0 -652
  1821. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +0 -1
  1822. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +0 -123
  1823. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +0 -1
  1824. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +0 -218
  1825. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +0 -1
  1826. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.d.ts +0 -22
  1827. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.d.ts.map +0 -1
  1828. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -63
  1829. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js.map +0 -1
  1830. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +0 -398
  1831. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +0 -1
  1832. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +0 -643
  1833. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +0 -1
  1834. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorld.d.ts +0 -119
  1835. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +0 -1
  1836. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorld.js +0 -336
  1837. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorld.js.map +0 -1
  1838. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorlds.d.ts +0 -30
  1839. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorlds.d.ts.map +0 -1
  1840. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorlds.js +0 -30
  1841. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/IsolatedWorlds.js.map +0 -1
  1842. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +0 -59
  1843. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +0 -1
  1844. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +0 -127
  1845. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +0 -1
  1846. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.d.ts +0 -26
  1847. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.d.ts.map +0 -1
  1848. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -46
  1849. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js.map +0 -1
  1850. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +0 -41
  1851. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +0 -1
  1852. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +0 -215
  1853. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +0 -1
  1854. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkEventManager.d.ts +0 -67
  1855. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +0 -1
  1856. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkEventManager.js +0 -145
  1857. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkEventManager.js.map +0 -1
  1858. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +0 -79
  1859. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +0 -1
  1860. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +0 -439
  1861. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +0 -1
  1862. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NodeWebSocketTransport.d.ts +0 -30
  1863. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NodeWebSocketTransport.d.ts.map +0 -1
  1864. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NodeWebSocketTransport.js +0 -75
  1865. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/NodeWebSocketTransport.js.map +0 -1
  1866. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +0 -168
  1867. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +0 -1
  1868. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -32
  1869. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +0 -1
  1870. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.d.ts +0 -24
  1871. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.d.ts.map +0 -1
  1872. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -28
  1873. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js.map +0 -1
  1874. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +0 -173
  1875. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +0 -1
  1876. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +0 -1137
  1877. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +0 -1
  1878. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.d.ts +0 -25
  1879. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.d.ts.map +0 -1
  1880. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -28
  1881. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js.map +0 -1
  1882. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PredefinedNetworkConditions.d.ts +0 -52
  1883. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PredefinedNetworkConditions.d.ts.map +0 -1
  1884. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PredefinedNetworkConditions.js +0 -56
  1885. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PredefinedNetworkConditions.js.map +0 -1
  1886. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +0 -21
  1887. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +0 -1
  1888. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +0 -17
  1889. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +0 -1
  1890. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +0 -117
  1891. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +0 -1
  1892. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -102
  1893. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +0 -1
  1894. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +0 -52
  1895. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +0 -1
  1896. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -2
  1897. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +0 -1
  1898. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +0 -58
  1899. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +0 -1
  1900. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -142
  1901. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +0 -1
  1902. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.d.ts +0 -12
  1903. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.d.ts.map +0 -1
  1904. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -57
  1905. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js.map +0 -1
  1906. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +0 -56
  1907. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +0 -1
  1908. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -92
  1909. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +0 -1
  1910. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +0 -117
  1911. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +0 -1
  1912. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +0 -207
  1913. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +0 -1
  1914. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.d.ts +0 -55
  1915. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.d.ts.map +0 -1
  1916. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.js +0 -17
  1917. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TargetManager.js.map +0 -1
  1918. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts +0 -24
  1919. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts.map +0 -1
  1920. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -47
  1921. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js.map +0 -1
  1922. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.d.ts +0 -23
  1923. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.d.ts.map +0 -1
  1924. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -25
  1925. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js.map +0 -1
  1926. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +0 -27
  1927. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +0 -1
  1928. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -62
  1929. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +0 -1
  1930. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +0 -47
  1931. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +0 -1
  1932. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +0 -135
  1933. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +0 -1
  1934. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +0 -40
  1935. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +0 -1
  1936. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -404
  1937. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +0 -1
  1938. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.d.ts +0 -51
  1939. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.d.ts.map +0 -1
  1940. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -193
  1941. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js.map +0 -1
  1942. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +0 -100
  1943. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +0 -1
  1944. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +0 -119
  1945. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +0 -1
  1946. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.d.ts +0 -23
  1947. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.d.ts.map +0 -1
  1948. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -25
  1949. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js.map +0 -1
  1950. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BidiOverCDP.d.ts +0 -7
  1951. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BidiOverCDP.d.ts.map +0 -1
  1952. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BidiOverCDP.js +0 -142
  1953. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BidiOverCDP.js.map +0 -1
  1954. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts +0 -45
  1955. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts.map +0 -1
  1956. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js +0 -74
  1957. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js.map +0 -1
  1958. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts +0 -28
  1959. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts.map +0 -1
  1960. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BrowserContext.js +0 -48
  1961. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/BrowserContext.js.map +0 -1
  1962. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Connection.d.ts +0 -81
  1963. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Connection.d.ts.map +0 -1
  1964. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Connection.js +0 -133
  1965. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Connection.js.map +0 -1
  1966. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/JSHandle.d.ts +0 -41
  1967. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/JSHandle.d.ts.map +0 -1
  1968. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/JSHandle.js +0 -124
  1969. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/JSHandle.js.map +0 -1
  1970. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Page.d.ts +0 -37
  1971. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Page.d.ts.map +0 -1
  1972. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Page.js +0 -153
  1973. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Page.js.map +0 -1
  1974. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Serializer.d.ts +0 -22
  1975. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Serializer.d.ts.map +0 -1
  1976. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Serializer.js +0 -220
  1977. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Serializer.js.map +0 -1
  1978. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/bidi.d.ts +0 -21
  1979. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/bidi.d.ts.map +0 -1
  1980. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/bidi.js +0 -21
  1981. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/bidi.js.map +0 -1
  1982. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/utils.d.ts +0 -26
  1983. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/utils.d.ts.map +0 -1
  1984. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/utils.js +0 -39
  1985. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/utils.js.map +0 -1
  1986. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.d.ts +0 -70
  1987. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.d.ts.map +0 -1
  1988. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -70
  1989. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js.map +0 -1
  1990. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +0 -22
  1991. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +0 -1
  1992. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +0 -24
  1993. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +0 -1
  1994. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts +0 -106
  1995. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts.map +0 -1
  1996. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.js +0 -17
  1997. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.js.map +0 -1
  1998. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts +0 -117
  1999. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts.map +0 -1
  2000. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -344
  2001. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js.map +0 -1
  2002. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +0 -24
  2003. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +0 -1
  2004. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -27
  2005. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +0 -1
  2006. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts +0 -9
  2007. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts.map +0 -1
  2008. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
  2009. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js.map +0 -1
  2010. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts +0 -5
  2011. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts.map +0 -1
  2012. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js +0 -5
  2013. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js.map +0 -1
  2014. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/ARIAQuerySelector.d.ts +0 -30
  2015. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/ARIAQuerySelector.d.ts.map +0 -1
  2016. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/ARIAQuerySelector.js +0 -22
  2017. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/ARIAQuerySelector.js.map +0 -1
  2018. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/CustomQuerySelector.d.ts +0 -34
  2019. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/CustomQuerySelector.d.ts.map +0 -1
  2020. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/CustomQuerySelector.js +0 -66
  2021. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/CustomQuerySelector.js.map +0 -1
  2022. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PQuerySelector.d.ts +0 -14
  2023. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PQuerySelector.d.ts.map +0 -1
  2024. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PQuerySelector.js +0 -163
  2025. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PQuerySelector.js.map +0 -1
  2026. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PSelectorParser.d.ts +0 -23
  2027. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PSelectorParser.d.ts.map +0 -1
  2028. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PSelectorParser.js +0 -149
  2029. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PSelectorParser.js.map +0 -1
  2030. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts +0 -9
  2031. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts.map +0 -1
  2032. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PierceQuerySelector.js +0 -66
  2033. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/PierceQuerySelector.js.map +0 -1
  2034. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/Poller.d.ts +0 -54
  2035. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/Poller.d.ts.map +0 -1
  2036. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/Poller.js +0 -165
  2037. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/Poller.js.map +0 -1
  2038. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextContent.d.ts +0 -39
  2039. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextContent.d.ts.map +0 -1
  2040. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextContent.js +0 -128
  2041. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextContent.js.map +0 -1
  2042. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextQuerySelector.d.ts +0 -22
  2043. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +0 -1
  2044. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextQuerySelector.js +0 -49
  2045. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/TextQuerySelector.js.map +0 -1
  2046. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts +0 -20
  2047. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +0 -1
  2048. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/XPathQuerySelector.js +0 -27
  2049. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +0 -1
  2050. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts +0 -57
  2051. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts.map +0 -1
  2052. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.js +0 -50
  2053. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.js.map +0 -1
  2054. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/util.d.ts +0 -13
  2055. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/util.d.ts.map +0 -1
  2056. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/util.js +0 -51
  2057. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/injected/util.js.map +0 -1
  2058. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +0 -169
  2059. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +0 -1
  2060. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +0 -547
  2061. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +0 -1
  2062. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +0 -45
  2063. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +0 -1
  2064. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +0 -314
  2065. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +0 -1
  2066. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts +0 -15
  2067. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +0 -1
  2068. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js +0 -247
  2069. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js.map +0 -1
  2070. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +0 -35
  2071. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +0 -1
  2072. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js +0 -361
  2073. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js.map +0 -1
  2074. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +0 -135
  2075. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +0 -1
  2076. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +0 -17
  2077. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +0 -1
  2078. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +0 -29
  2079. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +0 -1
  2080. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +0 -71
  2081. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +0 -1
  2082. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts +0 -43
  2083. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +0 -1
  2084. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js +0 -116
  2085. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js.map +0 -1
  2086. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.d.ts +0 -189
  2087. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +0 -1
  2088. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.js +0 -272
  2089. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.js.map +0 -1
  2090. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.d.ts +0 -24
  2091. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.d.ts.map +0 -1
  2092. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.js +0 -24
  2093. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.js.map +0 -1
  2094. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.d.ts +0 -33
  2095. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.d.ts.map +0 -1
  2096. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -34
  2097. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js.map +0 -1
  2098. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +0 -23
  2099. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +0 -1
  2100. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -23
  2101. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +0 -1
  2102. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.d.ts +0 -26
  2103. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.d.ts.map +0 -1
  2104. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
  2105. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js.map +0 -1
  2106. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts +0 -9
  2107. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts.map +0 -1
  2108. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferredPromise.js +0 -18
  2109. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferredPromise.js.map +0 -1
  2110. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DeferredPromise.d.ts +0 -27
  2111. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +0 -1
  2112. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DeferredPromise.js +0 -47
  2113. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/DeferredPromise.js.map +0 -1
  2114. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.d.ts +0 -17
  2115. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.d.ts.map +0 -1
  2116. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -17
  2117. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js.map +0 -1
  2118. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.d.ts +0 -34
  2119. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.d.ts.map +0 -1
  2120. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -79
  2121. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js.map +0 -1
  2122. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.d.ts +0 -24
  2123. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.d.ts.map +0 -1
  2124. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -28
  2125. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js.map +0 -1
  2126. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts +0 -21
  2127. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts.map +0 -1
  2128. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -21
  2129. package/foo/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js.map +0 -1
  2130. package/foo/node_modules/puppeteer-core/lib/esm/third_party/mitt/index.d.ts +0 -17
  2131. package/foo/node_modules/puppeteer-core/lib/esm/third_party/mitt/index.js +0 -3
  2132. package/foo/node_modules/puppeteer-core/lib/types.d.ts +0 -6919
  2133. package/foo/node_modules/puppeteer-core/package.json +0 -154
  2134. package/foo/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  2135. package/foo/node_modules/readable-stream/GOVERNANCE.md +0 -136
  2136. package/foo/node_modules/readable-stream/LICENSE +0 -47
  2137. package/foo/node_modules/readable-stream/README.md +0 -106
  2138. package/foo/node_modules/readable-stream/errors-browser.js +0 -127
  2139. package/foo/node_modules/readable-stream/errors.js +0 -116
  2140. package/foo/node_modules/readable-stream/experimentalWarning.js +0 -17
  2141. package/foo/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  2142. package/foo/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  2143. package/foo/node_modules/readable-stream/lib/_stream_readable.js +0 -1026
  2144. package/foo/node_modules/readable-stream/lib/_stream_transform.js +0 -189
  2145. package/foo/node_modules/readable-stream/lib/_stream_writable.js +0 -640
  2146. package/foo/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -185
  2147. package/foo/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -155
  2148. package/foo/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -95
  2149. package/foo/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  2150. package/foo/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  2151. package/foo/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  2152. package/foo/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  2153. package/foo/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  2154. package/foo/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  2155. package/foo/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  2156. package/foo/node_modules/readable-stream/package.json +0 -68
  2157. package/foo/node_modules/readable-stream/readable-browser.js +0 -9
  2158. package/foo/node_modules/readable-stream/readable.js +0 -16
  2159. package/foo/node_modules/resolve-from/index.js +0 -47
  2160. package/foo/node_modules/resolve-from/license +0 -9
  2161. package/foo/node_modules/resolve-from/package.json +0 -34
  2162. package/foo/node_modules/resolve-from/readme.md +0 -72
  2163. package/foo/node_modules/rimraf/CHANGELOG.md +0 -65
  2164. package/foo/node_modules/rimraf/LICENSE +0 -15
  2165. package/foo/node_modules/rimraf/README.md +0 -101
  2166. package/foo/node_modules/rimraf/bin.js +0 -68
  2167. package/foo/node_modules/rimraf/package.json +0 -32
  2168. package/foo/node_modules/rimraf/rimraf.js +0 -360
  2169. package/foo/node_modules/safe-buffer/LICENSE +0 -21
  2170. package/foo/node_modules/safe-buffer/README.md +0 -584
  2171. package/foo/node_modules/safe-buffer/index.d.ts +0 -187
  2172. package/foo/node_modules/safe-buffer/index.js +0 -65
  2173. package/foo/node_modules/safe-buffer/package.json +0 -51
  2174. package/foo/node_modules/string_decoder/LICENSE +0 -48
  2175. package/foo/node_modules/string_decoder/README.md +0 -47
  2176. package/foo/node_modules/string_decoder/lib/string_decoder.js +0 -296
  2177. package/foo/node_modules/string_decoder/package.json +0 -34
  2178. package/foo/node_modules/supports-color/browser.js +0 -5
  2179. package/foo/node_modules/supports-color/index.js +0 -131
  2180. package/foo/node_modules/supports-color/license +0 -9
  2181. package/foo/node_modules/supports-color/package.json +0 -53
  2182. package/foo/node_modules/supports-color/readme.md +0 -66
  2183. package/foo/node_modules/tar-fs/.travis.yml +0 -6
  2184. package/foo/node_modules/tar-fs/LICENSE +0 -21
  2185. package/foo/node_modules/tar-fs/README.md +0 -165
  2186. package/foo/node_modules/tar-fs/index.js +0 -351
  2187. package/foo/node_modules/tar-fs/package.json +0 -41
  2188. package/foo/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  2189. package/foo/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  2190. package/foo/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  2191. package/foo/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  2192. package/foo/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  2193. package/foo/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  2194. package/foo/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  2195. package/foo/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  2196. package/foo/node_modules/tar-fs/test/fixtures/e/file +0 -0
  2197. package/foo/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  2198. package/foo/node_modules/tar-fs/test/index.js +0 -346
  2199. package/foo/node_modules/tar-stream/LICENSE +0 -21
  2200. package/foo/node_modules/tar-stream/README.md +0 -168
  2201. package/foo/node_modules/tar-stream/extract.js +0 -257
  2202. package/foo/node_modules/tar-stream/headers.js +0 -295
  2203. package/foo/node_modules/tar-stream/index.js +0 -2
  2204. package/foo/node_modules/tar-stream/pack.js +0 -255
  2205. package/foo/node_modules/tar-stream/package.json +0 -58
  2206. package/foo/node_modules/tar-stream/sandbox.js +0 -11
  2207. package/foo/node_modules/through/.travis.yml +0 -5
  2208. package/foo/node_modules/through/LICENSE.APACHE2 +0 -15
  2209. package/foo/node_modules/through/LICENSE.MIT +0 -24
  2210. package/foo/node_modules/through/index.js +0 -108
  2211. package/foo/node_modules/through/package.json +0 -36
  2212. package/foo/node_modules/through/readme.markdown +0 -64
  2213. package/foo/node_modules/through/test/async.js +0 -28
  2214. package/foo/node_modules/through/test/auto-destroy.js +0 -30
  2215. package/foo/node_modules/through/test/buffering.js +0 -71
  2216. package/foo/node_modules/through/test/end.js +0 -45
  2217. package/foo/node_modules/through/test/index.js +0 -133
  2218. package/foo/node_modules/tr46/index.js +0 -193
  2219. package/foo/node_modules/tr46/lib/.gitkeep +0 -0
  2220. package/foo/node_modules/tr46/lib/mappingTable.json +0 -1
  2221. package/foo/node_modules/tr46/package.json +0 -31
  2222. package/foo/node_modules/unbzip2-stream/LICENSE +0 -24
  2223. package/foo/node_modules/unbzip2-stream/README.md +0 -59
  2224. package/foo/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +0 -1
  2225. package/foo/node_modules/unbzip2-stream/index.js +0 -93
  2226. package/foo/node_modules/unbzip2-stream/lib/bit_iterator.js +0 -39
  2227. package/foo/node_modules/unbzip2-stream/lib/bzip2.js +0 -365
  2228. package/foo/node_modules/unbzip2-stream/package.json +0 -51
  2229. package/foo/node_modules/util-deprecate/History.md +0 -16
  2230. package/foo/node_modules/util-deprecate/LICENSE +0 -24
  2231. package/foo/node_modules/util-deprecate/README.md +0 -53
  2232. package/foo/node_modules/util-deprecate/browser.js +0 -67
  2233. package/foo/node_modules/util-deprecate/node.js +0 -6
  2234. package/foo/node_modules/util-deprecate/package.json +0 -27
  2235. package/foo/node_modules/webidl-conversions/LICENSE.md +0 -12
  2236. package/foo/node_modules/webidl-conversions/README.md +0 -53
  2237. package/foo/node_modules/webidl-conversions/lib/index.js +0 -189
  2238. package/foo/node_modules/webidl-conversions/package.json +0 -23
  2239. package/foo/node_modules/whatwg-url/LICENSE.txt +0 -21
  2240. package/foo/node_modules/whatwg-url/README.md +0 -67
  2241. package/foo/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  2242. package/foo/node_modules/whatwg-url/lib/URL.js +0 -196
  2243. package/foo/node_modules/whatwg-url/lib/public-api.js +0 -11
  2244. package/foo/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  2245. package/foo/node_modules/whatwg-url/lib/utils.js +0 -20
  2246. package/foo/node_modules/whatwg-url/package.json +0 -32
  2247. package/foo/node_modules/wrappy/LICENSE +0 -15
  2248. package/foo/node_modules/wrappy/README.md +0 -36
  2249. package/foo/node_modules/wrappy/package.json +0 -29
  2250. package/foo/node_modules/wrappy/wrappy.js +0 -33
  2251. package/foo/node_modules/ws/LICENSE +0 -19
  2252. package/foo/node_modules/ws/README.md +0 -495
  2253. package/foo/node_modules/ws/browser.js +0 -8
  2254. package/foo/node_modules/ws/index.js +0 -13
  2255. package/foo/node_modules/ws/lib/buffer-util.js +0 -127
  2256. package/foo/node_modules/ws/lib/constants.js +0 -12
  2257. package/foo/node_modules/ws/lib/event-target.js +0 -292
  2258. package/foo/node_modules/ws/lib/extension.js +0 -203
  2259. package/foo/node_modules/ws/lib/limiter.js +0 -55
  2260. package/foo/node_modules/ws/lib/permessage-deflate.js +0 -511
  2261. package/foo/node_modules/ws/lib/receiver.js +0 -618
  2262. package/foo/node_modules/ws/lib/sender.js +0 -478
  2263. package/foo/node_modules/ws/lib/stream.js +0 -159
  2264. package/foo/node_modules/ws/lib/subprotocol.js +0 -62
  2265. package/foo/node_modules/ws/lib/validation.js +0 -125
  2266. package/foo/node_modules/ws/lib/websocket-server.js +0 -535
  2267. package/foo/node_modules/ws/lib/websocket.js +0 -1305
  2268. package/foo/node_modules/ws/package.json +0 -64
  2269. package/foo/node_modules/ws/wrapper.mjs +0 -8
  2270. package/foo/node_modules/yauzl/LICENSE +0 -21
  2271. package/foo/node_modules/yauzl/README.md +0 -658
  2272. package/foo/node_modules/yauzl/index.js +0 -796
  2273. package/foo/node_modules/yauzl/package.json +0 -40
  2274. package/foo/package-lock.json +0 -1457
  2275. package/foo/package.json +0 -14
  2276. package/rollup.config.js +0 -107
  2277. package/src/fonts/fivo-sans-modern/bold.woff +0 -0
  2278. package/src/fonts/fivo-sans-modern/bold.woff2 +0 -0
  2279. package/src/index.ts +0 -1
  2280. package/src/templates/_template/index.css +0 -13
  2281. package/src/templates/_template/index.html +0 -13
  2282. package/src/templates/_template/index.ts +0 -22
  2283. package/src/templates/bet-nft/example.png +0 -0
  2284. package/src/templates/bet-nft/images/logo.png +0 -0
  2285. package/src/templates/bet-nft/images/separator.png +0 -0
  2286. package/src/templates/bet-nft/images/shadow.png +0 -0
  2287. package/src/templates/bet-nft/images/team1.png +0 -0
  2288. package/src/templates/bet-nft/images/team2.png +0 -0
  2289. package/src/templates/bet-nft/index.html +0 -325
  2290. package/src/templates/bet-nft/index.ts +0 -69
  2291. package/src/templates/bet-og/example.jpeg +0 -0
  2292. package/src/templates/bet-og/images/bg.jpg +0 -0
  2293. package/src/templates/bet-og/images/logo.png +0 -0
  2294. package/src/templates/bet-og/index.html +0 -176
  2295. package/src/templates/bet-og/index.ts +0 -57
  2296. package/src/utils/generateImage.ts +0 -89
  2297. package/src/utils/index.ts +0 -37
  2298. package/src/utils/types.ts +0 -8
  2299. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/images/logo.png +0 -0
  2300. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/images/separator.png +0 -0
  2301. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/images/shadow.png +0 -0
  2302. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/images/team1.png +0 -0
  2303. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/images/team2.png +0 -0
  2304. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-nft/index.html +0 -0
  2305. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-og/images/bg.jpg +0 -0
  2306. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-og/images/logo.png +0 -0
  2307. /package/{foo/node_modules/@azuro-org/images-generator/src → dist}/templates/bet-og/index.html +0 -0
@@ -1,3964 +0,0 @@
1
- /**
2
- * The `crypto` module provides cryptographic functionality that includes a set of
3
- * wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
4
- *
5
- * ```js
6
- * const { createHmac } = await import('crypto');
7
- *
8
- * const secret = 'abcdefg';
9
- * const hash = createHmac('sha256', secret)
10
- * .update('I love cupcakes')
11
- * .digest('hex');
12
- * console.log(hash);
13
- * // Prints:
14
- * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
15
- * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/crypto.js)
17
- */
18
- declare module 'crypto' {
19
- import * as stream from 'node:stream';
20
- import { PeerCertificate } from 'node:tls';
21
- /**
22
- * SPKAC is a Certificate Signing Request mechanism originally implemented by
23
- * Netscape and was specified formally as part of [HTML5's `keygen` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/keygen).
24
- *
25
- * `<keygen>` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects
26
- * should not use this element anymore.
27
- *
28
- * The `crypto` module provides the `Certificate` class for working with SPKAC
29
- * data. The most common usage is handling output generated by the HTML5`<keygen>` element. Node.js uses [OpenSSL's SPKAC
30
- * implementation](https://www.openssl.org/docs/man1.1.0/apps/openssl-spkac.html) internally.
31
- * @since v0.11.8
32
- */
33
- class Certificate {
34
- /**
35
- * ```js
36
- * const { Certificate } = await import('crypto');
37
- * const spkac = getSpkacSomehow();
38
- * const challenge = Certificate.exportChallenge(spkac);
39
- * console.log(challenge.toString('utf8'));
40
- * // Prints: the challenge as a UTF8 string
41
- * ```
42
- * @since v9.0.0
43
- * @param encoding The `encoding` of the `spkac` string.
44
- * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge.
45
- */
46
- static exportChallenge(spkac: BinaryLike): Buffer;
47
- /**
48
- * ```js
49
- * const { Certificate } = await import('crypto');
50
- * const spkac = getSpkacSomehow();
51
- * const publicKey = Certificate.exportPublicKey(spkac);
52
- * console.log(publicKey);
53
- * // Prints: the public key as <Buffer ...>
54
- * ```
55
- * @since v9.0.0
56
- * @param encoding The `encoding` of the `spkac` string.
57
- * @return The public key component of the `spkac` data structure, which includes a public key and a challenge.
58
- */
59
- static exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
60
- /**
61
- * ```js
62
- * import { Buffer } from 'buffer';
63
- * const { Certificate } = await import('crypto');
64
- *
65
- * const spkac = getSpkacSomehow();
66
- * console.log(Certificate.verifySpkac(Buffer.from(spkac)));
67
- * // Prints: true or false
68
- * ```
69
- * @since v9.0.0
70
- * @param encoding The `encoding` of the `spkac` string.
71
- * @return `true` if the given `spkac` data structure is valid, `false` otherwise.
72
- */
73
- static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
74
- /**
75
- * @deprecated
76
- * @param spkac
77
- * @returns The challenge component of the `spkac` data structure,
78
- * which includes a public key and a challenge.
79
- */
80
- exportChallenge(spkac: BinaryLike): Buffer;
81
- /**
82
- * @deprecated
83
- * @param spkac
84
- * @param encoding The encoding of the spkac string.
85
- * @returns The public key component of the `spkac` data structure,
86
- * which includes a public key and a challenge.
87
- */
88
- exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
89
- /**
90
- * @deprecated
91
- * @param spkac
92
- * @returns `true` if the given `spkac` data structure is valid,
93
- * `false` otherwise.
94
- */
95
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
96
- }
97
- namespace constants {
98
- // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants
99
- const OPENSSL_VERSION_NUMBER: number;
100
- /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
101
- const SSL_OP_ALL: number;
102
- /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
103
- const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
104
- /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
105
- const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
106
- /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
107
- const SSL_OP_CISCO_ANYCONNECT: number;
108
- /** Instructs OpenSSL to turn on cookie exchange. */
109
- const SSL_OP_COOKIE_EXCHANGE: number;
110
- /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
111
- const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
112
- /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
113
- const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
114
- /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */
115
- const SSL_OP_EPHEMERAL_RSA: number;
116
- /** Allows initial connection to servers that do not support RI. */
117
- const SSL_OP_LEGACY_SERVER_CONNECT: number;
118
- const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
119
- const SSL_OP_MICROSOFT_SESS_ID_BUG: number;
120
- /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */
121
- const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
122
- const SSL_OP_NETSCAPE_CA_DN_BUG: number;
123
- const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
124
- const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
125
- const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
126
- /** Instructs OpenSSL to disable support for SSL/TLS compression. */
127
- const SSL_OP_NO_COMPRESSION: number;
128
- const SSL_OP_NO_QUERY_MTU: number;
129
- /** Instructs OpenSSL to always start a new session when performing renegotiation. */
130
- const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
131
- const SSL_OP_NO_SSLv2: number;
132
- const SSL_OP_NO_SSLv3: number;
133
- const SSL_OP_NO_TICKET: number;
134
- const SSL_OP_NO_TLSv1: number;
135
- const SSL_OP_NO_TLSv1_1: number;
136
- const SSL_OP_NO_TLSv1_2: number;
137
- const SSL_OP_PKCS1_CHECK_1: number;
138
- const SSL_OP_PKCS1_CHECK_2: number;
139
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */
140
- const SSL_OP_SINGLE_DH_USE: number;
141
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */
142
- const SSL_OP_SINGLE_ECDH_USE: number;
143
- const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
144
- const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
145
- const SSL_OP_TLS_BLOCK_PADDING_BUG: number;
146
- const SSL_OP_TLS_D5_BUG: number;
147
- /** Instructs OpenSSL to disable version rollback attack detection. */
148
- const SSL_OP_TLS_ROLLBACK_BUG: number;
149
- const ENGINE_METHOD_RSA: number;
150
- const ENGINE_METHOD_DSA: number;
151
- const ENGINE_METHOD_DH: number;
152
- const ENGINE_METHOD_RAND: number;
153
- const ENGINE_METHOD_EC: number;
154
- const ENGINE_METHOD_CIPHERS: number;
155
- const ENGINE_METHOD_DIGESTS: number;
156
- const ENGINE_METHOD_PKEY_METHS: number;
157
- const ENGINE_METHOD_PKEY_ASN1_METHS: number;
158
- const ENGINE_METHOD_ALL: number;
159
- const ENGINE_METHOD_NONE: number;
160
- const DH_CHECK_P_NOT_SAFE_PRIME: number;
161
- const DH_CHECK_P_NOT_PRIME: number;
162
- const DH_UNABLE_TO_CHECK_GENERATOR: number;
163
- const DH_NOT_SUITABLE_GENERATOR: number;
164
- const ALPN_ENABLED: number;
165
- const RSA_PKCS1_PADDING: number;
166
- const RSA_SSLV23_PADDING: number;
167
- const RSA_NO_PADDING: number;
168
- const RSA_PKCS1_OAEP_PADDING: number;
169
- const RSA_X931_PADDING: number;
170
- const RSA_PKCS1_PSS_PADDING: number;
171
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
172
- const RSA_PSS_SALTLEN_DIGEST: number;
173
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
174
- const RSA_PSS_SALTLEN_MAX_SIGN: number;
175
- /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
176
- const RSA_PSS_SALTLEN_AUTO: number;
177
- const POINT_CONVERSION_COMPRESSED: number;
178
- const POINT_CONVERSION_UNCOMPRESSED: number;
179
- const POINT_CONVERSION_HYBRID: number;
180
- /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
181
- const defaultCoreCipherList: string;
182
- /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
183
- const defaultCipherList: string;
184
- }
185
- interface HashOptions extends stream.TransformOptions {
186
- /**
187
- * For XOF hash functions such as `shake256`, the
188
- * outputLength option can be used to specify the desired output length in bytes.
189
- */
190
- outputLength?: number | undefined;
191
- }
192
- /** @deprecated since v10.0.0 */
193
- const fips: boolean;
194
- /**
195
- * Creates and returns a `Hash` object that can be used to generate hash digests
196
- * using the given `algorithm`. Optional `options` argument controls stream
197
- * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
198
- * can be used to specify the desired output length in bytes.
199
- *
200
- * The `algorithm` is dependent on the available algorithms supported by the
201
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
202
- * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
203
- * display the available digest algorithms.
204
- *
205
- * Example: generating the sha256 sum of a file
206
- *
207
- * ```js
208
- * import {
209
- * createReadStream
210
- * } from 'fs';
211
- * import { argv } from 'process';
212
- * const {
213
- * createHash
214
- * } = await import('crypto');
215
- *
216
- * const filename = argv[2];
217
- *
218
- * const hash = createHash('sha256');
219
- *
220
- * const input = createReadStream(filename);
221
- * input.on('readable', () => {
222
- * // Only one element is going to be produced by the
223
- * // hash stream.
224
- * const data = input.read();
225
- * if (data)
226
- * hash.update(data);
227
- * else {
228
- * console.log(`${hash.digest('hex')} ${filename}`);
229
- * }
230
- * });
231
- * ```
232
- * @since v0.1.92
233
- * @param options `stream.transform` options
234
- */
235
- function createHash(algorithm: string, options?: HashOptions): Hash;
236
- /**
237
- * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
238
- * Optional `options` argument controls stream behavior.
239
- *
240
- * The `algorithm` is dependent on the available algorithms supported by the
241
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
242
- * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
243
- * display the available digest algorithms.
244
- *
245
- * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
246
- * a `KeyObject`, its type must be `secret`.
247
- *
248
- * Example: generating the sha256 HMAC of a file
249
- *
250
- * ```js
251
- * import {
252
- * createReadStream
253
- * } from 'fs';
254
- * import { argv } from 'process';
255
- * const {
256
- * createHmac
257
- * } = await import('crypto');
258
- *
259
- * const filename = argv[2];
260
- *
261
- * const hmac = createHmac('sha256', 'a secret');
262
- *
263
- * const input = createReadStream(filename);
264
- * input.on('readable', () => {
265
- * // Only one element is going to be produced by the
266
- * // hash stream.
267
- * const data = input.read();
268
- * if (data)
269
- * hmac.update(data);
270
- * else {
271
- * console.log(`${hmac.digest('hex')} ${filename}`);
272
- * }
273
- * });
274
- * ```
275
- * @since v0.1.94
276
- * @param options `stream.transform` options
277
- */
278
- function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
279
- // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
280
- type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
281
- type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
282
- type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
283
- type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
284
- type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid';
285
- /**
286
- * The `Hash` class is a utility for creating hash digests of data. It can be
287
- * used in one of two ways:
288
- *
289
- * * As a `stream` that is both readable and writable, where data is written
290
- * to produce a computed hash digest on the readable side, or
291
- * * Using the `hash.update()` and `hash.digest()` methods to produce the
292
- * computed hash.
293
- *
294
- * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
295
- *
296
- * Example: Using `Hash` objects as streams:
297
- *
298
- * ```js
299
- * const {
300
- * createHash
301
- * } = await import('crypto');
302
- *
303
- * const hash = createHash('sha256');
304
- *
305
- * hash.on('readable', () => {
306
- * // Only one element is going to be produced by the
307
- * // hash stream.
308
- * const data = hash.read();
309
- * if (data) {
310
- * console.log(data.toString('hex'));
311
- * // Prints:
312
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
313
- * }
314
- * });
315
- *
316
- * hash.write('some data to hash');
317
- * hash.end();
318
- * ```
319
- *
320
- * Example: Using `Hash` and piped streams:
321
- *
322
- * ```js
323
- * import { createReadStream } from 'fs';
324
- * import { stdout } from 'process';
325
- * const { createHash } = await import('crypto');
326
- *
327
- * const hash = createHash('sha256');
328
- *
329
- * const input = createReadStream('test.js');
330
- * input.pipe(hash).setEncoding('hex').pipe(stdout);
331
- * ```
332
- *
333
- * Example: Using the `hash.update()` and `hash.digest()` methods:
334
- *
335
- * ```js
336
- * const {
337
- * createHash
338
- * } = await import('crypto');
339
- *
340
- * const hash = createHash('sha256');
341
- *
342
- * hash.update('some data to hash');
343
- * console.log(hash.digest('hex'));
344
- * // Prints:
345
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
346
- * ```
347
- * @since v0.1.92
348
- */
349
- class Hash extends stream.Transform {
350
- private constructor();
351
- /**
352
- * Creates a new `Hash` object that contains a deep copy of the internal state
353
- * of the current `Hash` object.
354
- *
355
- * The optional `options` argument controls stream behavior. For XOF hash
356
- * functions such as `'shake256'`, the `outputLength` option can be used to
357
- * specify the desired output length in bytes.
358
- *
359
- * An error is thrown when an attempt is made to copy the `Hash` object after
360
- * its `hash.digest()` method has been called.
361
- *
362
- * ```js
363
- * // Calculate a rolling hash.
364
- * const {
365
- * createHash
366
- * } = await import('crypto');
367
- *
368
- * const hash = createHash('sha256');
369
- *
370
- * hash.update('one');
371
- * console.log(hash.copy().digest('hex'));
372
- *
373
- * hash.update('two');
374
- * console.log(hash.copy().digest('hex'));
375
- *
376
- * hash.update('three');
377
- * console.log(hash.copy().digest('hex'));
378
- *
379
- * // Etc.
380
- * ```
381
- * @since v13.1.0
382
- * @param options `stream.transform` options
383
- */
384
- copy(options?: stream.TransformOptions): Hash;
385
- /**
386
- * Updates the hash content with the given `data`, the encoding of which
387
- * is given in `inputEncoding`.
388
- * If `encoding` is not provided, and the `data` is a string, an
389
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
390
- *
391
- * This can be called many times with new data as it is streamed.
392
- * @since v0.1.92
393
- * @param inputEncoding The `encoding` of the `data` string.
394
- */
395
- update(data: BinaryLike): Hash;
396
- update(data: string, inputEncoding: Encoding): Hash;
397
- /**
398
- * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
399
- * If `encoding` is provided a string will be returned; otherwise
400
- * a `Buffer` is returned.
401
- *
402
- * The `Hash` object can not be used again after `hash.digest()` method has been
403
- * called. Multiple calls will cause an error to be thrown.
404
- * @since v0.1.92
405
- * @param encoding The `encoding` of the return value.
406
- */
407
- digest(): Buffer;
408
- digest(encoding: BinaryToTextEncoding): string;
409
- }
410
- /**
411
- * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
412
- * be used in one of two ways:
413
- *
414
- * * As a `stream` that is both readable and writable, where data is written
415
- * to produce a computed HMAC digest on the readable side, or
416
- * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
417
- * computed HMAC digest.
418
- *
419
- * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
420
- *
421
- * Example: Using `Hmac` objects as streams:
422
- *
423
- * ```js
424
- * const {
425
- * createHmac
426
- * } = await import('crypto');
427
- *
428
- * const hmac = createHmac('sha256', 'a secret');
429
- *
430
- * hmac.on('readable', () => {
431
- * // Only one element is going to be produced by the
432
- * // hash stream.
433
- * const data = hmac.read();
434
- * if (data) {
435
- * console.log(data.toString('hex'));
436
- * // Prints:
437
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
438
- * }
439
- * });
440
- *
441
- * hmac.write('some data to hash');
442
- * hmac.end();
443
- * ```
444
- *
445
- * Example: Using `Hmac` and piped streams:
446
- *
447
- * ```js
448
- * import { createReadStream } from 'fs';
449
- * import { stdout } from 'process';
450
- * const {
451
- * createHmac
452
- * } = await import('crypto');
453
- *
454
- * const hmac = createHmac('sha256', 'a secret');
455
- *
456
- * const input = createReadStream('test.js');
457
- * input.pipe(hmac).pipe(stdout);
458
- * ```
459
- *
460
- * Example: Using the `hmac.update()` and `hmac.digest()` methods:
461
- *
462
- * ```js
463
- * const {
464
- * createHmac
465
- * } = await import('crypto');
466
- *
467
- * const hmac = createHmac('sha256', 'a secret');
468
- *
469
- * hmac.update('some data to hash');
470
- * console.log(hmac.digest('hex'));
471
- * // Prints:
472
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
473
- * ```
474
- * @since v0.1.94
475
- */
476
- class Hmac extends stream.Transform {
477
- private constructor();
478
- /**
479
- * Updates the `Hmac` content with the given `data`, the encoding of which
480
- * is given in `inputEncoding`.
481
- * If `encoding` is not provided, and the `data` is a string, an
482
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
483
- *
484
- * This can be called many times with new data as it is streamed.
485
- * @since v0.1.94
486
- * @param inputEncoding The `encoding` of the `data` string.
487
- */
488
- update(data: BinaryLike): Hmac;
489
- update(data: string, inputEncoding: Encoding): Hmac;
490
- /**
491
- * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
492
- * If `encoding` is
493
- * provided a string is returned; otherwise a `Buffer` is returned;
494
- *
495
- * The `Hmac` object can not be used again after `hmac.digest()` has been
496
- * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
497
- * @since v0.1.94
498
- * @param encoding The `encoding` of the return value.
499
- */
500
- digest(): Buffer;
501
- digest(encoding: BinaryToTextEncoding): string;
502
- }
503
- type KeyObjectType = 'secret' | 'public' | 'private';
504
- interface KeyExportOptions<T extends KeyFormat> {
505
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
506
- format: T;
507
- cipher?: string | undefined;
508
- passphrase?: string | Buffer | undefined;
509
- }
510
- interface JwkKeyExportOptions {
511
- format: 'jwk';
512
- }
513
- interface JsonWebKey {
514
- crv?: string | undefined;
515
- d?: string | undefined;
516
- dp?: string | undefined;
517
- dq?: string | undefined;
518
- e?: string | undefined;
519
- k?: string | undefined;
520
- kty?: string | undefined;
521
- n?: string | undefined;
522
- p?: string | undefined;
523
- q?: string | undefined;
524
- qi?: string | undefined;
525
- x?: string | undefined;
526
- y?: string | undefined;
527
- [key: string]: unknown;
528
- }
529
- interface AsymmetricKeyDetails {
530
- /**
531
- * Key size in bits (RSA, DSA).
532
- */
533
- modulusLength?: number | undefined;
534
- /**
535
- * Public exponent (RSA).
536
- */
537
- publicExponent?: bigint | undefined;
538
- /**
539
- * Name of the message digest (RSA-PSS).
540
- */
541
- hashAlgorithm?: string | undefined;
542
- /**
543
- * Name of the message digest used by MGF1 (RSA-PSS).
544
- */
545
- mgf1HashAlgorithm?: string | undefined;
546
- /**
547
- * Minimal salt length in bytes (RSA-PSS).
548
- */
549
- saltLength?: number | undefined;
550
- /**
551
- * Size of q in bits (DSA).
552
- */
553
- divisorLength?: number | undefined;
554
- /**
555
- * Name of the curve (EC).
556
- */
557
- namedCurve?: string | undefined;
558
- }
559
- /**
560
- * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
561
- * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
562
- * objects are not to be created directly using the `new`keyword.
563
- *
564
- * Most applications should consider using the new `KeyObject` API instead of
565
- * passing keys as strings or `Buffer`s due to improved security features.
566
- *
567
- * `KeyObject` instances can be passed to other threads via `postMessage()`.
568
- * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
569
- * be listed in the `transferList` argument.
570
- * @since v11.6.0
571
- */
572
- class KeyObject {
573
- private constructor();
574
- /**
575
- * Example: Converting a `CryptoKey` instance to a `KeyObject`:
576
- *
577
- * ```js
578
- * const { webcrypto, KeyObject } = await import('crypto');
579
- * const { subtle } = webcrypto;
580
- *
581
- * const key = await subtle.generateKey({
582
- * name: 'HMAC',
583
- * hash: 'SHA-256',
584
- * length: 256
585
- * }, true, ['sign', 'verify']);
586
- *
587
- * const keyObject = KeyObject.from(key);
588
- * console.log(keyObject.symmetricKeySize);
589
- * // Prints: 32 (symmetric key size in bytes)
590
- * ```
591
- * @since v15.0.0
592
- */
593
- static from(key: webcrypto.CryptoKey): KeyObject;
594
- /**
595
- * For asymmetric keys, this property represents the type of the key. Supported key
596
- * types are:
597
- *
598
- * * `'rsa'` (OID 1.2.840.113549.1.1.1)
599
- * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
600
- * * `'dsa'` (OID 1.2.840.10040.4.1)
601
- * * `'ec'` (OID 1.2.840.10045.2.1)
602
- * * `'x25519'` (OID 1.3.101.110)
603
- * * `'x448'` (OID 1.3.101.111)
604
- * * `'ed25519'` (OID 1.3.101.112)
605
- * * `'ed448'` (OID 1.3.101.113)
606
- * * `'dh'` (OID 1.2.840.113549.1.3.1)
607
- *
608
- * This property is `undefined` for unrecognized `KeyObject` types and symmetric
609
- * keys.
610
- * @since v11.6.0
611
- */
612
- asymmetricKeyType?: KeyType | undefined;
613
- /**
614
- * For asymmetric keys, this property represents the size of the embedded key in
615
- * bytes. This property is `undefined` for symmetric keys.
616
- */
617
- asymmetricKeySize?: number | undefined;
618
- /**
619
- * This property exists only on asymmetric keys. Depending on the type of the key,
620
- * this object contains information about the key. None of the information obtained
621
- * through this property can be used to uniquely identify a key or to compromise
622
- * the security of the key.
623
- *
624
- * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
625
- * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
626
- * set.
627
- *
628
- * Other key details might be exposed via this API using additional attributes.
629
- * @since v15.7.0
630
- */
631
- asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
632
- /**
633
- * For symmetric keys, the following encoding options can be used:
634
- *
635
- * For public keys, the following encoding options can be used:
636
- *
637
- * For private keys, the following encoding options can be used:
638
- *
639
- * The result type depends on the selected encoding format, when PEM the
640
- * result is a string, when DER it will be a buffer containing the data
641
- * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
642
- *
643
- * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
644
- * ignored.
645
- *
646
- * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
647
- * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be
648
- * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
649
- * encrypted private keys. Since PKCS#8 defines its own
650
- * encryption mechanism, PEM-level encryption is not supported when encrypting
651
- * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for
652
- * PKCS#1 and SEC1 encryption.
653
- * @since v11.6.0
654
- */
655
- export(options: KeyExportOptions<'pem'>): string | Buffer;
656
- export(options?: KeyExportOptions<'der'>): Buffer;
657
- export(options?: JwkKeyExportOptions): JsonWebKey;
658
- /**
659
- * For secret keys, this property represents the size of the key in bytes. This
660
- * property is `undefined` for asymmetric keys.
661
- * @since v11.6.0
662
- */
663
- symmetricKeySize?: number | undefined;
664
- /**
665
- * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
666
- * or `'private'` for private (asymmetric) keys.
667
- * @since v11.6.0
668
- */
669
- type: KeyObjectType;
670
- }
671
- type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
672
- type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
673
- type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
674
- type BinaryLike = string | NodeJS.ArrayBufferView;
675
- type CipherKey = BinaryLike | KeyObject;
676
- interface CipherCCMOptions extends stream.TransformOptions {
677
- authTagLength: number;
678
- }
679
- interface CipherGCMOptions extends stream.TransformOptions {
680
- authTagLength?: number | undefined;
681
- }
682
- interface CipherOCBOptions extends stream.TransformOptions {
683
- authTagLength: number;
684
- }
685
- /**
686
- * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
687
- *
688
- * The `options` argument controls stream behavior and is optional except when a
689
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
690
- * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
691
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
692
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
693
- *
694
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
695
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
696
- * display the available cipher algorithms.
697
- *
698
- * The `password` is used to derive the cipher key and initialization vector (IV).
699
- * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
700
- *
701
- * The implementation of `crypto.createCipher()` derives keys using the OpenSSL
702
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
703
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
704
- * password always creates the same key. The low iteration count and
705
- * non-cryptographically secure hash algorithm allow passwords to be tested very
706
- * rapidly.
707
- *
708
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
709
- * developers derive a key and IV on
710
- * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
711
- * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
712
- * they are used in order to avoid the risk of IV reuse that causes
713
- * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
714
- * @since v0.1.94
715
- * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
716
- * @param options `stream.transform` options
717
- */
718
- function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
719
- /** @deprecated since v10.0.0 use `createCipheriv()` */
720
- function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
721
- /** @deprecated since v10.0.0 use `createCipheriv()` */
722
- function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
723
- /**
724
- * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
725
- * initialization vector (`iv`).
726
- *
727
- * The `options` argument controls stream behavior and is optional except when a
728
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
729
- * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
730
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
731
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
732
- *
733
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
734
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
735
- * display the available cipher algorithms.
736
- *
737
- * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
738
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
739
- * a `KeyObject` of type `secret`. If the cipher does not need
740
- * an initialization vector, `iv` may be `null`.
741
- *
742
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
743
- *
744
- * Initialization vectors should be unpredictable and unique; ideally, they will be
745
- * cryptographically random. They do not have to be secret: IVs are typically just
746
- * added to ciphertext messages unencrypted. It may sound contradictory that
747
- * something has to be unpredictable and unique, but does not have to be secret;
748
- * remember that an attacker must not be able to predict ahead of time what a
749
- * given IV will be.
750
- * @since v0.1.94
751
- * @param options `stream.transform` options
752
- */
753
- function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM;
754
- function createCipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): CipherOCB;
755
- function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): CipherGCM;
756
- function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
757
- /**
758
- * Instances of the `Cipher` class are used to encrypt data. The class can be
759
- * used in one of two ways:
760
- *
761
- * * As a `stream` that is both readable and writable, where plain unencrypted
762
- * data is written to produce encrypted data on the readable side, or
763
- * * Using the `cipher.update()` and `cipher.final()` methods to produce
764
- * the encrypted data.
765
- *
766
- * The {@link createCipher} or {@link createCipheriv} methods are
767
- * used to create `Cipher` instances. `Cipher` objects are not to be created
768
- * directly using the `new` keyword.
769
- *
770
- * Example: Using `Cipher` objects as streams:
771
- *
772
- * ```js
773
- * const {
774
- * scrypt,
775
- * randomFill,
776
- * createCipheriv
777
- * } = await import('crypto');
778
- *
779
- * const algorithm = 'aes-192-cbc';
780
- * const password = 'Password used to generate key';
781
- *
782
- * // First, we'll generate the key. The key length is dependent on the algorithm.
783
- * // In this case for aes192, it is 24 bytes (192 bits).
784
- * scrypt(password, 'salt', 24, (err, key) => {
785
- * if (err) throw err;
786
- * // Then, we'll generate a random initialization vector
787
- * randomFill(new Uint8Array(16), (err, iv) => {
788
- * if (err) throw err;
789
- *
790
- * // Once we have the key and iv, we can create and use the cipher...
791
- * const cipher = createCipheriv(algorithm, key, iv);
792
- *
793
- * let encrypted = '';
794
- * cipher.setEncoding('hex');
795
- *
796
- * cipher.on('data', (chunk) => encrypted += chunk);
797
- * cipher.on('end', () => console.log(encrypted));
798
- *
799
- * cipher.write('some clear text data');
800
- * cipher.end();
801
- * });
802
- * });
803
- * ```
804
- *
805
- * Example: Using `Cipher` and piped streams:
806
- *
807
- * ```js
808
- * import {
809
- * createReadStream,
810
- * createWriteStream,
811
- * } from 'fs';
812
- *
813
- * import {
814
- * pipeline
815
- * } from 'stream';
816
- *
817
- * const {
818
- * scrypt,
819
- * randomFill,
820
- * createCipheriv
821
- * } = await import('crypto');
822
- *
823
- * const algorithm = 'aes-192-cbc';
824
- * const password = 'Password used to generate key';
825
- *
826
- * // First, we'll generate the key. The key length is dependent on the algorithm.
827
- * // In this case for aes192, it is 24 bytes (192 bits).
828
- * scrypt(password, 'salt', 24, (err, key) => {
829
- * if (err) throw err;
830
- * // Then, we'll generate a random initialization vector
831
- * randomFill(new Uint8Array(16), (err, iv) => {
832
- * if (err) throw err;
833
- *
834
- * const cipher = createCipheriv(algorithm, key, iv);
835
- *
836
- * const input = createReadStream('test.js');
837
- * const output = createWriteStream('test.enc');
838
- *
839
- * pipeline(input, cipher, output, (err) => {
840
- * if (err) throw err;
841
- * });
842
- * });
843
- * });
844
- * ```
845
- *
846
- * Example: Using the `cipher.update()` and `cipher.final()` methods:
847
- *
848
- * ```js
849
- * const {
850
- * scrypt,
851
- * randomFill,
852
- * createCipheriv
853
- * } = await import('crypto');
854
- *
855
- * const algorithm = 'aes-192-cbc';
856
- * const password = 'Password used to generate key';
857
- *
858
- * // First, we'll generate the key. The key length is dependent on the algorithm.
859
- * // In this case for aes192, it is 24 bytes (192 bits).
860
- * scrypt(password, 'salt', 24, (err, key) => {
861
- * if (err) throw err;
862
- * // Then, we'll generate a random initialization vector
863
- * randomFill(new Uint8Array(16), (err, iv) => {
864
- * if (err) throw err;
865
- *
866
- * const cipher = createCipheriv(algorithm, key, iv);
867
- *
868
- * let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
869
- * encrypted += cipher.final('hex');
870
- * console.log(encrypted);
871
- * });
872
- * });
873
- * ```
874
- * @since v0.1.94
875
- */
876
- class Cipher extends stream.Transform {
877
- private constructor();
878
- /**
879
- * Updates the cipher with `data`. If the `inputEncoding` argument is given,
880
- * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`,
881
- * `TypedArray`, or `DataView`, then`inputEncoding` is ignored.
882
- *
883
- * The `outputEncoding` specifies the output format of the enciphered
884
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
885
- *
886
- * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being
887
- * thrown.
888
- * @since v0.1.94
889
- * @param inputEncoding The `encoding` of the data.
890
- * @param outputEncoding The `encoding` of the return value.
891
- */
892
- update(data: BinaryLike): Buffer;
893
- update(data: string, inputEncoding: Encoding): Buffer;
894
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
895
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
896
- /**
897
- * Once the `cipher.final()` method has been called, the `Cipher` object can no
898
- * longer be used to encrypt data. Attempts to call `cipher.final()` more than
899
- * once will result in an error being thrown.
900
- * @since v0.1.94
901
- * @param outputEncoding The `encoding` of the return value.
902
- * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
903
- */
904
- final(): Buffer;
905
- final(outputEncoding: BufferEncoding): string;
906
- /**
907
- * When using block encryption algorithms, the `Cipher` class will automatically
908
- * add padding to the input data to the appropriate block size. To disable the
909
- * default padding call `cipher.setAutoPadding(false)`.
910
- *
911
- * When `autoPadding` is `false`, the length of the entire input data must be a
912
- * multiple of the cipher's block size or `cipher.final()` will throw an error.
913
- * Disabling automatic padding is useful for non-standard padding, for instance
914
- * using `0x0` instead of PKCS padding.
915
- *
916
- * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
917
- * @since v0.7.1
918
- * @param [autoPadding=true]
919
- * @return for method chaining.
920
- */
921
- setAutoPadding(autoPadding?: boolean): this;
922
- }
923
- interface CipherCCM extends Cipher {
924
- setAAD(
925
- buffer: NodeJS.ArrayBufferView,
926
- options: {
927
- plaintextLength: number;
928
- }
929
- ): this;
930
- getAuthTag(): Buffer;
931
- }
932
- interface CipherGCM extends Cipher {
933
- setAAD(
934
- buffer: NodeJS.ArrayBufferView,
935
- options?: {
936
- plaintextLength: number;
937
- }
938
- ): this;
939
- getAuthTag(): Buffer;
940
- }
941
- interface CipherOCB extends Cipher {
942
- setAAD(
943
- buffer: NodeJS.ArrayBufferView,
944
- options?: {
945
- plaintextLength: number;
946
- }
947
- ): this;
948
- getAuthTag(): Buffer;
949
- }
950
- /**
951
- * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
952
- *
953
- * The `options` argument controls stream behavior and is optional except when a
954
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
955
- * authentication tag in bytes, see `CCM mode`.
956
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
957
- *
958
- * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
959
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
960
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
961
- * password always creates the same key. The low iteration count and
962
- * non-cryptographically secure hash algorithm allow passwords to be tested very
963
- * rapidly.
964
- *
965
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
966
- * developers derive a key and IV on
967
- * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
968
- * @since v0.1.94
969
- * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
970
- * @param options `stream.transform` options
971
- */
972
- function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
973
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
974
- function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
975
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
976
- function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
977
- /**
978
- * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
979
- *
980
- * The `options` argument controls stream behavior and is optional except when a
981
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
982
- * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags
983
- * to those with the specified length.
984
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
985
- *
986
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
987
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
988
- * display the available cipher algorithms.
989
- *
990
- * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
991
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
992
- * a `KeyObject` of type `secret`. If the cipher does not need
993
- * an initialization vector, `iv` may be `null`.
994
- *
995
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
996
- *
997
- * Initialization vectors should be unpredictable and unique; ideally, they will be
998
- * cryptographically random. They do not have to be secret: IVs are typically just
999
- * added to ciphertext messages unencrypted. It may sound contradictory that
1000
- * something has to be unpredictable and unique, but does not have to be secret;
1001
- * remember that an attacker must not be able to predict ahead of time what a given
1002
- * IV will be.
1003
- * @since v0.1.94
1004
- * @param options `stream.transform` options
1005
- */
1006
- function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM;
1007
- function createDecipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): DecipherOCB;
1008
- function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
1009
- function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
1010
- /**
1011
- * Instances of the `Decipher` class are used to decrypt data. The class can be
1012
- * used in one of two ways:
1013
- *
1014
- * * As a `stream` that is both readable and writable, where plain encrypted
1015
- * data is written to produce unencrypted data on the readable side, or
1016
- * * Using the `decipher.update()` and `decipher.final()` methods to
1017
- * produce the unencrypted data.
1018
- *
1019
- * The {@link createDecipher} or {@link createDecipheriv} methods are
1020
- * used to create `Decipher` instances. `Decipher` objects are not to be created
1021
- * directly using the `new` keyword.
1022
- *
1023
- * Example: Using `Decipher` objects as streams:
1024
- *
1025
- * ```js
1026
- * import { Buffer } from 'buffer';
1027
- * const {
1028
- * scryptSync,
1029
- * createDecipheriv
1030
- * } = await import('crypto');
1031
- *
1032
- * const algorithm = 'aes-192-cbc';
1033
- * const password = 'Password used to generate key';
1034
- * // Key length is dependent on the algorithm. In this case for aes192, it is
1035
- * // 24 bytes (192 bits).
1036
- * // Use the async `crypto.scrypt()` instead.
1037
- * const key = scryptSync(password, 'salt', 24);
1038
- * // The IV is usually passed along with the ciphertext.
1039
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1040
- *
1041
- * const decipher = createDecipheriv(algorithm, key, iv);
1042
- *
1043
- * let decrypted = '';
1044
- * decipher.on('readable', () => {
1045
- * while (null !== (chunk = decipher.read())) {
1046
- * decrypted += chunk.toString('utf8');
1047
- * }
1048
- * });
1049
- * decipher.on('end', () => {
1050
- * console.log(decrypted);
1051
- * // Prints: some clear text data
1052
- * });
1053
- *
1054
- * // Encrypted with same algorithm, key and iv.
1055
- * const encrypted =
1056
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1057
- * decipher.write(encrypted, 'hex');
1058
- * decipher.end();
1059
- * ```
1060
- *
1061
- * Example: Using `Decipher` and piped streams:
1062
- *
1063
- * ```js
1064
- * import {
1065
- * createReadStream,
1066
- * createWriteStream,
1067
- * } from 'fs';
1068
- * import { Buffer } from 'buffer';
1069
- * const {
1070
- * scryptSync,
1071
- * createDecipheriv
1072
- * } = await import('crypto');
1073
- *
1074
- * const algorithm = 'aes-192-cbc';
1075
- * const password = 'Password used to generate key';
1076
- * // Use the async `crypto.scrypt()` instead.
1077
- * const key = scryptSync(password, 'salt', 24);
1078
- * // The IV is usually passed along with the ciphertext.
1079
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1080
- *
1081
- * const decipher = createDecipheriv(algorithm, key, iv);
1082
- *
1083
- * const input = createReadStream('test.enc');
1084
- * const output = createWriteStream('test.js');
1085
- *
1086
- * input.pipe(decipher).pipe(output);
1087
- * ```
1088
- *
1089
- * Example: Using the `decipher.update()` and `decipher.final()` methods:
1090
- *
1091
- * ```js
1092
- * import { Buffer } from 'buffer';
1093
- * const {
1094
- * scryptSync,
1095
- * createDecipheriv
1096
- * } = await import('crypto');
1097
- *
1098
- * const algorithm = 'aes-192-cbc';
1099
- * const password = 'Password used to generate key';
1100
- * // Use the async `crypto.scrypt()` instead.
1101
- * const key = scryptSync(password, 'salt', 24);
1102
- * // The IV is usually passed along with the ciphertext.
1103
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1104
- *
1105
- * const decipher = createDecipheriv(algorithm, key, iv);
1106
- *
1107
- * // Encrypted using same algorithm, key and iv.
1108
- * const encrypted =
1109
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1110
- * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
1111
- * decrypted += decipher.final('utf8');
1112
- * console.log(decrypted);
1113
- * // Prints: some clear text data
1114
- * ```
1115
- * @since v0.1.94
1116
- */
1117
- class Decipher extends stream.Transform {
1118
- private constructor();
1119
- /**
1120
- * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1121
- * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
1122
- * ignored.
1123
- *
1124
- * The `outputEncoding` specifies the output format of the enciphered
1125
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
1126
- *
1127
- * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
1128
- * being thrown.
1129
- * @since v0.1.94
1130
- * @param inputEncoding The `encoding` of the `data` string.
1131
- * @param outputEncoding The `encoding` of the return value.
1132
- */
1133
- update(data: NodeJS.ArrayBufferView): Buffer;
1134
- update(data: string, inputEncoding: Encoding): Buffer;
1135
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
1136
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
1137
- /**
1138
- * Once the `decipher.final()` method has been called, the `Decipher` object can
1139
- * no longer be used to decrypt data. Attempts to call `decipher.final()` more
1140
- * than once will result in an error being thrown.
1141
- * @since v0.1.94
1142
- * @param outputEncoding The `encoding` of the return value.
1143
- * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
1144
- */
1145
- final(): Buffer;
1146
- final(outputEncoding: BufferEncoding): string;
1147
- /**
1148
- * When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
1149
- * removing padding.
1150
- *
1151
- * Turning auto padding off will only work if the input data's length is a
1152
- * multiple of the ciphers block size.
1153
- *
1154
- * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
1155
- * @since v0.7.1
1156
- * @param [autoPadding=true]
1157
- * @return for method chaining.
1158
- */
1159
- setAutoPadding(auto_padding?: boolean): this;
1160
- }
1161
- interface DecipherCCM extends Decipher {
1162
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1163
- setAAD(
1164
- buffer: NodeJS.ArrayBufferView,
1165
- options: {
1166
- plaintextLength: number;
1167
- }
1168
- ): this;
1169
- }
1170
- interface DecipherGCM extends Decipher {
1171
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1172
- setAAD(
1173
- buffer: NodeJS.ArrayBufferView,
1174
- options?: {
1175
- plaintextLength: number;
1176
- }
1177
- ): this;
1178
- }
1179
- interface DecipherOCB extends Decipher {
1180
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1181
- setAAD(
1182
- buffer: NodeJS.ArrayBufferView,
1183
- options?: {
1184
- plaintextLength: number;
1185
- }
1186
- ): this;
1187
- }
1188
- interface PrivateKeyInput {
1189
- key: string | Buffer;
1190
- format?: KeyFormat | undefined;
1191
- type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
1192
- passphrase?: string | Buffer | undefined;
1193
- }
1194
- interface PublicKeyInput {
1195
- key: string | Buffer;
1196
- format?: KeyFormat | undefined;
1197
- type?: 'pkcs1' | 'spki' | undefined;
1198
- }
1199
- /**
1200
- * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
1201
- *
1202
- * ```js
1203
- * const {
1204
- * generateKey
1205
- * } = await import('crypto');
1206
- *
1207
- * generateKey('hmac', { length: 64 }, (err, key) => {
1208
- * if (err) throw err;
1209
- * console.log(key.export().toString('hex')); // 46e..........620
1210
- * });
1211
- * ```
1212
- * @since v15.0.0
1213
- * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1214
- */
1215
- function generateKey(
1216
- type: 'hmac' | 'aes',
1217
- options: {
1218
- length: number;
1219
- },
1220
- callback: (err: Error | null, key: KeyObject) => void
1221
- ): void;
1222
- /**
1223
- * Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
1224
- *
1225
- * ```js
1226
- * const {
1227
- * generateKeySync
1228
- * } = await import('crypto');
1229
- *
1230
- * const key = generateKeySync('hmac', { length: 64 });
1231
- * console.log(key.export().toString('hex')); // e89..........41e
1232
- * ```
1233
- * @since v15.0.0
1234
- * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1235
- */
1236
- function generateKeySync(
1237
- type: 'hmac' | 'aes',
1238
- options: {
1239
- length: number;
1240
- }
1241
- ): KeyObject;
1242
- interface JsonWebKeyInput {
1243
- key: JsonWebKey;
1244
- format: 'jwk';
1245
- }
1246
- /**
1247
- * Creates and returns a new key object containing a private key. If `key` is a
1248
- * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above.
1249
- *
1250
- * If the private key is encrypted, a `passphrase` must be specified. The length
1251
- * of the passphrase is limited to 1024 bytes.
1252
- * @since v11.6.0
1253
- */
1254
- function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1255
- /**
1256
- * Creates and returns a new key object containing a public key. If `key` is a
1257
- * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key;
1258
- * otherwise, `key` must be an object with the properties described above.
1259
- *
1260
- * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
1261
- *
1262
- * Because public keys can be derived from private keys, a private key may be
1263
- * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
1264
- * returned `KeyObject` will be `'public'` and that the private key cannot be
1265
- * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned
1266
- * and it will be impossible to extract the private key from the returned object.
1267
- * @since v11.6.0
1268
- */
1269
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
1270
- /**
1271
- * Creates and returns a new key object containing a secret key for symmetric
1272
- * encryption or `Hmac`.
1273
- * @since v11.6.0
1274
- * @param encoding The string encoding when `key` is a string.
1275
- */
1276
- function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
1277
- function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
1278
- /**
1279
- * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
1280
- * Optional `options` argument controls the `stream.Writable` behavior.
1281
- *
1282
- * In some cases, a `Sign` instance can be created using the name of a signature
1283
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1284
- * the corresponding digest algorithm. This does not work for all signature
1285
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1286
- * algorithm names.
1287
- * @since v0.1.92
1288
- * @param options `stream.Writable` options
1289
- */
1290
- function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
1291
- type DSAEncoding = 'der' | 'ieee-p1363';
1292
- interface SigningOptions {
1293
- /**
1294
- * @See crypto.constants.RSA_PKCS1_PADDING
1295
- */
1296
- padding?: number | undefined;
1297
- saltLength?: number | undefined;
1298
- dsaEncoding?: DSAEncoding | undefined;
1299
- }
1300
- interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
1301
- interface SignKeyObjectInput extends SigningOptions {
1302
- key: KeyObject;
1303
- }
1304
- interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1305
- interface VerifyKeyObjectInput extends SigningOptions {
1306
- key: KeyObject;
1307
- }
1308
- type KeyLike = string | Buffer | KeyObject;
1309
- /**
1310
- * The `Sign` class is a utility for generating signatures. It can be used in one
1311
- * of two ways:
1312
- *
1313
- * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or
1314
- * * Using the `sign.update()` and `sign.sign()` methods to produce the
1315
- * signature.
1316
- *
1317
- * The {@link createSign} method is used to create `Sign` instances. The
1318
- * argument is the string name of the hash function to use. `Sign` objects are not
1319
- * to be created directly using the `new` keyword.
1320
- *
1321
- * Example: Using `Sign` and `Verify` objects as streams:
1322
- *
1323
- * ```js
1324
- * const {
1325
- * generateKeyPairSync,
1326
- * createSign,
1327
- * createVerify
1328
- * } = await import('crypto');
1329
- *
1330
- * const { privateKey, publicKey } = generateKeyPairSync('ec', {
1331
- * namedCurve: 'sect239k1'
1332
- * });
1333
- *
1334
- * const sign = createSign('SHA256');
1335
- * sign.write('some data to sign');
1336
- * sign.end();
1337
- * const signature = sign.sign(privateKey, 'hex');
1338
- *
1339
- * const verify = createVerify('SHA256');
1340
- * verify.write('some data to sign');
1341
- * verify.end();
1342
- * console.log(verify.verify(publicKey, signature, 'hex'));
1343
- * // Prints: true
1344
- * ```
1345
- *
1346
- * Example: Using the `sign.update()` and `verify.update()` methods:
1347
- *
1348
- * ```js
1349
- * const {
1350
- * generateKeyPairSync,
1351
- * createSign,
1352
- * createVerify
1353
- * } = await import('crypto');
1354
- *
1355
- * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
1356
- * modulusLength: 2048,
1357
- * });
1358
- *
1359
- * const sign = createSign('SHA256');
1360
- * sign.update('some data to sign');
1361
- * sign.end();
1362
- * const signature = sign.sign(privateKey);
1363
- *
1364
- * const verify = createVerify('SHA256');
1365
- * verify.update('some data to sign');
1366
- * verify.end();
1367
- * console.log(verify.verify(publicKey, signature));
1368
- * // Prints: true
1369
- * ```
1370
- * @since v0.1.92
1371
- */
1372
- class Sign extends stream.Writable {
1373
- private constructor();
1374
- /**
1375
- * Updates the `Sign` content with the given `data`, the encoding of which
1376
- * is given in `inputEncoding`.
1377
- * If `encoding` is not provided, and the `data` is a string, an
1378
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1379
- *
1380
- * This can be called many times with new data as it is streamed.
1381
- * @since v0.1.92
1382
- * @param inputEncoding The `encoding` of the `data` string.
1383
- */
1384
- update(data: BinaryLike): this;
1385
- update(data: string, inputEncoding: Encoding): this;
1386
- /**
1387
- * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1388
- *
1389
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
1390
- * object, the following additional properties can be passed:
1391
- *
1392
- * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
1393
- *
1394
- * The `Sign` object can not be again used after `sign.sign()` method has been
1395
- * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1396
- * @since v0.1.92
1397
- */
1398
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
1399
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string;
1400
- }
1401
- /**
1402
- * Creates and returns a `Verify` object that uses the given algorithm.
1403
- * Use {@link getHashes} to obtain an array of names of the available
1404
- * signing algorithms. Optional `options` argument controls the`stream.Writable` behavior.
1405
- *
1406
- * In some cases, a `Verify` instance can be created using the name of a signature
1407
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1408
- * the corresponding digest algorithm. This does not work for all signature
1409
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1410
- * algorithm names.
1411
- * @since v0.1.92
1412
- * @param options `stream.Writable` options
1413
- */
1414
- function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
1415
- /**
1416
- * The `Verify` class is a utility for verifying signatures. It can be used in one
1417
- * of two ways:
1418
- *
1419
- * * As a writable `stream` where written data is used to validate against the
1420
- * supplied signature, or
1421
- * * Using the `verify.update()` and `verify.verify()` methods to verify
1422
- * the signature.
1423
- *
1424
- * The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword.
1425
- *
1426
- * See `Sign` for examples.
1427
- * @since v0.1.92
1428
- */
1429
- class Verify extends stream.Writable {
1430
- private constructor();
1431
- /**
1432
- * Updates the `Verify` content with the given `data`, the encoding of which
1433
- * is given in `inputEncoding`.
1434
- * If `inputEncoding` is not provided, and the `data` is a string, an
1435
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1436
- *
1437
- * This can be called many times with new data as it is streamed.
1438
- * @since v0.1.92
1439
- * @param inputEncoding The `encoding` of the `data` string.
1440
- */
1441
- update(data: BinaryLike): Verify;
1442
- update(data: string, inputEncoding: Encoding): Verify;
1443
- /**
1444
- * Verifies the provided data using the given `object` and `signature`.
1445
- *
1446
- * If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an
1447
- * object, the following additional properties can be passed:
1448
- *
1449
- * The `signature` argument is the previously calculated signature for the data, in
1450
- * the `signatureEncoding`.
1451
- * If a `signatureEncoding` is specified, the `signature` is expected to be a
1452
- * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1453
- *
1454
- * The `verify` object can not be used again after `verify.verify()` has been
1455
- * called. Multiple calls to `verify.verify()` will result in an error being
1456
- * thrown.
1457
- *
1458
- * Because public keys can be derived from private keys, a private key may
1459
- * be passed instead of a public key.
1460
- * @since v0.1.92
1461
- */
1462
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1463
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1464
- }
1465
- /**
1466
- * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1467
- * optional specific `generator`.
1468
- *
1469
- * The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used.
1470
- *
1471
- * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1472
- * a `Buffer`, `TypedArray`, or `DataView` is expected.
1473
- *
1474
- * If `generatorEncoding` is specified, `generator` is expected to be a string;
1475
- * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
1476
- * @since v0.11.12
1477
- * @param primeEncoding The `encoding` of the `prime` string.
1478
- * @param [generator=2]
1479
- * @param generatorEncoding The `encoding` of the `generator` string.
1480
- */
1481
- function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
1482
- function createDiffieHellman(prime: ArrayBuffer | NodeJS.ArrayBufferView, generator?: number | ArrayBuffer | NodeJS.ArrayBufferView): DiffieHellman;
1483
- function createDiffieHellman(prime: ArrayBuffer | NodeJS.ArrayBufferView, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
1484
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator?: number | ArrayBuffer | NodeJS.ArrayBufferView): DiffieHellman;
1485
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
1486
- /**
1487
- * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
1488
- * exchanges.
1489
- *
1490
- * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
1491
- *
1492
- * ```js
1493
- * import assert from 'assert';
1494
- *
1495
- * const {
1496
- * createDiffieHellman
1497
- * } = await import('crypto');
1498
- *
1499
- * // Generate Alice's keys...
1500
- * const alice = createDiffieHellman(2048);
1501
- * const aliceKey = alice.generateKeys();
1502
- *
1503
- * // Generate Bob's keys...
1504
- * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1505
- * const bobKey = bob.generateKeys();
1506
- *
1507
- * // Exchange and generate the secret...
1508
- * const aliceSecret = alice.computeSecret(bobKey);
1509
- * const bobSecret = bob.computeSecret(aliceKey);
1510
- *
1511
- * // OK
1512
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
1513
- * ```
1514
- * @since v0.5.0
1515
- */
1516
- class DiffieHellman {
1517
- private constructor();
1518
- /**
1519
- * Generates private and public Diffie-Hellman key values, and returns
1520
- * the public key in the specified `encoding`. This key should be
1521
- * transferred to the other party.
1522
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1523
- * @since v0.5.0
1524
- * @param encoding The `encoding` of the return value.
1525
- */
1526
- generateKeys(): Buffer;
1527
- generateKeys(encoding: BinaryToTextEncoding): string;
1528
- /**
1529
- * Computes the shared secret using `otherPublicKey` as the other
1530
- * party's public key and returns the computed shared secret. The supplied
1531
- * key is interpreted using the specified `inputEncoding`, and secret is
1532
- * encoded using specified `outputEncoding`.
1533
- * If the `inputEncoding` is not
1534
- * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1535
- *
1536
- * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1537
- * @since v0.5.0
1538
- * @param inputEncoding The `encoding` of an `otherPublicKey` string.
1539
- * @param outputEncoding The `encoding` of the return value.
1540
- */
1541
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
1542
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
1543
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding: null, outputEncoding: BinaryToTextEncoding): string;
1544
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
1545
- /**
1546
- * Returns the Diffie-Hellman prime in the specified `encoding`.
1547
- * If `encoding` is provided a string is
1548
- * returned; otherwise a `Buffer` is returned.
1549
- * @since v0.5.0
1550
- * @param encoding The `encoding` of the return value.
1551
- */
1552
- getPrime(): Buffer;
1553
- getPrime(encoding: BinaryToTextEncoding): string;
1554
- /**
1555
- * Returns the Diffie-Hellman generator in the specified `encoding`.
1556
- * If `encoding` is provided a string is
1557
- * returned; otherwise a `Buffer` is returned.
1558
- * @since v0.5.0
1559
- * @param encoding The `encoding` of the return value.
1560
- */
1561
- getGenerator(): Buffer;
1562
- getGenerator(encoding: BinaryToTextEncoding): string;
1563
- /**
1564
- * Returns the Diffie-Hellman public key in the specified `encoding`.
1565
- * If `encoding` is provided a
1566
- * string is returned; otherwise a `Buffer` is returned.
1567
- * @since v0.5.0
1568
- * @param encoding The `encoding` of the return value.
1569
- */
1570
- getPublicKey(): Buffer;
1571
- getPublicKey(encoding: BinaryToTextEncoding): string;
1572
- /**
1573
- * Returns the Diffie-Hellman private key in the specified `encoding`.
1574
- * If `encoding` is provided a
1575
- * string is returned; otherwise a `Buffer` is returned.
1576
- * @since v0.5.0
1577
- * @param encoding The `encoding` of the return value.
1578
- */
1579
- getPrivateKey(): Buffer;
1580
- getPrivateKey(encoding: BinaryToTextEncoding): string;
1581
- /**
1582
- * Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected
1583
- * to be a string. If no `encoding` is provided, `publicKey` is expected
1584
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1585
- * @since v0.5.0
1586
- * @param encoding The `encoding` of the `publicKey` string.
1587
- */
1588
- setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
1589
- setPublicKey(publicKey: string, encoding: BufferEncoding): void;
1590
- /**
1591
- * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
1592
- * to be a string. If no `encoding` is provided, `privateKey` is expected
1593
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1594
- * @since v0.5.0
1595
- * @param encoding The `encoding` of the `privateKey` string.
1596
- */
1597
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
1598
- setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
1599
- /**
1600
- * A bit field containing any warnings and/or errors resulting from a check
1601
- * performed during initialization of the `DiffieHellman` object.
1602
- *
1603
- * The following values are valid for this property (as defined in `constants`module):
1604
- *
1605
- * * `DH_CHECK_P_NOT_SAFE_PRIME`
1606
- * * `DH_CHECK_P_NOT_PRIME`
1607
- * * `DH_UNABLE_TO_CHECK_GENERATOR`
1608
- * * `DH_NOT_SUITABLE_GENERATOR`
1609
- * @since v0.11.12
1610
- */
1611
- verifyError: number;
1612
- }
1613
- /**
1614
- * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
1615
- * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
1616
- * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
1617
- *
1618
- * ```js
1619
- * const { createDiffieHellmanGroup } = await import('node:crypto');
1620
- * const dh = createDiffieHellmanGroup('modp1');
1621
- * ```
1622
- * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
1623
- * ```bash
1624
- * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
1625
- * modp1 # 768 bits
1626
- * modp2 # 1024 bits
1627
- * modp5 # 1536 bits
1628
- * modp14 # 2048 bits
1629
- * modp15 # etc.
1630
- * modp16
1631
- * modp17
1632
- * modp18
1633
- * ```
1634
- * @since v0.7.5
1635
- */
1636
- const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
1637
- interface DiffieHellmanGroupConstructor {
1638
- new(name: string): DiffieHellmanGroup;
1639
- (name: string): DiffieHellmanGroup;
1640
- readonly prototype: DiffieHellmanGroup;
1641
- }
1642
- type DiffieHellmanGroup = Omit<DiffieHellman, 'setPublicKey' | 'setPrivateKey'>;
1643
- /**
1644
- * Creates a predefined `DiffieHellmanGroup` key exchange object. The
1645
- * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`,
1646
- * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
1647
- * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
1648
- * the keys (with `diffieHellman.setPublicKey()`, for example). The
1649
- * advantage of using this method is that the parties do not have to
1650
- * generate nor exchange a group modulus beforehand, saving both processor
1651
- * and communication time.
1652
- *
1653
- * Example (obtaining a shared secret):
1654
- *
1655
- * ```js
1656
- * const {
1657
- * getDiffieHellman
1658
- * } = await import('crypto');
1659
- * const alice = getDiffieHellman('modp14');
1660
- * const bob = getDiffieHellman('modp14');
1661
- *
1662
- * alice.generateKeys();
1663
- * bob.generateKeys();
1664
- *
1665
- * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
1666
- * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
1667
- *
1668
- * // aliceSecret and bobSecret should be the same
1669
- * console.log(aliceSecret === bobSecret);
1670
- * ```
1671
- * @since v0.7.5
1672
- */
1673
- function getDiffieHellman(groupName: string): DiffieHellmanGroup;
1674
- /**
1675
- * An alias for {@link getDiffieHellman}
1676
- * @since v0.9.3
1677
- */
1678
- function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
1679
- /**
1680
- * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1681
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1682
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1683
- *
1684
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
1685
- * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
1686
- * thrown if any of the input arguments specify invalid values or types.
1687
- *
1688
- * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
1689
- * please specify a `digest` explicitly.
1690
- *
1691
- * The `iterations` argument must be a number set as high as possible. The
1692
- * higher the number of iterations, the more secure the derived key will be,
1693
- * but will take a longer amount of time to complete.
1694
- *
1695
- * The `salt` should be as unique as possible. It is recommended that a salt is
1696
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1697
- *
1698
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1699
- *
1700
- * ```js
1701
- * const {
1702
- * pbkdf2
1703
- * } = await import('crypto');
1704
- *
1705
- * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
1706
- * if (err) throw err;
1707
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1708
- * });
1709
- * ```
1710
- *
1711
- * The `crypto.DEFAULT_ENCODING` property can be used to change the way the`derivedKey` is passed to the callback. This property, however, has been
1712
- * deprecated and use should be avoided.
1713
- *
1714
- * ```js
1715
- * import crypto from 'crypto';
1716
- * crypto.DEFAULT_ENCODING = 'hex';
1717
- * crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => {
1718
- * if (err) throw err;
1719
- * console.log(derivedKey); // '3745e48...aa39b34'
1720
- * });
1721
- * ```
1722
- *
1723
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1724
- *
1725
- * This API uses libuv's threadpool, which can have surprising and
1726
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1727
- * @since v0.5.5
1728
- */
1729
- function pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => void): void;
1730
- /**
1731
- * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1732
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1733
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1734
- *
1735
- * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1736
- * returned as a `Buffer`.
1737
- *
1738
- * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
1739
- * please specify a `digest` explicitly.
1740
- *
1741
- * The `iterations` argument must be a number set as high as possible. The
1742
- * higher the number of iterations, the more secure the derived key will be,
1743
- * but will take a longer amount of time to complete.
1744
- *
1745
- * The `salt` should be as unique as possible. It is recommended that a salt is
1746
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1747
- *
1748
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1749
- *
1750
- * ```js
1751
- * const {
1752
- * pbkdf2Sync
1753
- * } = await import('crypto');
1754
- *
1755
- * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
1756
- * console.log(key.toString('hex')); // '3745e48...08d59ae'
1757
- * ```
1758
- *
1759
- * The `crypto.DEFAULT_ENCODING` property may be used to change the way the`derivedKey` is returned. This property, however, is deprecated and use
1760
- * should be avoided.
1761
- *
1762
- * ```js
1763
- * import crypto from 'crypto';
1764
- * crypto.DEFAULT_ENCODING = 'hex';
1765
- * const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512');
1766
- * console.log(key); // '3745e48...aa39b34'
1767
- * ```
1768
- *
1769
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1770
- * @since v0.9.3
1771
- */
1772
- function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer;
1773
- /**
1774
- * Generates cryptographically strong pseudorandom data. The `size` argument
1775
- * is a number indicating the number of bytes to generate.
1776
- *
1777
- * If a `callback` function is provided, the bytes are generated asynchronously
1778
- * and the `callback` function is invoked with two arguments: `err` and `buf`.
1779
- * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes.
1780
- *
1781
- * ```js
1782
- * // Asynchronous
1783
- * const {
1784
- * randomBytes
1785
- * } = await import('crypto');
1786
- *
1787
- * randomBytes(256, (err, buf) => {
1788
- * if (err) throw err;
1789
- * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
1790
- * });
1791
- * ```
1792
- *
1793
- * If the `callback` function is not provided, the random bytes are generated
1794
- * synchronously and returned as a `Buffer`. An error will be thrown if
1795
- * there is a problem generating the bytes.
1796
- *
1797
- * ```js
1798
- * // Synchronous
1799
- * const {
1800
- * randomBytes
1801
- * } = await import('crypto');
1802
- *
1803
- * const buf = randomBytes(256);
1804
- * console.log(
1805
- * `${buf.length} bytes of random data: ${buf.toString('hex')}`);
1806
- * ```
1807
- *
1808
- * The `crypto.randomBytes()` method will not complete until there is
1809
- * sufficient entropy available.
1810
- * This should normally never take longer than a few milliseconds. The only time
1811
- * when generating the random bytes may conceivably block for a longer period of
1812
- * time is right after boot, when the whole system is still low on entropy.
1813
- *
1814
- * This API uses libuv's threadpool, which can have surprising and
1815
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1816
- *
1817
- * The asynchronous version of `crypto.randomBytes()` is carried out in a single
1818
- * threadpool request. To minimize threadpool task length variation, partition
1819
- * large `randomBytes` requests when doing so as part of fulfilling a client
1820
- * request.
1821
- * @since v0.5.8
1822
- * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
1823
- * @return if the `callback` function is not provided.
1824
- */
1825
- function randomBytes(size: number): Buffer;
1826
- function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1827
- function pseudoRandomBytes(size: number): Buffer;
1828
- function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1829
- /**
1830
- * Return a random integer `n` such that `min <= n < max`. This
1831
- * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1832
- *
1833
- * The range (`max - min`) must be less than 2^48. `min` and `max` must
1834
- * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1835
- *
1836
- * If the `callback` function is not provided, the random integer is
1837
- * generated synchronously.
1838
- *
1839
- * ```js
1840
- * // Asynchronous
1841
- * const {
1842
- * randomInt
1843
- * } = await import('crypto');
1844
- *
1845
- * randomInt(3, (err, n) => {
1846
- * if (err) throw err;
1847
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1848
- * });
1849
- * ```
1850
- *
1851
- * ```js
1852
- * // Synchronous
1853
- * const {
1854
- * randomInt
1855
- * } = await import('crypto');
1856
- *
1857
- * const n = randomInt(3);
1858
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1859
- * ```
1860
- *
1861
- * ```js
1862
- * // With `min` argument
1863
- * const {
1864
- * randomInt
1865
- * } = await import('crypto');
1866
- *
1867
- * const n = randomInt(1, 7);
1868
- * console.log(`The dice rolled: ${n}`);
1869
- * ```
1870
- * @since v14.10.0, v12.19.0
1871
- * @param [min=0] Start of random range (inclusive).
1872
- * @param max End of random range (exclusive).
1873
- * @param callback `function(err, n) {}`.
1874
- */
1875
- function randomInt(max: number): number;
1876
- function randomInt(min: number, max: number): number;
1877
- function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
1878
- function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
1879
- /**
1880
- * Synchronous version of {@link randomFill}.
1881
- *
1882
- * ```js
1883
- * import { Buffer } from 'buffer';
1884
- * const { randomFillSync } = await import('crypto');
1885
- *
1886
- * const buf = Buffer.alloc(10);
1887
- * console.log(randomFillSync(buf).toString('hex'));
1888
- *
1889
- * randomFillSync(buf, 5);
1890
- * console.log(buf.toString('hex'));
1891
- *
1892
- * // The above is equivalent to the following:
1893
- * randomFillSync(buf, 5, 5);
1894
- * console.log(buf.toString('hex'));
1895
- * ```
1896
- *
1897
- * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
1898
- *
1899
- * ```js
1900
- * import { Buffer } from 'buffer';
1901
- * const { randomFillSync } = await import('crypto');
1902
- *
1903
- * const a = new Uint32Array(10);
1904
- * console.log(Buffer.from(randomFillSync(a).buffer,
1905
- * a.byteOffset, a.byteLength).toString('hex'));
1906
- *
1907
- * const b = new DataView(new ArrayBuffer(10));
1908
- * console.log(Buffer.from(randomFillSync(b).buffer,
1909
- * b.byteOffset, b.byteLength).toString('hex'));
1910
- *
1911
- * const c = new ArrayBuffer(10);
1912
- * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
1913
- * ```
1914
- * @since v7.10.0, v6.13.0
1915
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1916
- * @param [offset=0]
1917
- * @param [size=buffer.length - offset]
1918
- * @return The object passed as `buffer` argument.
1919
- */
1920
- function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
1921
- /**
1922
- * This function is similar to {@link randomBytes} but requires the first
1923
- * argument to be a `Buffer` that will be filled. It also
1924
- * requires that a callback is passed in.
1925
- *
1926
- * If the `callback` function is not provided, an error will be thrown.
1927
- *
1928
- * ```js
1929
- * import { Buffer } from 'buffer';
1930
- * const { randomFill } = await import('crypto');
1931
- *
1932
- * const buf = Buffer.alloc(10);
1933
- * randomFill(buf, (err, buf) => {
1934
- * if (err) throw err;
1935
- * console.log(buf.toString('hex'));
1936
- * });
1937
- *
1938
- * randomFill(buf, 5, (err, buf) => {
1939
- * if (err) throw err;
1940
- * console.log(buf.toString('hex'));
1941
- * });
1942
- *
1943
- * // The above is equivalent to the following:
1944
- * randomFill(buf, 5, 5, (err, buf) => {
1945
- * if (err) throw err;
1946
- * console.log(buf.toString('hex'));
1947
- * });
1948
- * ```
1949
- *
1950
- * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`.
1951
- *
1952
- * While this includes instances of `Float32Array` and `Float64Array`, this
1953
- * function should not be used to generate random floating-point numbers. The
1954
- * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
1955
- * contains finite numbers only, they are not drawn from a uniform random
1956
- * distribution and have no meaningful lower or upper bounds.
1957
- *
1958
- * ```js
1959
- * import { Buffer } from 'buffer';
1960
- * const { randomFill } = await import('crypto');
1961
- *
1962
- * const a = new Uint32Array(10);
1963
- * randomFill(a, (err, buf) => {
1964
- * if (err) throw err;
1965
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1966
- * .toString('hex'));
1967
- * });
1968
- *
1969
- * const b = new DataView(new ArrayBuffer(10));
1970
- * randomFill(b, (err, buf) => {
1971
- * if (err) throw err;
1972
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1973
- * .toString('hex'));
1974
- * });
1975
- *
1976
- * const c = new ArrayBuffer(10);
1977
- * randomFill(c, (err, buf) => {
1978
- * if (err) throw err;
1979
- * console.log(Buffer.from(buf).toString('hex'));
1980
- * });
1981
- * ```
1982
- *
1983
- * This API uses libuv's threadpool, which can have surprising and
1984
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1985
- *
1986
- * The asynchronous version of `crypto.randomFill()` is carried out in a single
1987
- * threadpool request. To minimize threadpool task length variation, partition
1988
- * large `randomFill` requests when doing so as part of fulfilling a client
1989
- * request.
1990
- * @since v7.10.0, v6.13.0
1991
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1992
- * @param [offset=0]
1993
- * @param [size=buffer.length - offset]
1994
- * @param callback `function(err, buf) {}`.
1995
- */
1996
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, callback: (err: Error | null, buf: T) => void): void;
1997
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void;
1998
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void;
1999
- interface ScryptOptions {
2000
- cost?: number | undefined;
2001
- blockSize?: number | undefined;
2002
- parallelization?: number | undefined;
2003
- N?: number | undefined;
2004
- r?: number | undefined;
2005
- p?: number | undefined;
2006
- maxmem?: number | undefined;
2007
- }
2008
- /**
2009
- * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2010
- * key derivation function that is designed to be expensive computationally and
2011
- * memory-wise in order to make brute-force attacks unrewarding.
2012
- *
2013
- * The `salt` should be as unique as possible. It is recommended that a salt is
2014
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2015
- *
2016
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2017
- *
2018
- * The `callback` function is called with two arguments: `err` and `derivedKey`.`err` is an exception object when key derivation fails, otherwise `err` is`null`. `derivedKey` is passed to the
2019
- * callback as a `Buffer`.
2020
- *
2021
- * An exception is thrown when any of the input arguments specify invalid values
2022
- * or types.
2023
- *
2024
- * ```js
2025
- * const {
2026
- * scrypt
2027
- * } = await import('crypto');
2028
- *
2029
- * // Using the factory defaults.
2030
- * scrypt('password', 'salt', 64, (err, derivedKey) => {
2031
- * if (err) throw err;
2032
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
2033
- * });
2034
- * // Using a custom N parameter. Must be a power of two.
2035
- * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
2036
- * if (err) throw err;
2037
- * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
2038
- * });
2039
- * ```
2040
- * @since v10.5.0
2041
- */
2042
- function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void;
2043
- function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void;
2044
- /**
2045
- * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2046
- * key derivation function that is designed to be expensive computationally and
2047
- * memory-wise in order to make brute-force attacks unrewarding.
2048
- *
2049
- * The `salt` should be as unique as possible. It is recommended that a salt is
2050
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2051
- *
2052
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2053
- *
2054
- * An exception is thrown when key derivation fails, otherwise the derived key is
2055
- * returned as a `Buffer`.
2056
- *
2057
- * An exception is thrown when any of the input arguments specify invalid values
2058
- * or types.
2059
- *
2060
- * ```js
2061
- * const {
2062
- * scryptSync
2063
- * } = await import('crypto');
2064
- * // Using the factory defaults.
2065
- *
2066
- * const key1 = scryptSync('password', 'salt', 64);
2067
- * console.log(key1.toString('hex')); // '3745e48...08d59ae'
2068
- * // Using a custom N parameter. Must be a power of two.
2069
- * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
2070
- * console.log(key2.toString('hex')); // '3745e48...aa39b34'
2071
- * ```
2072
- * @since v10.5.0
2073
- */
2074
- function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
2075
- interface RsaPublicKey {
2076
- key: KeyLike;
2077
- padding?: number | undefined;
2078
- }
2079
- interface RsaPrivateKey {
2080
- key: KeyLike;
2081
- passphrase?: string | undefined;
2082
- /**
2083
- * @default 'sha1'
2084
- */
2085
- oaepHash?: string | undefined;
2086
- oaepLabel?: NodeJS.TypedArray | undefined;
2087
- padding?: number | undefined;
2088
- }
2089
- /**
2090
- * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
2091
- * the corresponding private key, for example using {@link privateDecrypt}.
2092
- *
2093
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
2094
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
2095
- *
2096
- * Because RSA public keys can be derived from private keys, a private key may
2097
- * be passed instead of a public key.
2098
- * @since v0.11.14
2099
- */
2100
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2101
- /**
2102
- * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2103
- * the corresponding private key, for example using {@link privateEncrypt}.
2104
- *
2105
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
2106
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
2107
- *
2108
- * Because RSA public keys can be derived from private keys, a private key may
2109
- * be passed instead of a public key.
2110
- * @since v1.1.0
2111
- */
2112
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2113
- /**
2114
- * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2115
- * the corresponding public key, for example using {@link publicEncrypt}.
2116
- *
2117
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
2118
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
2119
- * @since v0.11.14
2120
- */
2121
- function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2122
- /**
2123
- * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2124
- * the corresponding public key, for example using {@link publicDecrypt}.
2125
- *
2126
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
2127
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
2128
- * @since v1.1.0
2129
- */
2130
- function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2131
- /**
2132
- * ```js
2133
- * const {
2134
- * getCiphers
2135
- * } = await import('crypto');
2136
- *
2137
- * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
2138
- * ```
2139
- * @since v0.9.3
2140
- * @return An array with the names of the supported cipher algorithms.
2141
- */
2142
- function getCiphers(): string[];
2143
- /**
2144
- * ```js
2145
- * const {
2146
- * getCurves
2147
- * } = await import('crypto');
2148
- *
2149
- * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
2150
- * ```
2151
- * @since v2.3.0
2152
- * @return An array with the names of the supported elliptic curves.
2153
- */
2154
- function getCurves(): string[];
2155
- /**
2156
- * @since v10.0.0
2157
- * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}.
2158
- */
2159
- function getFips(): 1 | 0;
2160
- /**
2161
- * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.
2162
- * @since v10.0.0
2163
- * @param bool `true` to enable FIPS mode.
2164
- */
2165
- function setFips(bool: boolean): void;
2166
- /**
2167
- * ```js
2168
- * const {
2169
- * getHashes
2170
- * } = await import('crypto');
2171
- *
2172
- * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
2173
- * ```
2174
- * @since v0.9.3
2175
- * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
2176
- */
2177
- function getHashes(): string[];
2178
- /**
2179
- * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
2180
- * key exchanges.
2181
- *
2182
- * Instances of the `ECDH` class can be created using the {@link createECDH} function.
2183
- *
2184
- * ```js
2185
- * import assert from 'assert';
2186
- *
2187
- * const {
2188
- * createECDH
2189
- * } = await import('crypto');
2190
- *
2191
- * // Generate Alice's keys...
2192
- * const alice = createECDH('secp521r1');
2193
- * const aliceKey = alice.generateKeys();
2194
- *
2195
- * // Generate Bob's keys...
2196
- * const bob = createECDH('secp521r1');
2197
- * const bobKey = bob.generateKeys();
2198
- *
2199
- * // Exchange and generate the secret...
2200
- * const aliceSecret = alice.computeSecret(bobKey);
2201
- * const bobSecret = bob.computeSecret(aliceKey);
2202
- *
2203
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
2204
- * // OK
2205
- * ```
2206
- * @since v0.11.14
2207
- */
2208
- class ECDH {
2209
- private constructor();
2210
- /**
2211
- * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
2212
- * format specified by `format`. The `format` argument specifies point encoding
2213
- * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
2214
- * interpreted using the specified `inputEncoding`, and the returned key is encoded
2215
- * using the specified `outputEncoding`.
2216
- *
2217
- * Use {@link getCurves} to obtain a list of available curve names.
2218
- * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2219
- * the name and description of each available elliptic curve.
2220
- *
2221
- * If `format` is not specified the point will be returned in `'uncompressed'`format.
2222
- *
2223
- * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2224
- *
2225
- * Example (uncompressing a key):
2226
- *
2227
- * ```js
2228
- * const {
2229
- * createECDH,
2230
- * ECDH
2231
- * } = await import('crypto');
2232
- *
2233
- * const ecdh = createECDH('secp256k1');
2234
- * ecdh.generateKeys();
2235
- *
2236
- * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
2237
- *
2238
- * const uncompressedKey = ECDH.convertKey(compressedKey,
2239
- * 'secp256k1',
2240
- * 'hex',
2241
- * 'hex',
2242
- * 'uncompressed');
2243
- *
2244
- * // The converted key and the uncompressed public key should be the same
2245
- * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
2246
- * ```
2247
- * @since v10.0.0
2248
- * @param inputEncoding The `encoding` of the `key` string.
2249
- * @param outputEncoding The `encoding` of the return value.
2250
- * @param [format='uncompressed']
2251
- */
2252
- static convertKey(
2253
- key: BinaryLike,
2254
- curve: string,
2255
- inputEncoding?: BinaryToTextEncoding,
2256
- outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
2257
- format?: 'uncompressed' | 'compressed' | 'hybrid'
2258
- ): Buffer | string;
2259
- /**
2260
- * Generates private and public EC Diffie-Hellman key values, and returns
2261
- * the public key in the specified `format` and `encoding`. This key should be
2262
- * transferred to the other party.
2263
- *
2264
- * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
2265
- *
2266
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2267
- * @since v0.11.14
2268
- * @param encoding The `encoding` of the return value.
2269
- * @param [format='uncompressed']
2270
- */
2271
- generateKeys(): Buffer;
2272
- generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2273
- /**
2274
- * Computes the shared secret using `otherPublicKey` as the other
2275
- * party's public key and returns the computed shared secret. The supplied
2276
- * key is interpreted using specified `inputEncoding`, and the returned secret
2277
- * is encoded using the specified `outputEncoding`.
2278
- * If the `inputEncoding` is not
2279
- * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`.
2280
- *
2281
- * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2282
- *
2283
- * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is
2284
- * usually supplied from a remote user over an insecure network,
2285
- * be sure to handle this exception accordingly.
2286
- * @since v0.11.14
2287
- * @param inputEncoding The `encoding` of the `otherPublicKey` string.
2288
- * @param outputEncoding The `encoding` of the return value.
2289
- */
2290
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
2291
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
2292
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
2293
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
2294
- /**
2295
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2296
- * returned.
2297
- * @since v0.11.14
2298
- * @param encoding The `encoding` of the return value.
2299
- * @return The EC Diffie-Hellman in the specified `encoding`.
2300
- */
2301
- getPrivateKey(): Buffer;
2302
- getPrivateKey(encoding: BinaryToTextEncoding): string;
2303
- /**
2304
- * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
2305
- *
2306
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2307
- * returned.
2308
- * @since v0.11.14
2309
- * @param [encoding] The `encoding` of the return value.
2310
- * @param [format='uncompressed']
2311
- * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
2312
- */
2313
- getPublicKey(encoding?: null, format?: ECDHKeyFormat): Buffer;
2314
- getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2315
- /**
2316
- * Sets the EC Diffie-Hellman private key.
2317
- * If `encoding` is provided, `privateKey` is expected
2318
- * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2319
- *
2320
- * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2321
- * created, an error is thrown. Upon setting the private key, the associated
2322
- * public point (key) is also generated and set in the `ECDH` object.
2323
- * @since v0.11.14
2324
- * @param encoding The `encoding` of the `privateKey` string.
2325
- */
2326
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
2327
- setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
2328
- }
2329
- /**
2330
- * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
2331
- * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
2332
- * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
2333
- * and description of each available elliptic curve.
2334
- * @since v0.11.14
2335
- */
2336
- function createECDH(curveName: string): ECDH;
2337
- /**
2338
- * This function is based on a constant-time algorithm.
2339
- * Returns true if `a` is equal to `b`, without leaking timing information that
2340
- * would allow an attacker to guess one of the values. This is suitable for
2341
- * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
2342
- *
2343
- * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
2344
- * must have the same byte length. An error is thrown if `a` and `b` have
2345
- * different byte lengths.
2346
- *
2347
- * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
2348
- * entry, such as `Uint16Array`, the result will be computed using the platform
2349
- * byte order.
2350
- *
2351
- * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
2352
- * is timing-safe. Care should be taken to ensure that the surrounding code does
2353
- * not introduce timing vulnerabilities.
2354
- * @since v6.6.0
2355
- */
2356
- function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
2357
- /** @deprecated since v10.0.0 */
2358
- const DEFAULT_ENCODING: BufferEncoding;
2359
- type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
2360
- type KeyFormat = 'pem' | 'der' | 'jwk';
2361
- interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2362
- format: T;
2363
- cipher?: string | undefined;
2364
- passphrase?: string | undefined;
2365
- }
2366
- interface KeyPairKeyObjectResult {
2367
- publicKey: KeyObject;
2368
- privateKey: KeyObject;
2369
- }
2370
- interface ED25519KeyPairKeyObjectOptions {}
2371
- interface ED448KeyPairKeyObjectOptions {}
2372
- interface X25519KeyPairKeyObjectOptions {}
2373
- interface X448KeyPairKeyObjectOptions {}
2374
- interface ECKeyPairKeyObjectOptions {
2375
- /**
2376
- * Name of the curve to use
2377
- */
2378
- namedCurve: string;
2379
- }
2380
- interface RSAKeyPairKeyObjectOptions {
2381
- /**
2382
- * Key size in bits
2383
- */
2384
- modulusLength: number;
2385
- /**
2386
- * Public exponent
2387
- * @default 0x10001
2388
- */
2389
- publicExponent?: number | undefined;
2390
- }
2391
- interface RSAPSSKeyPairKeyObjectOptions {
2392
- /**
2393
- * Key size in bits
2394
- */
2395
- modulusLength: number;
2396
- /**
2397
- * Public exponent
2398
- * @default 0x10001
2399
- */
2400
- publicExponent?: number | undefined;
2401
- /**
2402
- * Name of the message digest
2403
- */
2404
- hashAlgorithm?: string;
2405
- /**
2406
- * Name of the message digest used by MGF1
2407
- */
2408
- mgf1HashAlgorithm?: string;
2409
- /**
2410
- * Minimal salt length in bytes
2411
- */
2412
- saltLength?: string;
2413
- }
2414
- interface DSAKeyPairKeyObjectOptions {
2415
- /**
2416
- * Key size in bits
2417
- */
2418
- modulusLength: number;
2419
- /**
2420
- * Size of q in bits
2421
- */
2422
- divisorLength: number;
2423
- }
2424
- interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2425
- /**
2426
- * Key size in bits
2427
- */
2428
- modulusLength: number;
2429
- /**
2430
- * Public exponent
2431
- * @default 0x10001
2432
- */
2433
- publicExponent?: number | undefined;
2434
- publicKeyEncoding: {
2435
- type: 'pkcs1' | 'spki';
2436
- format: PubF;
2437
- };
2438
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2439
- type: 'pkcs1' | 'pkcs8';
2440
- };
2441
- }
2442
- interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2443
- /**
2444
- * Key size in bits
2445
- */
2446
- modulusLength: number;
2447
- /**
2448
- * Public exponent
2449
- * @default 0x10001
2450
- */
2451
- publicExponent?: number | undefined;
2452
- /**
2453
- * Name of the message digest
2454
- */
2455
- hashAlgorithm?: string;
2456
- /**
2457
- * Name of the message digest used by MGF1
2458
- */
2459
- mgf1HashAlgorithm?: string;
2460
- /**
2461
- * Minimal salt length in bytes
2462
- */
2463
- saltLength?: string;
2464
- publicKeyEncoding: {
2465
- type: 'spki';
2466
- format: PubF;
2467
- };
2468
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2469
- type: 'pkcs8';
2470
- };
2471
- }
2472
- interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2473
- /**
2474
- * Key size in bits
2475
- */
2476
- modulusLength: number;
2477
- /**
2478
- * Size of q in bits
2479
- */
2480
- divisorLength: number;
2481
- publicKeyEncoding: {
2482
- type: 'spki';
2483
- format: PubF;
2484
- };
2485
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2486
- type: 'pkcs8';
2487
- };
2488
- }
2489
- interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2490
- /**
2491
- * Name of the curve to use.
2492
- */
2493
- namedCurve: string;
2494
- publicKeyEncoding: {
2495
- type: 'pkcs1' | 'spki';
2496
- format: PubF;
2497
- };
2498
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2499
- type: 'sec1' | 'pkcs8';
2500
- };
2501
- }
2502
- interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2503
- publicKeyEncoding: {
2504
- type: 'spki';
2505
- format: PubF;
2506
- };
2507
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2508
- type: 'pkcs8';
2509
- };
2510
- }
2511
- interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2512
- publicKeyEncoding: {
2513
- type: 'spki';
2514
- format: PubF;
2515
- };
2516
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2517
- type: 'pkcs8';
2518
- };
2519
- }
2520
- interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2521
- publicKeyEncoding: {
2522
- type: 'spki';
2523
- format: PubF;
2524
- };
2525
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2526
- type: 'pkcs8';
2527
- };
2528
- }
2529
- interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2530
- publicKeyEncoding: {
2531
- type: 'spki';
2532
- format: PubF;
2533
- };
2534
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2535
- type: 'pkcs8';
2536
- };
2537
- }
2538
- interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
2539
- publicKey: T1;
2540
- privateKey: T2;
2541
- }
2542
- /**
2543
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2544
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2545
- *
2546
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2547
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2548
- * the respective part of the key is returned as a `KeyObject`.
2549
- *
2550
- * When encoding public keys, it is recommended to use `'spki'`. When encoding
2551
- * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2552
- * and to keep the passphrase confidential.
2553
- *
2554
- * ```js
2555
- * const {
2556
- * generateKeyPairSync
2557
- * } = await import('crypto');
2558
- *
2559
- * const {
2560
- * publicKey,
2561
- * privateKey,
2562
- * } = generateKeyPairSync('rsa', {
2563
- * modulusLength: 4096,
2564
- * publicKeyEncoding: {
2565
- * type: 'spki',
2566
- * format: 'pem'
2567
- * },
2568
- * privateKeyEncoding: {
2569
- * type: 'pkcs8',
2570
- * format: 'pem',
2571
- * cipher: 'aes-256-cbc',
2572
- * passphrase: 'top secret'
2573
- * }
2574
- * });
2575
- * ```
2576
- *
2577
- * The return value `{ publicKey, privateKey }` represents the generated key pair.
2578
- * When PEM encoding was selected, the respective key will be a string, otherwise
2579
- * it will be a buffer containing the data encoded as DER.
2580
- * @since v10.12.0
2581
- * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2582
- */
2583
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2584
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2585
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2586
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2587
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2588
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2589
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2590
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2591
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2592
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2593
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2594
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2595
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2596
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2597
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2598
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2599
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2600
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2601
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2602
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2603
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2604
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2605
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2606
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2607
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2608
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2609
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2610
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2611
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2612
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2613
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2614
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2615
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2616
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2617
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2618
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2619
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2620
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2621
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2622
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2623
- /**
2624
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2625
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2626
- *
2627
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2628
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2629
- * the respective part of the key is returned as a `KeyObject`.
2630
- *
2631
- * It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage:
2632
- *
2633
- * ```js
2634
- * const {
2635
- * generateKeyPair
2636
- * } = await import('crypto');
2637
- *
2638
- * generateKeyPair('rsa', {
2639
- * modulusLength: 4096,
2640
- * publicKeyEncoding: {
2641
- * type: 'spki',
2642
- * format: 'pem'
2643
- * },
2644
- * privateKeyEncoding: {
2645
- * type: 'pkcs8',
2646
- * format: 'pem',
2647
- * cipher: 'aes-256-cbc',
2648
- * passphrase: 'top secret'
2649
- * }
2650
- * }, (err, publicKey, privateKey) => {
2651
- * // Handle errors and use the generated key pair.
2652
- * });
2653
- * ```
2654
- *
2655
- * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
2656
- *
2657
- * If this method is invoked as its `util.promisify()` ed version, it returns
2658
- * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
2659
- * @since v10.12.0
2660
- * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2661
- */
2662
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2663
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2664
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2665
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2666
- function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2667
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2668
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2669
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2670
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2671
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2672
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2673
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2674
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2675
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2676
- function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2677
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2678
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2679
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2680
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2681
- function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2682
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2683
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2684
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2685
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2686
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2687
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2688
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2689
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2690
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2691
- function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2692
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2693
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2694
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2695
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2696
- function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2697
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2698
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2699
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2700
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2701
- function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2702
- namespace generateKeyPair {
2703
- function __promisify__(
2704
- type: 'rsa',
2705
- options: RSAKeyPairOptions<'pem', 'pem'>
2706
- ): Promise<{
2707
- publicKey: string;
2708
- privateKey: string;
2709
- }>;
2710
- function __promisify__(
2711
- type: 'rsa',
2712
- options: RSAKeyPairOptions<'pem', 'der'>
2713
- ): Promise<{
2714
- publicKey: string;
2715
- privateKey: Buffer;
2716
- }>;
2717
- function __promisify__(
2718
- type: 'rsa',
2719
- options: RSAKeyPairOptions<'der', 'pem'>
2720
- ): Promise<{
2721
- publicKey: Buffer;
2722
- privateKey: string;
2723
- }>;
2724
- function __promisify__(
2725
- type: 'rsa',
2726
- options: RSAKeyPairOptions<'der', 'der'>
2727
- ): Promise<{
2728
- publicKey: Buffer;
2729
- privateKey: Buffer;
2730
- }>;
2731
- function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2732
- function __promisify__(
2733
- type: 'rsa-pss',
2734
- options: RSAPSSKeyPairOptions<'pem', 'pem'>
2735
- ): Promise<{
2736
- publicKey: string;
2737
- privateKey: string;
2738
- }>;
2739
- function __promisify__(
2740
- type: 'rsa-pss',
2741
- options: RSAPSSKeyPairOptions<'pem', 'der'>
2742
- ): Promise<{
2743
- publicKey: string;
2744
- privateKey: Buffer;
2745
- }>;
2746
- function __promisify__(
2747
- type: 'rsa-pss',
2748
- options: RSAPSSKeyPairOptions<'der', 'pem'>
2749
- ): Promise<{
2750
- publicKey: Buffer;
2751
- privateKey: string;
2752
- }>;
2753
- function __promisify__(
2754
- type: 'rsa-pss',
2755
- options: RSAPSSKeyPairOptions<'der', 'der'>
2756
- ): Promise<{
2757
- publicKey: Buffer;
2758
- privateKey: Buffer;
2759
- }>;
2760
- function __promisify__(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2761
- function __promisify__(
2762
- type: 'dsa',
2763
- options: DSAKeyPairOptions<'pem', 'pem'>
2764
- ): Promise<{
2765
- publicKey: string;
2766
- privateKey: string;
2767
- }>;
2768
- function __promisify__(
2769
- type: 'dsa',
2770
- options: DSAKeyPairOptions<'pem', 'der'>
2771
- ): Promise<{
2772
- publicKey: string;
2773
- privateKey: Buffer;
2774
- }>;
2775
- function __promisify__(
2776
- type: 'dsa',
2777
- options: DSAKeyPairOptions<'der', 'pem'>
2778
- ): Promise<{
2779
- publicKey: Buffer;
2780
- privateKey: string;
2781
- }>;
2782
- function __promisify__(
2783
- type: 'dsa',
2784
- options: DSAKeyPairOptions<'der', 'der'>
2785
- ): Promise<{
2786
- publicKey: Buffer;
2787
- privateKey: Buffer;
2788
- }>;
2789
- function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2790
- function __promisify__(
2791
- type: 'ec',
2792
- options: ECKeyPairOptions<'pem', 'pem'>
2793
- ): Promise<{
2794
- publicKey: string;
2795
- privateKey: string;
2796
- }>;
2797
- function __promisify__(
2798
- type: 'ec',
2799
- options: ECKeyPairOptions<'pem', 'der'>
2800
- ): Promise<{
2801
- publicKey: string;
2802
- privateKey: Buffer;
2803
- }>;
2804
- function __promisify__(
2805
- type: 'ec',
2806
- options: ECKeyPairOptions<'der', 'pem'>
2807
- ): Promise<{
2808
- publicKey: Buffer;
2809
- privateKey: string;
2810
- }>;
2811
- function __promisify__(
2812
- type: 'ec',
2813
- options: ECKeyPairOptions<'der', 'der'>
2814
- ): Promise<{
2815
- publicKey: Buffer;
2816
- privateKey: Buffer;
2817
- }>;
2818
- function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2819
- function __promisify__(
2820
- type: 'ed25519',
2821
- options: ED25519KeyPairOptions<'pem', 'pem'>
2822
- ): Promise<{
2823
- publicKey: string;
2824
- privateKey: string;
2825
- }>;
2826
- function __promisify__(
2827
- type: 'ed25519',
2828
- options: ED25519KeyPairOptions<'pem', 'der'>
2829
- ): Promise<{
2830
- publicKey: string;
2831
- privateKey: Buffer;
2832
- }>;
2833
- function __promisify__(
2834
- type: 'ed25519',
2835
- options: ED25519KeyPairOptions<'der', 'pem'>
2836
- ): Promise<{
2837
- publicKey: Buffer;
2838
- privateKey: string;
2839
- }>;
2840
- function __promisify__(
2841
- type: 'ed25519',
2842
- options: ED25519KeyPairOptions<'der', 'der'>
2843
- ): Promise<{
2844
- publicKey: Buffer;
2845
- privateKey: Buffer;
2846
- }>;
2847
- function __promisify__(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2848
- function __promisify__(
2849
- type: 'ed448',
2850
- options: ED448KeyPairOptions<'pem', 'pem'>
2851
- ): Promise<{
2852
- publicKey: string;
2853
- privateKey: string;
2854
- }>;
2855
- function __promisify__(
2856
- type: 'ed448',
2857
- options: ED448KeyPairOptions<'pem', 'der'>
2858
- ): Promise<{
2859
- publicKey: string;
2860
- privateKey: Buffer;
2861
- }>;
2862
- function __promisify__(
2863
- type: 'ed448',
2864
- options: ED448KeyPairOptions<'der', 'pem'>
2865
- ): Promise<{
2866
- publicKey: Buffer;
2867
- privateKey: string;
2868
- }>;
2869
- function __promisify__(
2870
- type: 'ed448',
2871
- options: ED448KeyPairOptions<'der', 'der'>
2872
- ): Promise<{
2873
- publicKey: Buffer;
2874
- privateKey: Buffer;
2875
- }>;
2876
- function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2877
- function __promisify__(
2878
- type: 'x25519',
2879
- options: X25519KeyPairOptions<'pem', 'pem'>
2880
- ): Promise<{
2881
- publicKey: string;
2882
- privateKey: string;
2883
- }>;
2884
- function __promisify__(
2885
- type: 'x25519',
2886
- options: X25519KeyPairOptions<'pem', 'der'>
2887
- ): Promise<{
2888
- publicKey: string;
2889
- privateKey: Buffer;
2890
- }>;
2891
- function __promisify__(
2892
- type: 'x25519',
2893
- options: X25519KeyPairOptions<'der', 'pem'>
2894
- ): Promise<{
2895
- publicKey: Buffer;
2896
- privateKey: string;
2897
- }>;
2898
- function __promisify__(
2899
- type: 'x25519',
2900
- options: X25519KeyPairOptions<'der', 'der'>
2901
- ): Promise<{
2902
- publicKey: Buffer;
2903
- privateKey: Buffer;
2904
- }>;
2905
- function __promisify__(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2906
- function __promisify__(
2907
- type: 'x448',
2908
- options: X448KeyPairOptions<'pem', 'pem'>
2909
- ): Promise<{
2910
- publicKey: string;
2911
- privateKey: string;
2912
- }>;
2913
- function __promisify__(
2914
- type: 'x448',
2915
- options: X448KeyPairOptions<'pem', 'der'>
2916
- ): Promise<{
2917
- publicKey: string;
2918
- privateKey: Buffer;
2919
- }>;
2920
- function __promisify__(
2921
- type: 'x448',
2922
- options: X448KeyPairOptions<'der', 'pem'>
2923
- ): Promise<{
2924
- publicKey: Buffer;
2925
- privateKey: string;
2926
- }>;
2927
- function __promisify__(
2928
- type: 'x448',
2929
- options: X448KeyPairOptions<'der', 'der'>
2930
- ): Promise<{
2931
- publicKey: Buffer;
2932
- privateKey: Buffer;
2933
- }>;
2934
- function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2935
- }
2936
- /**
2937
- * Calculates and returns the signature for `data` using the given private key and
2938
- * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
2939
- * dependent upon the key type (especially Ed25519 and Ed448).
2940
- *
2941
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
2942
- * passed to {@link createPrivateKey}. If it is an object, the following
2943
- * additional properties can be passed:
2944
- *
2945
- * If the `callback` function is provided this function uses libuv's threadpool.
2946
- * @since v12.0.0
2947
- */
2948
- function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
2949
- function sign(
2950
- algorithm: string | null | undefined,
2951
- data: NodeJS.ArrayBufferView,
2952
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
2953
- callback: (error: Error | null, data: Buffer) => void
2954
- ): void;
2955
- /**
2956
- * Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
2957
- * key type (especially Ed25519 and Ed448).
2958
- *
2959
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
2960
- * passed to {@link createPublicKey}. If it is an object, the following
2961
- * additional properties can be passed:
2962
- *
2963
- * The `signature` argument is the previously calculated signature for the `data`.
2964
- *
2965
- * Because public keys can be derived from private keys, a private key or a public
2966
- * key may be passed for `key`.
2967
- *
2968
- * If the `callback` function is provided this function uses libuv's threadpool.
2969
- * @since v12.0.0
2970
- */
2971
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
2972
- function verify(
2973
- algorithm: string | null | undefined,
2974
- data: NodeJS.ArrayBufferView,
2975
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
2976
- signature: NodeJS.ArrayBufferView,
2977
- callback: (error: Error | null, result: boolean) => void
2978
- ): void;
2979
- /**
2980
- * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
2981
- * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
2982
- * @since v13.9.0, v12.17.0
2983
- */
2984
- function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
2985
- type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts';
2986
- interface CipherInfoOptions {
2987
- /**
2988
- * A test key length.
2989
- */
2990
- keyLength?: number | undefined;
2991
- /**
2992
- * A test IV length.
2993
- */
2994
- ivLength?: number | undefined;
2995
- }
2996
- interface CipherInfo {
2997
- /**
2998
- * The name of the cipher.
2999
- */
3000
- name: string;
3001
- /**
3002
- * The nid of the cipher.
3003
- */
3004
- nid: number;
3005
- /**
3006
- * The block size of the cipher in bytes.
3007
- * This property is omitted when mode is 'stream'.
3008
- */
3009
- blockSize?: number | undefined;
3010
- /**
3011
- * The expected or default initialization vector length in bytes.
3012
- * This property is omitted if the cipher does not use an initialization vector.
3013
- */
3014
- ivLength?: number | undefined;
3015
- /**
3016
- * The expected or default key length in bytes.
3017
- */
3018
- keyLength: number;
3019
- /**
3020
- * The cipher mode.
3021
- */
3022
- mode: CipherMode;
3023
- }
3024
- /**
3025
- * Returns information about a given cipher.
3026
- *
3027
- * Some ciphers accept variable length keys and initialization vectors. By default,
3028
- * the `crypto.getCipherInfo()` method will return the default values for these
3029
- * ciphers. To test if a given key length or iv length is acceptable for given
3030
- * cipher, use the `keyLength` and `ivLength` options. If the given values are
3031
- * unacceptable, `undefined` will be returned.
3032
- * @since v15.0.0
3033
- * @param nameOrNid The name or nid of the cipher to query.
3034
- */
3035
- function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
3036
- /**
3037
- * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3038
- *
3039
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3040
- * otherwise `err` will be `null`. The successfully generated `derivedKey` will
3041
- * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
3042
- * of the input arguments specify invalid values or types.
3043
- *
3044
- * ```js
3045
- * import { Buffer } from 'buffer';
3046
- * const {
3047
- * hkdf
3048
- * } = await import('crypto');
3049
- *
3050
- * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
3051
- * if (err) throw err;
3052
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3053
- * });
3054
- * ```
3055
- * @since v15.0.0
3056
- * @param digest The digest algorithm to use.
3057
- * @param ikm The input keying material. It must be at least one byte in length.
3058
- * @param salt The salt value. Must be provided but can be zero-length.
3059
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3060
- * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
3061
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3062
- */
3063
- function hkdf(digest: string, irm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => void): void;
3064
- /**
3065
- * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
3066
- * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
3067
- *
3068
- * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
3069
- *
3070
- * An error will be thrown if any of the input arguments specify invalid values or
3071
- * types, or if the derived key cannot be generated.
3072
- *
3073
- * ```js
3074
- * import { Buffer } from 'buffer';
3075
- * const {
3076
- * hkdfSync
3077
- * } = await import('crypto');
3078
- *
3079
- * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
3080
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3081
- * ```
3082
- * @since v15.0.0
3083
- * @param digest The digest algorithm to use.
3084
- * @param ikm The input keying material. It must be at least one byte in length.
3085
- * @param salt The salt value. Must be provided but can be zero-length.
3086
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3087
- * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
3088
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3089
- */
3090
- function hkdfSync(digest: string, ikm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer;
3091
- interface SecureHeapUsage {
3092
- /**
3093
- * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
3094
- */
3095
- total: number;
3096
- /**
3097
- * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
3098
- */
3099
- min: number;
3100
- /**
3101
- * The total number of bytes currently allocated from the secure heap.
3102
- */
3103
- used: number;
3104
- /**
3105
- * The calculated ratio of `used` to `total` allocated bytes.
3106
- */
3107
- utilization: number;
3108
- }
3109
- /**
3110
- * @since v15.6.0
3111
- */
3112
- function secureHeapUsed(): SecureHeapUsage;
3113
- interface RandomUUIDOptions {
3114
- /**
3115
- * By default, to improve performance,
3116
- * Node.js will pre-emptively generate and persistently cache enough
3117
- * random data to generate up to 128 random UUIDs. To generate a UUID
3118
- * without using the cache, set `disableEntropyCache` to `true`.
3119
- *
3120
- * @default `false`
3121
- */
3122
- disableEntropyCache?: boolean | undefined;
3123
- }
3124
- /**
3125
- * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3126
- * cryptographic pseudorandom number generator.
3127
- * @since v15.6.0, v14.17.0
3128
- */
3129
- function randomUUID(options?: RandomUUIDOptions): string;
3130
- interface X509CheckOptions {
3131
- /**
3132
- * @default 'always'
3133
- */
3134
- subject?: 'always' | 'default' | 'never';
3135
- /**
3136
- * @default true
3137
- */
3138
- wildcards?: boolean;
3139
- /**
3140
- * @default true
3141
- */
3142
- partialWildcards?: boolean;
3143
- /**
3144
- * @default false
3145
- */
3146
- multiLabelWildcards?: boolean;
3147
- /**
3148
- * @default false
3149
- */
3150
- singleLabelSubdomains?: boolean;
3151
- }
3152
- /**
3153
- * Encapsulates an X509 certificate and provides read-only access to
3154
- * its information.
3155
- *
3156
- * ```js
3157
- * const { X509Certificate } = await import('crypto');
3158
- *
3159
- * const x509 = new X509Certificate('{... pem encoded cert ...}');
3160
- *
3161
- * console.log(x509.subject);
3162
- * ```
3163
- * @since v15.6.0
3164
- */
3165
- class X509Certificate {
3166
- /**
3167
- * Will be \`true\` if this is a Certificate Authority (CA) certificate.
3168
- * @since v15.6.0
3169
- */
3170
- readonly ca: boolean;
3171
- /**
3172
- * The SHA-1 fingerprint of this certificate.
3173
- *
3174
- * Because SHA-1 is cryptographically broken and because the security of SHA-1 is
3175
- * significantly worse than that of algorithms that are commonly used to sign
3176
- * certificates, consider using `x509.fingerprint256` instead.
3177
- * @since v15.6.0
3178
- */
3179
- readonly fingerprint: string;
3180
- /**
3181
- * The SHA-256 fingerprint of this certificate.
3182
- * @since v15.6.0
3183
- */
3184
- readonly fingerprint256: string;
3185
- /**
3186
- * The SHA-512 fingerprint of this certificate.
3187
- * @since v16.14.0
3188
- */
3189
- readonly fingerprint512: string;
3190
- /**
3191
- * The complete subject of this certificate.
3192
- * @since v15.6.0
3193
- */
3194
- readonly subject: string;
3195
- /**
3196
- * The subject alternative name specified for this certificate or `undefined`
3197
- * if not available.
3198
- * @since v15.6.0
3199
- */
3200
- readonly subjectAltName: string | undefined;
3201
- /**
3202
- * The information access content of this certificate or `undefined` if not
3203
- * available.
3204
- * @since v15.6.0
3205
- */
3206
- readonly infoAccess: string | undefined;
3207
- /**
3208
- * An array detailing the key usages for this certificate.
3209
- * @since v15.6.0
3210
- */
3211
- readonly keyUsage: string[];
3212
- /**
3213
- * The issuer identification included in this certificate.
3214
- * @since v15.6.0
3215
- */
3216
- readonly issuer: string;
3217
- /**
3218
- * The issuer certificate or `undefined` if the issuer certificate is not
3219
- * available.
3220
- * @since v15.9.0
3221
- */
3222
- readonly issuerCertificate?: X509Certificate | undefined;
3223
- /**
3224
- * The public key `KeyObject` for this certificate.
3225
- * @since v15.6.0
3226
- */
3227
- readonly publicKey: KeyObject;
3228
- /**
3229
- * A `Buffer` containing the DER encoding of this certificate.
3230
- * @since v15.6.0
3231
- */
3232
- readonly raw: Buffer;
3233
- /**
3234
- * The serial number of this certificate.
3235
- *
3236
- * Serial numbers are assigned by certificate authorities and do not uniquely
3237
- * identify certificates. Consider using `x509.fingerprint256` as a unique
3238
- * identifier instead.
3239
- * @since v15.6.0
3240
- */
3241
- readonly serialNumber: string;
3242
- /**
3243
- * The date/time from which this certificate is considered valid.
3244
- * @since v15.6.0
3245
- */
3246
- readonly validFrom: string;
3247
- /**
3248
- * The date/time until which this certificate is considered valid.
3249
- * @since v15.6.0
3250
- */
3251
- readonly validTo: string;
3252
- constructor(buffer: BinaryLike);
3253
- /**
3254
- * Checks whether the certificate matches the given email address.
3255
- *
3256
- * If the `'subject'` option is undefined or set to `'default'`, the certificate
3257
- * subject is only considered if the subject alternative name extension either does
3258
- * not exist or does not contain any email addresses.
3259
- *
3260
- * If the `'subject'` option is set to `'always'` and if the subject alternative
3261
- * name extension either does not exist or does not contain a matching email
3262
- * address, the certificate subject is considered.
3263
- *
3264
- * If the `'subject'` option is set to `'never'`, the certificate subject is never
3265
- * considered, even if the certificate contains no subject alternative names.
3266
- * @since v15.6.0
3267
- * @return Returns `email` if the certificate matches, `undefined` if it does not.
3268
- */
3269
- checkEmail(email: string, options?: Pick<X509CheckOptions, 'subject'>): string | undefined;
3270
- /**
3271
- * Checks whether the certificate matches the given host name.
3272
- *
3273
- * If the certificate matches the given host name, the matching subject name is
3274
- * returned. The returned name might be an exact match (e.g., `foo.example.com`)
3275
- * or it might contain wildcards (e.g., `*.example.com`). Because host name
3276
- * comparisons are case-insensitive, the returned subject name might also differ
3277
- * from the given `name` in capitalization.
3278
- *
3279
- * If the `'subject'` option is undefined or set to `'default'`, the certificate
3280
- * subject is only considered if the subject alternative name extension either does
3281
- * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS").
3282
- *
3283
- * If the `'subject'` option is set to `'always'` and if the subject alternative
3284
- * name extension either does not exist or does not contain a matching DNS name,
3285
- * the certificate subject is considered.
3286
- *
3287
- * If the `'subject'` option is set to `'never'`, the certificate subject is never
3288
- * considered, even if the certificate contains no subject alternative names.
3289
- * @since v15.6.0
3290
- * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`.
3291
- */
3292
- checkHost(name: string, options?: X509CheckOptions): string | undefined;
3293
- /**
3294
- * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
3295
- *
3296
- * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they
3297
- * must match the given `ip` address exactly. Other subject alternative names as
3298
- * well as the subject field of the certificate are ignored.
3299
- * @since v15.6.0
3300
- * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3301
- */
3302
- checkIP(ip: string): string | undefined;
3303
- /**
3304
- * Checks whether this certificate was issued by the given `otherCert`.
3305
- * @since v15.6.0
3306
- */
3307
- checkIssued(otherCert: X509Certificate): boolean;
3308
- /**
3309
- * Checks whether the public key for this certificate is consistent with
3310
- * the given private key.
3311
- * @since v15.6.0
3312
- * @param privateKey A private key.
3313
- */
3314
- checkPrivateKey(privateKey: KeyObject): boolean;
3315
- /**
3316
- * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
3317
- * certificate.
3318
- * @since v15.6.0
3319
- */
3320
- toJSON(): string;
3321
- /**
3322
- * Returns information about this certificate using the legacy `certificate object` encoding.
3323
- * @since v15.6.0
3324
- */
3325
- toLegacyObject(): PeerCertificate;
3326
- /**
3327
- * Returns the PEM-encoded certificate.
3328
- * @since v15.6.0
3329
- */
3330
- toString(): string;
3331
- /**
3332
- * Verifies that this certificate was signed by the given public key.
3333
- * Does not perform any other validation checks on the certificate.
3334
- * @since v15.6.0
3335
- * @param publicKey A public key.
3336
- */
3337
- verify(publicKey: KeyObject): boolean;
3338
- }
3339
- type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
3340
- interface GeneratePrimeOptions {
3341
- add?: LargeNumberLike | undefined;
3342
- rem?: LargeNumberLike | undefined;
3343
- /**
3344
- * @default false
3345
- */
3346
- safe?: boolean | undefined;
3347
- bigint?: boolean | undefined;
3348
- }
3349
- interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
3350
- bigint: true;
3351
- }
3352
- interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
3353
- bigint?: false | undefined;
3354
- }
3355
- /**
3356
- * Generates a pseudorandom prime of `size` bits.
3357
- *
3358
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3359
- *
3360
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3361
- * requirements, e.g., for Diffie-Hellman:
3362
- *
3363
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3364
- * condition that `prime % add = rem`.
3365
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3366
- * satisfy the condition that `prime % add = 1`.
3367
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3368
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3369
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3370
- * enforced by `options.safe`.
3371
- * * `options.rem` is ignored if `options.add` is not given.
3372
- *
3373
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3374
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3375
- *
3376
- * By default, the prime is encoded as a big-endian sequence of octets
3377
- * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3378
- * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3379
- * @since v15.8.0
3380
- * @param size The size (in bits) of the prime to generate.
3381
- */
3382
- function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3383
- function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void;
3384
- function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3385
- function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void;
3386
- /**
3387
- * Generates a pseudorandom prime of `size` bits.
3388
- *
3389
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3390
- *
3391
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3392
- * requirements, e.g., for Diffie-Hellman:
3393
- *
3394
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3395
- * condition that `prime % add = rem`.
3396
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3397
- * satisfy the condition that `prime % add = 1`.
3398
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3399
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3400
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3401
- * enforced by `options.safe`.
3402
- * * `options.rem` is ignored if `options.add` is not given.
3403
- *
3404
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3405
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3406
- *
3407
- * By default, the prime is encoded as a big-endian sequence of octets
3408
- * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3409
- * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3410
- * @since v15.8.0
3411
- * @param size The size (in bits) of the prime to generate.
3412
- */
3413
- function generatePrimeSync(size: number): ArrayBuffer;
3414
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
3415
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
3416
- function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
3417
- interface CheckPrimeOptions {
3418
- /**
3419
- * The number of Miller-Rabin probabilistic primality iterations to perform.
3420
- * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input.
3421
- * Care must be used when selecting a number of checks.
3422
- * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
3423
- *
3424
- * @default 0
3425
- */
3426
- checks?: number | undefined;
3427
- }
3428
- /**
3429
- * Checks the primality of the `candidate`.
3430
- * @since v15.8.0
3431
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3432
- */
3433
- function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
3434
- function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void;
3435
- /**
3436
- * Checks the primality of the `candidate`.
3437
- * @since v15.8.0
3438
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3439
- * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
3440
- */
3441
- function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
3442
- /**
3443
- * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
3444
- *
3445
- * `engine` could be either an id or a path to the engine's shared library.
3446
- *
3447
- * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default.
3448
- * The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
3449
- *
3450
- * - `crypto.constants.ENGINE_METHOD_RSA`
3451
- * - `crypto.constants.ENGINE_METHOD_DSA`
3452
- * - `crypto.constants.ENGINE_METHOD_DH`
3453
- * - `crypto.constants.ENGINE_METHOD_RAND`
3454
- * - `crypto.constants.ENGINE_METHOD_EC`
3455
- * - `crypto.constants.ENGINE_METHOD_CIPHERS`
3456
- * - `crypto.constants.ENGINE_METHOD_DIGESTS`
3457
- * - `crypto.constants.ENGINE_METHOD_PKEY_METHS`
3458
- * - `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
3459
- * - `crypto.constants.ENGINE_METHOD_ALL`
3460
- * - `crypto.constants.ENGINE_METHOD_NONE`
3461
- *
3462
- * The flags below are deprecated in OpenSSL-1.1.0.
3463
- *
3464
- * - `crypto.constants.ENGINE_METHOD_ECDH`
3465
- * - `crypto.constants.ENGINE_METHOD_ECDSA`
3466
- * - `crypto.constants.ENGINE_METHOD_STORE`
3467
- * @since v0.11.11
3468
- * @param [flags=crypto.constants.ENGINE_METHOD_ALL]
3469
- */
3470
- function setEngine(engine: string, flags?: number): void;
3471
- /**
3472
- * A convenient alias for `crypto.webcrypto.getRandomValues()`.
3473
- * This implementation is not compliant with the Web Crypto spec,
3474
- * to write web-compatible code use `crypto.webcrypto.getRandomValues()` instead.
3475
- * @since v17.4.0
3476
- * @returns Returns `typedArray`.
3477
- */
3478
- function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
3479
- /**
3480
- * A convenient alias for `crypto.webcrypto.subtle`.
3481
- * @since v17.4.0
3482
- */
3483
- const subtle: webcrypto.SubtleCrypto;
3484
- /**
3485
- * An implementation of the Web Crypto API standard.
3486
- *
3487
- * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details.
3488
- * @since v15.0.0
3489
- */
3490
- const webcrypto: webcrypto.Crypto;
3491
- namespace webcrypto {
3492
- type BufferSource = ArrayBufferView | ArrayBuffer;
3493
- type KeyFormat = 'jwk' | 'pkcs8' | 'raw' | 'spki';
3494
- type KeyType = 'private' | 'public' | 'secret';
3495
- type KeyUsage = 'decrypt' | 'deriveBits' | 'deriveKey' | 'encrypt' | 'sign' | 'unwrapKey' | 'verify' | 'wrapKey';
3496
- type AlgorithmIdentifier = Algorithm | string;
3497
- type HashAlgorithmIdentifier = AlgorithmIdentifier;
3498
- type NamedCurve = string;
3499
- type BigInteger = Uint8Array;
3500
- interface AesCbcParams extends Algorithm {
3501
- iv: BufferSource;
3502
- }
3503
- interface AesCtrParams extends Algorithm {
3504
- counter: BufferSource;
3505
- length: number;
3506
- }
3507
- interface AesDerivedKeyParams extends Algorithm {
3508
- length: number;
3509
- }
3510
- interface AesGcmParams extends Algorithm {
3511
- additionalData?: BufferSource;
3512
- iv: BufferSource;
3513
- tagLength?: number;
3514
- }
3515
- interface AesKeyAlgorithm extends KeyAlgorithm {
3516
- length: number;
3517
- }
3518
- interface AesKeyGenParams extends Algorithm {
3519
- length: number;
3520
- }
3521
- interface Algorithm {
3522
- name: string;
3523
- }
3524
- interface EcKeyAlgorithm extends KeyAlgorithm {
3525
- namedCurve: NamedCurve;
3526
- }
3527
- interface EcKeyGenParams extends Algorithm {
3528
- namedCurve: NamedCurve;
3529
- }
3530
- interface EcKeyImportParams extends Algorithm {
3531
- namedCurve: NamedCurve;
3532
- }
3533
- interface EcdhKeyDeriveParams extends Algorithm {
3534
- public: CryptoKey;
3535
- }
3536
- interface EcdsaParams extends Algorithm {
3537
- hash: HashAlgorithmIdentifier;
3538
- }
3539
- interface Ed448Params extends Algorithm {
3540
- context?: BufferSource;
3541
- }
3542
- interface HkdfParams extends Algorithm {
3543
- hash: HashAlgorithmIdentifier;
3544
- info: BufferSource;
3545
- salt: BufferSource;
3546
- }
3547
- interface HmacImportParams extends Algorithm {
3548
- hash: HashAlgorithmIdentifier;
3549
- length?: number;
3550
- }
3551
- interface HmacKeyAlgorithm extends KeyAlgorithm {
3552
- hash: KeyAlgorithm;
3553
- length: number;
3554
- }
3555
- interface HmacKeyGenParams extends Algorithm {
3556
- hash: HashAlgorithmIdentifier;
3557
- length?: number;
3558
- }
3559
- interface JsonWebKey {
3560
- alg?: string;
3561
- crv?: string;
3562
- d?: string;
3563
- dp?: string;
3564
- dq?: string;
3565
- e?: string;
3566
- ext?: boolean;
3567
- k?: string;
3568
- key_ops?: string[];
3569
- kty?: string;
3570
- n?: string;
3571
- oth?: RsaOtherPrimesInfo[];
3572
- p?: string;
3573
- q?: string;
3574
- qi?: string;
3575
- use?: string;
3576
- x?: string;
3577
- y?: string;
3578
- }
3579
- interface KeyAlgorithm {
3580
- name: string;
3581
- }
3582
- interface Pbkdf2Params extends Algorithm {
3583
- hash: HashAlgorithmIdentifier;
3584
- iterations: number;
3585
- salt: BufferSource;
3586
- }
3587
- interface RsaHashedImportParams extends Algorithm {
3588
- hash: HashAlgorithmIdentifier;
3589
- }
3590
- interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
3591
- hash: KeyAlgorithm;
3592
- }
3593
- interface RsaHashedKeyGenParams extends RsaKeyGenParams {
3594
- hash: HashAlgorithmIdentifier;
3595
- }
3596
- interface RsaKeyAlgorithm extends KeyAlgorithm {
3597
- modulusLength: number;
3598
- publicExponent: BigInteger;
3599
- }
3600
- interface RsaKeyGenParams extends Algorithm {
3601
- modulusLength: number;
3602
- publicExponent: BigInteger;
3603
- }
3604
- interface RsaOaepParams extends Algorithm {
3605
- label?: BufferSource;
3606
- }
3607
- interface RsaOtherPrimesInfo {
3608
- d?: string;
3609
- r?: string;
3610
- t?: string;
3611
- }
3612
- interface RsaPssParams extends Algorithm {
3613
- saltLength: number;
3614
- }
3615
- /**
3616
- * Calling `require('node:crypto').webcrypto` returns an instance of the `Crypto` class.
3617
- * `Crypto` is a singleton that provides access to the remainder of the crypto API.
3618
- * @since v15.0.0
3619
- */
3620
- interface Crypto {
3621
- /**
3622
- * Provides access to the `SubtleCrypto` API.
3623
- * @since v15.0.0
3624
- */
3625
- readonly subtle: SubtleCrypto;
3626
- /**
3627
- * Generates cryptographically strong random values.
3628
- * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned.
3629
- *
3630
- * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted.
3631
- *
3632
- * An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
3633
- * @since v15.0.0
3634
- */
3635
- getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(typedArray: T): T;
3636
- /**
3637
- * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
3638
- * The UUID is generated using a cryptographic pseudorandom number generator.
3639
- * @since v16.7.0
3640
- */
3641
- randomUUID(): string;
3642
- CryptoKey: CryptoKeyConstructor;
3643
- }
3644
- // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
3645
- interface CryptoKeyConstructor {
3646
- /** Illegal constructor */
3647
- (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
3648
- readonly length: 0;
3649
- readonly name: 'CryptoKey';
3650
- readonly prototype: CryptoKey;
3651
- }
3652
- /**
3653
- * @since v15.0.0
3654
- */
3655
- interface CryptoKey {
3656
- /**
3657
- * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
3658
- * @since v15.0.0
3659
- */
3660
- readonly algorithm: KeyAlgorithm;
3661
- /**
3662
- * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
3663
- * @since v15.0.0
3664
- */
3665
- readonly extractable: boolean;
3666
- /**
3667
- * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key.
3668
- * @since v15.0.0
3669
- */
3670
- readonly type: KeyType;
3671
- /**
3672
- * An array of strings identifying the operations for which the key may be used.
3673
- *
3674
- * The possible usages are:
3675
- * - `'encrypt'` - The key may be used to encrypt data.
3676
- * - `'decrypt'` - The key may be used to decrypt data.
3677
- * - `'sign'` - The key may be used to generate digital signatures.
3678
- * - `'verify'` - The key may be used to verify digital signatures.
3679
- * - `'deriveKey'` - The key may be used to derive a new key.
3680
- * - `'deriveBits'` - The key may be used to derive bits.
3681
- * - `'wrapKey'` - The key may be used to wrap another key.
3682
- * - `'unwrapKey'` - The key may be used to unwrap another key.
3683
- *
3684
- * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`).
3685
- * @since v15.0.0
3686
- */
3687
- readonly usages: KeyUsage[];
3688
- }
3689
- /**
3690
- * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.
3691
- * @since v15.0.0
3692
- */
3693
- interface CryptoKeyPair {
3694
- /**
3695
- * A {@link CryptoKey} whose type will be `'private'`.
3696
- * @since v15.0.0
3697
- */
3698
- privateKey: CryptoKey;
3699
- /**
3700
- * A {@link CryptoKey} whose type will be `'public'`.
3701
- * @since v15.0.0
3702
- */
3703
- publicKey: CryptoKey;
3704
- }
3705
- /**
3706
- * @since v15.0.0
3707
- */
3708
- interface SubtleCrypto {
3709
- /**
3710
- * Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
3711
- * `subtle.decrypt()` attempts to decipher the provided `data`. If successful,
3712
- * the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
3713
- *
3714
- * The algorithms currently supported include:
3715
- *
3716
- * - `'RSA-OAEP'`
3717
- * - `'AES-CTR'`
3718
- * - `'AES-CBC'`
3719
- * - `'AES-GCM'`
3720
- * @since v15.0.0
3721
- */
3722
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
3723
- /**
3724
- * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
3725
- * `subtle.deriveBits()` attempts to generate `length` bits.
3726
- * The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
3727
- * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
3728
- * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
3729
- * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the generated data.
3730
- *
3731
- * The algorithms currently supported include:
3732
- *
3733
- * - `'ECDH'`
3734
- * - `'X25519'`
3735
- * - `'X448'`
3736
- * - `'HKDF'`
3737
- * - `'PBKDF2'`
3738
- * @since v15.0.0
3739
- */
3740
- deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
3741
- deriveBits(algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
3742
- /**
3743
- * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
3744
- * `subtle.deriveKey()` attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
3745
- *
3746
- * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
3747
- * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
3748
- *
3749
- * The algorithms currently supported include:
3750
- *
3751
- * - `'ECDH'`
3752
- * - `'X25519'`
3753
- * - `'X448'`
3754
- * - `'HKDF'`
3755
- * - `'PBKDF2'`
3756
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
3757
- * @since v15.0.0
3758
- */
3759
- deriveKey(
3760
- algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
3761
- baseKey: CryptoKey,
3762
- derivedKeyAlgorithm: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params,
3763
- extractable: boolean,
3764
- keyUsages: ReadonlyArray<KeyUsage>
3765
- ): Promise<CryptoKey>;
3766
- /**
3767
- * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
3768
- * If successful, the returned promise is resolved with an `<ArrayBuffer>` containing the computed digest.
3769
- *
3770
- * If `algorithm` is provided as a `<string>`, it must be one of:
3771
- *
3772
- * - `'SHA-1'`
3773
- * - `'SHA-256'`
3774
- * - `'SHA-384'`
3775
- * - `'SHA-512'`
3776
- *
3777
- * If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
3778
- * @since v15.0.0
3779
- */
3780
- digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
3781
- /**
3782
- * Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
3783
- * `subtle.encrypt()` attempts to encipher `data`. If successful,
3784
- * the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
3785
- *
3786
- * The algorithms currently supported include:
3787
- *
3788
- * - `'RSA-OAEP'`
3789
- * - `'AES-CTR'`
3790
- * - `'AES-CBC'`
3791
- * - `'AES-GCM'`
3792
- * @since v15.0.0
3793
- */
3794
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
3795
- /**
3796
- * Exports the given key into the specified format, if supported.
3797
- *
3798
- * If the `<CryptoKey>` is not extractable, the returned promise will reject.
3799
- *
3800
- * When `format` is either `'pkcs8'` or `'spki'` and the export is successful,
3801
- * the returned promise will be resolved with an `<ArrayBuffer>` containing the exported key data.
3802
- *
3803
- * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
3804
- * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
3805
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
3806
- * @returns `<Promise>` containing `<ArrayBuffer>`.
3807
- * @since v15.0.0
3808
- */
3809
- exportKey(format: 'jwk', key: CryptoKey): Promise<JsonWebKey>;
3810
- exportKey(format: Exclude<KeyFormat, 'jwk'>, key: CryptoKey): Promise<ArrayBuffer>;
3811
- /**
3812
- * Using the method and parameters provided in `algorithm`,
3813
- * `subtle.generateKey()` attempts to generate new keying material.
3814
- * Depending the method used, the method may generate either a single `<CryptoKey>` or a `<CryptoKeyPair>`.
3815
- *
3816
- * The `<CryptoKeyPair>` (public and private key) generating algorithms supported include:
3817
- *
3818
- * - `'RSASSA-PKCS1-v1_5'`
3819
- * - `'RSA-PSS'`
3820
- * - `'RSA-OAEP'`
3821
- * - `'ECDSA'`
3822
- * - `'Ed25519'`
3823
- * - `'Ed448'`
3824
- * - `'ECDH'`
3825
- * - `'X25519'`
3826
- * - `'X448'`
3827
- * The `<CryptoKey>` (secret key) generating algorithms supported include:
3828
- *
3829
- * - `'HMAC'`
3830
- * - `'AES-CTR'`
3831
- * - `'AES-CBC'`
3832
- * - `'AES-GCM'`
3833
- * - `'AES-KW'`
3834
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
3835
- * @since v15.0.0
3836
- */
3837
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
3838
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
3839
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
3840
- /**
3841
- * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
3842
- * to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
3843
- * If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
3844
- *
3845
- * If importing a `'PBKDF2'` key, `extractable` must be `false`.
3846
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
3847
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
3848
- * @since v15.0.0
3849
- */
3850
- importKey(
3851
- format: 'jwk',
3852
- keyData: JsonWebKey,
3853
- algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm,
3854
- extractable: boolean,
3855
- keyUsages: ReadonlyArray<KeyUsage>
3856
- ): Promise<CryptoKey>;
3857
- importKey(
3858
- format: Exclude<KeyFormat, 'jwk'>,
3859
- keyData: BufferSource,
3860
- algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm,
3861
- extractable: boolean,
3862
- keyUsages: KeyUsage[]
3863
- ): Promise<CryptoKey>;
3864
- /**
3865
- * Using the method and parameters given by `algorithm` and the keying material provided by `key`,
3866
- * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
3867
- * the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
3868
- *
3869
- * The algorithms currently supported include:
3870
- *
3871
- * - `'RSASSA-PKCS1-v1_5'`
3872
- * - `'RSA-PSS'`
3873
- * - `'ECDSA'`
3874
- * - `'Ed25519'`
3875
- * - `'Ed448'`
3876
- * - `'HMAC'`
3877
- * @since v15.0.0
3878
- */
3879
- sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
3880
- /**
3881
- * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
3882
- * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
3883
- * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
3884
- * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
3885
- * If successful, the returned promise is resolved with a `<CryptoKey>` object.
3886
- *
3887
- * The wrapping algorithms currently supported include:
3888
- *
3889
- * - `'RSA-OAEP'`
3890
- * - `'AES-CTR'`
3891
- * - `'AES-CBC'`
3892
- * - `'AES-GCM'`
3893
- * - `'AES-KW'`
3894
- *
3895
- * The unwrapped key algorithms supported include:
3896
- *
3897
- * - `'RSASSA-PKCS1-v1_5'`
3898
- * - `'RSA-PSS'`
3899
- * - `'RSA-OAEP'`
3900
- * - `'ECDSA'`
3901
- * - `'Ed25519'`
3902
- * - `'Ed448'`
3903
- * - `'ECDH'`
3904
- * - `'X25519'`
3905
- * - `'X448'`
3906
- * - `'HMAC'`
3907
- * - `'AES-CTR'`
3908
- * - `'AES-CBC'`
3909
- * - `'AES-GCM'`
3910
- * - `'AES-KW'`
3911
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
3912
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
3913
- * @since v15.0.0
3914
- */
3915
- unwrapKey(
3916
- format: KeyFormat,
3917
- wrappedKey: BufferSource,
3918
- unwrappingKey: CryptoKey,
3919
- unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
3920
- unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm,
3921
- extractable: boolean,
3922
- keyUsages: KeyUsage[]
3923
- ): Promise<CryptoKey>;
3924
- /**
3925
- * Using the method and parameters given in `algorithm` and the keying material provided by `key`,
3926
- * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`.
3927
- * The returned promise is resolved with either `true` or `false`.
3928
- *
3929
- * The algorithms currently supported include:
3930
- *
3931
- * - `'RSASSA-PKCS1-v1_5'`
3932
- * - `'RSA-PSS'`
3933
- * - `'ECDSA'`
3934
- * - `'Ed25519'`
3935
- * - `'Ed448'`
3936
- * - `'HMAC'`
3937
- * @since v15.0.0
3938
- */
3939
- verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
3940
- /**
3941
- * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
3942
- * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`,
3943
- * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
3944
- * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
3945
- * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
3946
- * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the encrypted key data.
3947
- *
3948
- * The wrapping algorithms currently supported include:
3949
- *
3950
- * - `'RSA-OAEP'`
3951
- * - `'AES-CTR'`
3952
- * - `'AES-CBC'`
3953
- * - `'AES-GCM'`
3954
- * - `'AES-KW'`
3955
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
3956
- * @since v15.0.0
3957
- */
3958
- wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
3959
- }
3960
- }
3961
- }
3962
- declare module 'node:crypto' {
3963
- export * from 'crypto';
3964
- }