pcp-server-ruby-sdk 0.0.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/PCP-server-Ruby-SDK.gemspec +0 -11
  4. data/README.md +16 -13
  5. data/Rakefile +1 -3
  6. data/example-app/commerce_case_api_example.rb +9 -7
  7. data/example-app/example.rb +4 -4
  8. data/lib/PCP-server-Ruby-SDK/communicator_configuration.rb +14 -7
  9. data/lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb +111 -0
  10. data/lib/PCP-server-Ruby-SDK/endpoints/checkout_api_client.rb +129 -0
  11. data/lib/PCP-server-Ruby-SDK/endpoints/commerce_case_api_client.rb +99 -0
  12. data/lib/PCP-server-Ruby-SDK/endpoints/order_management_checkout_actions_api_client.rb +110 -0
  13. data/lib/PCP-server-Ruby-SDK/endpoints/payment_execution_api_client.rb +142 -0
  14. data/lib/PCP-server-Ruby-SDK/endpoints/payment_information_api_client.rb +69 -0
  15. data/lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb +19 -8
  16. data/lib/PCP-server-Ruby-SDK/errors/api_exception.rb +30 -20
  17. data/lib/PCP-server-Ruby-SDK/errors/api_response_retrieval_exception.rb +12 -3
  18. data/lib/PCP-server-Ruby-SDK/models/address.rb +219 -425
  19. data/lib/PCP-server-Ruby-SDK/models/address_personal.rb +227 -411
  20. data/lib/PCP-server-Ruby-SDK/models/allowed_payment_actions.rb +23 -33
  21. data/lib/PCP-server-Ruby-SDK/models/amount_of_money.rb +171 -262
  22. data/lib/PCP-server-Ruby-SDK/models/api_error.rb +199 -229
  23. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +164 -189
  24. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +187 -224
  25. data/lib/PCP-server-Ruby-SDK/models/apple_payment_token_version.rb +20 -0
  26. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment.rb +62 -0
  27. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_contact.rb +42 -0
  28. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_data.rb +21 -0
  29. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_data_header.rb +22 -0
  30. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_method.rb +21 -0
  31. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_method_type.rb +19 -0
  32. data/lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_token.rb +17 -0
  33. data/lib/PCP-server-Ruby-SDK/models/authorization_mode.rb +23 -33
  34. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +162 -235
  35. data/lib/PCP-server-Ruby-SDK/models/cancel_item.rb +162 -225
  36. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_request.rb +163 -196
  37. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_response.rb +153 -178
  38. data/lib/PCP-server-Ruby-SDK/models/cancel_request.rb +188 -213
  39. data/lib/PCP-server-Ruby-SDK/models/cancel_response.rb +160 -185
  40. data/lib/PCP-server-Ruby-SDK/models/cancel_type.rb +23 -33
  41. data/lib/PCP-server-Ruby-SDK/models/cancellation_reason.rb +27 -37
  42. data/lib/PCP-server-Ruby-SDK/models/capture_output.rb +177 -221
  43. data/lib/PCP-server-Ruby-SDK/models/capture_payment_request.rb +211 -264
  44. data/lib/PCP-server-Ruby-SDK/models/capture_payment_response.rb +193 -218
  45. data/lib/PCP-server-Ruby-SDK/models/card_fraud_results.rb +155 -180
  46. data/lib/PCP-server-Ruby-SDK/models/card_info.rb +155 -180
  47. data/lib/PCP-server-Ruby-SDK/models/card_payment_details.rb +181 -282
  48. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_input.rb +262 -414
  49. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_output.rb +175 -228
  50. data/lib/PCP-server-Ruby-SDK/models/card_recurrence_details.rb +155 -180
  51. data/lib/PCP-server-Ruby-SDK/models/cart_item_input.rb +162 -187
  52. data/lib/PCP-server-Ruby-SDK/models/cart_item_invoice_data.rb +155 -180
  53. data/lib/PCP-server-Ruby-SDK/models/cart_item_order_status.rb +175 -228
  54. data/lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb +162 -187
  55. data/lib/PCP-server-Ruby-SDK/models/cart_item_result.rb +162 -187
  56. data/lib/PCP-server-Ruby-SDK/models/cart_item_status.rb +26 -36
  57. data/lib/PCP-server-Ruby-SDK/models/checkout_references.rb +158 -220
  58. data/lib/PCP-server-Ruby-SDK/models/checkout_response.rb +257 -301
  59. data/lib/PCP-server-Ruby-SDK/models/checkouts_response.rb +162 -206
  60. data/lib/PCP-server-Ruby-SDK/models/commerce_case_response.rb +186 -230
  61. data/lib/PCP-server-Ruby-SDK/models/company_information.rb +155 -180
  62. data/lib/PCP-server-Ruby-SDK/models/complete_financing_payment_method_specific_input.rb +167 -220
  63. data/lib/PCP-server-Ruby-SDK/models/complete_payment_method_specific_input.rb +154 -179
  64. data/lib/PCP-server-Ruby-SDK/models/complete_payment_request.rb +169 -194
  65. data/lib/PCP-server-Ruby-SDK/models/complete_payment_response.rb +166 -191
  66. data/lib/PCP-server-Ruby-SDK/models/contact_details.rb +164 -189
  67. data/lib/PCP-server-Ruby-SDK/models/create_checkout_request.rb +199 -224
  68. data/lib/PCP-server-Ruby-SDK/models/create_checkout_response.rb +249 -274
  69. data/lib/PCP-server-Ruby-SDK/models/create_commerce_case_request.rb +176 -220
  70. data/lib/PCP-server-Ruby-SDK/models/create_commerce_case_response.rb +186 -230
  71. data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +176 -201
  72. data/lib/PCP-server-Ruby-SDK/models/customer.rb +209 -291
  73. data/lib/PCP-server-Ruby-SDK/models/customer_device.rb +158 -221
  74. data/lib/PCP-server-Ruby-SDK/models/deliver_item.rb +162 -225
  75. data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +195 -218
  76. data/lib/PCP-server-Ruby-SDK/models/deliver_response.rb +160 -184
  77. data/lib/PCP-server-Ruby-SDK/models/deliver_type.rb +24 -32
  78. data/lib/PCP-server-Ruby-SDK/models/delivery_information.rb +156 -180
  79. data/lib/PCP-server-Ruby-SDK/models/error_response.rb +163 -187
  80. data/lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb +30 -39
  81. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_input.rb +167 -219
  82. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_output.rb +158 -210
  83. data/lib/PCP-server-Ruby-SDK/models/installment_option.rb +238 -337
  84. data/lib/PCP-server-Ruby-SDK/models/link_information.rb +166 -200
  85. data/lib/PCP-server-Ruby-SDK/models/mandate_recurrence_type.rb +23 -32
  86. data/lib/PCP-server-Ruby-SDK/models/merchant_action.rb +163 -187
  87. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +205 -255
  88. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +184 -236
  89. data/lib/PCP-server-Ruby-SDK/models/network.rb +24 -0
  90. data/lib/PCP-server-Ruby-SDK/models/order.rb +182 -211
  91. data/lib/PCP-server-Ruby-SDK/models/order_item.rb +163 -225
  92. data/lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb +249 -422
  93. data/lib/PCP-server-Ruby-SDK/models/order_line_details_patch.rb +273 -445
  94. data/lib/PCP-server-Ruby-SDK/models/order_line_details_result.rb +273 -445
  95. data/lib/PCP-server-Ruby-SDK/models/order_request.rb +192 -214
  96. data/lib/PCP-server-Ruby-SDK/models/order_response.rb +162 -186
  97. data/lib/PCP-server-Ruby-SDK/models/order_type.rb +23 -32
  98. data/lib/PCP-server-Ruby-SDK/models/patch_checkout_request.rb +188 -212
  99. data/lib/PCP-server-Ruby-SDK/models/patch_commerce_case_request.rb +154 -178
  100. data/lib/PCP-server-Ruby-SDK/models/payment_channel.rb +23 -32
  101. data/lib/PCP-server-Ruby-SDK/models/payment_creation_output.rb +155 -179
  102. data/lib/PCP-server-Ruby-SDK/models/payment_event.rb +197 -238
  103. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +237 -259
  104. data/lib/PCP-server-Ruby-SDK/models/payment_execution_request.rb +162 -187
  105. data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +168 -197
  106. data/lib/PCP-server-Ruby-SDK/models/payment_information_request.rb +214 -306
  107. data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +259 -395
  108. data/lib/PCP-server-Ruby-SDK/models/payment_method_specific_input.rb +212 -234
  109. data/lib/PCP-server-Ruby-SDK/models/payment_output.rb +208 -251
  110. data/lib/PCP-server-Ruby-SDK/models/payment_product320_specific_input.rb +176 -210
  111. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_input.rb +165 -199
  112. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_output.rb +156 -180
  113. data/lib/PCP-server-Ruby-SDK/models/payment_product3392_specific_input.rb +155 -184
  114. data/lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb +155 -179
  115. data/lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb +182 -206
  116. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb +167 -191
  117. data/lib/PCP-server-Ruby-SDK/models/payment_references.rb +152 -195
  118. data/lib/PCP-server-Ruby-SDK/models/payment_response.rb +192 -214
  119. data/lib/PCP-server-Ruby-SDK/models/payment_status_output.rb +194 -216
  120. data/lib/PCP-server-Ruby-SDK/models/payment_type.rb +29 -38
  121. data/lib/PCP-server-Ruby-SDK/models/payout_output.rb +171 -195
  122. data/lib/PCP-server-Ruby-SDK/models/payout_response.rb +192 -214
  123. data/lib/PCP-server-Ruby-SDK/models/personal_information.rb +190 -254
  124. data/lib/PCP-server-Ruby-SDK/models/personal_name.rb +173 -197
  125. data/lib/PCP-server-Ruby-SDK/models/positive_amount_of_money.rb +169 -259
  126. data/lib/PCP-server-Ruby-SDK/models/processing_mandate_information.rb +214 -351
  127. data/lib/PCP-server-Ruby-SDK/models/product_type.rb +25 -34
  128. data/lib/PCP-server-Ruby-SDK/models/redirect_data.rb +155 -179
  129. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb +203 -293
  130. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb +180 -270
  131. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input.rb +155 -179
  132. data/lib/PCP-server-Ruby-SDK/models/redirection_data.rb +153 -201
  133. data/lib/PCP-server-Ruby-SDK/models/references.rb +175 -261
  134. data/lib/PCP-server-Ruby-SDK/models/refund_error_response.rb +163 -187
  135. data/lib/PCP-server-Ruby-SDK/models/refund_output.rb +177 -220
  136. data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +192 -214
  137. data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +167 -191
  138. data/lib/PCP-server-Ruby-SDK/models/return_information.rb +162 -205
  139. data/lib/PCP-server-Ruby-SDK/models/return_item.rb +162 -224
  140. data/lib/PCP-server-Ruby-SDK/models/return_request.rb +179 -226
  141. data/lib/PCP-server-Ruby-SDK/models/return_response.rb +160 -184
  142. data/lib/PCP-server-Ruby-SDK/models/return_type.rb +23 -32
  143. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_input.rb +158 -210
  144. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_output.rb +158 -210
  145. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_product771_specific_input.rb +163 -187
  146. data/lib/PCP-server-Ruby-SDK/models/shipping.rb +154 -178
  147. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_input.rb +155 -179
  148. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_patch.rb +155 -179
  149. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_result.rb +155 -179
  150. data/lib/PCP-server-Ruby-SDK/models/status_category_value.rb +29 -38
  151. data/lib/PCP-server-Ruby-SDK/models/status_checkout.rb +27 -36
  152. data/lib/PCP-server-Ruby-SDK/models/status_output.rb +230 -404
  153. data/lib/PCP-server-Ruby-SDK/models/status_value.rb +44 -53
  154. data/lib/PCP-server-Ruby-SDK/models/three_d_secure_results.rb +184 -237
  155. data/lib/PCP-server-Ruby-SDK/models/transaction_channel.rb +23 -32
  156. data/lib/PCP-server-Ruby-SDK/models/unscheduled_card_on_file_requestor.rb +23 -32
  157. data/lib/PCP-server-Ruby-SDK/models/unscheduled_card_on_file_sequence_indicator.rb +23 -32
  158. data/lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb +62 -56
  159. data/lib/PCP-server-Ruby-SDK/queries/get_commerce_cases_query.rb +61 -56
  160. data/lib/PCP-server-Ruby-SDK/request_header_generator.rb +63 -54
  161. data/lib/PCP-server-Ruby-SDK/transformer/apple_pay_transformer.rb +42 -0
  162. data/lib/PCP-server-Ruby-SDK/utils/server_meta_info.rb +22 -16
  163. data/lib/PCP-server-Ruby-SDK/version.rb +1 -12
  164. data/lib/PCP-server-Ruby-SDK.rb +8 -6
  165. data/package-lock.json +31 -0
  166. data/scripts.sh +20 -16
  167. data/spec/communicator_configuration_spec.rb +3 -3
  168. data/spec/endpoints/checkout_api_client_spec.rb +257 -0
  169. data/spec/endpoints/commerce_case_api_client_spec.rb +206 -0
  170. data/spec/endpoints/order_management_checkout_actions_api_client_spec.rb +215 -0
  171. data/spec/endpoints/payment_execution_api_client_spec.rb +269 -0
  172. data/spec/endpoints/payment_information_api_client_spec.rb +115 -0
  173. data/spec/errors/api_error_response_exception_spec.rb +6 -6
  174. data/spec/errors/api_exception_spec.rb +6 -6
  175. data/spec/errors/api_response_retrieval_exception_spec.rb +6 -6
  176. data/spec/queries/get_checkouts_query_spec.rb +4 -4
  177. data/spec/queries/get_commerce_cases_query_spec.rb +3 -3
  178. data/spec/request_header_generator_spec.rb +17 -17
  179. data/spec/spec_helper.rb +7 -1
  180. data/spec/transformer/apple_pay_transformer_spec.rb +73 -0
  181. data/spec/utils/server_meta_info_spec.rb +3 -3
  182. metadata +28 -2976
  183. data/Gemfile.lock +0 -91
  184. data/coverage/.last_run.json +0 -5
  185. data/coverage/.resultset.json +0 -325
  186. data/coverage/.resultset.json.lock +0 -0
  187. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  188. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  189. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  190. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  191. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  192. data/coverage/assets/0.12.3/application.css +0 -1
  193. data/coverage/assets/0.12.3/application.js +0 -7
  194. data/coverage/assets/0.12.3/colorbox/border.png +0 -0
  195. data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
  196. data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
  197. data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
  198. data/coverage/assets/0.12.3/favicon_green.png +0 -0
  199. data/coverage/assets/0.12.3/favicon_red.png +0 -0
  200. data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
  201. data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  202. data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  203. data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  204. data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  205. data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  206. data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  207. data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  208. data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  209. data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
  210. data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
  211. data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
  212. data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
  213. data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
  214. data/coverage/assets/0.12.3/loading.gif +0 -0
  215. data/coverage/assets/0.12.3/magnify.png +0 -0
  216. data/coverage/coverage.json +0 -352
  217. data/coverage/index.html +0 -3953
  218. data/docs/APIError.md +0 -28
  219. data/docs/Address.md +0 -30
  220. data/docs/AddressPersonal.md +0 -32
  221. data/docs/AllowedPaymentActions.md +0 -15
  222. data/docs/AmountOfMoney.md +0 -20
  223. data/docs/ApplePaymentDataTokenHeaderInformation.md +0 -20
  224. data/docs/ApplePaymentDataTokenInformation.md +0 -22
  225. data/docs/AuthorizationMode.md +0 -15
  226. data/docs/BankAccountInformation.md +0 -20
  227. data/docs/CancelItem.md +0 -20
  228. data/docs/CancelPaymentRequest.md +0 -18
  229. data/docs/CancelPaymentResponse.md +0 -18
  230. data/docs/CancelRequest.md +0 -22
  231. data/docs/CancelResponse.md +0 -20
  232. data/docs/CancelType.md +0 -15
  233. data/docs/CancellationReason.md +0 -15
  234. data/docs/CaptureOutput.md +0 -24
  235. data/docs/CapturePaymentRequest.md +0 -26
  236. data/docs/CapturePaymentResponse.md +0 -24
  237. data/docs/CardFraudResults.md +0 -18
  238. data/docs/CardInfo.md +0 -18
  239. data/docs/CardPaymentDetails.md +0 -24
  240. data/docs/CardPaymentMethodSpecificInput.md +0 -40
  241. data/docs/CardPaymentMethodSpecificOutput.md +0 -24
  242. data/docs/CardRecurrenceDetails.md +0 -18
  243. data/docs/CartItemInput.md +0 -20
  244. data/docs/CartItemInvoiceData.md +0 -18
  245. data/docs/CartItemOrderStatus.md +0 -20
  246. data/docs/CartItemPatch.md +0 -20
  247. data/docs/CartItemResult.md +0 -20
  248. data/docs/CartItemStatus.md +0 -15
  249. data/docs/CheckoutApi.md +0 -412
  250. data/docs/CheckoutReferences.md +0 -20
  251. data/docs/CheckoutResponse.md +0 -42
  252. data/docs/CheckoutsResponse.md +0 -20
  253. data/docs/CommerceCaseApi.md +0 -294
  254. data/docs/CommerceCaseResponse.md +0 -26
  255. data/docs/CompanyInformation.md +0 -18
  256. data/docs/CompleteFinancingPaymentMethodSpecificInput.md +0 -22
  257. data/docs/CompletePaymentMethodSpecificInput.md +0 -18
  258. data/docs/CompletePaymentRequest.md +0 -22
  259. data/docs/CompletePaymentResponse.md +0 -22
  260. data/docs/ContactDetails.md +0 -20
  261. data/docs/CreateCheckoutRequest.md +0 -30
  262. data/docs/CreateCheckoutResponse.md +0 -40
  263. data/docs/CreateCommerceCaseRequest.md +0 -24
  264. data/docs/CreateCommerceCaseResponse.md +0 -26
  265. data/docs/CreatePaymentResponse.md +0 -24
  266. data/docs/Customer.md +0 -32
  267. data/docs/CustomerDevice.md +0 -20
  268. data/docs/DeliverItem.md +0 -20
  269. data/docs/DeliverRequest.md +0 -24
  270. data/docs/DeliverResponse.md +0 -20
  271. data/docs/DeliverType.md +0 -15
  272. data/docs/DeliveryInformation.md +0 -18
  273. data/docs/ErrorResponse.md +0 -20
  274. data/docs/ExtendedCheckoutStatus.md +0 -15
  275. data/docs/FinancingPaymentMethodSpecificInput.md +0 -22
  276. data/docs/FinancingPaymentMethodSpecificOutput.md +0 -20
  277. data/docs/InstallmentOption.md +0 -34
  278. data/docs/LinkInformation.md +0 -20
  279. data/docs/MandateRecurrenceType.md +0 -15
  280. data/docs/MerchantAction.md +0 -20
  281. data/docs/MobilePaymentMethodSpecificInput.md +0 -28
  282. data/docs/MobilePaymentMethodSpecificOutput.md +0 -26
  283. data/docs/Order.md +0 -26
  284. data/docs/OrderItem.md +0 -20
  285. data/docs/OrderLineDetailsInput.md +0 -34
  286. data/docs/OrderLineDetailsPatch.md +0 -38
  287. data/docs/OrderLineDetailsResult.md +0 -38
  288. data/docs/OrderManagementCheckoutActionsApi.md +0 -295
  289. data/docs/OrderRequest.md +0 -24
  290. data/docs/OrderResponse.md +0 -20
  291. data/docs/OrderType.md +0 -15
  292. data/docs/PatchCheckoutRequest.md +0 -28
  293. data/docs/PatchCommerceCaseRequest.md +0 -18
  294. data/docs/PaymentChannel.md +0 -15
  295. data/docs/PaymentCreationOutput.md +0 -18
  296. data/docs/PaymentEvent.md +0 -26
  297. data/docs/PaymentExecution.md +0 -36
  298. data/docs/PaymentExecutionApi.md +0 -370
  299. data/docs/PaymentExecutionRequest.md +0 -20
  300. data/docs/PaymentExecutionSpecificInput.md +0 -22
  301. data/docs/PaymentInformationApi.md +0 -149
  302. data/docs/PaymentInformationRequest.md +0 -26
  303. data/docs/PaymentInformationResponse.md +0 -38
  304. data/docs/PaymentMethodSpecificInput.md +0 -30
  305. data/docs/PaymentOutput.md +0 -34
  306. data/docs/PaymentProduct320SpecificInput.md +0 -20
  307. data/docs/PaymentProduct3391SpecificInput.md +0 -20
  308. data/docs/PaymentProduct3391SpecificOutput.md +0 -18
  309. data/docs/PaymentProduct3392SpecificInput.md +0 -18
  310. data/docs/PaymentProduct771SpecificOutput.md +0 -18
  311. data/docs/PaymentProduct840CustomerAccount.md +0 -24
  312. data/docs/PaymentProduct840SpecificOutput.md +0 -22
  313. data/docs/PaymentReferences.md +0 -18
  314. data/docs/PaymentResponse.md +0 -24
  315. data/docs/PaymentStatusOutput.md +0 -24
  316. data/docs/PaymentType.md +0 -15
  317. data/docs/PayoutOutput.md +0 -22
  318. data/docs/PayoutResponse.md +0 -24
  319. data/docs/PersonalInformation.md +0 -22
  320. data/docs/PersonalName.md +0 -22
  321. data/docs/PositiveAmountOfMoney.md +0 -20
  322. data/docs/ProcessingMandateInformation.md +0 -26
  323. data/docs/ProductType.md +0 -15
  324. data/docs/RedirectData.md +0 -18
  325. data/docs/RedirectPaymentMethodSpecificInput.md +0 -30
  326. data/docs/RedirectPaymentMethodSpecificOutput.md +0 -24
  327. data/docs/RedirectPaymentProduct840SpecificInput.md +0 -18
  328. data/docs/RedirectionData.md +0 -18
  329. data/docs/References.md +0 -22
  330. data/docs/RefundErrorResponse.md +0 -20
  331. data/docs/RefundOutput.md +0 -24
  332. data/docs/RefundPaymentResponse.md +0 -24
  333. data/docs/RefundRequest.md +0 -22
  334. data/docs/ReturnInformation.md +0 -20
  335. data/docs/ReturnItem.md +0 -20
  336. data/docs/ReturnRequest.md +0 -22
  337. data/docs/ReturnResponse.md +0 -20
  338. data/docs/ReturnType.md +0 -15
  339. data/docs/SepaDirectDebitPaymentMethodSpecificInput.md +0 -20
  340. data/docs/SepaDirectDebitPaymentMethodSpecificOutput.md +0 -20
  341. data/docs/SepaDirectDebitPaymentProduct771SpecificInput.md +0 -20
  342. data/docs/Shipping.md +0 -18
  343. data/docs/ShoppingCartInput.md +0 -18
  344. data/docs/ShoppingCartPatch.md +0 -18
  345. data/docs/ShoppingCartResult.md +0 -18
  346. data/docs/StatusCategoryValue.md +0 -15
  347. data/docs/StatusCheckout.md +0 -15
  348. data/docs/StatusOutput.md +0 -30
  349. data/docs/StatusValue.md +0 -15
  350. data/docs/ThreeDSecureResults.md +0 -22
  351. data/docs/TransactionChannel.md +0 -15
  352. data/docs/UnscheduledCardOnFileRequestor.md +0 -15
  353. data/docs/UnscheduledCardOnFileSequenceIndicator.md +0 -15
  354. data/lib/PCP-server-Ruby-SDK/api/base_api_client.rb +0 -105
  355. data/lib/PCP-server-Ruby-SDK/api/checkout_api_client.rb +0 -94
  356. data/lib/PCP-server-Ruby-SDK/api/commerce_case_api_client.rb +0 -75
  357. data/lib/PCP-server-Ruby-SDK/api/order_management_checkout_actions_api_client.rb +0 -82
  358. data/lib/PCP-server-Ruby-SDK/api/payment_execution_api_client.rb +0 -104
  359. data/lib/PCP-server-Ruby-SDK/api/payment_information_api_client.rb +0 -50
  360. data/node_modules/.bin/JSONStream +0 -1
  361. data/node_modules/.bin/commitlint +0 -1
  362. data/node_modules/.bin/conventional-changelog +0 -1
  363. data/node_modules/.bin/conventional-changelog-writer +0 -1
  364. data/node_modules/.bin/conventional-commits-parser +0 -1
  365. data/node_modules/.bin/git-raw-commits +0 -1
  366. data/node_modules/.bin/git-semver-tags +0 -1
  367. data/node_modules/.bin/handlebars +0 -1
  368. data/node_modules/.bin/jiti +0 -1
  369. data/node_modules/.bin/js-yaml +0 -1
  370. data/node_modules/.bin/lefthook +0 -1
  371. data/node_modules/.bin/node-which +0 -1
  372. data/node_modules/.bin/semver +0 -1
  373. data/node_modules/.bin/uglifyjs +0 -1
  374. data/node_modules/.package-lock.json +0 -2010
  375. data/node_modules/@babel/code-frame/LICENSE +0 -22
  376. data/node_modules/@babel/code-frame/README.md +0 -19
  377. data/node_modules/@babel/code-frame/lib/index.js +0 -156
  378. data/node_modules/@babel/code-frame/lib/index.js.map +0 -1
  379. data/node_modules/@babel/code-frame/package.json +0 -30
  380. data/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
  381. data/node_modules/@babel/helper-validator-identifier/README.md +0 -19
  382. data/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
  383. data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  384. data/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
  385. data/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  386. data/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
  387. data/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  388. data/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  389. data/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
  390. data/node_modules/@babel/highlight/LICENSE +0 -22
  391. data/node_modules/@babel/highlight/README.md +0 -19
  392. data/node_modules/@babel/highlight/lib/index.js +0 -119
  393. data/node_modules/@babel/highlight/lib/index.js.map +0 -1
  394. data/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +0 -165
  395. data/node_modules/@babel/highlight/node_modules/ansi-styles/license +0 -9
  396. data/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +0 -56
  397. data/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +0 -147
  398. data/node_modules/@babel/highlight/node_modules/chalk/index.js +0 -228
  399. data/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +0 -93
  400. data/node_modules/@babel/highlight/node_modules/chalk/license +0 -9
  401. data/node_modules/@babel/highlight/node_modules/chalk/package.json +0 -71
  402. data/node_modules/@babel/highlight/node_modules/chalk/readme.md +0 -314
  403. data/node_modules/@babel/highlight/node_modules/chalk/templates.js +0 -128
  404. data/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +0 -97
  405. data/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +0 -54
  406. data/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +0 -21
  407. data/node_modules/@babel/highlight/node_modules/color-convert/README.md +0 -68
  408. data/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +0 -868
  409. data/node_modules/@babel/highlight/node_modules/color-convert/index.js +0 -78
  410. data/node_modules/@babel/highlight/node_modules/color-convert/package.json +0 -46
  411. data/node_modules/@babel/highlight/node_modules/color-convert/route.js +0 -97
  412. data/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +0 -43
  413. data/node_modules/@babel/highlight/node_modules/color-name/.npmignore +0 -107
  414. data/node_modules/@babel/highlight/node_modules/color-name/LICENSE +0 -8
  415. data/node_modules/@babel/highlight/node_modules/color-name/README.md +0 -11
  416. data/node_modules/@babel/highlight/node_modules/color-name/index.js +0 -152
  417. data/node_modules/@babel/highlight/node_modules/color-name/package.json +0 -25
  418. data/node_modules/@babel/highlight/node_modules/color-name/test.js +0 -7
  419. data/node_modules/@babel/highlight/package.json +0 -30
  420. data/node_modules/@commitlint/cli/README.md +0 -11
  421. data/node_modules/@commitlint/cli/cli.js +0 -2
  422. data/node_modules/@commitlint/cli/index.cjs +0 -3
  423. data/node_modules/@commitlint/cli/lib/cli-error.d.ts +0 -7
  424. data/node_modules/@commitlint/cli/lib/cli-error.d.ts.map +0 -1
  425. data/node_modules/@commitlint/cli/lib/cli-error.js +0 -12
  426. data/node_modules/@commitlint/cli/lib/cli-error.js.map +0 -1
  427. data/node_modules/@commitlint/cli/lib/cli.d.ts +0 -2
  428. data/node_modules/@commitlint/cli/lib/cli.d.ts.map +0 -1
  429. data/node_modules/@commitlint/cli/lib/cli.js +0 -386
  430. data/node_modules/@commitlint/cli/lib/cli.js.map +0 -1
  431. data/node_modules/@commitlint/cli/lib/types.d.ts +0 -26
  432. data/node_modules/@commitlint/cli/lib/types.d.ts.map +0 -1
  433. data/node_modules/@commitlint/cli/lib/types.js +0 -2
  434. data/node_modules/@commitlint/cli/lib/types.js.map +0 -1
  435. data/node_modules/@commitlint/cli/license.md +0 -21
  436. data/node_modules/@commitlint/cli/package.json +0 -60
  437. data/node_modules/@commitlint/config-conventional/README.md +0 -209
  438. data/node_modules/@commitlint/config-conventional/lib/index.d.ts +0 -111
  439. data/node_modules/@commitlint/config-conventional/lib/index.d.ts.map +0 -1
  440. data/node_modules/@commitlint/config-conventional/lib/index.js +0 -134
  441. data/node_modules/@commitlint/config-conventional/lib/index.js.map +0 -1
  442. data/node_modules/@commitlint/config-conventional/license.md +0 -21
  443. data/node_modules/@commitlint/config-conventional/package.json +0 -46
  444. data/node_modules/@commitlint/config-validator/lib/commitlint.schema.json +0 -105
  445. data/node_modules/@commitlint/config-validator/lib/formatErrors.d.ts +0 -9
  446. data/node_modules/@commitlint/config-validator/lib/formatErrors.d.ts.map +0 -1
  447. data/node_modules/@commitlint/config-validator/lib/formatErrors.js +0 -35
  448. data/node_modules/@commitlint/config-validator/lib/formatErrors.js.map +0 -1
  449. data/node_modules/@commitlint/config-validator/lib/validate.d.ts +0 -3
  450. data/node_modules/@commitlint/config-validator/lib/validate.d.ts.map +0 -1
  451. data/node_modules/@commitlint/config-validator/lib/validate.js +0 -39
  452. data/node_modules/@commitlint/config-validator/lib/validate.js.map +0 -1
  453. data/node_modules/@commitlint/config-validator/license.md +0 -21
  454. data/node_modules/@commitlint/config-validator/package.json +0 -46
  455. data/node_modules/@commitlint/ensure/lib/case.d.ts +0 -4
  456. data/node_modules/@commitlint/ensure/lib/case.d.ts.map +0 -1
  457. data/node_modules/@commitlint/ensure/lib/case.js +0 -15
  458. data/node_modules/@commitlint/ensure/lib/case.js.map +0 -1
  459. data/node_modules/@commitlint/ensure/lib/enum.d.ts +0 -3
  460. data/node_modules/@commitlint/ensure/lib/enum.d.ts.map +0 -1
  461. data/node_modules/@commitlint/ensure/lib/enum.js +0 -10
  462. data/node_modules/@commitlint/ensure/lib/enum.js.map +0 -1
  463. data/node_modules/@commitlint/ensure/lib/index.d.ts +0 -11
  464. data/node_modules/@commitlint/ensure/lib/index.d.ts.map +0 -1
  465. data/node_modules/@commitlint/ensure/lib/index.js +0 -11
  466. data/node_modules/@commitlint/ensure/lib/index.js.map +0 -1
  467. data/node_modules/@commitlint/ensure/lib/max-length.d.ts +0 -3
  468. data/node_modules/@commitlint/ensure/lib/max-length.d.ts.map +0 -1
  469. data/node_modules/@commitlint/ensure/lib/max-length.js +0 -2
  470. data/node_modules/@commitlint/ensure/lib/max-length.js.map +0 -1
  471. data/node_modules/@commitlint/ensure/lib/max-line-length.d.ts +0 -3
  472. data/node_modules/@commitlint/ensure/lib/max-line-length.d.ts.map +0 -1
  473. data/node_modules/@commitlint/ensure/lib/max-line-length.js +0 -4
  474. data/node_modules/@commitlint/ensure/lib/max-line-length.js.map +0 -1
  475. data/node_modules/@commitlint/ensure/lib/min-length.d.ts +0 -3
  476. data/node_modules/@commitlint/ensure/lib/min-length.d.ts.map +0 -1
  477. data/node_modules/@commitlint/ensure/lib/min-length.js +0 -2
  478. data/node_modules/@commitlint/ensure/lib/min-length.js.map +0 -1
  479. data/node_modules/@commitlint/ensure/lib/not-empty.d.ts +0 -3
  480. data/node_modules/@commitlint/ensure/lib/not-empty.d.ts.map +0 -1
  481. data/node_modules/@commitlint/ensure/lib/not-empty.js +0 -2
  482. data/node_modules/@commitlint/ensure/lib/not-empty.js.map +0 -1
  483. data/node_modules/@commitlint/ensure/lib/to-case.d.ts +0 -3
  484. data/node_modules/@commitlint/ensure/lib/to-case.d.ts.map +0 -1
  485. data/node_modules/@commitlint/ensure/lib/to-case.js +0 -32
  486. data/node_modules/@commitlint/ensure/lib/to-case.js.map +0 -1
  487. data/node_modules/@commitlint/ensure/license.md +0 -21
  488. data/node_modules/@commitlint/ensure/package.json +0 -56
  489. data/node_modules/@commitlint/execute-rule/lib/index.d.ts +0 -7
  490. data/node_modules/@commitlint/execute-rule/lib/index.d.ts.map +0 -1
  491. data/node_modules/@commitlint/execute-rule/lib/index.js +0 -13
  492. data/node_modules/@commitlint/execute-rule/lib/index.js.map +0 -1
  493. data/node_modules/@commitlint/execute-rule/license.md +0 -21
  494. data/node_modules/@commitlint/execute-rule/package.json +0 -42
  495. data/node_modules/@commitlint/format/README.md +0 -15
  496. data/node_modules/@commitlint/format/lib/format.d.ts +0 -5
  497. data/node_modules/@commitlint/format/lib/format.d.ts.map +0 -1
  498. data/node_modules/@commitlint/format/lib/format.js +0 -74
  499. data/node_modules/@commitlint/format/lib/format.js.map +0 -1
  500. data/node_modules/@commitlint/format/lib/index.d.ts +0 -3
  501. data/node_modules/@commitlint/format/lib/index.d.ts.map +0 -1
  502. data/node_modules/@commitlint/format/lib/index.js +0 -3
  503. data/node_modules/@commitlint/format/lib/index.js.map +0 -1
  504. data/node_modules/@commitlint/format/license.md +0 -21
  505. data/node_modules/@commitlint/format/package.json +0 -46
  506. data/node_modules/@commitlint/is-ignored/lib/defaults.d.ts +0 -3
  507. data/node_modules/@commitlint/is-ignored/lib/defaults.d.ts.map +0 -1
  508. data/node_modules/@commitlint/is-ignored/lib/defaults.js +0 -22
  509. data/node_modules/@commitlint/is-ignored/lib/defaults.js.map +0 -1
  510. data/node_modules/@commitlint/is-ignored/lib/index.d.ts +0 -3
  511. data/node_modules/@commitlint/is-ignored/lib/index.d.ts.map +0 -1
  512. data/node_modules/@commitlint/is-ignored/lib/index.js +0 -3
  513. data/node_modules/@commitlint/is-ignored/lib/index.js.map +0 -1
  514. data/node_modules/@commitlint/is-ignored/lib/is-ignored.d.ts +0 -3
  515. data/node_modules/@commitlint/is-ignored/lib/is-ignored.d.ts.map +0 -1
  516. data/node_modules/@commitlint/is-ignored/lib/is-ignored.js +0 -16
  517. data/node_modules/@commitlint/is-ignored/lib/is-ignored.js.map +0 -1
  518. data/node_modules/@commitlint/is-ignored/license.md +0 -21
  519. data/node_modules/@commitlint/is-ignored/package.json +0 -49
  520. data/node_modules/@commitlint/lint/README.md +0 -15
  521. data/node_modules/@commitlint/lint/lib/commit-message.d.ts +0 -7
  522. data/node_modules/@commitlint/lint/lib/commit-message.d.ts.map +0 -1
  523. data/node_modules/@commitlint/lint/lib/commit-message.js +0 -7
  524. data/node_modules/@commitlint/lint/lib/commit-message.js.map +0 -1
  525. data/node_modules/@commitlint/lint/lib/lint.d.ts +0 -3
  526. data/node_modules/@commitlint/lint/lib/lint.d.ts.map +0 -1
  527. data/node_modules/@commitlint/lint/lib/lint.js +0 -115
  528. data/node_modules/@commitlint/lint/lib/lint.js.map +0 -1
  529. data/node_modules/@commitlint/lint/license.md +0 -21
  530. data/node_modules/@commitlint/lint/package.json +0 -49
  531. data/node_modules/@commitlint/load/README.md +0 -15
  532. data/node_modules/@commitlint/load/lib/load.d.ts +0 -5
  533. data/node_modules/@commitlint/load/lib/load.d.ts.map +0 -1
  534. data/node_modules/@commitlint/load/lib/load.js +0 -97
  535. data/node_modules/@commitlint/load/lib/load.js.map +0 -1
  536. data/node_modules/@commitlint/load/lib/utils/load-config.d.ts +0 -9
  537. data/node_modules/@commitlint/load/lib/utils/load-config.d.ts.map +0 -1
  538. data/node_modules/@commitlint/load/lib/utils/load-config.js +0 -78
  539. data/node_modules/@commitlint/load/lib/utils/load-config.js.map +0 -1
  540. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts +0 -5
  541. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts.map +0 -1
  542. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.js +0 -56
  543. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.js.map +0 -1
  544. data/node_modules/@commitlint/load/lib/utils/load-plugin.d.ts +0 -3
  545. data/node_modules/@commitlint/load/lib/utils/load-plugin.d.ts.map +0 -1
  546. data/node_modules/@commitlint/load/lib/utils/load-plugin.js +0 -63
  547. data/node_modules/@commitlint/load/lib/utils/load-plugin.js.map +0 -1
  548. data/node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts +0 -13
  549. data/node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts.map +0 -1
  550. data/node_modules/@commitlint/load/lib/utils/plugin-errors.js +0 -21
  551. data/node_modules/@commitlint/load/lib/utils/plugin-errors.js.map +0 -1
  552. data/node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts +0 -20
  553. data/node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts.map +0 -1
  554. data/node_modules/@commitlint/load/lib/utils/plugin-naming.js +0 -80
  555. data/node_modules/@commitlint/load/lib/utils/plugin-naming.js.map +0 -1
  556. data/node_modules/@commitlint/load/license.md +0 -21
  557. data/node_modules/@commitlint/load/package.json +0 -60
  558. data/node_modules/@commitlint/message/lib/index.d.ts +0 -2
  559. data/node_modules/@commitlint/message/lib/index.d.ts.map +0 -1
  560. data/node_modules/@commitlint/message/lib/index.js +0 -4
  561. data/node_modules/@commitlint/message/lib/index.js.map +0 -1
  562. data/node_modules/@commitlint/message/license.md +0 -21
  563. data/node_modules/@commitlint/message/package.json +0 -43
  564. data/node_modules/@commitlint/parse/README.md +0 -29
  565. data/node_modules/@commitlint/parse/lib/index.d.ts +0 -5
  566. data/node_modules/@commitlint/parse/lib/index.d.ts.map +0 -1
  567. data/node_modules/@commitlint/parse/lib/index.js +0 -13
  568. data/node_modules/@commitlint/parse/lib/index.js.map +0 -1
  569. data/node_modules/@commitlint/parse/license.md +0 -21
  570. data/node_modules/@commitlint/parse/package.json +0 -49
  571. data/node_modules/@commitlint/read/README.md +0 -15
  572. data/node_modules/@commitlint/read/lib/get-edit-commit.d.ts +0 -2
  573. data/node_modules/@commitlint/read/lib/get-edit-commit.d.ts.map +0 -1
  574. data/node_modules/@commitlint/read/lib/get-edit-commit.js +0 -14
  575. data/node_modules/@commitlint/read/lib/get-edit-commit.js.map +0 -1
  576. data/node_modules/@commitlint/read/lib/get-edit-file-path.d.ts +0 -2
  577. data/node_modules/@commitlint/read/lib/get-edit-file-path.d.ts.map +0 -1
  578. data/node_modules/@commitlint/read/lib/get-edit-file-path.js +0 -19
  579. data/node_modules/@commitlint/read/lib/get-edit-file-path.js.map +0 -1
  580. data/node_modules/@commitlint/read/lib/get-history-commits.d.ts +0 -5
  581. data/node_modules/@commitlint/read/lib/get-history-commits.d.ts.map +0 -1
  582. data/node_modules/@commitlint/read/lib/get-history-commits.js +0 -7
  583. data/node_modules/@commitlint/read/lib/get-history-commits.js.map +0 -1
  584. data/node_modules/@commitlint/read/lib/read.d.ts +0 -12
  585. data/node_modules/@commitlint/read/lib/read.d.ts.map +0 -1
  586. data/node_modules/@commitlint/read/lib/read.js +0 -52
  587. data/node_modules/@commitlint/read/lib/read.js.map +0 -1
  588. data/node_modules/@commitlint/read/lib/stream-to-promise.d.ts +0 -3
  589. data/node_modules/@commitlint/read/lib/stream-to-promise.d.ts.map +0 -1
  590. data/node_modules/@commitlint/read/lib/stream-to-promise.js +0 -8
  591. data/node_modules/@commitlint/read/lib/stream-to-promise.js.map +0 -1
  592. data/node_modules/@commitlint/read/license.md +0 -21
  593. data/node_modules/@commitlint/read/package.json +0 -52
  594. data/node_modules/@commitlint/resolve-extends/lib/index.d.ts +0 -29
  595. data/node_modules/@commitlint/resolve-extends/lib/index.d.ts.map +0 -1
  596. data/node_modules/@commitlint/resolve-extends/lib/index.js +0 -182
  597. data/node_modules/@commitlint/resolve-extends/lib/index.js.map +0 -1
  598. data/node_modules/@commitlint/resolve-extends/license.md +0 -21
  599. data/node_modules/@commitlint/resolve-extends/package.json +0 -51
  600. data/node_modules/@commitlint/rules/lib/body-case.d.ts +0 -3
  601. data/node_modules/@commitlint/rules/lib/body-case.d.ts.map +0 -1
  602. data/node_modules/@commitlint/rules/lib/body-case.js +0 -28
  603. data/node_modules/@commitlint/rules/lib/body-case.js.map +0 -1
  604. data/node_modules/@commitlint/rules/lib/body-empty.d.ts +0 -3
  605. data/node_modules/@commitlint/rules/lib/body-empty.d.ts.map +0 -1
  606. data/node_modules/@commitlint/rules/lib/body-empty.js +0 -11
  607. data/node_modules/@commitlint/rules/lib/body-empty.js.map +0 -1
  608. data/node_modules/@commitlint/rules/lib/body-full-stop.d.ts +0 -3
  609. data/node_modules/@commitlint/rules/lib/body-full-stop.d.ts.map +0 -1
  610. data/node_modules/@commitlint/rules/lib/body-full-stop.js +0 -14
  611. data/node_modules/@commitlint/rules/lib/body-full-stop.js.map +0 -1
  612. data/node_modules/@commitlint/rules/lib/body-leading-blank.d.ts +0 -3
  613. data/node_modules/@commitlint/rules/lib/body-leading-blank.d.ts.map +0 -1
  614. data/node_modules/@commitlint/rules/lib/body-leading-blank.js +0 -17
  615. data/node_modules/@commitlint/rules/lib/body-leading-blank.js.map +0 -1
  616. data/node_modules/@commitlint/rules/lib/body-max-length.d.ts +0 -3
  617. data/node_modules/@commitlint/rules/lib/body-max-length.d.ts.map +0 -1
  618. data/node_modules/@commitlint/rules/lib/body-max-length.js +0 -12
  619. data/node_modules/@commitlint/rules/lib/body-max-length.js.map +0 -1
  620. data/node_modules/@commitlint/rules/lib/body-max-line-length.d.ts +0 -3
  621. data/node_modules/@commitlint/rules/lib/body-max-line-length.d.ts.map +0 -1
  622. data/node_modules/@commitlint/rules/lib/body-max-line-length.js +0 -12
  623. data/node_modules/@commitlint/rules/lib/body-max-line-length.js.map +0 -1
  624. data/node_modules/@commitlint/rules/lib/body-min-length.d.ts +0 -3
  625. data/node_modules/@commitlint/rules/lib/body-min-length.d.ts.map +0 -1
  626. data/node_modules/@commitlint/rules/lib/body-min-length.js +0 -11
  627. data/node_modules/@commitlint/rules/lib/body-min-length.js.map +0 -1
  628. data/node_modules/@commitlint/rules/lib/footer-empty.d.ts +0 -3
  629. data/node_modules/@commitlint/rules/lib/footer-empty.d.ts.map +0 -1
  630. data/node_modules/@commitlint/rules/lib/footer-empty.js +0 -11
  631. data/node_modules/@commitlint/rules/lib/footer-empty.js.map +0 -1
  632. data/node_modules/@commitlint/rules/lib/footer-leading-blank.d.ts +0 -3
  633. data/node_modules/@commitlint/rules/lib/footer-leading-blank.d.ts.map +0 -1
  634. data/node_modules/@commitlint/rules/lib/footer-leading-blank.js +0 -24
  635. data/node_modules/@commitlint/rules/lib/footer-leading-blank.js.map +0 -1
  636. data/node_modules/@commitlint/rules/lib/footer-max-length.d.ts +0 -3
  637. data/node_modules/@commitlint/rules/lib/footer-max-length.d.ts.map +0 -1
  638. data/node_modules/@commitlint/rules/lib/footer-max-length.js +0 -12
  639. data/node_modules/@commitlint/rules/lib/footer-max-length.js.map +0 -1
  640. data/node_modules/@commitlint/rules/lib/footer-max-line-length.d.ts +0 -3
  641. data/node_modules/@commitlint/rules/lib/footer-max-line-length.d.ts.map +0 -1
  642. data/node_modules/@commitlint/rules/lib/footer-max-line-length.js +0 -12
  643. data/node_modules/@commitlint/rules/lib/footer-max-line-length.js.map +0 -1
  644. data/node_modules/@commitlint/rules/lib/footer-min-length.d.ts +0 -3
  645. data/node_modules/@commitlint/rules/lib/footer-min-length.d.ts.map +0 -1
  646. data/node_modules/@commitlint/rules/lib/footer-min-length.js +0 -11
  647. data/node_modules/@commitlint/rules/lib/footer-min-length.js.map +0 -1
  648. data/node_modules/@commitlint/rules/lib/header-case.d.ts +0 -3
  649. data/node_modules/@commitlint/rules/lib/header-case.d.ts.map +0 -1
  650. data/node_modules/@commitlint/rules/lib/header-case.js +0 -28
  651. data/node_modules/@commitlint/rules/lib/header-case.js.map +0 -1
  652. data/node_modules/@commitlint/rules/lib/header-full-stop.d.ts +0 -3
  653. data/node_modules/@commitlint/rules/lib/header-full-stop.d.ts.map +0 -1
  654. data/node_modules/@commitlint/rules/lib/header-full-stop.js +0 -11
  655. data/node_modules/@commitlint/rules/lib/header-full-stop.js.map +0 -1
  656. data/node_modules/@commitlint/rules/lib/header-max-length.d.ts +0 -3
  657. data/node_modules/@commitlint/rules/lib/header-max-length.d.ts.map +0 -1
  658. data/node_modules/@commitlint/rules/lib/header-max-length.js +0 -8
  659. data/node_modules/@commitlint/rules/lib/header-max-length.js.map +0 -1
  660. data/node_modules/@commitlint/rules/lib/header-min-length.d.ts +0 -3
  661. data/node_modules/@commitlint/rules/lib/header-min-length.d.ts.map +0 -1
  662. data/node_modules/@commitlint/rules/lib/header-min-length.js +0 -8
  663. data/node_modules/@commitlint/rules/lib/header-min-length.js.map +0 -1
  664. data/node_modules/@commitlint/rules/lib/header-trim.d.ts +0 -3
  665. data/node_modules/@commitlint/rules/lib/header-trim.d.ts.map +0 -1
  666. data/node_modules/@commitlint/rules/lib/header-trim.js +0 -23
  667. data/node_modules/@commitlint/rules/lib/header-trim.js.map +0 -1
  668. data/node_modules/@commitlint/rules/lib/index.d.ts +0 -40
  669. data/node_modules/@commitlint/rules/lib/index.d.ts.map +0 -1
  670. data/node_modules/@commitlint/rules/lib/index.js +0 -75
  671. data/node_modules/@commitlint/rules/lib/index.js.map +0 -1
  672. data/node_modules/@commitlint/rules/lib/references-empty.d.ts +0 -3
  673. data/node_modules/@commitlint/rules/lib/references-empty.d.ts.map +0 -1
  674. data/node_modules/@commitlint/rules/lib/references-empty.js +0 -10
  675. data/node_modules/@commitlint/rules/lib/references-empty.js.map +0 -1
  676. data/node_modules/@commitlint/rules/lib/scope-case.d.ts +0 -3
  677. data/node_modules/@commitlint/rules/lib/scope-case.d.ts.map +0 -1
  678. data/node_modules/@commitlint/rules/lib/scope-case.js +0 -32
  679. data/node_modules/@commitlint/rules/lib/scope-case.js.map +0 -1
  680. data/node_modules/@commitlint/rules/lib/scope-empty.d.ts +0 -3
  681. data/node_modules/@commitlint/rules/lib/scope-empty.d.ts.map +0 -1
  682. data/node_modules/@commitlint/rules/lib/scope-empty.js +0 -11
  683. data/node_modules/@commitlint/rules/lib/scope-empty.js.map +0 -1
  684. data/node_modules/@commitlint/rules/lib/scope-enum.d.ts +0 -3
  685. data/node_modules/@commitlint/rules/lib/scope-enum.d.ts.map +0 -1
  686. data/node_modules/@commitlint/rules/lib/scope-enum.js +0 -23
  687. data/node_modules/@commitlint/rules/lib/scope-enum.js.map +0 -1
  688. data/node_modules/@commitlint/rules/lib/scope-max-length.d.ts +0 -3
  689. data/node_modules/@commitlint/rules/lib/scope-max-length.d.ts.map +0 -1
  690. data/node_modules/@commitlint/rules/lib/scope-max-length.js +0 -12
  691. data/node_modules/@commitlint/rules/lib/scope-max-length.js.map +0 -1
  692. data/node_modules/@commitlint/rules/lib/scope-min-length.d.ts +0 -3
  693. data/node_modules/@commitlint/rules/lib/scope-min-length.d.ts.map +0 -1
  694. data/node_modules/@commitlint/rules/lib/scope-min-length.js +0 -12
  695. data/node_modules/@commitlint/rules/lib/scope-min-length.js.map +0 -1
  696. data/node_modules/@commitlint/rules/lib/signed-off-by.d.ts +0 -3
  697. data/node_modules/@commitlint/rules/lib/signed-off-by.d.ts.map +0 -1
  698. data/node_modules/@commitlint/rules/lib/signed-off-by.js +0 -19
  699. data/node_modules/@commitlint/rules/lib/signed-off-by.js.map +0 -1
  700. data/node_modules/@commitlint/rules/lib/subject-case.d.ts +0 -3
  701. data/node_modules/@commitlint/rules/lib/subject-case.d.ts.map +0 -1
  702. data/node_modules/@commitlint/rules/lib/subject-case.js +0 -44
  703. data/node_modules/@commitlint/rules/lib/subject-case.js.map +0 -1
  704. data/node_modules/@commitlint/rules/lib/subject-empty.d.ts +0 -3
  705. data/node_modules/@commitlint/rules/lib/subject-empty.d.ts.map +0 -1
  706. data/node_modules/@commitlint/rules/lib/subject-empty.js +0 -11
  707. data/node_modules/@commitlint/rules/lib/subject-empty.js.map +0 -1
  708. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.d.ts +0 -3
  709. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.d.ts.map +0 -1
  710. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.js +0 -18
  711. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.js.map +0 -1
  712. data/node_modules/@commitlint/rules/lib/subject-full-stop.d.ts +0 -3
  713. data/node_modules/@commitlint/rules/lib/subject-full-stop.d.ts.map +0 -1
  714. data/node_modules/@commitlint/rules/lib/subject-full-stop.js +0 -18
  715. data/node_modules/@commitlint/rules/lib/subject-full-stop.js.map +0 -1
  716. data/node_modules/@commitlint/rules/lib/subject-max-length.d.ts +0 -3
  717. data/node_modules/@commitlint/rules/lib/subject-max-length.d.ts.map +0 -1
  718. data/node_modules/@commitlint/rules/lib/subject-max-length.js +0 -12
  719. data/node_modules/@commitlint/rules/lib/subject-max-length.js.map +0 -1
  720. data/node_modules/@commitlint/rules/lib/subject-min-length.d.ts +0 -3
  721. data/node_modules/@commitlint/rules/lib/subject-min-length.d.ts.map +0 -1
  722. data/node_modules/@commitlint/rules/lib/subject-min-length.js +0 -12
  723. data/node_modules/@commitlint/rules/lib/subject-min-length.js.map +0 -1
  724. data/node_modules/@commitlint/rules/lib/trailer-exists.d.ts +0 -3
  725. data/node_modules/@commitlint/rules/lib/trailer-exists.d.ts.map +0 -1
  726. data/node_modules/@commitlint/rules/lib/trailer-exists.js +0 -20
  727. data/node_modules/@commitlint/rules/lib/trailer-exists.js.map +0 -1
  728. data/node_modules/@commitlint/rules/lib/type-case.d.ts +0 -3
  729. data/node_modules/@commitlint/rules/lib/type-case.d.ts.map +0 -1
  730. data/node_modules/@commitlint/rules/lib/type-case.js +0 -28
  731. data/node_modules/@commitlint/rules/lib/type-case.js.map +0 -1
  732. data/node_modules/@commitlint/rules/lib/type-empty.d.ts +0 -3
  733. data/node_modules/@commitlint/rules/lib/type-empty.d.ts.map +0 -1
  734. data/node_modules/@commitlint/rules/lib/type-empty.js +0 -11
  735. data/node_modules/@commitlint/rules/lib/type-empty.js.map +0 -1
  736. data/node_modules/@commitlint/rules/lib/type-enum.d.ts +0 -3
  737. data/node_modules/@commitlint/rules/lib/type-enum.d.ts.map +0 -1
  738. data/node_modules/@commitlint/rules/lib/type-enum.js +0 -19
  739. data/node_modules/@commitlint/rules/lib/type-enum.js.map +0 -1
  740. data/node_modules/@commitlint/rules/lib/type-max-length.d.ts +0 -3
  741. data/node_modules/@commitlint/rules/lib/type-max-length.d.ts.map +0 -1
  742. data/node_modules/@commitlint/rules/lib/type-max-length.js +0 -12
  743. data/node_modules/@commitlint/rules/lib/type-max-length.js.map +0 -1
  744. data/node_modules/@commitlint/rules/lib/type-min-length.d.ts +0 -3
  745. data/node_modules/@commitlint/rules/lib/type-min-length.d.ts.map +0 -1
  746. data/node_modules/@commitlint/rules/lib/type-min-length.js +0 -12
  747. data/node_modules/@commitlint/rules/lib/type-min-length.js.map +0 -1
  748. data/node_modules/@commitlint/rules/license.md +0 -21
  749. data/node_modules/@commitlint/rules/package.json +0 -53
  750. data/node_modules/@commitlint/to-lines/lib/index.d.ts +0 -2
  751. data/node_modules/@commitlint/to-lines/lib/index.d.ts.map +0 -1
  752. data/node_modules/@commitlint/to-lines/lib/index.js +0 -7
  753. data/node_modules/@commitlint/to-lines/lib/index.js.map +0 -1
  754. data/node_modules/@commitlint/to-lines/license.md +0 -21
  755. data/node_modules/@commitlint/to-lines/package.json +0 -42
  756. data/node_modules/@commitlint/top-level/lib/index.d.ts +0 -6
  757. data/node_modules/@commitlint/top-level/lib/index.d.ts.map +0 -1
  758. data/node_modules/@commitlint/top-level/lib/index.js +0 -22
  759. data/node_modules/@commitlint/top-level/lib/index.js.map +0 -1
  760. data/node_modules/@commitlint/top-level/license.md +0 -21
  761. data/node_modules/@commitlint/top-level/package.json +0 -45
  762. data/node_modules/@commitlint/types/lib/ensure.d.ts +0 -2
  763. data/node_modules/@commitlint/types/lib/ensure.d.ts.map +0 -1
  764. data/node_modules/@commitlint/types/lib/ensure.js +0 -2
  765. data/node_modules/@commitlint/types/lib/ensure.js.map +0 -1
  766. data/node_modules/@commitlint/types/lib/format.d.ts +0 -28
  767. data/node_modules/@commitlint/types/lib/format.d.ts.map +0 -1
  768. data/node_modules/@commitlint/types/lib/format.js +0 -2
  769. data/node_modules/@commitlint/types/lib/format.js.map +0 -1
  770. data/node_modules/@commitlint/types/lib/index.d.ts +0 -9
  771. data/node_modules/@commitlint/types/lib/index.d.ts.map +0 -1
  772. data/node_modules/@commitlint/types/lib/index.js +0 -9
  773. data/node_modules/@commitlint/types/lib/index.js.map +0 -1
  774. data/node_modules/@commitlint/types/lib/is-ignored.d.ts +0 -6
  775. data/node_modules/@commitlint/types/lib/is-ignored.d.ts.map +0 -1
  776. data/node_modules/@commitlint/types/lib/is-ignored.js +0 -2
  777. data/node_modules/@commitlint/types/lib/is-ignored.js.map +0 -1
  778. data/node_modules/@commitlint/types/lib/lint.d.ts +0 -36
  779. data/node_modules/@commitlint/types/lib/lint.d.ts.map +0 -1
  780. data/node_modules/@commitlint/types/lib/lint.js +0 -2
  781. data/node_modules/@commitlint/types/lib/lint.js.map +0 -1
  782. data/node_modules/@commitlint/types/lib/load.d.ts +0 -42
  783. data/node_modules/@commitlint/types/lib/load.d.ts.map +0 -1
  784. data/node_modules/@commitlint/types/lib/load.js +0 -2
  785. data/node_modules/@commitlint/types/lib/load.js.map +0 -1
  786. data/node_modules/@commitlint/types/lib/parse.d.ts +0 -3
  787. data/node_modules/@commitlint/types/lib/parse.d.ts.map +0 -1
  788. data/node_modules/@commitlint/types/lib/parse.js +0 -2
  789. data/node_modules/@commitlint/types/lib/parse.js.map +0 -1
  790. data/node_modules/@commitlint/types/lib/prompt.d.ts +0 -39
  791. data/node_modules/@commitlint/types/lib/prompt.d.ts.map +0 -1
  792. data/node_modules/@commitlint/types/lib/prompt.js +0 -2
  793. data/node_modules/@commitlint/types/lib/prompt.js.map +0 -1
  794. data/node_modules/@commitlint/types/lib/rules.d.ts +0 -85
  795. data/node_modules/@commitlint/types/lib/rules.d.ts.map +0 -1
  796. data/node_modules/@commitlint/types/lib/rules.js +0 -19
  797. data/node_modules/@commitlint/types/lib/rules.js.map +0 -1
  798. data/node_modules/@commitlint/types/license.md +0 -21
  799. data/node_modules/@commitlint/types/package.json +0 -39
  800. data/node_modules/@hutson/parse-repository-url/license.md +0 -202
  801. data/node_modules/@hutson/parse-repository-url/package.json +0 -62
  802. data/node_modules/@hutson/parse-repository-url/readme.md +0 -130
  803. data/node_modules/@hutson/parse-repository-url/src/index.js +0 -62
  804. data/node_modules/@types/conventional-commits-parser/LICENSE +0 -21
  805. data/node_modules/@types/conventional-commits-parser/README.md +0 -15
  806. data/node_modules/@types/conventional-commits-parser/index.d.ts +0 -305
  807. data/node_modules/@types/conventional-commits-parser/package.json +0 -34
  808. data/node_modules/@types/conventional-commits-parser/ts4.9/index.d.ts +0 -305
  809. data/node_modules/@types/node/LICENSE +0 -21
  810. data/node_modules/@types/node/README.md +0 -15
  811. data/node_modules/@types/node/assert/strict.d.ts +0 -8
  812. data/node_modules/@types/node/assert.d.ts +0 -1040
  813. data/node_modules/@types/node/async_hooks.d.ts +0 -541
  814. data/node_modules/@types/node/buffer.d.ts +0 -2293
  815. data/node_modules/@types/node/child_process.d.ts +0 -1544
  816. data/node_modules/@types/node/cluster.d.ts +0 -578
  817. data/node_modules/@types/node/console.d.ts +0 -452
  818. data/node_modules/@types/node/constants.d.ts +0 -19
  819. data/node_modules/@types/node/crypto.d.ts +0 -4451
  820. data/node_modules/@types/node/dgram.d.ts +0 -596
  821. data/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  822. data/node_modules/@types/node/dns/promises.d.ts +0 -476
  823. data/node_modules/@types/node/dns.d.ts +0 -865
  824. data/node_modules/@types/node/dom-events.d.ts +0 -124
  825. data/node_modules/@types/node/domain.d.ts +0 -170
  826. data/node_modules/@types/node/events.d.ts +0 -931
  827. data/node_modules/@types/node/fs/promises.d.ts +0 -1264
  828. data/node_modules/@types/node/fs.d.ts +0 -4390
  829. data/node_modules/@types/node/globals.d.ts +0 -510
  830. data/node_modules/@types/node/globals.global.d.ts +0 -1
  831. data/node_modules/@types/node/http.d.ts +0 -1921
  832. data/node_modules/@types/node/http2.d.ts +0 -2418
  833. data/node_modules/@types/node/https.d.ts +0 -550
  834. data/node_modules/@types/node/index.d.ts +0 -90
  835. data/node_modules/@types/node/inspector.d.ts +0 -3696
  836. data/node_modules/@types/node/module.d.ts +0 -301
  837. data/node_modules/@types/node/net.d.ts +0 -999
  838. data/node_modules/@types/node/os.d.ts +0 -495
  839. data/node_modules/@types/node/package.json +0 -217
  840. data/node_modules/@types/node/path.d.ts +0 -200
  841. data/node_modules/@types/node/perf_hooks.d.ts +0 -941
  842. data/node_modules/@types/node/process.d.ts +0 -1912
  843. data/node_modules/@types/node/punycode.d.ts +0 -117
  844. data/node_modules/@types/node/querystring.d.ts +0 -153
  845. data/node_modules/@types/node/readline/promises.d.ts +0 -150
  846. data/node_modules/@types/node/readline.d.ts +0 -540
  847. data/node_modules/@types/node/repl.d.ts +0 -430
  848. data/node_modules/@types/node/sea.d.ts +0 -153
  849. data/node_modules/@types/node/sqlite.d.ts +0 -213
  850. data/node_modules/@types/node/stream/consumers.d.ts +0 -12
  851. data/node_modules/@types/node/stream/promises.d.ts +0 -83
  852. data/node_modules/@types/node/stream/web.d.ts +0 -367
  853. data/node_modules/@types/node/stream.d.ts +0 -1707
  854. data/node_modules/@types/node/string_decoder.d.ts +0 -67
  855. data/node_modules/@types/node/test.d.ts +0 -2006
  856. data/node_modules/@types/node/timers/promises.d.ts +0 -97
  857. data/node_modules/@types/node/timers.d.ts +0 -240
  858. data/node_modules/@types/node/tls.d.ts +0 -1220
  859. data/node_modules/@types/node/trace_events.d.ts +0 -197
  860. data/node_modules/@types/node/tty.d.ts +0 -208
  861. data/node_modules/@types/node/url.d.ts +0 -969
  862. data/node_modules/@types/node/util.d.ts +0 -2298
  863. data/node_modules/@types/node/v8.d.ts +0 -808
  864. data/node_modules/@types/node/vm.d.ts +0 -922
  865. data/node_modules/@types/node/wasi.d.ts +0 -181
  866. data/node_modules/@types/node/worker_threads.d.ts +0 -712
  867. data/node_modules/@types/node/zlib.d.ts +0 -539
  868. data/node_modules/@types/normalize-package-data/LICENSE +0 -21
  869. data/node_modules/@types/normalize-package-data/README.md +0 -62
  870. data/node_modules/@types/normalize-package-data/index.d.ts +0 -43
  871. data/node_modules/@types/normalize-package-data/package.json +0 -25
  872. data/node_modules/@types/semver/LICENSE +0 -21
  873. data/node_modules/@types/semver/README.md +0 -15
  874. data/node_modules/@types/semver/classes/comparator.d.ts +0 -17
  875. data/node_modules/@types/semver/classes/range.d.ts +0 -21
  876. data/node_modules/@types/semver/classes/semver.d.ts +0 -64
  877. data/node_modules/@types/semver/functions/clean.d.ts +0 -8
  878. data/node_modules/@types/semver/functions/cmp.d.ts +0 -16
  879. data/node_modules/@types/semver/functions/coerce.d.ts +0 -12
  880. data/node_modules/@types/semver/functions/compare-build.d.ts +0 -21
  881. data/node_modules/@types/semver/functions/compare-loose.d.ts +0 -5
  882. data/node_modules/@types/semver/functions/compare.d.ts +0 -20
  883. data/node_modules/@types/semver/functions/diff.d.ts +0 -9
  884. data/node_modules/@types/semver/functions/eq.d.ts +0 -9
  885. data/node_modules/@types/semver/functions/gt.d.ts +0 -9
  886. data/node_modules/@types/semver/functions/gte.d.ts +0 -9
  887. data/node_modules/@types/semver/functions/inc.d.ts +0 -25
  888. data/node_modules/@types/semver/functions/lt.d.ts +0 -9
  889. data/node_modules/@types/semver/functions/lte.d.ts +0 -8
  890. data/node_modules/@types/semver/functions/major.d.ts +0 -9
  891. data/node_modules/@types/semver/functions/minor.d.ts +0 -9
  892. data/node_modules/@types/semver/functions/neq.d.ts +0 -9
  893. data/node_modules/@types/semver/functions/parse.d.ts +0 -12
  894. data/node_modules/@types/semver/functions/patch.d.ts +0 -9
  895. data/node_modules/@types/semver/functions/prerelease.d.ts +0 -12
  896. data/node_modules/@types/semver/functions/rcompare.d.ts +0 -15
  897. data/node_modules/@types/semver/functions/rsort.d.ts +0 -9
  898. data/node_modules/@types/semver/functions/satisfies.d.ts +0 -14
  899. data/node_modules/@types/semver/functions/sort.d.ts +0 -9
  900. data/node_modules/@types/semver/functions/valid.d.ts +0 -11
  901. data/node_modules/@types/semver/index.d.ts +0 -129
  902. data/node_modules/@types/semver/internals/identifiers.d.ts +0 -13
  903. data/node_modules/@types/semver/package.json +0 -50
  904. data/node_modules/@types/semver/preload.d.ts +0 -2
  905. data/node_modules/@types/semver/ranges/gtr.d.ts +0 -14
  906. data/node_modules/@types/semver/ranges/intersects.d.ts +0 -13
  907. data/node_modules/@types/semver/ranges/ltr.d.ts +0 -14
  908. data/node_modules/@types/semver/ranges/max-satisfying.d.ts +0 -14
  909. data/node_modules/@types/semver/ranges/min-satisfying.d.ts +0 -14
  910. data/node_modules/@types/semver/ranges/min-version.d.ts +0 -10
  911. data/node_modules/@types/semver/ranges/outside.d.ts +0 -15
  912. data/node_modules/@types/semver/ranges/simplify.d.ts +0 -14
  913. data/node_modules/@types/semver/ranges/subset.d.ts +0 -9
  914. data/node_modules/@types/semver/ranges/to-comparators.d.ts +0 -9
  915. data/node_modules/@types/semver/ranges/valid.d.ts +0 -12
  916. data/node_modules/JSONStream/.travis.yml +0 -8
  917. data/node_modules/JSONStream/LICENSE.APACHE2 +0 -15
  918. data/node_modules/JSONStream/LICENSE.MIT +0 -24
  919. data/node_modules/JSONStream/bin.js +0 -12
  920. data/node_modules/JSONStream/examples/all_docs.js +0 -13
  921. data/node_modules/JSONStream/index.js +0 -247
  922. data/node_modules/JSONStream/package.json +0 -40
  923. data/node_modules/JSONStream/readme.markdown +0 -207
  924. data/node_modules/JSONStream/test/bool.js +0 -41
  925. data/node_modules/JSONStream/test/browser.js +0 -18
  926. data/node_modules/JSONStream/test/destroy_missing.js +0 -27
  927. data/node_modules/JSONStream/test/doubledot1.js +0 -29
  928. data/node_modules/JSONStream/test/doubledot2.js +0 -30
  929. data/node_modules/JSONStream/test/empty.js +0 -44
  930. data/node_modules/JSONStream/test/error_contents.js +0 -45
  931. data/node_modules/JSONStream/test/fixtures/all_npm.json +0 -4030
  932. data/node_modules/JSONStream/test/fixtures/couch_sample.json +0 -18
  933. data/node_modules/JSONStream/test/fixtures/depth.json +0 -15
  934. data/node_modules/JSONStream/test/fixtures/error.json +0 -1
  935. data/node_modules/JSONStream/test/fixtures/header_footer.json +0 -19
  936. data/node_modules/JSONStream/test/fn.js +0 -39
  937. data/node_modules/JSONStream/test/gen.js +0 -135
  938. data/node_modules/JSONStream/test/header_footer.js +0 -55
  939. data/node_modules/JSONStream/test/issues.js +0 -34
  940. data/node_modules/JSONStream/test/keys.js +0 -105
  941. data/node_modules/JSONStream/test/map.js +0 -40
  942. data/node_modules/JSONStream/test/multiple_objects.js +0 -36
  943. data/node_modules/JSONStream/test/multiple_objects_error.js +0 -29
  944. data/node_modules/JSONStream/test/null.js +0 -28
  945. data/node_modules/JSONStream/test/parsejson.js +0 -29
  946. data/node_modules/JSONStream/test/run.js +0 -13
  947. data/node_modules/JSONStream/test/stringify.js +0 -41
  948. data/node_modules/JSONStream/test/stringify_object.js +0 -47
  949. data/node_modules/JSONStream/test/test.js +0 -35
  950. data/node_modules/JSONStream/test/test2.js +0 -29
  951. data/node_modules/JSONStream/test/two-ways.js +0 -41
  952. data/node_modules/add-stream/.jshintrc +0 -25
  953. data/node_modules/add-stream/.npmignore +0 -7
  954. data/node_modules/add-stream/.travis.yml +0 -4
  955. data/node_modules/add-stream/README.md +0 -38
  956. data/node_modules/add-stream/index.js +0 -56
  957. data/node_modules/add-stream/package.json +0 -34
  958. data/node_modules/add-stream/test/spec.js +0 -64
  959. data/node_modules/ajv/.runkit_example.js +0 -23
  960. data/node_modules/ajv/LICENSE +0 -22
  961. data/node_modules/ajv/README.md +0 -207
  962. data/node_modules/ajv/dist/2019.d.ts +0 -19
  963. data/node_modules/ajv/dist/2019.js +0 -61
  964. data/node_modules/ajv/dist/2019.js.map +0 -1
  965. data/node_modules/ajv/dist/2020.d.ts +0 -19
  966. data/node_modules/ajv/dist/2020.js +0 -55
  967. data/node_modules/ajv/dist/2020.js.map +0 -1
  968. data/node_modules/ajv/dist/ajv.d.ts +0 -18
  969. data/node_modules/ajv/dist/ajv.js +0 -50
  970. data/node_modules/ajv/dist/ajv.js.map +0 -1
  971. data/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  972. data/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  973. data/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  974. data/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  975. data/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  976. data/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  977. data/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  978. data/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  979. data/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  980. data/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  981. data/node_modules/ajv/dist/compile/errors.js +0 -123
  982. data/node_modules/ajv/dist/compile/errors.js.map +0 -1
  983. data/node_modules/ajv/dist/compile/index.d.ts +0 -80
  984. data/node_modules/ajv/dist/compile/index.js +0 -242
  985. data/node_modules/ajv/dist/compile/index.js.map +0 -1
  986. data/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  987. data/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  988. data/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  989. data/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  990. data/node_modules/ajv/dist/compile/jtd/serialize.js +0 -229
  991. data/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  992. data/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  993. data/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  994. data/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  995. data/node_modules/ajv/dist/compile/names.d.ts +0 -20
  996. data/node_modules/ajv/dist/compile/names.js +0 -28
  997. data/node_modules/ajv/dist/compile/names.js.map +0 -1
  998. data/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  999. data/node_modules/ajv/dist/compile/ref_error.js +0 -12
  1000. data/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  1001. data/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  1002. data/node_modules/ajv/dist/compile/resolve.js +0 -155
  1003. data/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  1004. data/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  1005. data/node_modules/ajv/dist/compile/rules.js +0 -26
  1006. data/node_modules/ajv/dist/compile/rules.js.map +0 -1
  1007. data/node_modules/ajv/dist/compile/util.d.ts +0 -40
  1008. data/node_modules/ajv/dist/compile/util.js +0 -178
  1009. data/node_modules/ajv/dist/compile/util.js.map +0 -1
  1010. data/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  1011. data/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  1012. data/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  1013. data/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  1014. data/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  1015. data/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  1016. data/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  1017. data/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  1018. data/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  1019. data/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  1020. data/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  1021. data/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  1022. data/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  1023. data/node_modules/ajv/dist/compile/validate/index.js +0 -520
  1024. data/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  1025. data/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  1026. data/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  1027. data/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  1028. data/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  1029. data/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  1030. data/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  1031. data/node_modules/ajv/dist/core.d.ts +0 -173
  1032. data/node_modules/ajv/dist/core.js +0 -618
  1033. data/node_modules/ajv/dist/core.js.map +0 -1
  1034. data/node_modules/ajv/dist/jtd.d.ts +0 -47
  1035. data/node_modules/ajv/dist/jtd.js +0 -72
  1036. data/node_modules/ajv/dist/jtd.js.map +0 -1
  1037. data/node_modules/ajv/dist/refs/data.json +0 -13
  1038. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  1039. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  1040. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  1041. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  1042. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  1043. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  1044. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  1045. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  1046. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  1047. data/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  1048. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  1049. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  1050. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  1051. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  1052. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  1053. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  1054. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  1055. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  1056. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  1057. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  1058. data/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  1059. data/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  1060. data/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  1061. data/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  1062. data/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  1063. data/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  1064. data/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  1065. data/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  1066. data/node_modules/ajv/dist/runtime/equal.js +0 -7
  1067. data/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  1068. data/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  1069. data/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  1070. data/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  1071. data/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  1072. data/node_modules/ajv/dist/runtime/quote.js +0 -30
  1073. data/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  1074. data/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  1075. data/node_modules/ajv/dist/runtime/re2.js +0 -6
  1076. data/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  1077. data/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  1078. data/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  1079. data/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  1080. data/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  1081. data/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  1082. data/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  1083. data/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  1084. data/node_modules/ajv/dist/runtime/uri.js +0 -6
  1085. data/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  1086. data/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  1087. data/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  1088. data/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  1089. data/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  1090. data/node_modules/ajv/dist/standalone/index.js +0 -90
  1091. data/node_modules/ajv/dist/standalone/index.js.map +0 -1
  1092. data/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  1093. data/node_modules/ajv/dist/standalone/instance.js +0 -35
  1094. data/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  1095. data/node_modules/ajv/dist/types/index.d.ts +0 -183
  1096. data/node_modules/ajv/dist/types/index.js +0 -3
  1097. data/node_modules/ajv/dist/types/index.js.map +0 -1
  1098. data/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  1099. data/node_modules/ajv/dist/types/json-schema.js +0 -3
  1100. data/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  1101. data/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  1102. data/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  1103. data/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  1104. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  1105. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  1106. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  1107. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  1108. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  1109. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  1110. data/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  1111. data/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  1112. data/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  1113. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  1114. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  1115. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  1116. data/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  1117. data/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  1118. data/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  1119. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  1120. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  1121. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  1122. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  1123. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  1124. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  1125. data/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  1126. data/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  1127. data/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  1128. data/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  1129. data/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  1130. data/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  1131. data/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  1132. data/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  1133. data/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  1134. data/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  1135. data/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  1136. data/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  1137. data/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  1138. data/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  1139. data/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  1140. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  1141. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  1142. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  1143. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  1144. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  1145. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  1146. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  1147. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  1148. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  1149. data/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  1150. data/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  1151. data/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  1152. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  1153. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  1154. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  1155. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  1156. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  1157. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  1158. data/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  1159. data/node_modules/ajv/dist/vocabularies/code.js +0 -131
  1160. data/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  1161. data/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  1162. data/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  1163. data/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  1164. data/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  1165. data/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  1166. data/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  1167. data/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  1168. data/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  1169. data/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  1170. data/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  1171. data/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  1172. data/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  1173. data/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  1174. data/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  1175. data/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  1176. data/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  1177. data/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  1178. data/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  1179. data/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  1180. data/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  1181. data/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  1182. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  1183. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  1184. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  1185. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  1186. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  1187. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  1188. data/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  1189. data/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  1190. data/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  1191. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  1192. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  1193. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  1194. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  1195. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  1196. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  1197. data/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  1198. data/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  1199. data/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  1200. data/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  1201. data/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  1202. data/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  1203. data/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  1204. data/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  1205. data/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  1206. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  1207. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  1208. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  1209. data/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  1210. data/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  1211. data/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  1212. data/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  1213. data/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  1214. data/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  1215. data/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  1216. data/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  1217. data/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  1218. data/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  1219. data/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  1220. data/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  1221. data/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  1222. data/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  1223. data/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  1224. data/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  1225. data/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  1226. data/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  1227. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  1228. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  1229. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  1230. data/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  1231. data/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  1232. data/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  1233. data/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  1234. data/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  1235. data/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  1236. data/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  1237. data/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  1238. data/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  1239. data/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  1240. data/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  1241. data/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  1242. data/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  1243. data/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  1244. data/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  1245. data/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  1246. data/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  1247. data/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  1248. data/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  1249. data/node_modules/ajv/dist/vocabularies/next.js +0 -8
  1250. data/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  1251. data/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  1252. data/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  1253. data/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  1254. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  1255. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  1256. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  1257. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  1258. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  1259. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  1260. data/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  1261. data/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  1262. data/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  1263. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  1264. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  1265. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  1266. data/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  1267. data/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  1268. data/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  1269. data/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  1270. data/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  1271. data/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  1272. data/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  1273. data/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  1274. data/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  1275. data/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  1276. data/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  1277. data/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  1278. data/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  1279. data/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  1280. data/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  1281. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  1282. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  1283. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  1284. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  1285. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  1286. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  1287. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  1288. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  1289. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  1290. data/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  1291. data/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
  1292. data/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  1293. data/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  1294. data/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  1295. data/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  1296. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  1297. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  1298. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  1299. data/node_modules/ajv/lib/2019.ts +0 -81
  1300. data/node_modules/ajv/lib/2020.ts +0 -75
  1301. data/node_modules/ajv/lib/ajv.ts +0 -70
  1302. data/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  1303. data/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  1304. data/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  1305. data/node_modules/ajv/lib/compile/errors.ts +0 -184
  1306. data/node_modules/ajv/lib/compile/index.ts +0 -324
  1307. data/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  1308. data/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -266
  1309. data/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  1310. data/node_modules/ajv/lib/compile/names.ts +0 -27
  1311. data/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  1312. data/node_modules/ajv/lib/compile/resolve.ts +0 -149
  1313. data/node_modules/ajv/lib/compile/rules.ts +0 -50
  1314. data/node_modules/ajv/lib/compile/util.ts +0 -213
  1315. data/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  1316. data/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  1317. data/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  1318. data/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  1319. data/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  1320. data/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  1321. data/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  1322. data/node_modules/ajv/lib/core.ts +0 -891
  1323. data/node_modules/ajv/lib/jtd.ts +0 -132
  1324. data/node_modules/ajv/lib/refs/data.json +0 -13
  1325. data/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  1326. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  1327. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  1328. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  1329. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  1330. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  1331. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  1332. data/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  1333. data/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  1334. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  1335. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  1336. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  1337. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  1338. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  1339. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  1340. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  1341. data/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  1342. data/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  1343. data/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  1344. data/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  1345. data/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  1346. data/node_modules/ajv/lib/runtime/equal.ts +0 -7
  1347. data/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  1348. data/node_modules/ajv/lib/runtime/quote.ts +0 -31
  1349. data/node_modules/ajv/lib/runtime/re2.ts +0 -6
  1350. data/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  1351. data/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  1352. data/node_modules/ajv/lib/runtime/uri.ts +0 -6
  1353. data/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  1354. data/node_modules/ajv/lib/standalone/index.ts +0 -100
  1355. data/node_modules/ajv/lib/standalone/instance.ts +0 -36
  1356. data/node_modules/ajv/lib/types/index.ts +0 -244
  1357. data/node_modules/ajv/lib/types/json-schema.ts +0 -187
  1358. data/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  1359. data/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  1360. data/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  1361. data/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  1362. data/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  1363. data/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  1364. data/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  1365. data/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  1366. data/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  1367. data/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  1368. data/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  1369. data/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  1370. data/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  1371. data/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  1372. data/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  1373. data/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  1374. data/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  1375. data/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  1376. data/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  1377. data/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  1378. data/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  1379. data/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  1380. data/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  1381. data/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  1382. data/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  1383. data/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  1384. data/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  1385. data/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  1386. data/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  1387. data/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  1388. data/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  1389. data/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  1390. data/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  1391. data/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  1392. data/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  1393. data/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  1394. data/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  1395. data/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  1396. data/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  1397. data/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  1398. data/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  1399. data/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  1400. data/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  1401. data/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  1402. data/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  1403. data/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  1404. data/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  1405. data/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  1406. data/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  1407. data/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  1408. data/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  1409. data/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  1410. data/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  1411. data/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  1412. data/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  1413. data/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  1414. data/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  1415. data/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  1416. data/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  1417. data/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  1418. data/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  1419. data/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  1420. data/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  1421. data/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -28
  1422. data/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  1423. data/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  1424. data/node_modules/ajv/package.json +0 -126
  1425. data/node_modules/ansi-regex/index.d.ts +0 -37
  1426. data/node_modules/ansi-regex/index.js +0 -10
  1427. data/node_modules/ansi-regex/license +0 -9
  1428. data/node_modules/ansi-regex/package.json +0 -55
  1429. data/node_modules/ansi-regex/readme.md +0 -78
  1430. data/node_modules/ansi-styles/index.d.ts +0 -345
  1431. data/node_modules/ansi-styles/index.js +0 -163
  1432. data/node_modules/ansi-styles/license +0 -9
  1433. data/node_modules/ansi-styles/package.json +0 -56
  1434. data/node_modules/ansi-styles/readme.md +0 -152
  1435. data/node_modules/argparse/CHANGELOG.md +0 -216
  1436. data/node_modules/argparse/LICENSE +0 -254
  1437. data/node_modules/argparse/README.md +0 -84
  1438. data/node_modules/argparse/argparse.js +0 -3707
  1439. data/node_modules/argparse/lib/sub.js +0 -67
  1440. data/node_modules/argparse/lib/textwrap.js +0 -440
  1441. data/node_modules/argparse/package.json +0 -31
  1442. data/node_modules/array-ify/README.md +0 -51
  1443. data/node_modules/array-ify/index.js +0 -4
  1444. data/node_modules/array-ify/package.json +0 -37
  1445. data/node_modules/callsites/index.d.ts +0 -96
  1446. data/node_modules/callsites/index.js +0 -13
  1447. data/node_modules/callsites/license +0 -9
  1448. data/node_modules/callsites/package.json +0 -39
  1449. data/node_modules/callsites/readme.md +0 -48
  1450. data/node_modules/chalk/license +0 -9
  1451. data/node_modules/chalk/package.json +0 -83
  1452. data/node_modules/chalk/readme.md +0 -325
  1453. data/node_modules/chalk/source/index.d.ts +0 -320
  1454. data/node_modules/chalk/source/index.js +0 -225
  1455. data/node_modules/chalk/source/utilities.js +0 -33
  1456. data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  1457. data/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  1458. data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  1459. data/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  1460. data/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  1461. data/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  1462. data/node_modules/cliui/CHANGELOG.md +0 -139
  1463. data/node_modules/cliui/LICENSE.txt +0 -14
  1464. data/node_modules/cliui/README.md +0 -141
  1465. data/node_modules/cliui/build/index.cjs +0 -302
  1466. data/node_modules/cliui/build/index.d.cts +0 -43
  1467. data/node_modules/cliui/build/lib/index.js +0 -287
  1468. data/node_modules/cliui/build/lib/string-utils.js +0 -27
  1469. data/node_modules/cliui/index.mjs +0 -13
  1470. data/node_modules/cliui/package.json +0 -83
  1471. data/node_modules/color-convert/CHANGELOG.md +0 -54
  1472. data/node_modules/color-convert/LICENSE +0 -21
  1473. data/node_modules/color-convert/README.md +0 -68
  1474. data/node_modules/color-convert/conversions.js +0 -839
  1475. data/node_modules/color-convert/index.js +0 -81
  1476. data/node_modules/color-convert/package.json +0 -48
  1477. data/node_modules/color-convert/route.js +0 -97
  1478. data/node_modules/color-name/LICENSE +0 -8
  1479. data/node_modules/color-name/README.md +0 -11
  1480. data/node_modules/color-name/index.js +0 -152
  1481. data/node_modules/color-name/package.json +0 -28
  1482. data/node_modules/compare-func/LICENSE +0 -21
  1483. data/node_modules/compare-func/README.md +0 -70
  1484. data/node_modules/compare-func/index.js +0 -42
  1485. data/node_modules/compare-func/package.json +0 -47
  1486. data/node_modules/conventional-changelog/LICENSE.md +0 -21
  1487. data/node_modules/conventional-changelog/README.md +0 -66
  1488. data/node_modules/conventional-changelog/index.js +0 -22
  1489. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/LICENSE.md +0 -15
  1490. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/README.md +0 -134
  1491. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/package.json +0 -32
  1492. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/index.js +0 -11
  1493. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/parser.js +0 -13
  1494. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/commit.hbs +0 -61
  1495. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/footer.hbs +0 -11
  1496. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/header.hbs +0 -25
  1497. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/template.hbs +0 -16
  1498. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/whatBump.js +0 -24
  1499. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/writer.js +0 -114
  1500. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/LICENSE.md +0 -15
  1501. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/README.md +0 -80
  1502. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/package.json +0 -32
  1503. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/constants.js +0 -14
  1504. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/index.js +0 -18
  1505. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/parser.js +0 -17
  1506. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/commit.hbs +0 -30
  1507. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/footer.hbs +0 -0
  1508. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/header.hbs +0 -9
  1509. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/template.hbs +0 -21
  1510. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/utils.js +0 -18
  1511. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/whatBump.js +0 -36
  1512. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/writer.js +0 -195
  1513. data/node_modules/conventional-changelog/package.json +0 -54
  1514. data/node_modules/conventional-changelog-angular/LICENSE.md +0 -15
  1515. data/node_modules/conventional-changelog-angular/README.md +0 -126
  1516. data/node_modules/conventional-changelog-angular/conventionalChangelog.js +0 -10
  1517. data/node_modules/conventional-changelog-angular/conventionalRecommendedBump.js +0 -34
  1518. data/node_modules/conventional-changelog-angular/index.js +0 -22
  1519. data/node_modules/conventional-changelog-angular/package.json +0 -35
  1520. data/node_modules/conventional-changelog-angular/parserOpts.js +0 -17
  1521. data/node_modules/conventional-changelog-angular/templates/commit.hbs +0 -61
  1522. data/node_modules/conventional-changelog-angular/templates/footer.hbs +0 -11
  1523. data/node_modules/conventional-changelog-angular/templates/header.hbs +0 -25
  1524. data/node_modules/conventional-changelog-angular/templates/template.hbs +0 -16
  1525. data/node_modules/conventional-changelog-angular/writerOpts.js +0 -110
  1526. data/node_modules/conventional-changelog-atom/LICENSE.md +0 -15
  1527. data/node_modules/conventional-changelog-atom/README.md +0 -72
  1528. data/node_modules/conventional-changelog-atom/package.json +0 -29
  1529. data/node_modules/conventional-changelog-atom/src/index.js +0 -11
  1530. data/node_modules/conventional-changelog-atom/src/parser.js +0 -9
  1531. data/node_modules/conventional-changelog-atom/src/templates/commit.hbs +0 -5
  1532. data/node_modules/conventional-changelog-atom/src/templates/header.hbs +0 -1
  1533. data/node_modules/conventional-changelog-atom/src/templates/template.hbs +0 -15
  1534. data/node_modules/conventional-changelog-atom/src/whatBump.js +0 -22
  1535. data/node_modules/conventional-changelog-atom/src/writer.js +0 -48
  1536. data/node_modules/conventional-changelog-cli/LICENSE +0 -21
  1537. data/node_modules/conventional-changelog-cli/README.md +0 -128
  1538. data/node_modules/conventional-changelog-cli/cli.js +0 -279
  1539. data/node_modules/conventional-changelog-cli/package.json +0 -44
  1540. data/node_modules/conventional-changelog-codemirror/LICENSE.md +0 -15
  1541. data/node_modules/conventional-changelog-codemirror/README.md +0 -45
  1542. data/node_modules/conventional-changelog-codemirror/package.json +0 -29
  1543. data/node_modules/conventional-changelog-codemirror/src/index.js +0 -11
  1544. data/node_modules/conventional-changelog-codemirror/src/parser.js +0 -10
  1545. data/node_modules/conventional-changelog-codemirror/src/templates/commit.hbs +0 -5
  1546. data/node_modules/conventional-changelog-codemirror/src/templates/header.hbs +0 -1
  1547. data/node_modules/conventional-changelog-codemirror/src/templates/template.hbs +0 -15
  1548. data/node_modules/conventional-changelog-codemirror/src/whatBump.js +0 -22
  1549. data/node_modules/conventional-changelog-codemirror/src/writer.js +0 -41
  1550. data/node_modules/conventional-changelog-conventionalcommits/LICENSE.md +0 -15
  1551. data/node_modules/conventional-changelog-conventionalcommits/README.md +0 -72
  1552. data/node_modules/conventional-changelog-conventionalcommits/constants.js +0 -18
  1553. data/node_modules/conventional-changelog-conventionalcommits/conventionalChangelog.js +0 -10
  1554. data/node_modules/conventional-changelog-conventionalcommits/conventionalRecommendedBump.js +0 -44
  1555. data/node_modules/conventional-changelog-conventionalcommits/index.js +0 -29
  1556. data/node_modules/conventional-changelog-conventionalcommits/package.json +0 -37
  1557. data/node_modules/conventional-changelog-conventionalcommits/parserOpts.js +0 -21
  1558. data/node_modules/conventional-changelog-conventionalcommits/templates/commit.hbs +0 -30
  1559. data/node_modules/conventional-changelog-conventionalcommits/templates/footer.hbs +0 -0
  1560. data/node_modules/conventional-changelog-conventionalcommits/templates/header.hbs +0 -9
  1561. data/node_modules/conventional-changelog-conventionalcommits/templates/template.hbs +0 -23
  1562. data/node_modules/conventional-changelog-conventionalcommits/utils.js +0 -15
  1563. data/node_modules/conventional-changelog-conventionalcommits/writerOpts.js +0 -192
  1564. data/node_modules/conventional-changelog-core/LICENSE.md +0 -21
  1565. data/node_modules/conventional-changelog-core/README.md +0 -255
  1566. data/node_modules/conventional-changelog-core/hosts/bitbucket.json +0 -21
  1567. data/node_modules/conventional-changelog-core/hosts/github.json +0 -19
  1568. data/node_modules/conventional-changelog-core/hosts/gitlab.json +0 -17
  1569. data/node_modules/conventional-changelog-core/index.js +0 -156
  1570. data/node_modules/conventional-changelog-core/lib/merge-config.js +0 -372
  1571. data/node_modules/conventional-changelog-core/node_modules/.bin/conventional-commits-parser +0 -1
  1572. data/node_modules/conventional-changelog-core/node_modules/.bin/git-raw-commits +0 -1
  1573. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/LICENSE.md +0 -21
  1574. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/README.md +0 -134
  1575. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts +0 -49
  1576. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts.map +0 -1
  1577. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js +0 -124
  1578. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts +0 -75
  1579. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts.map +0 -1
  1580. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.js +0 -160
  1581. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.d.ts +0 -4
  1582. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.d.ts.map +0 -1
  1583. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.js +0 -4
  1584. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.d.ts +0 -58
  1585. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.d.ts.map +0 -1
  1586. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.js +0 -2
  1587. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.d.ts +0 -34
  1588. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.d.ts.map +0 -1
  1589. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.js +0 -141
  1590. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/package.json +0 -53
  1591. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/LICENSE.md +0 -21
  1592. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/README.md +0 -437
  1593. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.d.ts +0 -40
  1594. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.d.ts.map +0 -1
  1595. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.js +0 -317
  1596. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.d.ts +0 -3
  1597. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.d.ts.map +0 -1
  1598. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.js +0 -103
  1599. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.d.ts +0 -3
  1600. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.d.ts.map +0 -1
  1601. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.js +0 -40
  1602. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.d.ts +0 -8
  1603. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.d.ts.map +0 -1
  1604. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.js +0 -64
  1605. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.d.ts +0 -4
  1606. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.d.ts.map +0 -1
  1607. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.js +0 -4
  1608. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.d.ts +0 -3
  1609. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.d.ts.map +0 -1
  1610. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.js +0 -25
  1611. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.d.ts +0 -8
  1612. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.d.ts.map +0 -1
  1613. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.js +0 -49
  1614. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.d.ts +0 -16
  1615. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.d.ts.map +0 -1
  1616. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.js +0 -38
  1617. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.d.ts +0 -98
  1618. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.d.ts.map +0 -1
  1619. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.js +0 -2
  1620. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.d.ts +0 -32
  1621. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.d.ts.map +0 -1
  1622. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.js +0 -59
  1623. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/package.json +0 -45
  1624. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/LICENSE.md +0 -21
  1625. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/README.md +0 -60
  1626. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/package.json +0 -44
  1627. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/src/cli.js +0 -37
  1628. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/src/index.js +0 -59
  1629. data/node_modules/conventional-changelog-core/package.json +0 -44
  1630. data/node_modules/conventional-changelog-ember/LICENSE.md +0 -15
  1631. data/node_modules/conventional-changelog-ember/README.md +0 -94
  1632. data/node_modules/conventional-changelog-ember/package.json +0 -29
  1633. data/node_modules/conventional-changelog-ember/src/index.js +0 -14
  1634. data/node_modules/conventional-changelog-ember/src/parser.js +0 -12
  1635. data/node_modules/conventional-changelog-ember/src/templates/commit.hbs +0 -3
  1636. data/node_modules/conventional-changelog-ember/src/templates/header.hbs +0 -1
  1637. data/node_modules/conventional-changelog-ember/src/templates/template.hbs +0 -15
  1638. data/node_modules/conventional-changelog-ember/src/whatBump.js +0 -22
  1639. data/node_modules/conventional-changelog-ember/src/writer.js +0 -58
  1640. data/node_modules/conventional-changelog-eslint/LICENSE.md +0 -15
  1641. data/node_modules/conventional-changelog-eslint/README.md +0 -84
  1642. data/node_modules/conventional-changelog-eslint/package.json +0 -29
  1643. data/node_modules/conventional-changelog-eslint/src/index.js +0 -11
  1644. data/node_modules/conventional-changelog-eslint/src/parser.js +0 -9
  1645. data/node_modules/conventional-changelog-eslint/src/templates/commit.hbs +0 -5
  1646. data/node_modules/conventional-changelog-eslint/src/templates/header.hbs +0 -1
  1647. data/node_modules/conventional-changelog-eslint/src/templates/template.hbs +0 -15
  1648. data/node_modules/conventional-changelog-eslint/src/whatBump.js +0 -24
  1649. data/node_modules/conventional-changelog-eslint/src/writer.js +0 -39
  1650. data/node_modules/conventional-changelog-express/LICENSE.md +0 -15
  1651. data/node_modules/conventional-changelog-express/README.md +0 -45
  1652. data/node_modules/conventional-changelog-express/package.json +0 -29
  1653. data/node_modules/conventional-changelog-express/src/index.js +0 -11
  1654. data/node_modules/conventional-changelog-express/src/parser.js +0 -9
  1655. data/node_modules/conventional-changelog-express/src/templates/commit.hbs +0 -9
  1656. data/node_modules/conventional-changelog-express/src/templates/header.hbs +0 -2
  1657. data/node_modules/conventional-changelog-express/src/templates/template.hbs +0 -14
  1658. data/node_modules/conventional-changelog-express/src/whatBump.js +0 -22
  1659. data/node_modules/conventional-changelog-express/src/writer.js +0 -43
  1660. data/node_modules/conventional-changelog-jquery/LICENSE.md +0 -15
  1661. data/node_modules/conventional-changelog-jquery/README.md +0 -83
  1662. data/node_modules/conventional-changelog-jquery/package.json +0 -29
  1663. data/node_modules/conventional-changelog-jquery/src/index.js +0 -11
  1664. data/node_modules/conventional-changelog-jquery/src/parser.js +0 -9
  1665. data/node_modules/conventional-changelog-jquery/src/templates/commit.hbs +0 -56
  1666. data/node_modules/conventional-changelog-jquery/src/templates/header.hbs +0 -17
  1667. data/node_modules/conventional-changelog-jquery/src/templates/template.hbs +0 -16
  1668. data/node_modules/conventional-changelog-jquery/src/whatBump.js +0 -22
  1669. data/node_modules/conventional-changelog-jquery/src/writer.js +0 -50
  1670. data/node_modules/conventional-changelog-jshint/LICENSE.md +0 -15
  1671. data/node_modules/conventional-changelog-jshint/README.md +0 -121
  1672. data/node_modules/conventional-changelog-jshint/package.json +0 -32
  1673. data/node_modules/conventional-changelog-jshint/src/index.js +0 -11
  1674. data/node_modules/conventional-changelog-jshint/src/parser.js +0 -10
  1675. data/node_modules/conventional-changelog-jshint/src/templates/commit.hbs +0 -5
  1676. data/node_modules/conventional-changelog-jshint/src/templates/footer.hbs +0 -11
  1677. data/node_modules/conventional-changelog-jshint/src/templates/header.hbs +0 -1
  1678. data/node_modules/conventional-changelog-jshint/src/templates/template.hbs +0 -16
  1679. data/node_modules/conventional-changelog-jshint/src/whatBump.js +0 -22
  1680. data/node_modules/conventional-changelog-jshint/src/writer.js +0 -62
  1681. data/node_modules/conventional-changelog-preset-loader/LICENSE.md +0 -21
  1682. data/node_modules/conventional-changelog-preset-loader/README.md +0 -121
  1683. data/node_modules/conventional-changelog-preset-loader/dist/index.d.ts +0 -3
  1684. data/node_modules/conventional-changelog-preset-loader/dist/index.d.ts.map +0 -1
  1685. data/node_modules/conventional-changelog-preset-loader/dist/index.js +0 -3
  1686. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.d.ts +0 -12
  1687. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.d.ts.map +0 -1
  1688. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.js +0 -102
  1689. data/node_modules/conventional-changelog-preset-loader/dist/types.d.ts +0 -15
  1690. data/node_modules/conventional-changelog-preset-loader/dist/types.d.ts.map +0 -1
  1691. data/node_modules/conventional-changelog-preset-loader/dist/types.js +0 -3
  1692. data/node_modules/conventional-changelog-preset-loader/package.json +0 -32
  1693. data/node_modules/conventional-changelog-writer/LICENSE.md +0 -21
  1694. data/node_modules/conventional-changelog-writer/README.md +0 -383
  1695. data/node_modules/conventional-changelog-writer/dist/cli/index.d.ts +0 -3
  1696. data/node_modules/conventional-changelog-writer/dist/cli/index.d.ts.map +0 -1
  1697. data/node_modules/conventional-changelog-writer/dist/cli/index.js +0 -70
  1698. data/node_modules/conventional-changelog-writer/dist/cli/utils.d.ts +0 -7
  1699. data/node_modules/conventional-changelog-writer/dist/cli/utils.d.ts.map +0 -1
  1700. data/node_modules/conventional-changelog-writer/dist/cli/utils.js +0 -64
  1701. data/node_modules/conventional-changelog-writer/dist/commit.d.ts +0 -11
  1702. data/node_modules/conventional-changelog-writer/dist/commit.d.ts.map +0 -1
  1703. data/node_modules/conventional-changelog-writer/dist/commit.js +0 -40
  1704. data/node_modules/conventional-changelog-writer/dist/context.d.ts +0 -26
  1705. data/node_modules/conventional-changelog-writer/dist/context.d.ts.map +0 -1
  1706. data/node_modules/conventional-changelog-writer/dist/context.js +0 -114
  1707. data/node_modules/conventional-changelog-writer/dist/index.d.ts +0 -4
  1708. data/node_modules/conventional-changelog-writer/dist/index.d.ts.map +0 -1
  1709. data/node_modules/conventional-changelog-writer/dist/index.js +0 -4
  1710. data/node_modules/conventional-changelog-writer/dist/options.d.ts +0 -25
  1711. data/node_modules/conventional-changelog-writer/dist/options.d.ts.map +0 -1
  1712. data/node_modules/conventional-changelog-writer/dist/options.js +0 -75
  1713. data/node_modules/conventional-changelog-writer/dist/template.d.ts +0 -21
  1714. data/node_modules/conventional-changelog-writer/dist/template.d.ts.map +0 -1
  1715. data/node_modules/conventional-changelog-writer/dist/template.js +0 -77
  1716. data/node_modules/conventional-changelog-writer/dist/types/commit.d.ts +0 -26
  1717. data/node_modules/conventional-changelog-writer/dist/types/commit.d.ts.map +0 -1
  1718. data/node_modules/conventional-changelog-writer/dist/types/commit.js +0 -2
  1719. data/node_modules/conventional-changelog-writer/dist/types/context.d.ts +0 -69
  1720. data/node_modules/conventional-changelog-writer/dist/types/context.d.ts.map +0 -1
  1721. data/node_modules/conventional-changelog-writer/dist/types/context.js +0 -2
  1722. data/node_modules/conventional-changelog-writer/dist/types/index.d.ts +0 -10
  1723. data/node_modules/conventional-changelog-writer/dist/types/index.d.ts.map +0 -1
  1724. data/node_modules/conventional-changelog-writer/dist/types/index.js +0 -5
  1725. data/node_modules/conventional-changelog-writer/dist/types/options.d.ts +0 -108
  1726. data/node_modules/conventional-changelog-writer/dist/types/options.d.ts.map +0 -1
  1727. data/node_modules/conventional-changelog-writer/dist/types/options.js +0 -2
  1728. data/node_modules/conventional-changelog-writer/dist/types/utils.d.ts +0 -10
  1729. data/node_modules/conventional-changelog-writer/dist/types/utils.d.ts.map +0 -1
  1730. data/node_modules/conventional-changelog-writer/dist/types/utils.js +0 -2
  1731. data/node_modules/conventional-changelog-writer/dist/utils.d.ts +0 -20
  1732. data/node_modules/conventional-changelog-writer/dist/utils.d.ts.map +0 -1
  1733. data/node_modules/conventional-changelog-writer/dist/utils.js +0 -70
  1734. data/node_modules/conventional-changelog-writer/dist/writers.d.ts +0 -29
  1735. data/node_modules/conventional-changelog-writer/dist/writers.d.ts.map +0 -1
  1736. data/node_modules/conventional-changelog-writer/dist/writers.js +0 -102
  1737. data/node_modules/conventional-changelog-writer/package.json +0 -52
  1738. data/node_modules/conventional-changelog-writer/templates/commit.hbs +0 -54
  1739. data/node_modules/conventional-changelog-writer/templates/footer.hbs +0 -10
  1740. data/node_modules/conventional-changelog-writer/templates/header.hbs +0 -9
  1741. data/node_modules/conventional-changelog-writer/templates/template.hbs +0 -11
  1742. data/node_modules/conventional-commits-filter/LICENSE +0 -21
  1743. data/node_modules/conventional-commits-filter/README.md +0 -235
  1744. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.d.ts +0 -17
  1745. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.d.ts.map +0 -1
  1746. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.js +0 -46
  1747. data/node_modules/conventional-commits-filter/dist/filters.d.ts +0 -20
  1748. data/node_modules/conventional-commits-filter/dist/filters.d.ts.map +0 -1
  1749. data/node_modules/conventional-commits-filter/dist/filters.js +0 -34
  1750. data/node_modules/conventional-commits-filter/dist/index.d.ts +0 -4
  1751. data/node_modules/conventional-commits-filter/dist/index.d.ts.map +0 -1
  1752. data/node_modules/conventional-commits-filter/dist/index.js +0 -3
  1753. data/node_modules/conventional-commits-filter/dist/types.d.ts +0 -6
  1754. data/node_modules/conventional-commits-filter/dist/types.d.ts.map +0 -1
  1755. data/node_modules/conventional-commits-filter/dist/types.js +0 -2
  1756. data/node_modules/conventional-commits-filter/dist/utils.d.ts +0 -16
  1757. data/node_modules/conventional-commits-filter/dist/utils.d.ts.map +0 -1
  1758. data/node_modules/conventional-commits-filter/dist/utils.js +0 -43
  1759. data/node_modules/conventional-commits-filter/package.json +0 -37
  1760. data/node_modules/conventional-commits-parser/LICENSE.md +0 -21
  1761. data/node_modules/conventional-commits-parser/README.md +0 -383
  1762. data/node_modules/conventional-commits-parser/cli.mjs +0 -170
  1763. data/node_modules/conventional-commits-parser/index.js +0 -105
  1764. data/node_modules/conventional-commits-parser/lib/parser.js +0 -316
  1765. data/node_modules/conventional-commits-parser/lib/regex.js +0 -61
  1766. data/node_modules/conventional-commits-parser/node_modules/meow/build/dependencies.js +0 -11036
  1767. data/node_modules/conventional-commits-parser/node_modules/meow/build/index.d.ts +0 -1416
  1768. data/node_modules/conventional-commits-parser/node_modules/meow/build/index.js +0 -100
  1769. data/node_modules/conventional-commits-parser/node_modules/meow/build/licenses.md +0 -1767
  1770. data/node_modules/conventional-commits-parser/node_modules/meow/build/options.js +0 -92
  1771. data/node_modules/conventional-commits-parser/node_modules/meow/build/parser.js +0 -84
  1772. data/node_modules/conventional-commits-parser/node_modules/meow/build/utils.js +0 -7
  1773. data/node_modules/conventional-commits-parser/node_modules/meow/build/validate.js +0 -122
  1774. data/node_modules/conventional-commits-parser/node_modules/meow/license +0 -9
  1775. data/node_modules/conventional-commits-parser/node_modules/meow/package.json +0 -107
  1776. data/node_modules/conventional-commits-parser/node_modules/meow/readme.md +0 -314
  1777. data/node_modules/conventional-commits-parser/package.json +0 -47
  1778. data/node_modules/cosmiconfig/LICENSE +0 -22
  1779. data/node_modules/cosmiconfig/README.md +0 -782
  1780. data/node_modules/cosmiconfig/dist/Explorer.d.ts +0 -2
  1781. data/node_modules/cosmiconfig/dist/Explorer.d.ts.map +0 -1
  1782. data/node_modules/cosmiconfig/dist/Explorer.js +0 -170
  1783. data/node_modules/cosmiconfig/dist/Explorer.js.map +0 -1
  1784. data/node_modules/cosmiconfig/dist/ExplorerBase.d.ts +0 -2
  1785. data/node_modules/cosmiconfig/dist/ExplorerBase.d.ts.map +0 -1
  1786. data/node_modules/cosmiconfig/dist/ExplorerBase.js +0 -126
  1787. data/node_modules/cosmiconfig/dist/ExplorerBase.js.map +0 -1
  1788. data/node_modules/cosmiconfig/dist/ExplorerSync.d.ts +0 -2
  1789. data/node_modules/cosmiconfig/dist/ExplorerSync.d.ts.map +0 -1
  1790. data/node_modules/cosmiconfig/dist/ExplorerSync.js +0 -184
  1791. data/node_modules/cosmiconfig/dist/ExplorerSync.js.map +0 -1
  1792. data/node_modules/cosmiconfig/dist/cacheWrapper.d.ts +0 -5
  1793. data/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map +0 -1
  1794. data/node_modules/cosmiconfig/dist/cacheWrapper.js +0 -32
  1795. data/node_modules/cosmiconfig/dist/cacheWrapper.js.map +0 -1
  1796. data/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts +0 -3
  1797. data/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map +0 -1
  1798. data/node_modules/cosmiconfig/dist/canUseDynamicImport.js +0 -23
  1799. data/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map +0 -1
  1800. data/node_modules/cosmiconfig/dist/defaults.d.ts +0 -25
  1801. data/node_modules/cosmiconfig/dist/defaults.d.ts.map +0 -1
  1802. data/node_modules/cosmiconfig/dist/defaults.js +0 -105
  1803. data/node_modules/cosmiconfig/dist/defaults.js.map +0 -1
  1804. data/node_modules/cosmiconfig/dist/getDirectory.d.ts +0 -4
  1805. data/node_modules/cosmiconfig/dist/getDirectory.d.ts.map +0 -1
  1806. data/node_modules/cosmiconfig/dist/getDirectory.js +0 -38
  1807. data/node_modules/cosmiconfig/dist/getDirectory.js.map +0 -1
  1808. data/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts +0 -5
  1809. data/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map +0 -1
  1810. data/node_modules/cosmiconfig/dist/getPropertyByPath.js +0 -28
  1811. data/node_modules/cosmiconfig/dist/getPropertyByPath.js.map +0 -1
  1812. data/node_modules/cosmiconfig/dist/index.d.ts +0 -6
  1813. data/node_modules/cosmiconfig/dist/index.d.ts.map +0 -1
  1814. data/node_modules/cosmiconfig/dist/index.js +0 -148
  1815. data/node_modules/cosmiconfig/dist/index.js.map +0 -1
  1816. data/node_modules/cosmiconfig/dist/loaders.d.ts +0 -8
  1817. data/node_modules/cosmiconfig/dist/loaders.d.ts.map +0 -1
  1818. data/node_modules/cosmiconfig/dist/loaders.js +0 -148
  1819. data/node_modules/cosmiconfig/dist/loaders.js.map +0 -1
  1820. data/node_modules/cosmiconfig/dist/merge.d.ts +0 -9
  1821. data/node_modules/cosmiconfig/dist/merge.d.ts.map +0 -1
  1822. data/node_modules/cosmiconfig/dist/merge.js +0 -40
  1823. data/node_modules/cosmiconfig/dist/merge.js.map +0 -1
  1824. data/node_modules/cosmiconfig/dist/readFile.d.ts +0 -7
  1825. data/node_modules/cosmiconfig/dist/readFile.d.ts.map +0 -1
  1826. data/node_modules/cosmiconfig/dist/readFile.js +0 -56
  1827. data/node_modules/cosmiconfig/dist/readFile.js.map +0 -1
  1828. data/node_modules/cosmiconfig/dist/types.d.ts +0 -98
  1829. data/node_modules/cosmiconfig/dist/types.d.ts.map +0 -1
  1830. data/node_modules/cosmiconfig/dist/types.js +0 -3
  1831. data/node_modules/cosmiconfig/dist/types.js.map +0 -1
  1832. data/node_modules/cosmiconfig/dist/util.d.ts +0 -2
  1833. data/node_modules/cosmiconfig/dist/util.d.ts.map +0 -1
  1834. data/node_modules/cosmiconfig/dist/util.js +0 -99
  1835. data/node_modules/cosmiconfig/dist/util.js.map +0 -1
  1836. data/node_modules/cosmiconfig/package.json +0 -102
  1837. data/node_modules/cosmiconfig-typescript-loader/LICENCE +0 -21
  1838. data/node_modules/cosmiconfig-typescript-loader/README.md +0 -64
  1839. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/index.cjs +0 -30
  1840. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/loader.cjs +0 -55
  1841. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/typescript-compile-error.cjs +0 -43
  1842. data/node_modules/cosmiconfig-typescript-loader/dist/esm/index.mjs +0 -5
  1843. data/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs +0 -20
  1844. data/node_modules/cosmiconfig-typescript-loader/dist/esm/typescript-compile-error.mjs +0 -18
  1845. data/node_modules/cosmiconfig-typescript-loader/dist/types/index.d.ts +0 -2
  1846. data/node_modules/cosmiconfig-typescript-loader/dist/types/loader.d.ts +0 -3
  1847. data/node_modules/cosmiconfig-typescript-loader/dist/types/typescript-compile-error.d.ts +0 -4
  1848. data/node_modules/cosmiconfig-typescript-loader/package.json +0 -79
  1849. data/node_modules/cross-spawn/CHANGELOG.md +0 -130
  1850. data/node_modules/cross-spawn/LICENSE +0 -21
  1851. data/node_modules/cross-spawn/README.md +0 -96
  1852. data/node_modules/cross-spawn/index.js +0 -39
  1853. data/node_modules/cross-spawn/lib/enoent.js +0 -59
  1854. data/node_modules/cross-spawn/lib/parse.js +0 -91
  1855. data/node_modules/cross-spawn/lib/util/escape.js +0 -45
  1856. data/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  1857. data/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  1858. data/node_modules/cross-spawn/package.json +0 -73
  1859. data/node_modules/dargs/index.d.ts +0 -159
  1860. data/node_modules/dargs/index.js +0 -116
  1861. data/node_modules/dargs/license +0 -9
  1862. data/node_modules/dargs/package.json +0 -51
  1863. data/node_modules/dargs/readme.md +0 -195
  1864. data/node_modules/dot-prop/index.d.ts +0 -101
  1865. data/node_modules/dot-prop/index.js +0 -142
  1866. data/node_modules/dot-prop/license +0 -9
  1867. data/node_modules/dot-prop/package.json +0 -45
  1868. data/node_modules/dot-prop/readme.md +0 -117
  1869. data/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  1870. data/node_modules/emoji-regex/README.md +0 -73
  1871. data/node_modules/emoji-regex/es2015/index.js +0 -6
  1872. data/node_modules/emoji-regex/es2015/text.js +0 -6
  1873. data/node_modules/emoji-regex/index.d.ts +0 -23
  1874. data/node_modules/emoji-regex/index.js +0 -6
  1875. data/node_modules/emoji-regex/package.json +0 -50
  1876. data/node_modules/emoji-regex/text.js +0 -6
  1877. data/node_modules/env-paths/index.d.ts +0 -101
  1878. data/node_modules/env-paths/index.js +0 -74
  1879. data/node_modules/env-paths/license +0 -9
  1880. data/node_modules/env-paths/package.json +0 -45
  1881. data/node_modules/env-paths/readme.md +0 -115
  1882. data/node_modules/error-ex/LICENSE +0 -21
  1883. data/node_modules/error-ex/README.md +0 -144
  1884. data/node_modules/error-ex/index.js +0 -141
  1885. data/node_modules/error-ex/package.json +0 -46
  1886. data/node_modules/escalade/dist/index.js +0 -22
  1887. data/node_modules/escalade/dist/index.mjs +0 -22
  1888. data/node_modules/escalade/index.d.ts +0 -3
  1889. data/node_modules/escalade/license +0 -9
  1890. data/node_modules/escalade/package.json +0 -63
  1891. data/node_modules/escalade/readme.md +0 -211
  1892. data/node_modules/escalade/sync/index.d.ts +0 -2
  1893. data/node_modules/escalade/sync/index.js +0 -18
  1894. data/node_modules/escalade/sync/index.mjs +0 -18
  1895. data/node_modules/escape-string-regexp/index.js +0 -11
  1896. data/node_modules/escape-string-regexp/license +0 -21
  1897. data/node_modules/escape-string-regexp/package.json +0 -41
  1898. data/node_modules/escape-string-regexp/readme.md +0 -27
  1899. data/node_modules/execa/index.d.ts +0 -955
  1900. data/node_modules/execa/index.js +0 -309
  1901. data/node_modules/execa/lib/command.js +0 -119
  1902. data/node_modules/execa/lib/error.js +0 -87
  1903. data/node_modules/execa/lib/kill.js +0 -102
  1904. data/node_modules/execa/lib/pipe.js +0 -42
  1905. data/node_modules/execa/lib/promise.js +0 -36
  1906. data/node_modules/execa/lib/stdio.js +0 -49
  1907. data/node_modules/execa/lib/stream.js +0 -133
  1908. data/node_modules/execa/lib/verbose.js +0 -19
  1909. data/node_modules/execa/license +0 -9
  1910. data/node_modules/execa/package.json +0 -90
  1911. data/node_modules/execa/readme.md +0 -822
  1912. data/node_modules/fast-deep-equal/LICENSE +0 -21
  1913. data/node_modules/fast-deep-equal/README.md +0 -96
  1914. data/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  1915. data/node_modules/fast-deep-equal/es6/index.js +0 -72
  1916. data/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  1917. data/node_modules/fast-deep-equal/es6/react.js +0 -79
  1918. data/node_modules/fast-deep-equal/index.d.ts +0 -4
  1919. data/node_modules/fast-deep-equal/index.js +0 -46
  1920. data/node_modules/fast-deep-equal/package.json +0 -61
  1921. data/node_modules/fast-deep-equal/react.d.ts +0 -2
  1922. data/node_modules/fast-deep-equal/react.js +0 -53
  1923. data/node_modules/fast-uri/.gitattributes +0 -2
  1924. data/node_modules/fast-uri/.github/.stale.yml +0 -21
  1925. data/node_modules/fast-uri/.github/dependabot.yml +0 -13
  1926. data/node_modules/fast-uri/.github/tests_checker.yml +0 -8
  1927. data/node_modules/fast-uri/.github/workflows/ci.yml +0 -23
  1928. data/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -20
  1929. data/node_modules/fast-uri/.taprc +0 -3
  1930. data/node_modules/fast-uri/LICENSE +0 -30
  1931. data/node_modules/fast-uri/README.md +0 -125
  1932. data/node_modules/fast-uri/benchmark.js +0 -105
  1933. data/node_modules/fast-uri/index.js +0 -309
  1934. data/node_modules/fast-uri/lib/schemes.js +0 -188
  1935. data/node_modules/fast-uri/lib/scopedChars.js +0 -30
  1936. data/node_modules/fast-uri/lib/utils.js +0 -242
  1937. data/node_modules/fast-uri/package.json +0 -39
  1938. data/node_modules/fast-uri/test/.gitkeep +0 -0
  1939. data/node_modules/fast-uri/test/ajv.test.js +0 -39
  1940. data/node_modules/fast-uri/test/compatibility.test.js +0 -130
  1941. data/node_modules/fast-uri/test/equal.test.js +0 -104
  1942. data/node_modules/fast-uri/test/parse.test.js +0 -319
  1943. data/node_modules/fast-uri/test/resolve.test.js +0 -76
  1944. data/node_modules/fast-uri/test/serialize.test.js +0 -144
  1945. data/node_modules/fast-uri/test/uri-js.test.js +0 -940
  1946. data/node_modules/fast-uri/test/util.test.js +0 -24
  1947. data/node_modules/fast-uri/types/index.d.ts +0 -53
  1948. data/node_modules/fast-uri/types/index.test-d.ts +0 -17
  1949. data/node_modules/find-up/index.d.ts +0 -247
  1950. data/node_modules/find-up/index.js +0 -107
  1951. data/node_modules/find-up/license +0 -9
  1952. data/node_modules/find-up/package.json +0 -61
  1953. data/node_modules/find-up/readme.md +0 -160
  1954. data/node_modules/find-up-simple/index.d.ts +0 -74
  1955. data/node_modules/find-up-simple/index.js +0 -53
  1956. data/node_modules/find-up-simple/license +0 -9
  1957. data/node_modules/find-up-simple/package.json +0 -53
  1958. data/node_modules/find-up-simple/readme.md +0 -93
  1959. data/node_modules/get-caller-file/LICENSE.md +0 -6
  1960. data/node_modules/get-caller-file/README.md +0 -41
  1961. data/node_modules/get-caller-file/index.d.ts +0 -2
  1962. data/node_modules/get-caller-file/index.js +0 -22
  1963. data/node_modules/get-caller-file/index.js.map +0 -1
  1964. data/node_modules/get-caller-file/package.json +0 -42
  1965. data/node_modules/get-stream/license +0 -9
  1966. data/node_modules/get-stream/package.json +0 -53
  1967. data/node_modules/get-stream/readme.md +0 -291
  1968. data/node_modules/get-stream/source/array-buffer.js +0 -84
  1969. data/node_modules/get-stream/source/array.js +0 -32
  1970. data/node_modules/get-stream/source/buffer.js +0 -20
  1971. data/node_modules/get-stream/source/contents.js +0 -101
  1972. data/node_modules/get-stream/source/index.d.ts +0 -119
  1973. data/node_modules/get-stream/source/index.js +0 -5
  1974. data/node_modules/get-stream/source/string.js +0 -36
  1975. data/node_modules/get-stream/source/utils.js +0 -11
  1976. data/node_modules/git-raw-commits/LICENSE.md +0 -21
  1977. data/node_modules/git-raw-commits/README.md +0 -101
  1978. data/node_modules/git-raw-commits/cli.mjs +0 -20
  1979. data/node_modules/git-raw-commits/index.js +0 -110
  1980. data/node_modules/git-raw-commits/node_modules/meow/build/dependencies.js +0 -11036
  1981. data/node_modules/git-raw-commits/node_modules/meow/build/index.d.ts +0 -1416
  1982. data/node_modules/git-raw-commits/node_modules/meow/build/index.js +0 -100
  1983. data/node_modules/git-raw-commits/node_modules/meow/build/licenses.md +0 -1767
  1984. data/node_modules/git-raw-commits/node_modules/meow/build/options.js +0 -92
  1985. data/node_modules/git-raw-commits/node_modules/meow/build/parser.js +0 -84
  1986. data/node_modules/git-raw-commits/node_modules/meow/build/utils.js +0 -7
  1987. data/node_modules/git-raw-commits/node_modules/meow/build/validate.js +0 -122
  1988. data/node_modules/git-raw-commits/node_modules/meow/license +0 -9
  1989. data/node_modules/git-raw-commits/node_modules/meow/package.json +0 -107
  1990. data/node_modules/git-raw-commits/node_modules/meow/readme.md +0 -314
  1991. data/node_modules/git-raw-commits/package.json +0 -43
  1992. data/node_modules/git-semver-tags/LICENSE.md +0 -21
  1993. data/node_modules/git-semver-tags/README.md +0 -65
  1994. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/LICENSE.md +0 -21
  1995. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/README.md +0 -134
  1996. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts +0 -49
  1997. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts.map +0 -1
  1998. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js +0 -124
  1999. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts +0 -75
  2000. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts.map +0 -1
  2001. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.js +0 -160
  2002. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.d.ts +0 -4
  2003. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.d.ts.map +0 -1
  2004. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.js +0 -4
  2005. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.d.ts +0 -58
  2006. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.d.ts.map +0 -1
  2007. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.js +0 -2
  2008. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.d.ts +0 -34
  2009. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.d.ts.map +0 -1
  2010. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.js +0 -141
  2011. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/package.json +0 -53
  2012. data/node_modules/git-semver-tags/package.json +0 -43
  2013. data/node_modules/git-semver-tags/src/cli.js +0 -43
  2014. data/node_modules/git-semver-tags/src/index.js +0 -42
  2015. data/node_modules/global-directory/index.d.ts +0 -58
  2016. data/node_modules/global-directory/index.js +0 -121
  2017. data/node_modules/global-directory/license +0 -9
  2018. data/node_modules/global-directory/package.json +0 -61
  2019. data/node_modules/global-directory/readme.md +0 -60
  2020. data/node_modules/handlebars/LICENSE +0 -19
  2021. data/node_modules/handlebars/README.markdown +0 -169
  2022. data/node_modules/handlebars/bin/.eslintrc.js +0 -6
  2023. data/node_modules/handlebars/bin/handlebars +0 -176
  2024. data/node_modules/handlebars/dist/amd/handlebars/base.js +0 -106
  2025. data/node_modules/handlebars/dist/amd/handlebars/compiler/ast.js +0 -31
  2026. data/node_modules/handlebars/dist/amd/handlebars/compiler/base.js +0 -45
  2027. data/node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js +0 -165
  2028. data/node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js +0 -562
  2029. data/node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js +0 -228
  2030. data/node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js +0 -1150
  2031. data/node_modules/handlebars/dist/amd/handlebars/compiler/parser.js +0 -737
  2032. data/node_modules/handlebars/dist/amd/handlebars/compiler/printer.js +0 -186
  2033. data/node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js +0 -138
  2034. data/node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js +0 -219
  2035. data/node_modules/handlebars/dist/amd/handlebars/decorators/inline.js +0 -25
  2036. data/node_modules/handlebars/dist/amd/handlebars/decorators.js +0 -16
  2037. data/node_modules/handlebars/dist/amd/handlebars/exception.js +0 -64
  2038. data/node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js +0 -35
  2039. data/node_modules/handlebars/dist/amd/handlebars/helpers/each.js +0 -99
  2040. data/node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js +0 -22
  2041. data/node_modules/handlebars/dist/amd/handlebars/helpers/if.js +0 -41
  2042. data/node_modules/handlebars/dist/amd/handlebars/helpers/log.js +0 -24
  2043. data/node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js +0 -14
  2044. data/node_modules/handlebars/dist/amd/handlebars/helpers/with.js +0 -38
  2045. data/node_modules/handlebars/dist/amd/handlebars/helpers.js +0 -44
  2046. data/node_modules/handlebars/dist/amd/handlebars/internal/create-new-lookup-object.js +0 -22
  2047. data/node_modules/handlebars/dist/amd/handlebars/internal/proto-access.js +0 -71
  2048. data/node_modules/handlebars/dist/amd/handlebars/internal/wrapHelper.js +0 -21
  2049. data/node_modules/handlebars/dist/amd/handlebars/logger.js +0 -44
  2050. data/node_modules/handlebars/dist/amd/handlebars/no-conflict.js +0 -28
  2051. data/node_modules/handlebars/dist/amd/handlebars/runtime.js +0 -356
  2052. data/node_modules/handlebars/dist/amd/handlebars/safe-string.js +0 -15
  2053. data/node_modules/handlebars/dist/amd/handlebars/utils.js +0 -126
  2054. data/node_modules/handlebars/dist/amd/handlebars.js +0 -52
  2055. data/node_modules/handlebars/dist/amd/handlebars.runtime.js +0 -44
  2056. data/node_modules/handlebars/dist/amd/precompiler.js +0 -314
  2057. data/node_modules/handlebars/dist/cjs/handlebars/base.js +0 -116
  2058. data/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +0 -31
  2059. data/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +0 -57
  2060. data/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +0 -168
  2061. data/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +0 -566
  2062. data/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +0 -228
  2063. data/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +0 -1158
  2064. data/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +0 -737
  2065. data/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +0 -186
  2066. data/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +0 -140
  2067. data/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +0 -221
  2068. data/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +0 -29
  2069. data/node_modules/handlebars/dist/cjs/handlebars/decorators.js +0 -16
  2070. data/node_modules/handlebars/dist/cjs/handlebars/exception.js +0 -64
  2071. data/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +0 -39
  2072. data/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +0 -104
  2073. data/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +0 -25
  2074. data/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +0 -46
  2075. data/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +0 -26
  2076. data/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +0 -16
  2077. data/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +0 -43
  2078. data/node_modules/handlebars/dist/cjs/handlebars/helpers.js +0 -56
  2079. data/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js +0 -22
  2080. data/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js +0 -73
  2081. data/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js +0 -19
  2082. data/node_modules/handlebars/dist/cjs/handlebars/logger.js +0 -47
  2083. data/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +0 -30
  2084. data/node_modules/handlebars/dist/cjs/handlebars/runtime.js +0 -372
  2085. data/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +0 -15
  2086. data/node_modules/handlebars/dist/cjs/handlebars/utils.js +0 -124
  2087. data/node_modules/handlebars/dist/cjs/handlebars.js +0 -66
  2088. data/node_modules/handlebars/dist/cjs/handlebars.runtime.js +0 -66
  2089. data/node_modules/handlebars/dist/cjs/precompiler.js +0 -328
  2090. data/node_modules/handlebars/dist/handlebars.amd.js +0 -4639
  2091. data/node_modules/handlebars/dist/handlebars.amd.min.js +0 -29
  2092. data/node_modules/handlebars/dist/handlebars.js +0 -5972
  2093. data/node_modules/handlebars/dist/handlebars.min.js +0 -29
  2094. data/node_modules/handlebars/dist/handlebars.runtime.amd.js +0 -1302
  2095. data/node_modules/handlebars/dist/handlebars.runtime.amd.min.js +0 -27
  2096. data/node_modules/handlebars/dist/handlebars.runtime.js +0 -2563
  2097. data/node_modules/handlebars/dist/handlebars.runtime.min.js +0 -27
  2098. data/node_modules/handlebars/lib/.eslintrc.js +0 -8
  2099. data/node_modules/handlebars/lib/handlebars/base.js +0 -94
  2100. data/node_modules/handlebars/lib/handlebars/compiler/ast.js +0 -32
  2101. data/node_modules/handlebars/lib/handlebars/compiler/base.js +0 -34
  2102. data/node_modules/handlebars/lib/handlebars/compiler/code-gen.js +0 -171
  2103. data/node_modules/handlebars/lib/handlebars/compiler/compiler.js +0 -594
  2104. data/node_modules/handlebars/lib/handlebars/compiler/helpers.js +0 -219
  2105. data/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js +0 -1293
  2106. data/node_modules/handlebars/lib/handlebars/compiler/parser.js +0 -622
  2107. data/node_modules/handlebars/lib/handlebars/compiler/printer.js +0 -178
  2108. data/node_modules/handlebars/lib/handlebars/compiler/visitor.js +0 -136
  2109. data/node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js +0 -234
  2110. data/node_modules/handlebars/lib/handlebars/decorators/inline.js +0 -22
  2111. data/node_modules/handlebars/lib/handlebars/decorators.js +0 -5
  2112. data/node_modules/handlebars/lib/handlebars/exception.js +0 -68
  2113. data/node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js +0 -35
  2114. data/node_modules/handlebars/lib/handlebars/helpers/each.js +0 -101
  2115. data/node_modules/handlebars/lib/handlebars/helpers/helper-missing.js +0 -15
  2116. data/node_modules/handlebars/lib/handlebars/helpers/if.js +0 -33
  2117. data/node_modules/handlebars/lib/handlebars/helpers/log.js +0 -19
  2118. data/node_modules/handlebars/lib/handlebars/helpers/lookup.js +0 -9
  2119. data/node_modules/handlebars/lib/handlebars/helpers/with.js +0 -39
  2120. data/node_modules/handlebars/lib/handlebars/helpers.js +0 -26
  2121. data/node_modules/handlebars/lib/handlebars/internal/create-new-lookup-object.js +0 -11
  2122. data/node_modules/handlebars/lib/handlebars/internal/proto-access.js +0 -70
  2123. data/node_modules/handlebars/lib/handlebars/internal/wrapHelper.js +0 -13
  2124. data/node_modules/handlebars/lib/handlebars/logger.js +0 -39
  2125. data/node_modules/handlebars/lib/handlebars/no-conflict.js +0 -23
  2126. data/node_modules/handlebars/lib/handlebars/runtime.js +0 -450
  2127. data/node_modules/handlebars/lib/handlebars/safe-string.js +0 -10
  2128. data/node_modules/handlebars/lib/handlebars/utils.js +0 -116
  2129. data/node_modules/handlebars/lib/handlebars.js +0 -46
  2130. data/node_modules/handlebars/lib/handlebars.runtime.js +0 -37
  2131. data/node_modules/handlebars/lib/index.js +0 -26
  2132. data/node_modules/handlebars/lib/precompiler.js +0 -341
  2133. data/node_modules/handlebars/package.json +0 -135
  2134. data/node_modules/handlebars/release-notes.md +0 -1102
  2135. data/node_modules/handlebars/runtime.d.ts +0 -5
  2136. data/node_modules/handlebars/runtime.js +0 -3
  2137. data/node_modules/handlebars/types/index.d.ts +0 -422
  2138. data/node_modules/has-flag/index.js +0 -8
  2139. data/node_modules/has-flag/license +0 -9
  2140. data/node_modules/has-flag/package.json +0 -44
  2141. data/node_modules/has-flag/readme.md +0 -70
  2142. data/node_modules/hosted-git-info/LICENSE +0 -13
  2143. data/node_modules/hosted-git-info/README.md +0 -133
  2144. data/node_modules/hosted-git-info/lib/from-url.js +0 -122
  2145. data/node_modules/hosted-git-info/lib/hosts.js +0 -227
  2146. data/node_modules/hosted-git-info/lib/index.js +0 -179
  2147. data/node_modules/hosted-git-info/lib/parse-url.js +0 -78
  2148. data/node_modules/hosted-git-info/package.json +0 -60
  2149. data/node_modules/human-signals/LICENSE +0 -201
  2150. data/node_modules/human-signals/README.md +0 -168
  2151. data/node_modules/human-signals/build/src/core.js +0 -273
  2152. data/node_modules/human-signals/build/src/main.d.ts +0 -73
  2153. data/node_modules/human-signals/build/src/main.js +0 -70
  2154. data/node_modules/human-signals/build/src/realtime.js +0 -16
  2155. data/node_modules/human-signals/build/src/signals.js +0 -34
  2156. data/node_modules/human-signals/package.json +0 -61
  2157. data/node_modules/import-fresh/index.d.ts +0 -30
  2158. data/node_modules/import-fresh/index.js +0 -33
  2159. data/node_modules/import-fresh/license +0 -9
  2160. data/node_modules/import-fresh/node_modules/resolve-from/index.js +0 -47
  2161. data/node_modules/import-fresh/node_modules/resolve-from/license +0 -9
  2162. data/node_modules/import-fresh/node_modules/resolve-from/package.json +0 -34
  2163. data/node_modules/import-fresh/node_modules/resolve-from/readme.md +0 -72
  2164. data/node_modules/import-fresh/package.json +0 -43
  2165. data/node_modules/import-fresh/readme.md +0 -48
  2166. data/node_modules/import-meta-resolve/index.d.ts +0 -18
  2167. data/node_modules/import-meta-resolve/index.js +0 -47
  2168. data/node_modules/import-meta-resolve/lib/errors.d.ts +0 -23
  2169. data/node_modules/import-meta-resolve/lib/errors.js +0 -507
  2170. data/node_modules/import-meta-resolve/lib/get-format.d.ts +0 -12
  2171. data/node_modules/import-meta-resolve/lib/get-format.js +0 -159
  2172. data/node_modules/import-meta-resolve/lib/package-json-reader.d.ts +0 -31
  2173. data/node_modules/import-meta-resolve/lib/package-json-reader.js +0 -177
  2174. data/node_modules/import-meta-resolve/lib/resolve.d.ts +0 -33
  2175. data/node_modules/import-meta-resolve/lib/resolve.js +0 -1297
  2176. data/node_modules/import-meta-resolve/lib/utils.d.ts +0 -5
  2177. data/node_modules/import-meta-resolve/lib/utils.js +0 -47
  2178. data/node_modules/import-meta-resolve/license +0 -74
  2179. data/node_modules/import-meta-resolve/package.json +0 -95
  2180. data/node_modules/import-meta-resolve/readme.md +0 -252
  2181. data/node_modules/index-to-position/index.d.ts +0 -21
  2182. data/node_modules/index-to-position/index.js +0 -29
  2183. data/node_modules/index-to-position/license +0 -9
  2184. data/node_modules/index-to-position/package.json +0 -47
  2185. data/node_modules/index-to-position/readme.md +0 -45
  2186. data/node_modules/ini/LICENSE +0 -15
  2187. data/node_modules/ini/README.md +0 -125
  2188. data/node_modules/ini/lib/ini.js +0 -278
  2189. data/node_modules/ini/package.json +0 -45
  2190. data/node_modules/is-arrayish/.editorconfig +0 -18
  2191. data/node_modules/is-arrayish/.istanbul.yml +0 -4
  2192. data/node_modules/is-arrayish/.npmignore +0 -5
  2193. data/node_modules/is-arrayish/.travis.yml +0 -17
  2194. data/node_modules/is-arrayish/LICENSE +0 -21
  2195. data/node_modules/is-arrayish/README.md +0 -16
  2196. data/node_modules/is-arrayish/index.js +0 -10
  2197. data/node_modules/is-arrayish/package.json +0 -34
  2198. data/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  2199. data/node_modules/is-fullwidth-code-point/index.js +0 -50
  2200. data/node_modules/is-fullwidth-code-point/license +0 -9
  2201. data/node_modules/is-fullwidth-code-point/package.json +0 -42
  2202. data/node_modules/is-fullwidth-code-point/readme.md +0 -39
  2203. data/node_modules/is-obj/index.d.ts +0 -22
  2204. data/node_modules/is-obj/index.js +0 -6
  2205. data/node_modules/is-obj/license +0 -9
  2206. data/node_modules/is-obj/package.json +0 -34
  2207. data/node_modules/is-obj/readme.md +0 -39
  2208. data/node_modules/is-stream/index.d.ts +0 -81
  2209. data/node_modules/is-stream/index.js +0 -29
  2210. data/node_modules/is-stream/license +0 -9
  2211. data/node_modules/is-stream/package.json +0 -44
  2212. data/node_modules/is-stream/readme.md +0 -60
  2213. data/node_modules/is-text-path/index.d.ts +0 -17
  2214. data/node_modules/is-text-path/index.js +0 -7
  2215. data/node_modules/is-text-path/license +0 -9
  2216. data/node_modules/is-text-path/package.json +0 -40
  2217. data/node_modules/is-text-path/readme.md +0 -34
  2218. data/node_modules/isexe/.npmignore +0 -2
  2219. data/node_modules/isexe/LICENSE +0 -15
  2220. data/node_modules/isexe/README.md +0 -51
  2221. data/node_modules/isexe/index.js +0 -57
  2222. data/node_modules/isexe/mode.js +0 -41
  2223. data/node_modules/isexe/package.json +0 -31
  2224. data/node_modules/isexe/test/basic.js +0 -221
  2225. data/node_modules/isexe/windows.js +0 -42
  2226. data/node_modules/jiti/LICENSE +0 -21
  2227. data/node_modules/jiti/README.md +0 -164
  2228. data/node_modules/jiti/bin/jiti.js +0 -16
  2229. data/node_modules/jiti/dist/babel.d.ts +0 -2
  2230. data/node_modules/jiti/dist/babel.js +0 -202
  2231. data/node_modules/jiti/dist/jiti.d.ts +0 -22
  2232. data/node_modules/jiti/dist/jiti.js +0 -1
  2233. data/node_modules/jiti/dist/plugins/babel-plugin-transform-import-meta.d.ts +0 -4
  2234. data/node_modules/jiti/dist/plugins/import-meta-env.d.ts +0 -5
  2235. data/node_modules/jiti/dist/types.d.ts +0 -35
  2236. data/node_modules/jiti/dist/utils.d.ts +0 -8
  2237. data/node_modules/jiti/lib/index.js +0 -15
  2238. data/node_modules/jiti/package.json +0 -81
  2239. data/node_modules/jiti/register.js +0 -3
  2240. data/node_modules/js-tokens/CHANGELOG.md +0 -151
  2241. data/node_modules/js-tokens/LICENSE +0 -21
  2242. data/node_modules/js-tokens/README.md +0 -240
  2243. data/node_modules/js-tokens/index.js +0 -23
  2244. data/node_modules/js-tokens/package.json +0 -30
  2245. data/node_modules/js-yaml/CHANGELOG.md +0 -616
  2246. data/node_modules/js-yaml/LICENSE +0 -21
  2247. data/node_modules/js-yaml/README.md +0 -246
  2248. data/node_modules/js-yaml/bin/js-yaml.js +0 -126
  2249. data/node_modules/js-yaml/dist/js-yaml.js +0 -3874
  2250. data/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  2251. data/node_modules/js-yaml/dist/js-yaml.mjs +0 -3851
  2252. data/node_modules/js-yaml/index.js +0 -47
  2253. data/node_modules/js-yaml/lib/common.js +0 -59
  2254. data/node_modules/js-yaml/lib/dumper.js +0 -965
  2255. data/node_modules/js-yaml/lib/exception.js +0 -55
  2256. data/node_modules/js-yaml/lib/loader.js +0 -1727
  2257. data/node_modules/js-yaml/lib/schema/core.js +0 -11
  2258. data/node_modules/js-yaml/lib/schema/default.js +0 -22
  2259. data/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  2260. data/node_modules/js-yaml/lib/schema/json.js +0 -19
  2261. data/node_modules/js-yaml/lib/schema.js +0 -121
  2262. data/node_modules/js-yaml/lib/snippet.js +0 -101
  2263. data/node_modules/js-yaml/lib/type/binary.js +0 -125
  2264. data/node_modules/js-yaml/lib/type/bool.js +0 -35
  2265. data/node_modules/js-yaml/lib/type/float.js +0 -97
  2266. data/node_modules/js-yaml/lib/type/int.js +0 -156
  2267. data/node_modules/js-yaml/lib/type/map.js +0 -8
  2268. data/node_modules/js-yaml/lib/type/merge.js +0 -12
  2269. data/node_modules/js-yaml/lib/type/null.js +0 -35
  2270. data/node_modules/js-yaml/lib/type/omap.js +0 -44
  2271. data/node_modules/js-yaml/lib/type/pairs.js +0 -53
  2272. data/node_modules/js-yaml/lib/type/seq.js +0 -8
  2273. data/node_modules/js-yaml/lib/type/set.js +0 -29
  2274. data/node_modules/js-yaml/lib/type/str.js +0 -8
  2275. data/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  2276. data/node_modules/js-yaml/lib/type.js +0 -66
  2277. data/node_modules/js-yaml/package.json +0 -66
  2278. data/node_modules/json-parse-even-better-errors/CHANGELOG.md +0 -50
  2279. data/node_modules/json-parse-even-better-errors/LICENSE.md +0 -25
  2280. data/node_modules/json-parse-even-better-errors/README.md +0 -96
  2281. data/node_modules/json-parse-even-better-errors/index.js +0 -121
  2282. data/node_modules/json-parse-even-better-errors/package.json +0 -33
  2283. data/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  2284. data/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  2285. data/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  2286. data/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  2287. data/node_modules/json-schema-traverse/LICENSE +0 -21
  2288. data/node_modules/json-schema-traverse/README.md +0 -95
  2289. data/node_modules/json-schema-traverse/index.d.ts +0 -40
  2290. data/node_modules/json-schema-traverse/index.js +0 -93
  2291. data/node_modules/json-schema-traverse/package.json +0 -43
  2292. data/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  2293. data/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  2294. data/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  2295. data/node_modules/jsonparse/.npmignore +0 -1
  2296. data/node_modules/jsonparse/LICENSE +0 -24
  2297. data/node_modules/jsonparse/README.markdown +0 -11
  2298. data/node_modules/jsonparse/bench.js +0 -26
  2299. data/node_modules/jsonparse/examples/twitterfeed.js +0 -30
  2300. data/node_modules/jsonparse/jsonparse.js +0 -413
  2301. data/node_modules/jsonparse/package.json +0 -22
  2302. data/node_modules/jsonparse/samplejson/basic.json +0 -167
  2303. data/node_modules/jsonparse/samplejson/basic2.json +0 -180
  2304. data/node_modules/jsonparse/test/big-token.js +0 -24
  2305. data/node_modules/jsonparse/test/boundary.js +0 -110
  2306. data/node_modules/jsonparse/test/offset.js +0 -67
  2307. data/node_modules/jsonparse/test/primitives.js +0 -57
  2308. data/node_modules/jsonparse/test/surrogate.js +0 -26
  2309. data/node_modules/jsonparse/test/unvalid.js +0 -15
  2310. data/node_modules/jsonparse/test/utf8.js +0 -38
  2311. data/node_modules/lefthook/README.md +0 -243
  2312. data/node_modules/lefthook/bin/index.js +0 -17
  2313. data/node_modules/lefthook/get-exe.js +0 -20
  2314. data/node_modules/lefthook/package.json +0 -40
  2315. data/node_modules/lefthook/postinstall.js +0 -21
  2316. data/node_modules/lefthook-darwin-arm64/README.md +0 -243
  2317. data/node_modules/lefthook-darwin-arm64/bin/lefthook +0 -0
  2318. data/node_modules/lefthook-darwin-arm64/package.json +0 -22
  2319. data/node_modules/lines-and-columns/LICENSE +0 -21
  2320. data/node_modules/lines-and-columns/README.md +0 -33
  2321. data/node_modules/lines-and-columns/build/index.d.ts +0 -13
  2322. data/node_modules/lines-and-columns/build/index.js +0 -62
  2323. data/node_modules/lines-and-columns/package.json +0 -49
  2324. data/node_modules/locate-path/index.d.ts +0 -92
  2325. data/node_modules/locate-path/index.js +0 -77
  2326. data/node_modules/locate-path/license +0 -9
  2327. data/node_modules/locate-path/package.json +0 -48
  2328. data/node_modules/locate-path/readme.md +0 -123
  2329. data/node_modules/lodash.camelcase/LICENSE +0 -47
  2330. data/node_modules/lodash.camelcase/README.md +0 -18
  2331. data/node_modules/lodash.camelcase/index.js +0 -599
  2332. data/node_modules/lodash.camelcase/package.json +0 -17
  2333. data/node_modules/lodash.isplainobject/LICENSE +0 -47
  2334. data/node_modules/lodash.isplainobject/README.md +0 -18
  2335. data/node_modules/lodash.isplainobject/index.js +0 -139
  2336. data/node_modules/lodash.isplainobject/package.json +0 -17
  2337. data/node_modules/lodash.kebabcase/LICENSE +0 -47
  2338. data/node_modules/lodash.kebabcase/README.md +0 -18
  2339. data/node_modules/lodash.kebabcase/index.js +0 -435
  2340. data/node_modules/lodash.kebabcase/package.json +0 -17
  2341. data/node_modules/lodash.merge/LICENSE +0 -47
  2342. data/node_modules/lodash.merge/README.md +0 -18
  2343. data/node_modules/lodash.merge/index.js +0 -1977
  2344. data/node_modules/lodash.merge/package.json +0 -16
  2345. data/node_modules/lodash.mergewith/LICENSE +0 -47
  2346. data/node_modules/lodash.mergewith/README.md +0 -18
  2347. data/node_modules/lodash.mergewith/index.js +0 -1977
  2348. data/node_modules/lodash.mergewith/package.json +0 -16
  2349. data/node_modules/lodash.snakecase/LICENSE +0 -47
  2350. data/node_modules/lodash.snakecase/README.md +0 -18
  2351. data/node_modules/lodash.snakecase/index.js +0 -435
  2352. data/node_modules/lodash.snakecase/package.json +0 -17
  2353. data/node_modules/lodash.startcase/LICENSE +0 -47
  2354. data/node_modules/lodash.startcase/README.md +0 -18
  2355. data/node_modules/lodash.startcase/index.js +0 -580
  2356. data/node_modules/lodash.startcase/package.json +0 -17
  2357. data/node_modules/lodash.uniq/LICENSE +0 -47
  2358. data/node_modules/lodash.uniq/README.md +0 -18
  2359. data/node_modules/lodash.uniq/index.js +0 -896
  2360. data/node_modules/lodash.uniq/package.json +0 -17
  2361. data/node_modules/lodash.upperfirst/LICENSE +0 -47
  2362. data/node_modules/lodash.upperfirst/README.md +0 -18
  2363. data/node_modules/lodash.upperfirst/index.js +0 -303
  2364. data/node_modules/lodash.upperfirst/package.json +0 -17
  2365. data/node_modules/lru-cache/LICENSE +0 -15
  2366. data/node_modules/lru-cache/README.md +0 -331
  2367. data/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1277
  2368. data/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  2369. data/node_modules/lru-cache/dist/commonjs/index.js +0 -1546
  2370. data/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  2371. data/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  2372. data/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  2373. data/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  2374. data/node_modules/lru-cache/dist/esm/index.d.ts +0 -1277
  2375. data/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  2376. data/node_modules/lru-cache/dist/esm/index.js +0 -1542
  2377. data/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  2378. data/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  2379. data/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  2380. data/node_modules/lru-cache/dist/esm/package.json +0 -3
  2381. data/node_modules/lru-cache/package.json +0 -116
  2382. data/node_modules/meow/build/dependencies.js +0 -8828
  2383. data/node_modules/meow/build/index.d.ts +0 -1425
  2384. data/node_modules/meow/build/index.js +0 -95
  2385. data/node_modules/meow/build/licenses.md +0 -1620
  2386. data/node_modules/meow/build/options.js +0 -92
  2387. data/node_modules/meow/build/parser.js +0 -84
  2388. data/node_modules/meow/build/utils.js +0 -7
  2389. data/node_modules/meow/build/validate.js +0 -122
  2390. data/node_modules/meow/license +0 -9
  2391. data/node_modules/meow/package.json +0 -105
  2392. data/node_modules/meow/readme.md +0 -314
  2393. data/node_modules/merge-stream/LICENSE +0 -21
  2394. data/node_modules/merge-stream/README.md +0 -78
  2395. data/node_modules/merge-stream/index.js +0 -41
  2396. data/node_modules/merge-stream/package.json +0 -19
  2397. data/node_modules/mimic-fn/index.d.ts +0 -52
  2398. data/node_modules/mimic-fn/index.js +0 -71
  2399. data/node_modules/mimic-fn/license +0 -9
  2400. data/node_modules/mimic-fn/package.json +0 -45
  2401. data/node_modules/mimic-fn/readme.md +0 -90
  2402. data/node_modules/minimist/.eslintrc +0 -29
  2403. data/node_modules/minimist/.github/FUNDING.yml +0 -12
  2404. data/node_modules/minimist/.nycrc +0 -14
  2405. data/node_modules/minimist/CHANGELOG.md +0 -298
  2406. data/node_modules/minimist/LICENSE +0 -18
  2407. data/node_modules/minimist/README.md +0 -121
  2408. data/node_modules/minimist/example/parse.js +0 -4
  2409. data/node_modules/minimist/index.js +0 -263
  2410. data/node_modules/minimist/package.json +0 -75
  2411. data/node_modules/minimist/test/all_bool.js +0 -34
  2412. data/node_modules/minimist/test/bool.js +0 -177
  2413. data/node_modules/minimist/test/dash.js +0 -43
  2414. data/node_modules/minimist/test/default_bool.js +0 -37
  2415. data/node_modules/minimist/test/dotted.js +0 -24
  2416. data/node_modules/minimist/test/kv_short.js +0 -32
  2417. data/node_modules/minimist/test/long.js +0 -33
  2418. data/node_modules/minimist/test/num.js +0 -38
  2419. data/node_modules/minimist/test/parse.js +0 -209
  2420. data/node_modules/minimist/test/parse_modified.js +0 -11
  2421. data/node_modules/minimist/test/proto.js +0 -64
  2422. data/node_modules/minimist/test/short.js +0 -69
  2423. data/node_modules/minimist/test/stop_early.js +0 -17
  2424. data/node_modules/minimist/test/unknown.js +0 -104
  2425. data/node_modules/minimist/test/whitespace.js +0 -10
  2426. data/node_modules/neo-async/LICENSE +0 -22
  2427. data/node_modules/neo-async/README.md +0 -273
  2428. data/node_modules/neo-async/all.js +0 -3
  2429. data/node_modules/neo-async/allLimit.js +0 -3
  2430. data/node_modules/neo-async/allSeries.js +0 -3
  2431. data/node_modules/neo-async/angelFall.js +0 -3
  2432. data/node_modules/neo-async/any.js +0 -3
  2433. data/node_modules/neo-async/anyLimit.js +0 -3
  2434. data/node_modules/neo-async/anySeries.js +0 -3
  2435. data/node_modules/neo-async/apply.js +0 -3
  2436. data/node_modules/neo-async/applyEach.js +0 -3
  2437. data/node_modules/neo-async/applyEachSeries.js +0 -3
  2438. data/node_modules/neo-async/async.js +0 -9184
  2439. data/node_modules/neo-async/async.min.js +0 -80
  2440. data/node_modules/neo-async/asyncify.js +0 -3
  2441. data/node_modules/neo-async/auto.js +0 -3
  2442. data/node_modules/neo-async/autoInject.js +0 -3
  2443. data/node_modules/neo-async/cargo.js +0 -3
  2444. data/node_modules/neo-async/compose.js +0 -3
  2445. data/node_modules/neo-async/concat.js +0 -3
  2446. data/node_modules/neo-async/concatLimit.js +0 -3
  2447. data/node_modules/neo-async/concatSeries.js +0 -3
  2448. data/node_modules/neo-async/constant.js +0 -3
  2449. data/node_modules/neo-async/createLogger.js +0 -3
  2450. data/node_modules/neo-async/detect.js +0 -3
  2451. data/node_modules/neo-async/detectLimit.js +0 -3
  2452. data/node_modules/neo-async/detectSeries.js +0 -3
  2453. data/node_modules/neo-async/dir.js +0 -3
  2454. data/node_modules/neo-async/doDuring.js +0 -3
  2455. data/node_modules/neo-async/doUntil.js +0 -3
  2456. data/node_modules/neo-async/doWhilst.js +0 -3
  2457. data/node_modules/neo-async/during.js +0 -3
  2458. data/node_modules/neo-async/each.js +0 -3
  2459. data/node_modules/neo-async/eachLimit.js +0 -3
  2460. data/node_modules/neo-async/eachOf.js +0 -3
  2461. data/node_modules/neo-async/eachOfLimit.js +0 -3
  2462. data/node_modules/neo-async/eachOfSeries.js +0 -3
  2463. data/node_modules/neo-async/eachSeries.js +0 -3
  2464. data/node_modules/neo-async/ensureAsync.js +0 -3
  2465. data/node_modules/neo-async/every.js +0 -3
  2466. data/node_modules/neo-async/everyLimit.js +0 -3
  2467. data/node_modules/neo-async/everySeries.js +0 -3
  2468. data/node_modules/neo-async/fast.js +0 -3
  2469. data/node_modules/neo-async/filter.js +0 -3
  2470. data/node_modules/neo-async/filterLimit.js +0 -3
  2471. data/node_modules/neo-async/filterSeries.js +0 -3
  2472. data/node_modules/neo-async/find.js +0 -3
  2473. data/node_modules/neo-async/findLimit.js +0 -3
  2474. data/node_modules/neo-async/findSeries.js +0 -3
  2475. data/node_modules/neo-async/foldl.js +0 -3
  2476. data/node_modules/neo-async/foldr.js +0 -3
  2477. data/node_modules/neo-async/forEach.js +0 -3
  2478. data/node_modules/neo-async/forEachLimit.js +0 -3
  2479. data/node_modules/neo-async/forEachOf.js +0 -3
  2480. data/node_modules/neo-async/forEachOfLimit.js +0 -3
  2481. data/node_modules/neo-async/forEachOfSeries.js +0 -3
  2482. data/node_modules/neo-async/forEachSeries.js +0 -3
  2483. data/node_modules/neo-async/forever.js +0 -3
  2484. data/node_modules/neo-async/groupBy.js +0 -3
  2485. data/node_modules/neo-async/groupByLimit.js +0 -3
  2486. data/node_modules/neo-async/groupBySeries.js +0 -3
  2487. data/node_modules/neo-async/inject.js +0 -3
  2488. data/node_modules/neo-async/iterator.js +0 -3
  2489. data/node_modules/neo-async/log.js +0 -3
  2490. data/node_modules/neo-async/map.js +0 -3
  2491. data/node_modules/neo-async/mapLimit.js +0 -3
  2492. data/node_modules/neo-async/mapSeries.js +0 -3
  2493. data/node_modules/neo-async/mapValues.js +0 -3
  2494. data/node_modules/neo-async/mapValuesLimit.js +0 -3
  2495. data/node_modules/neo-async/mapValuesSeries.js +0 -3
  2496. data/node_modules/neo-async/memoize.js +0 -3
  2497. data/node_modules/neo-async/nextTick.js +0 -3
  2498. data/node_modules/neo-async/omit.js +0 -3
  2499. data/node_modules/neo-async/omitLimit.js +0 -3
  2500. data/node_modules/neo-async/omitSeries.js +0 -3
  2501. data/node_modules/neo-async/package.json +0 -57
  2502. data/node_modules/neo-async/parallel.js +0 -3
  2503. data/node_modules/neo-async/parallelLimit.js +0 -3
  2504. data/node_modules/neo-async/pick.js +0 -3
  2505. data/node_modules/neo-async/pickLimit.js +0 -3
  2506. data/node_modules/neo-async/pickSeries.js +0 -3
  2507. data/node_modules/neo-async/priorityQueue.js +0 -3
  2508. data/node_modules/neo-async/queue.js +0 -3
  2509. data/node_modules/neo-async/race.js +0 -3
  2510. data/node_modules/neo-async/reduce.js +0 -3
  2511. data/node_modules/neo-async/reduceRight.js +0 -3
  2512. data/node_modules/neo-async/reflect.js +0 -3
  2513. data/node_modules/neo-async/reflectAll.js +0 -3
  2514. data/node_modules/neo-async/reject.js +0 -3
  2515. data/node_modules/neo-async/rejectLimit.js +0 -3
  2516. data/node_modules/neo-async/rejectSeries.js +0 -3
  2517. data/node_modules/neo-async/retry.js +0 -3
  2518. data/node_modules/neo-async/retryable.js +0 -3
  2519. data/node_modules/neo-async/safe.js +0 -3
  2520. data/node_modules/neo-async/select.js +0 -3
  2521. data/node_modules/neo-async/selectLimit.js +0 -3
  2522. data/node_modules/neo-async/selectSeries.js +0 -3
  2523. data/node_modules/neo-async/seq.js +0 -3
  2524. data/node_modules/neo-async/series.js +0 -3
  2525. data/node_modules/neo-async/setImmediate.js +0 -3
  2526. data/node_modules/neo-async/some.js +0 -3
  2527. data/node_modules/neo-async/someLimit.js +0 -3
  2528. data/node_modules/neo-async/someSeries.js +0 -3
  2529. data/node_modules/neo-async/sortBy.js +0 -3
  2530. data/node_modules/neo-async/sortByLimit.js +0 -3
  2531. data/node_modules/neo-async/sortBySeries.js +0 -3
  2532. data/node_modules/neo-async/timeout.js +0 -3
  2533. data/node_modules/neo-async/times.js +0 -3
  2534. data/node_modules/neo-async/timesLimit.js +0 -3
  2535. data/node_modules/neo-async/timesSeries.js +0 -3
  2536. data/node_modules/neo-async/transform.js +0 -3
  2537. data/node_modules/neo-async/transformLimit.js +0 -3
  2538. data/node_modules/neo-async/transformSeries.js +0 -3
  2539. data/node_modules/neo-async/tryEach.js +0 -3
  2540. data/node_modules/neo-async/unmemoize.js +0 -3
  2541. data/node_modules/neo-async/until.js +0 -3
  2542. data/node_modules/neo-async/waterfall.js +0 -3
  2543. data/node_modules/neo-async/whilst.js +0 -3
  2544. data/node_modules/neo-async/wrapSync.js +0 -3
  2545. data/node_modules/normalize-package-data/LICENSE +0 -15
  2546. data/node_modules/normalize-package-data/README.md +0 -108
  2547. data/node_modules/normalize-package-data/lib/extract_description.js +0 -24
  2548. data/node_modules/normalize-package-data/lib/fixer.js +0 -475
  2549. data/node_modules/normalize-package-data/lib/make_warning.js +0 -22
  2550. data/node_modules/normalize-package-data/lib/normalize.js +0 -48
  2551. data/node_modules/normalize-package-data/lib/safe_format.js +0 -11
  2552. data/node_modules/normalize-package-data/lib/typos.json +0 -25
  2553. data/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
  2554. data/node_modules/normalize-package-data/package.json +0 -55
  2555. data/node_modules/npm-run-path/index.d.ts +0 -90
  2556. data/node_modules/npm-run-path/index.js +0 -52
  2557. data/node_modules/npm-run-path/license +0 -9
  2558. data/node_modules/npm-run-path/node_modules/path-key/index.d.ts +0 -31
  2559. data/node_modules/npm-run-path/node_modules/path-key/index.js +0 -12
  2560. data/node_modules/npm-run-path/node_modules/path-key/license +0 -9
  2561. data/node_modules/npm-run-path/node_modules/path-key/package.json +0 -41
  2562. data/node_modules/npm-run-path/node_modules/path-key/readme.md +0 -57
  2563. data/node_modules/npm-run-path/package.json +0 -49
  2564. data/node_modules/npm-run-path/readme.md +0 -104
  2565. data/node_modules/onetime/index.d.ts +0 -59
  2566. data/node_modules/onetime/index.js +0 -41
  2567. data/node_modules/onetime/license +0 -9
  2568. data/node_modules/onetime/package.json +0 -45
  2569. data/node_modules/onetime/readme.md +0 -94
  2570. data/node_modules/p-limit/index.d.ts +0 -40
  2571. data/node_modules/p-limit/index.js +0 -68
  2572. data/node_modules/p-limit/license +0 -9
  2573. data/node_modules/p-limit/package.json +0 -54
  2574. data/node_modules/p-limit/readme.md +0 -99
  2575. data/node_modules/p-locate/index.d.ts +0 -49
  2576. data/node_modules/p-locate/index.js +0 -48
  2577. data/node_modules/p-locate/license +0 -9
  2578. data/node_modules/p-locate/package.json +0 -56
  2579. data/node_modules/p-locate/readme.md +0 -91
  2580. data/node_modules/parent-module/index.js +0 -37
  2581. data/node_modules/parent-module/license +0 -9
  2582. data/node_modules/parent-module/package.json +0 -46
  2583. data/node_modules/parent-module/readme.md +0 -67
  2584. data/node_modules/parse-json/index.js +0 -54
  2585. data/node_modules/parse-json/license +0 -9
  2586. data/node_modules/parse-json/package.json +0 -45
  2587. data/node_modules/parse-json/readme.md +0 -119
  2588. data/node_modules/path-exists/index.d.ts +0 -31
  2589. data/node_modules/path-exists/index.js +0 -19
  2590. data/node_modules/path-exists/license +0 -9
  2591. data/node_modules/path-exists/package.json +0 -41
  2592. data/node_modules/path-exists/readme.md +0 -52
  2593. data/node_modules/path-key/index.d.ts +0 -40
  2594. data/node_modules/path-key/index.js +0 -16
  2595. data/node_modules/path-key/license +0 -9
  2596. data/node_modules/path-key/package.json +0 -39
  2597. data/node_modules/path-key/readme.md +0 -61
  2598. data/node_modules/picocolors/LICENSE +0 -15
  2599. data/node_modules/picocolors/README.md +0 -21
  2600. data/node_modules/picocolors/package.json +0 -25
  2601. data/node_modules/picocolors/picocolors.browser.js +0 -4
  2602. data/node_modules/picocolors/picocolors.d.ts +0 -5
  2603. data/node_modules/picocolors/picocolors.js +0 -65
  2604. data/node_modules/picocolors/types.ts +0 -30
  2605. data/node_modules/read-package-up/index.d.ts +0 -81
  2606. data/node_modules/read-package-up/index.js +0 -27
  2607. data/node_modules/read-package-up/license +0 -9
  2608. data/node_modules/read-package-up/package.json +0 -69
  2609. data/node_modules/read-package-up/readme.md +0 -68
  2610. data/node_modules/read-pkg/index.d.ts +0 -68
  2611. data/node_modules/read-pkg/index.js +0 -43
  2612. data/node_modules/read-pkg/license +0 -9
  2613. data/node_modules/read-pkg/node_modules/parse-json/index.d.ts +0 -126
  2614. data/node_modules/read-pkg/node_modules/parse-json/index.js +0 -96
  2615. data/node_modules/read-pkg/node_modules/parse-json/license +0 -9
  2616. data/node_modules/read-pkg/node_modules/parse-json/package.json +0 -53
  2617. data/node_modules/read-pkg/node_modules/parse-json/readme.md +0 -113
  2618. data/node_modules/read-pkg/package.json +0 -52
  2619. data/node_modules/read-pkg/readme.md +0 -81
  2620. data/node_modules/require-directory/.jshintrc +0 -67
  2621. data/node_modules/require-directory/.npmignore +0 -1
  2622. data/node_modules/require-directory/.travis.yml +0 -3
  2623. data/node_modules/require-directory/LICENSE +0 -22
  2624. data/node_modules/require-directory/README.markdown +0 -184
  2625. data/node_modules/require-directory/index.js +0 -86
  2626. data/node_modules/require-directory/package.json +0 -40
  2627. data/node_modules/require-from-string/index.js +0 -34
  2628. data/node_modules/require-from-string/license +0 -21
  2629. data/node_modules/require-from-string/package.json +0 -28
  2630. data/node_modules/require-from-string/readme.md +0 -56
  2631. data/node_modules/resolve-from/index.d.ts +0 -31
  2632. data/node_modules/resolve-from/index.js +0 -47
  2633. data/node_modules/resolve-from/license +0 -9
  2634. data/node_modules/resolve-from/package.json +0 -36
  2635. data/node_modules/resolve-from/readme.md +0 -72
  2636. data/node_modules/semver/LICENSE +0 -15
  2637. data/node_modules/semver/README.md +0 -654
  2638. data/node_modules/semver/bin/semver.js +0 -188
  2639. data/node_modules/semver/classes/comparator.js +0 -141
  2640. data/node_modules/semver/classes/index.js +0 -5
  2641. data/node_modules/semver/classes/range.js +0 -554
  2642. data/node_modules/semver/classes/semver.js +0 -302
  2643. data/node_modules/semver/functions/clean.js +0 -6
  2644. data/node_modules/semver/functions/cmp.js +0 -52
  2645. data/node_modules/semver/functions/coerce.js +0 -60
  2646. data/node_modules/semver/functions/compare-build.js +0 -7
  2647. data/node_modules/semver/functions/compare-loose.js +0 -3
  2648. data/node_modules/semver/functions/compare.js +0 -5
  2649. data/node_modules/semver/functions/diff.js +0 -65
  2650. data/node_modules/semver/functions/eq.js +0 -3
  2651. data/node_modules/semver/functions/gt.js +0 -3
  2652. data/node_modules/semver/functions/gte.js +0 -3
  2653. data/node_modules/semver/functions/inc.js +0 -19
  2654. data/node_modules/semver/functions/lt.js +0 -3
  2655. data/node_modules/semver/functions/lte.js +0 -3
  2656. data/node_modules/semver/functions/major.js +0 -3
  2657. data/node_modules/semver/functions/minor.js +0 -3
  2658. data/node_modules/semver/functions/neq.js +0 -3
  2659. data/node_modules/semver/functions/parse.js +0 -16
  2660. data/node_modules/semver/functions/patch.js +0 -3
  2661. data/node_modules/semver/functions/prerelease.js +0 -6
  2662. data/node_modules/semver/functions/rcompare.js +0 -3
  2663. data/node_modules/semver/functions/rsort.js +0 -3
  2664. data/node_modules/semver/functions/satisfies.js +0 -10
  2665. data/node_modules/semver/functions/sort.js +0 -3
  2666. data/node_modules/semver/functions/valid.js +0 -6
  2667. data/node_modules/semver/index.js +0 -89
  2668. data/node_modules/semver/internal/constants.js +0 -35
  2669. data/node_modules/semver/internal/debug.js +0 -9
  2670. data/node_modules/semver/internal/identifiers.js +0 -23
  2671. data/node_modules/semver/internal/lrucache.js +0 -40
  2672. data/node_modules/semver/internal/parse-options.js +0 -15
  2673. data/node_modules/semver/internal/re.js +0 -217
  2674. data/node_modules/semver/package.json +0 -77
  2675. data/node_modules/semver/preload.js +0 -2
  2676. data/node_modules/semver/range.bnf +0 -16
  2677. data/node_modules/semver/ranges/gtr.js +0 -4
  2678. data/node_modules/semver/ranges/intersects.js +0 -7
  2679. data/node_modules/semver/ranges/ltr.js +0 -4
  2680. data/node_modules/semver/ranges/max-satisfying.js +0 -25
  2681. data/node_modules/semver/ranges/min-satisfying.js +0 -24
  2682. data/node_modules/semver/ranges/min-version.js +0 -61
  2683. data/node_modules/semver/ranges/outside.js +0 -80
  2684. data/node_modules/semver/ranges/simplify.js +0 -47
  2685. data/node_modules/semver/ranges/subset.js +0 -247
  2686. data/node_modules/semver/ranges/to-comparators.js +0 -8
  2687. data/node_modules/semver/ranges/valid.js +0 -11
  2688. data/node_modules/shebang-command/index.js +0 -19
  2689. data/node_modules/shebang-command/license +0 -9
  2690. data/node_modules/shebang-command/package.json +0 -34
  2691. data/node_modules/shebang-command/readme.md +0 -34
  2692. data/node_modules/shebang-regex/index.d.ts +0 -22
  2693. data/node_modules/shebang-regex/index.js +0 -2
  2694. data/node_modules/shebang-regex/license +0 -9
  2695. data/node_modules/shebang-regex/package.json +0 -35
  2696. data/node_modules/shebang-regex/readme.md +0 -33
  2697. data/node_modules/signal-exit/LICENSE.txt +0 -16
  2698. data/node_modules/signal-exit/README.md +0 -74
  2699. data/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  2700. data/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  2701. data/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  2702. data/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  2703. data/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  2704. data/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  2705. data/node_modules/signal-exit/dist/cjs/index.js +0 -279
  2706. data/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  2707. data/node_modules/signal-exit/dist/cjs/package.json +0 -3
  2708. data/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  2709. data/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  2710. data/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  2711. data/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  2712. data/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  2713. data/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  2714. data/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  2715. data/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  2716. data/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  2717. data/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  2718. data/node_modules/signal-exit/dist/mjs/index.js +0 -275
  2719. data/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  2720. data/node_modules/signal-exit/dist/mjs/package.json +0 -3
  2721. data/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  2722. data/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  2723. data/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  2724. data/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  2725. data/node_modules/signal-exit/package.json +0 -106
  2726. data/node_modules/source-map/CHANGELOG.md +0 -301
  2727. data/node_modules/source-map/LICENSE +0 -28
  2728. data/node_modules/source-map/README.md +0 -742
  2729. data/node_modules/source-map/dist/source-map.debug.js +0 -3234
  2730. data/node_modules/source-map/dist/source-map.js +0 -3233
  2731. data/node_modules/source-map/dist/source-map.min.js +0 -2
  2732. data/node_modules/source-map/dist/source-map.min.js.map +0 -1
  2733. data/node_modules/source-map/lib/array-set.js +0 -121
  2734. data/node_modules/source-map/lib/base64-vlq.js +0 -140
  2735. data/node_modules/source-map/lib/base64.js +0 -67
  2736. data/node_modules/source-map/lib/binary-search.js +0 -111
  2737. data/node_modules/source-map/lib/mapping-list.js +0 -79
  2738. data/node_modules/source-map/lib/quick-sort.js +0 -114
  2739. data/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  2740. data/node_modules/source-map/lib/source-map-generator.js +0 -425
  2741. data/node_modules/source-map/lib/source-node.js +0 -413
  2742. data/node_modules/source-map/lib/util.js +0 -488
  2743. data/node_modules/source-map/package.json +0 -73
  2744. data/node_modules/source-map/source-map.d.ts +0 -98
  2745. data/node_modules/source-map/source-map.js +0 -8
  2746. data/node_modules/spdx-correct/LICENSE +0 -202
  2747. data/node_modules/spdx-correct/README.md +0 -22
  2748. data/node_modules/spdx-correct/index.js +0 -386
  2749. data/node_modules/spdx-correct/package.json +0 -32
  2750. data/node_modules/spdx-exceptions/README.md +0 -36
  2751. data/node_modules/spdx-exceptions/deprecated.json +0 -3
  2752. data/node_modules/spdx-exceptions/index.json +0 -68
  2753. data/node_modules/spdx-exceptions/package.json +0 -19
  2754. data/node_modules/spdx-expression-parse/AUTHORS +0 -4
  2755. data/node_modules/spdx-expression-parse/LICENSE +0 -22
  2756. data/node_modules/spdx-expression-parse/README.md +0 -91
  2757. data/node_modules/spdx-expression-parse/index.js +0 -8
  2758. data/node_modules/spdx-expression-parse/package.json +0 -39
  2759. data/node_modules/spdx-expression-parse/parse.js +0 -138
  2760. data/node_modules/spdx-expression-parse/scan.js +0 -131
  2761. data/node_modules/spdx-license-ids/README.md +0 -52
  2762. data/node_modules/spdx-license-ids/deprecated.json +0 -28
  2763. data/node_modules/spdx-license-ids/index.json +0 -636
  2764. data/node_modules/spdx-license-ids/package.json +0 -39
  2765. data/node_modules/split2/LICENSE +0 -13
  2766. data/node_modules/split2/README.md +0 -85
  2767. data/node_modules/split2/bench.js +0 -27
  2768. data/node_modules/split2/index.js +0 -141
  2769. data/node_modules/split2/package.json +0 -39
  2770. data/node_modules/split2/test.js +0 -409
  2771. data/node_modules/string-width/index.d.ts +0 -29
  2772. data/node_modules/string-width/index.js +0 -47
  2773. data/node_modules/string-width/license +0 -9
  2774. data/node_modules/string-width/package.json +0 -56
  2775. data/node_modules/string-width/readme.md +0 -50
  2776. data/node_modules/strip-ansi/index.d.ts +0 -17
  2777. data/node_modules/strip-ansi/index.js +0 -4
  2778. data/node_modules/strip-ansi/license +0 -9
  2779. data/node_modules/strip-ansi/package.json +0 -54
  2780. data/node_modules/strip-ansi/readme.md +0 -46
  2781. data/node_modules/strip-final-newline/index.js +0 -14
  2782. data/node_modules/strip-final-newline/license +0 -9
  2783. data/node_modules/strip-final-newline/package.json +0 -43
  2784. data/node_modules/strip-final-newline/readme.md +0 -35
  2785. data/node_modules/supports-color/browser.js +0 -5
  2786. data/node_modules/supports-color/index.js +0 -131
  2787. data/node_modules/supports-color/license +0 -9
  2788. data/node_modules/supports-color/package.json +0 -53
  2789. data/node_modules/supports-color/readme.md +0 -66
  2790. data/node_modules/temp-dir/index.d.ts +0 -22
  2791. data/node_modules/temp-dir/index.js +0 -6
  2792. data/node_modules/temp-dir/license +0 -9
  2793. data/node_modules/temp-dir/package.json +0 -49
  2794. data/node_modules/temp-dir/readme.md +0 -27
  2795. data/node_modules/tempfile/index.d.ts +0 -30
  2796. data/node_modules/tempfile/index.js +0 -18
  2797. data/node_modules/tempfile/license +0 -9
  2798. data/node_modules/tempfile/package.json +0 -45
  2799. data/node_modules/tempfile/readme.md +0 -49
  2800. data/node_modules/text-extensions/index.d.ts +0 -14
  2801. data/node_modules/text-extensions/index.js +0 -3
  2802. data/node_modules/text-extensions/license +0 -9
  2803. data/node_modules/text-extensions/package.json +0 -40
  2804. data/node_modules/text-extensions/readme.md +0 -37
  2805. data/node_modules/text-extensions/text-extensions.json +0 -328
  2806. data/node_modules/text-extensions/text-extensions.json.d.ts +0 -3
  2807. data/node_modules/through/.travis.yml +0 -5
  2808. data/node_modules/through/LICENSE.APACHE2 +0 -15
  2809. data/node_modules/through/LICENSE.MIT +0 -24
  2810. data/node_modules/through/index.js +0 -108
  2811. data/node_modules/through/package.json +0 -36
  2812. data/node_modules/through/readme.markdown +0 -64
  2813. data/node_modules/through/test/async.js +0 -28
  2814. data/node_modules/through/test/auto-destroy.js +0 -30
  2815. data/node_modules/through/test/buffering.js +0 -71
  2816. data/node_modules/through/test/end.js +0 -45
  2817. data/node_modules/through/test/index.js +0 -133
  2818. data/node_modules/type-fest/index.d.ts +0 -166
  2819. data/node_modules/type-fest/package.json +0 -72
  2820. data/node_modules/type-fest/readme.md +0 -1005
  2821. data/node_modules/type-fest/source/and.d.ts +0 -25
  2822. data/node_modules/type-fest/source/array-indices.d.ts +0 -23
  2823. data/node_modules/type-fest/source/array-slice.d.ts +0 -107
  2824. data/node_modules/type-fest/source/array-splice.d.ts +0 -97
  2825. data/node_modules/type-fest/source/array-tail.d.ts +0 -25
  2826. data/node_modules/type-fest/source/array-values.d.ts +0 -22
  2827. data/node_modules/type-fest/source/arrayable.d.ts +0 -26
  2828. data/node_modules/type-fest/source/async-return-type.d.ts +0 -23
  2829. data/node_modules/type-fest/source/asyncify.d.ts +0 -32
  2830. data/node_modules/type-fest/source/basic.d.ts +0 -68
  2831. data/node_modules/type-fest/source/camel-case.d.ts +0 -80
  2832. data/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +0 -88
  2833. data/node_modules/type-fest/source/camel-cased-properties.d.ts +0 -36
  2834. data/node_modules/type-fest/source/conditional-except.d.ts +0 -45
  2835. data/node_modules/type-fest/source/conditional-keys.d.ts +0 -47
  2836. data/node_modules/type-fest/source/conditional-pick-deep.d.ts +0 -104
  2837. data/node_modules/type-fest/source/conditional-pick.d.ts +0 -44
  2838. data/node_modules/type-fest/source/conditional-simplify.d.ts +0 -32
  2839. data/node_modules/type-fest/source/delimiter-case.d.ts +0 -99
  2840. data/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +0 -84
  2841. data/node_modules/type-fest/source/delimiter-cased-properties.d.ts +0 -37
  2842. data/node_modules/type-fest/source/distributed-omit.d.ts +0 -89
  2843. data/node_modules/type-fest/source/distributed-pick.d.ts +0 -85
  2844. data/node_modules/type-fest/source/empty-object.d.ts +0 -46
  2845. data/node_modules/type-fest/source/enforce-optional.d.ts +0 -47
  2846. data/node_modules/type-fest/source/entries.d.ts +0 -62
  2847. data/node_modules/type-fest/source/entry.d.ts +0 -65
  2848. data/node_modules/type-fest/source/exact.d.ts +0 -67
  2849. data/node_modules/type-fest/source/except.d.ts +0 -80
  2850. data/node_modules/type-fest/source/find-global-type.d.ts +0 -64
  2851. data/node_modules/type-fest/source/fixed-length-array.d.ts +0 -43
  2852. data/node_modules/type-fest/source/get.d.ts +0 -191
  2853. data/node_modules/type-fest/source/global-this.d.ts +0 -21
  2854. data/node_modules/type-fest/source/greater-than-or-equal.d.ts +0 -22
  2855. data/node_modules/type-fest/source/greater-than.d.ts +0 -51
  2856. data/node_modules/type-fest/source/has-optional-keys.d.ts +0 -21
  2857. data/node_modules/type-fest/source/has-readonly-keys.d.ts +0 -21
  2858. data/node_modules/type-fest/source/has-required-keys.d.ts +0 -59
  2859. data/node_modules/type-fest/source/has-writable-keys.d.ts +0 -21
  2860. data/node_modules/type-fest/source/if-any.d.ts +0 -24
  2861. data/node_modules/type-fest/source/if-empty-object.d.ts +0 -26
  2862. data/node_modules/type-fest/source/if-never.d.ts +0 -24
  2863. data/node_modules/type-fest/source/if-null.d.ts +0 -24
  2864. data/node_modules/type-fest/source/if-unknown.d.ts +0 -24
  2865. data/node_modules/type-fest/source/includes.d.ts +0 -22
  2866. data/node_modules/type-fest/source/int-range.d.ts +0 -53
  2867. data/node_modules/type-fest/source/internal/array.d.ts +0 -93
  2868. data/node_modules/type-fest/source/internal/characters.d.ts +0 -33
  2869. data/node_modules/type-fest/source/internal/index.d.ts +0 -8
  2870. data/node_modules/type-fest/source/internal/keys.d.ts +0 -97
  2871. data/node_modules/type-fest/source/internal/numeric.d.ts +0 -91
  2872. data/node_modules/type-fest/source/internal/object.d.ts +0 -82
  2873. data/node_modules/type-fest/source/internal/string.d.ts +0 -210
  2874. data/node_modules/type-fest/source/internal/tuple.d.ts +0 -88
  2875. data/node_modules/type-fest/source/internal/type.d.ts +0 -113
  2876. data/node_modules/type-fest/source/invariant-of.d.ts +0 -76
  2877. data/node_modules/type-fest/source/is-any.d.ts +0 -29
  2878. data/node_modules/type-fest/source/is-equal.d.ts +0 -31
  2879. data/node_modules/type-fest/source/is-float.d.ts +0 -33
  2880. data/node_modules/type-fest/source/is-integer.d.ts +0 -48
  2881. data/node_modules/type-fest/source/is-literal.d.ts +0 -258
  2882. data/node_modules/type-fest/source/is-never.d.ts +0 -42
  2883. data/node_modules/type-fest/source/is-null.d.ts +0 -20
  2884. data/node_modules/type-fest/source/is-unknown.d.ts +0 -52
  2885. data/node_modules/type-fest/source/iterable-element.d.ts +0 -64
  2886. data/node_modules/type-fest/source/join.d.ts +0 -68
  2887. data/node_modules/type-fest/source/jsonifiable.d.ts +0 -37
  2888. data/node_modules/type-fest/source/jsonify.d.ts +0 -122
  2889. data/node_modules/type-fest/source/kebab-case.d.ts +0 -38
  2890. data/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +0 -47
  2891. data/node_modules/type-fest/source/kebab-cased-properties.d.ts +0 -30
  2892. data/node_modules/type-fest/source/keys-of-union.d.ts +0 -40
  2893. data/node_modules/type-fest/source/last-array-element.d.ts +0 -38
  2894. data/node_modules/type-fest/source/less-than-or-equal.d.ts +0 -22
  2895. data/node_modules/type-fest/source/less-than.d.ts +0 -22
  2896. data/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +0 -36
  2897. data/node_modules/type-fest/source/literal-to-primitive.d.ts +0 -36
  2898. data/node_modules/type-fest/source/literal-union.d.ts +0 -35
  2899. data/node_modules/type-fest/source/merge-deep.d.ts +0 -486
  2900. data/node_modules/type-fest/source/merge-exclusive.d.ts +0 -41
  2901. data/node_modules/type-fest/source/merge.d.ts +0 -48
  2902. data/node_modules/type-fest/source/multidimensional-array.d.ts +0 -44
  2903. data/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +0 -48
  2904. data/node_modules/type-fest/source/non-empty-object.d.ts +0 -35
  2905. data/node_modules/type-fest/source/non-empty-tuple.d.ts +0 -21
  2906. data/node_modules/type-fest/source/numeric.d.ts +0 -222
  2907. data/node_modules/type-fest/source/observable-like.d.ts +0 -63
  2908. data/node_modules/type-fest/source/omit-deep.d.ts +0 -159
  2909. data/node_modules/type-fest/source/omit-index-signature.d.ts +0 -107
  2910. data/node_modules/type-fest/source/opaque.d.ts +0 -252
  2911. data/node_modules/type-fest/source/optional-keys-of.d.ts +0 -38
  2912. data/node_modules/type-fest/source/or.d.ts +0 -25
  2913. data/node_modules/type-fest/source/override-properties.d.ts +0 -36
  2914. data/node_modules/type-fest/source/package-json.d.ts +0 -676
  2915. data/node_modules/type-fest/source/partial-deep.d.ts +0 -109
  2916. data/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +0 -71
  2917. data/node_modules/type-fest/source/pascal-case.d.ts +0 -38
  2918. data/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +0 -55
  2919. data/node_modules/type-fest/source/pascal-cased-properties.d.ts +0 -35
  2920. data/node_modules/type-fest/source/paths.d.ts +0 -170
  2921. data/node_modules/type-fest/source/pick-deep.d.ts +0 -149
  2922. data/node_modules/type-fest/source/pick-index-signature.d.ts +0 -102
  2923. data/node_modules/type-fest/source/primitive.d.ts +0 -13
  2924. data/node_modules/type-fest/source/promisable.d.ts +0 -25
  2925. data/node_modules/type-fest/source/readonly-deep.d.ts +0 -81
  2926. data/node_modules/type-fest/source/readonly-keys-of.d.ts +0 -29
  2927. data/node_modules/type-fest/source/readonly-tuple.d.ts +0 -41
  2928. data/node_modules/type-fest/source/replace.d.ts +0 -67
  2929. data/node_modules/type-fest/source/require-all-or-none.d.ts +0 -42
  2930. data/node_modules/type-fest/source/require-at-least-one.d.ts +0 -34
  2931. data/node_modules/type-fest/source/require-exactly-one.d.ts +0 -34
  2932. data/node_modules/type-fest/source/require-one-or-none.d.ts +0 -37
  2933. data/node_modules/type-fest/source/required-deep.d.ts +0 -78
  2934. data/node_modules/type-fest/source/required-keys-of.d.ts +0 -29
  2935. data/node_modules/type-fest/source/schema.d.ts +0 -71
  2936. data/node_modules/type-fest/source/screaming-snake-case.d.ts +0 -33
  2937. data/node_modules/type-fest/source/set-field-type.d.ts +0 -37
  2938. data/node_modules/type-fest/source/set-non-nullable.d.ts +0 -39
  2939. data/node_modules/type-fest/source/set-optional.d.ts +0 -35
  2940. data/node_modules/type-fest/source/set-parameter-type.d.ts +0 -117
  2941. data/node_modules/type-fest/source/set-readonly.d.ts +0 -38
  2942. data/node_modules/type-fest/source/set-required.d.ts +0 -40
  2943. data/node_modules/type-fest/source/set-return-type.d.ts +0 -29
  2944. data/node_modules/type-fest/source/shared-union-fields-deep.d.ts +0 -168
  2945. data/node_modules/type-fest/source/simplify-deep.d.ts +0 -115
  2946. data/node_modules/type-fest/source/simplify.d.ts +0 -58
  2947. data/node_modules/type-fest/source/single-key-object.d.ts +0 -29
  2948. data/node_modules/type-fest/source/snake-case.d.ts +0 -38
  2949. data/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +0 -47
  2950. data/node_modules/type-fest/source/snake-cased-properties.d.ts +0 -30
  2951. data/node_modules/type-fest/source/split-words.d.ts +0 -57
  2952. data/node_modules/type-fest/source/split.d.ts +0 -29
  2953. data/node_modules/type-fest/source/spread.d.ts +0 -84
  2954. data/node_modules/type-fest/source/string-key-of.d.ts +0 -25
  2955. data/node_modules/type-fest/source/string-repeat.d.ts +0 -43
  2956. data/node_modules/type-fest/source/string-slice.d.ts +0 -37
  2957. data/node_modules/type-fest/source/stringified.d.ts +0 -23
  2958. data/node_modules/type-fest/source/structured-cloneable.d.ts +0 -92
  2959. data/node_modules/type-fest/source/subtract.d.ts +0 -70
  2960. data/node_modules/type-fest/source/sum.d.ts +0 -70
  2961. data/node_modules/type-fest/source/tagged-union.d.ts +0 -51
  2962. data/node_modules/type-fest/source/trim.d.ts +0 -27
  2963. data/node_modules/type-fest/source/tsconfig-json.d.ts +0 -1198
  2964. data/node_modules/type-fest/source/tuple-to-union.d.ts +0 -51
  2965. data/node_modules/type-fest/source/typed-array.d.ts +0 -17
  2966. data/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +0 -80
  2967. data/node_modules/type-fest/source/union-to-intersection.d.ts +0 -61
  2968. data/node_modules/type-fest/source/unknown-array.d.ts +0 -25
  2969. data/node_modules/type-fest/source/unknown-record.d.ts +0 -31
  2970. data/node_modules/type-fest/source/value-of.d.ts +0 -42
  2971. data/node_modules/type-fest/source/writable-deep.d.ts +0 -83
  2972. data/node_modules/type-fest/source/writable-keys-of.d.ts +0 -30
  2973. data/node_modules/type-fest/source/writable.d.ts +0 -68
  2974. data/node_modules/uglify-js/LICENSE +0 -29
  2975. data/node_modules/uglify-js/README.md +0 -1479
  2976. data/node_modules/uglify-js/bin/uglifyjs +0 -624
  2977. data/node_modules/uglify-js/lib/ast.js +0 -2357
  2978. data/node_modules/uglify-js/lib/compress.js +0 -14640
  2979. data/node_modules/uglify-js/lib/minify.js +0 -278
  2980. data/node_modules/uglify-js/lib/mozilla-ast.js +0 -1338
  2981. data/node_modules/uglify-js/lib/output.js +0 -1983
  2982. data/node_modules/uglify-js/lib/parse.js +0 -2589
  2983. data/node_modules/uglify-js/lib/propmangle.js +0 -328
  2984. data/node_modules/uglify-js/lib/scope.js +0 -883
  2985. data/node_modules/uglify-js/lib/sourcemap.js +0 -195
  2986. data/node_modules/uglify-js/lib/transform.js +0 -250
  2987. data/node_modules/uglify-js/lib/utils.js +0 -300
  2988. data/node_modules/uglify-js/package.json +0 -56
  2989. data/node_modules/uglify-js/tools/domprops.html +0 -456
  2990. data/node_modules/uglify-js/tools/domprops.json +0 -8327
  2991. data/node_modules/uglify-js/tools/exports.js +0 -8
  2992. data/node_modules/uglify-js/tools/node.js +0 -115
  2993. data/node_modules/uglify-js/tools/tty.js +0 -22
  2994. data/node_modules/undici-types/LICENSE +0 -21
  2995. data/node_modules/undici-types/README.md +0 -6
  2996. data/node_modules/undici-types/agent.d.ts +0 -31
  2997. data/node_modules/undici-types/api.d.ts +0 -43
  2998. data/node_modules/undici-types/balanced-pool.d.ts +0 -29
  2999. data/node_modules/undici-types/cache.d.ts +0 -36
  3000. data/node_modules/undici-types/client.d.ts +0 -108
  3001. data/node_modules/undici-types/connector.d.ts +0 -34
  3002. data/node_modules/undici-types/content-type.d.ts +0 -21
  3003. data/node_modules/undici-types/cookies.d.ts +0 -28
  3004. data/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  3005. data/node_modules/undici-types/dispatcher.d.ts +0 -255
  3006. data/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  3007. data/node_modules/undici-types/errors.d.ts +0 -149
  3008. data/node_modules/undici-types/eventsource.d.ts +0 -63
  3009. data/node_modules/undici-types/fetch.d.ts +0 -209
  3010. data/node_modules/undici-types/file.d.ts +0 -39
  3011. data/node_modules/undici-types/filereader.d.ts +0 -54
  3012. data/node_modules/undici-types/formdata.d.ts +0 -108
  3013. data/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  3014. data/node_modules/undici-types/global-origin.d.ts +0 -7
  3015. data/node_modules/undici-types/handlers.d.ts +0 -15
  3016. data/node_modules/undici-types/header.d.ts +0 -4
  3017. data/node_modules/undici-types/index.d.ts +0 -71
  3018. data/node_modules/undici-types/interceptors.d.ts +0 -15
  3019. data/node_modules/undici-types/mock-agent.d.ts +0 -50
  3020. data/node_modules/undici-types/mock-client.d.ts +0 -25
  3021. data/node_modules/undici-types/mock-errors.d.ts +0 -12
  3022. data/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  3023. data/node_modules/undici-types/mock-pool.d.ts +0 -25
  3024. data/node_modules/undici-types/package.json +0 -55
  3025. data/node_modules/undici-types/patch.d.ts +0 -71
  3026. data/node_modules/undici-types/pool-stats.d.ts +0 -19
  3027. data/node_modules/undici-types/pool.d.ts +0 -39
  3028. data/node_modules/undici-types/proxy-agent.d.ts +0 -28
  3029. data/node_modules/undici-types/readable.d.ts +0 -60
  3030. data/node_modules/undici-types/retry-agent.d.ts +0 -8
  3031. data/node_modules/undici-types/retry-handler.d.ts +0 -116
  3032. data/node_modules/undici-types/util.d.ts +0 -18
  3033. data/node_modules/undici-types/webidl.d.ts +0 -222
  3034. data/node_modules/undici-types/websocket.d.ts +0 -152
  3035. data/node_modules/unicorn-magic/default.js +0 -14
  3036. data/node_modules/unicorn-magic/index.d.ts +0 -29
  3037. data/node_modules/unicorn-magic/license +0 -9
  3038. data/node_modules/unicorn-magic/node.js +0 -7
  3039. data/node_modules/unicorn-magic/package.json +0 -49
  3040. data/node_modules/unicorn-magic/readme.md +0 -25
  3041. data/node_modules/validate-npm-package-license/LICENSE +0 -202
  3042. data/node_modules/validate-npm-package-license/README.md +0 -113
  3043. data/node_modules/validate-npm-package-license/index.js +0 -86
  3044. data/node_modules/validate-npm-package-license/package.json +0 -28
  3045. data/node_modules/which/CHANGELOG.md +0 -166
  3046. data/node_modules/which/LICENSE +0 -15
  3047. data/node_modules/which/README.md +0 -54
  3048. data/node_modules/which/bin/node-which +0 -52
  3049. data/node_modules/which/package.json +0 -43
  3050. data/node_modules/which/which.js +0 -125
  3051. data/node_modules/wordwrap/LICENSE +0 -18
  3052. data/node_modules/wordwrap/README.markdown +0 -70
  3053. data/node_modules/wordwrap/example/center.js +0 -10
  3054. data/node_modules/wordwrap/example/meat.js +0 -3
  3055. data/node_modules/wordwrap/index.js +0 -76
  3056. data/node_modules/wordwrap/package.json +0 -34
  3057. data/node_modules/wordwrap/test/break.js +0 -32
  3058. data/node_modules/wordwrap/test/idleness.txt +0 -63
  3059. data/node_modules/wordwrap/test/wrap.js +0 -33
  3060. data/node_modules/wrap-ansi/index.js +0 -216
  3061. data/node_modules/wrap-ansi/license +0 -9
  3062. data/node_modules/wrap-ansi/package.json +0 -62
  3063. data/node_modules/wrap-ansi/readme.md +0 -91
  3064. data/node_modules/y18n/CHANGELOG.md +0 -100
  3065. data/node_modules/y18n/LICENSE +0 -13
  3066. data/node_modules/y18n/README.md +0 -127
  3067. data/node_modules/y18n/build/index.cjs +0 -203
  3068. data/node_modules/y18n/build/lib/cjs.js +0 -6
  3069. data/node_modules/y18n/build/lib/index.js +0 -174
  3070. data/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  3071. data/node_modules/y18n/index.mjs +0 -8
  3072. data/node_modules/y18n/package.json +0 -70
  3073. data/node_modules/yargs/LICENSE +0 -21
  3074. data/node_modules/yargs/README.md +0 -204
  3075. data/node_modules/yargs/browser.d.ts +0 -5
  3076. data/node_modules/yargs/browser.mjs +0 -7
  3077. data/node_modules/yargs/build/index.cjs +0 -1
  3078. data/node_modules/yargs/build/lib/argsert.js +0 -62
  3079. data/node_modules/yargs/build/lib/command.js +0 -449
  3080. data/node_modules/yargs/build/lib/completion-templates.js +0 -48
  3081. data/node_modules/yargs/build/lib/completion.js +0 -243
  3082. data/node_modules/yargs/build/lib/middleware.js +0 -88
  3083. data/node_modules/yargs/build/lib/parse-command.js +0 -32
  3084. data/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  3085. data/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  3086. data/node_modules/yargs/build/lib/usage.js +0 -584
  3087. data/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  3088. data/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  3089. data/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  3090. data/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  3091. data/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  3092. data/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  3093. data/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  3094. data/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  3095. data/node_modules/yargs/build/lib/validation.js +0 -305
  3096. data/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  3097. data/node_modules/yargs/build/lib/yerror.js +0 -9
  3098. data/node_modules/yargs/helpers/helpers.mjs +0 -10
  3099. data/node_modules/yargs/helpers/index.js +0 -14
  3100. data/node_modules/yargs/helpers/package.json +0 -3
  3101. data/node_modules/yargs/index.cjs +0 -53
  3102. data/node_modules/yargs/index.mjs +0 -8
  3103. data/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
  3104. data/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  3105. data/node_modules/yargs/locales/be.json +0 -46
  3106. data/node_modules/yargs/locales/cs.json +0 -51
  3107. data/node_modules/yargs/locales/de.json +0 -46
  3108. data/node_modules/yargs/locales/en.json +0 -55
  3109. data/node_modules/yargs/locales/es.json +0 -46
  3110. data/node_modules/yargs/locales/fi.json +0 -49
  3111. data/node_modules/yargs/locales/fr.json +0 -53
  3112. data/node_modules/yargs/locales/hi.json +0 -49
  3113. data/node_modules/yargs/locales/hu.json +0 -46
  3114. data/node_modules/yargs/locales/id.json +0 -50
  3115. data/node_modules/yargs/locales/it.json +0 -46
  3116. data/node_modules/yargs/locales/ja.json +0 -51
  3117. data/node_modules/yargs/locales/ko.json +0 -49
  3118. data/node_modules/yargs/locales/nb.json +0 -44
  3119. data/node_modules/yargs/locales/nl.json +0 -49
  3120. data/node_modules/yargs/locales/nn.json +0 -44
  3121. data/node_modules/yargs/locales/pirate.json +0 -13
  3122. data/node_modules/yargs/locales/pl.json +0 -49
  3123. data/node_modules/yargs/locales/pt.json +0 -45
  3124. data/node_modules/yargs/locales/pt_BR.json +0 -48
  3125. data/node_modules/yargs/locales/ru.json +0 -51
  3126. data/node_modules/yargs/locales/th.json +0 -46
  3127. data/node_modules/yargs/locales/tr.json +0 -48
  3128. data/node_modules/yargs/locales/uk_UA.json +0 -51
  3129. data/node_modules/yargs/locales/uz.json +0 -52
  3130. data/node_modules/yargs/locales/zh_CN.json +0 -48
  3131. data/node_modules/yargs/locales/zh_TW.json +0 -51
  3132. data/node_modules/yargs/package.json +0 -123
  3133. data/node_modules/yargs/yargs +0 -9
  3134. data/node_modules/yargs/yargs.mjs +0 -10
  3135. data/node_modules/yargs-parser/CHANGELOG.md +0 -308
  3136. data/node_modules/yargs-parser/LICENSE.txt +0 -14
  3137. data/node_modules/yargs-parser/README.md +0 -518
  3138. data/node_modules/yargs-parser/browser.js +0 -29
  3139. data/node_modules/yargs-parser/build/index.cjs +0 -1050
  3140. data/node_modules/yargs-parser/build/lib/index.js +0 -62
  3141. data/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  3142. data/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  3143. data/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  3144. data/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  3145. data/node_modules/yargs-parser/package.json +0 -92
  3146. data/node_modules/yocto-queue/index.d.ts +0 -61
  3147. data/node_modules/yocto-queue/index.js +0 -78
  3148. data/node_modules/yocto-queue/license +0 -9
  3149. data/node_modules/yocto-queue/package.json +0 -48
  3150. data/node_modules/yocto-queue/readme.md +0 -70
  3151. data/pkg/pcp-server-ruby-sdk-0.0.6.gem +0 -0
  3152. data/pkg/pcp-server-ruby-sdk-0.1.0.gem +0 -0
@@ -1,4451 +0,0 @@
1
- /**
2
- * The `node:crypto` module provides cryptographic functionality that includes a
3
- * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
4
- * functions.
5
- *
6
- * ```js
7
- * const { createHmac } = await import('node:crypto');
8
- *
9
- * const secret = 'abcdefg';
10
- * const hash = createHmac('sha256', secret)
11
- * .update('I love cupcakes')
12
- * .digest('hex');
13
- * console.log(hash);
14
- * // Prints:
15
- * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
16
- * ```
17
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/crypto.js)
18
- */
19
- declare module "crypto" {
20
- import * as stream from "node:stream";
21
- import { PeerCertificate } from "node:tls";
22
- /**
23
- * SPKAC is a Certificate Signing Request mechanism originally implemented by
24
- * Netscape and was specified formally as part of HTML5's `keygen` element.
25
- *
26
- * `<keygen>` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects
27
- * should not use this element anymore.
28
- *
29
- * The `node:crypto` module provides the `Certificate` class for working with SPKAC
30
- * data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
31
- * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
32
- * @since v0.11.8
33
- */
34
- class Certificate {
35
- /**
36
- * ```js
37
- * const { Certificate } = await import('node:crypto');
38
- * const spkac = getSpkacSomehow();
39
- * const challenge = Certificate.exportChallenge(spkac);
40
- * console.log(challenge.toString('utf8'));
41
- * // Prints: the challenge as a UTF8 string
42
- * ```
43
- * @since v9.0.0
44
- * @param encoding The `encoding` of the `spkac` string.
45
- * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge.
46
- */
47
- static exportChallenge(spkac: BinaryLike): Buffer;
48
- /**
49
- * ```js
50
- * const { Certificate } = await import('node:crypto');
51
- * const spkac = getSpkacSomehow();
52
- * const publicKey = Certificate.exportPublicKey(spkac);
53
- * console.log(publicKey);
54
- * // Prints: the public key as <Buffer ...>
55
- * ```
56
- * @since v9.0.0
57
- * @param encoding The `encoding` of the `spkac` string.
58
- * @return The public key component of the `spkac` data structure, which includes a public key and a challenge.
59
- */
60
- static exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
61
- /**
62
- * ```js
63
- * import { Buffer } from 'node:buffer';
64
- * const { Certificate } = await import('node:crypto');
65
- *
66
- * const spkac = getSpkacSomehow();
67
- * console.log(Certificate.verifySpkac(Buffer.from(spkac)));
68
- * // Prints: true or false
69
- * ```
70
- * @since v9.0.0
71
- * @param encoding The `encoding` of the `spkac` string.
72
- * @return `true` if the given `spkac` data structure is valid, `false` otherwise.
73
- */
74
- static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
75
- /**
76
- * @deprecated
77
- * @param spkac
78
- * @returns The challenge component of the `spkac` data structure,
79
- * which includes a public key and a challenge.
80
- */
81
- exportChallenge(spkac: BinaryLike): Buffer;
82
- /**
83
- * @deprecated
84
- * @param spkac
85
- * @param encoding The encoding of the spkac string.
86
- * @returns The public key component of the `spkac` data structure,
87
- * which includes a public key and a challenge.
88
- */
89
- exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
90
- /**
91
- * @deprecated
92
- * @param spkac
93
- * @returns `true` if the given `spkac` data structure is valid,
94
- * `false` otherwise.
95
- */
96
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
97
- }
98
- namespace constants {
99
- // https://nodejs.org/dist/latest-v22.x/docs/api/crypto.html#crypto-constants
100
- const OPENSSL_VERSION_NUMBER: number;
101
- /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
102
- const SSL_OP_ALL: number;
103
- /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */
104
- const SSL_OP_ALLOW_NO_DHE_KEX: number;
105
- /** 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. */
106
- const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
107
- /** 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. */
108
- const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
109
- /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
110
- const SSL_OP_CISCO_ANYCONNECT: number;
111
- /** Instructs OpenSSL to turn on cookie exchange. */
112
- const SSL_OP_COOKIE_EXCHANGE: number;
113
- /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
114
- const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
115
- /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
116
- const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
117
- /** Allows initial connection to servers that do not support RI. */
118
- const SSL_OP_LEGACY_SERVER_CONNECT: number;
119
- /** Instructs OpenSSL to disable support for SSL/TLS compression. */
120
- const SSL_OP_NO_COMPRESSION: number;
121
- /** Instructs OpenSSL to disable encrypt-then-MAC. */
122
- const SSL_OP_NO_ENCRYPT_THEN_MAC: number;
123
- const SSL_OP_NO_QUERY_MTU: number;
124
- /** Instructs OpenSSL to disable renegotiation. */
125
- const SSL_OP_NO_RENEGOTIATION: number;
126
- /** Instructs OpenSSL to always start a new session when performing renegotiation. */
127
- const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
128
- /** Instructs OpenSSL to turn off SSL v2 */
129
- const SSL_OP_NO_SSLv2: number;
130
- /** Instructs OpenSSL to turn off SSL v3 */
131
- const SSL_OP_NO_SSLv3: number;
132
- /** Instructs OpenSSL to disable use of RFC4507bis tickets. */
133
- const SSL_OP_NO_TICKET: number;
134
- /** Instructs OpenSSL to turn off TLS v1 */
135
- const SSL_OP_NO_TLSv1: number;
136
- /** Instructs OpenSSL to turn off TLS v1.1 */
137
- const SSL_OP_NO_TLSv1_1: number;
138
- /** Instructs OpenSSL to turn off TLS v1.2 */
139
- const SSL_OP_NO_TLSv1_2: number;
140
- /** Instructs OpenSSL to turn off TLS v1.3 */
141
- const SSL_OP_NO_TLSv1_3: number;
142
- /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */
143
- const SSL_OP_PRIORITIZE_CHACHA: number;
144
- /** Instructs OpenSSL to disable version rollback attack detection. */
145
- const SSL_OP_TLS_ROLLBACK_BUG: number;
146
- const ENGINE_METHOD_RSA: number;
147
- const ENGINE_METHOD_DSA: number;
148
- const ENGINE_METHOD_DH: number;
149
- const ENGINE_METHOD_RAND: number;
150
- const ENGINE_METHOD_EC: number;
151
- const ENGINE_METHOD_CIPHERS: number;
152
- const ENGINE_METHOD_DIGESTS: number;
153
- const ENGINE_METHOD_PKEY_METHS: number;
154
- const ENGINE_METHOD_PKEY_ASN1_METHS: number;
155
- const ENGINE_METHOD_ALL: number;
156
- const ENGINE_METHOD_NONE: number;
157
- const DH_CHECK_P_NOT_SAFE_PRIME: number;
158
- const DH_CHECK_P_NOT_PRIME: number;
159
- const DH_UNABLE_TO_CHECK_GENERATOR: number;
160
- const DH_NOT_SUITABLE_GENERATOR: number;
161
- const RSA_PKCS1_PADDING: number;
162
- const RSA_SSLV23_PADDING: number;
163
- const RSA_NO_PADDING: number;
164
- const RSA_PKCS1_OAEP_PADDING: number;
165
- const RSA_X931_PADDING: number;
166
- const RSA_PKCS1_PSS_PADDING: number;
167
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
168
- const RSA_PSS_SALTLEN_DIGEST: number;
169
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
170
- const RSA_PSS_SALTLEN_MAX_SIGN: number;
171
- /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
172
- const RSA_PSS_SALTLEN_AUTO: number;
173
- const POINT_CONVERSION_COMPRESSED: number;
174
- const POINT_CONVERSION_UNCOMPRESSED: number;
175
- const POINT_CONVERSION_HYBRID: number;
176
- /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
177
- const defaultCoreCipherList: string;
178
- /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
179
- const defaultCipherList: string;
180
- }
181
- interface HashOptions extends stream.TransformOptions {
182
- /**
183
- * For XOF hash functions such as `shake256`, the
184
- * outputLength option can be used to specify the desired output length in bytes.
185
- */
186
- outputLength?: number | undefined;
187
- }
188
- /** @deprecated since v10.0.0 */
189
- const fips: boolean;
190
- /**
191
- * Creates and returns a `Hash` object that can be used to generate hash digests
192
- * using the given `algorithm`. Optional `options` argument controls stream
193
- * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
194
- * can be used to specify the desired output length in bytes.
195
- *
196
- * The `algorithm` is dependent on the available algorithms supported by the
197
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
198
- * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
199
- * display the available digest algorithms.
200
- *
201
- * Example: generating the sha256 sum of a file
202
- *
203
- * ```js
204
- * import {
205
- * createReadStream,
206
- * } from 'node:fs';
207
- * import { argv } from 'node:process';
208
- * const {
209
- * createHash,
210
- * } = await import('node:crypto');
211
- *
212
- * const filename = argv[2];
213
- *
214
- * const hash = createHash('sha256');
215
- *
216
- * const input = createReadStream(filename);
217
- * input.on('readable', () => {
218
- * // Only one element is going to be produced by the
219
- * // hash stream.
220
- * const data = input.read();
221
- * if (data)
222
- * hash.update(data);
223
- * else {
224
- * console.log(`${hash.digest('hex')} ${filename}`);
225
- * }
226
- * });
227
- * ```
228
- * @since v0.1.92
229
- * @param options `stream.transform` options
230
- */
231
- function createHash(algorithm: string, options?: HashOptions): Hash;
232
- /**
233
- * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
234
- * Optional `options` argument controls stream behavior.
235
- *
236
- * The `algorithm` is dependent on the available algorithms supported by the
237
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
238
- * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
239
- * display the available digest algorithms.
240
- *
241
- * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
242
- * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was
243
- * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not
244
- * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256).
245
- *
246
- * Example: generating the sha256 HMAC of a file
247
- *
248
- * ```js
249
- * import {
250
- * createReadStream,
251
- * } from 'node:fs';
252
- * import { argv } from 'node:process';
253
- * const {
254
- * createHmac,
255
- * } = await import('node:crypto');
256
- *
257
- * const filename = argv[2];
258
- *
259
- * const hmac = createHmac('sha256', 'a secret');
260
- *
261
- * const input = createReadStream(filename);
262
- * input.on('readable', () => {
263
- * // Only one element is going to be produced by the
264
- * // hash stream.
265
- * const data = input.read();
266
- * if (data)
267
- * hmac.update(data);
268
- * else {
269
- * console.log(`${hmac.digest('hex')} ${filename}`);
270
- * }
271
- * });
272
- * ```
273
- * @since v0.1.94
274
- * @param options `stream.transform` options
275
- */
276
- function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
277
- // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
278
- type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary";
279
- type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1";
280
- type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
281
- type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
282
- type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
283
- /**
284
- * The `Hash` class is a utility for creating hash digests of data. It can be
285
- * used in one of two ways:
286
- *
287
- * * As a `stream` that is both readable and writable, where data is written
288
- * to produce a computed hash digest on the readable side, or
289
- * * Using the `hash.update()` and `hash.digest()` methods to produce the
290
- * computed hash.
291
- *
292
- * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
293
- *
294
- * Example: Using `Hash` objects as streams:
295
- *
296
- * ```js
297
- * const {
298
- * createHash,
299
- * } = await import('node:crypto');
300
- *
301
- * const hash = createHash('sha256');
302
- *
303
- * hash.on('readable', () => {
304
- * // Only one element is going to be produced by the
305
- * // hash stream.
306
- * const data = hash.read();
307
- * if (data) {
308
- * console.log(data.toString('hex'));
309
- * // Prints:
310
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
311
- * }
312
- * });
313
- *
314
- * hash.write('some data to hash');
315
- * hash.end();
316
- * ```
317
- *
318
- * Example: Using `Hash` and piped streams:
319
- *
320
- * ```js
321
- * import { createReadStream } from 'node:fs';
322
- * import { stdout } from 'node:process';
323
- * const { createHash } = await import('node:crypto');
324
- *
325
- * const hash = createHash('sha256');
326
- *
327
- * const input = createReadStream('test.js');
328
- * input.pipe(hash).setEncoding('hex').pipe(stdout);
329
- * ```
330
- *
331
- * Example: Using the `hash.update()` and `hash.digest()` methods:
332
- *
333
- * ```js
334
- * const {
335
- * createHash,
336
- * } = await import('node:crypto');
337
- *
338
- * const hash = createHash('sha256');
339
- *
340
- * hash.update('some data to hash');
341
- * console.log(hash.digest('hex'));
342
- * // Prints:
343
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
344
- * ```
345
- * @since v0.1.92
346
- */
347
- class Hash extends stream.Transform {
348
- private constructor();
349
- /**
350
- * Creates a new `Hash` object that contains a deep copy of the internal state
351
- * of the current `Hash` object.
352
- *
353
- * The optional `options` argument controls stream behavior. For XOF hash
354
- * functions such as `'shake256'`, the `outputLength` option can be used to
355
- * specify the desired output length in bytes.
356
- *
357
- * An error is thrown when an attempt is made to copy the `Hash` object after
358
- * its `hash.digest()` method has been called.
359
- *
360
- * ```js
361
- * // Calculate a rolling hash.
362
- * const {
363
- * createHash,
364
- * } = await import('node:crypto');
365
- *
366
- * const hash = createHash('sha256');
367
- *
368
- * hash.update('one');
369
- * console.log(hash.copy().digest('hex'));
370
- *
371
- * hash.update('two');
372
- * console.log(hash.copy().digest('hex'));
373
- *
374
- * hash.update('three');
375
- * console.log(hash.copy().digest('hex'));
376
- *
377
- * // Etc.
378
- * ```
379
- * @since v13.1.0
380
- * @param options `stream.transform` options
381
- */
382
- copy(options?: HashOptions): Hash;
383
- /**
384
- * Updates the hash content with the given `data`, the encoding of which
385
- * is given in `inputEncoding`.
386
- * If `encoding` is not provided, and the `data` is a string, an
387
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
388
- *
389
- * This can be called many times with new data as it is streamed.
390
- * @since v0.1.92
391
- * @param inputEncoding The `encoding` of the `data` string.
392
- */
393
- update(data: BinaryLike): Hash;
394
- update(data: string, inputEncoding: Encoding): Hash;
395
- /**
396
- * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
397
- * If `encoding` is provided a string will be returned; otherwise
398
- * a `Buffer` is returned.
399
- *
400
- * The `Hash` object can not be used again after `hash.digest()` method has been
401
- * called. Multiple calls will cause an error to be thrown.
402
- * @since v0.1.92
403
- * @param encoding The `encoding` of the return value.
404
- */
405
- digest(): Buffer;
406
- digest(encoding: BinaryToTextEncoding): string;
407
- }
408
- /**
409
- * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
410
- * be used in one of two ways:
411
- *
412
- * * As a `stream` that is both readable and writable, where data is written
413
- * to produce a computed HMAC digest on the readable side, or
414
- * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
415
- * computed HMAC digest.
416
- *
417
- * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
418
- *
419
- * Example: Using `Hmac` objects as streams:
420
- *
421
- * ```js
422
- * const {
423
- * createHmac,
424
- * } = await import('node:crypto');
425
- *
426
- * const hmac = createHmac('sha256', 'a secret');
427
- *
428
- * hmac.on('readable', () => {
429
- * // Only one element is going to be produced by the
430
- * // hash stream.
431
- * const data = hmac.read();
432
- * if (data) {
433
- * console.log(data.toString('hex'));
434
- * // Prints:
435
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
436
- * }
437
- * });
438
- *
439
- * hmac.write('some data to hash');
440
- * hmac.end();
441
- * ```
442
- *
443
- * Example: Using `Hmac` and piped streams:
444
- *
445
- * ```js
446
- * import { createReadStream } from 'node:fs';
447
- * import { stdout } from 'node:process';
448
- * const {
449
- * createHmac,
450
- * } = await import('node:crypto');
451
- *
452
- * const hmac = createHmac('sha256', 'a secret');
453
- *
454
- * const input = createReadStream('test.js');
455
- * input.pipe(hmac).pipe(stdout);
456
- * ```
457
- *
458
- * Example: Using the `hmac.update()` and `hmac.digest()` methods:
459
- *
460
- * ```js
461
- * const {
462
- * createHmac,
463
- * } = await import('node:crypto');
464
- *
465
- * const hmac = createHmac('sha256', 'a secret');
466
- *
467
- * hmac.update('some data to hash');
468
- * console.log(hmac.digest('hex'));
469
- * // Prints:
470
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
471
- * ```
472
- * @since v0.1.94
473
- * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
474
- */
475
- class Hmac extends stream.Transform {
476
- private constructor();
477
- /**
478
- * Updates the `Hmac` content with the given `data`, the encoding of which
479
- * is given in `inputEncoding`.
480
- * If `encoding` is not provided, and the `data` is a string, an
481
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
482
- *
483
- * This can be called many times with new data as it is streamed.
484
- * @since v0.1.94
485
- * @param inputEncoding The `encoding` of the `data` string.
486
- */
487
- update(data: BinaryLike): Hmac;
488
- update(data: string, inputEncoding: Encoding): Hmac;
489
- /**
490
- * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
491
- * If `encoding` is
492
- * provided a string is returned; otherwise a `Buffer` is returned;
493
- *
494
- * The `Hmac` object can not be used again after `hmac.digest()` has been
495
- * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
496
- * @since v0.1.94
497
- * @param encoding The `encoding` of the return value.
498
- */
499
- digest(): Buffer;
500
- digest(encoding: BinaryToTextEncoding): string;
501
- }
502
- type KeyObjectType = "secret" | "public" | "private";
503
- interface KeyExportOptions<T extends KeyFormat> {
504
- type: "pkcs1" | "spki" | "pkcs8" | "sec1";
505
- format: T;
506
- cipher?: string | undefined;
507
- passphrase?: string | Buffer | undefined;
508
- }
509
- interface JwkKeyExportOptions {
510
- format: "jwk";
511
- }
512
- interface JsonWebKey {
513
- crv?: string | undefined;
514
- d?: string | undefined;
515
- dp?: string | undefined;
516
- dq?: string | undefined;
517
- e?: string | undefined;
518
- k?: string | undefined;
519
- kty?: string | undefined;
520
- n?: string | undefined;
521
- p?: string | undefined;
522
- q?: string | undefined;
523
- qi?: string | undefined;
524
- x?: string | undefined;
525
- y?: string | undefined;
526
- [key: string]: unknown;
527
- }
528
- interface AsymmetricKeyDetails {
529
- /**
530
- * Key size in bits (RSA, DSA).
531
- */
532
- modulusLength?: number | undefined;
533
- /**
534
- * Public exponent (RSA).
535
- */
536
- publicExponent?: bigint | undefined;
537
- /**
538
- * Name of the message digest (RSA-PSS).
539
- */
540
- hashAlgorithm?: string | undefined;
541
- /**
542
- * Name of the message digest used by MGF1 (RSA-PSS).
543
- */
544
- mgf1HashAlgorithm?: string | undefined;
545
- /**
546
- * Minimal salt length in bytes (RSA-PSS).
547
- */
548
- saltLength?: number | undefined;
549
- /**
550
- * Size of q in bits (DSA).
551
- */
552
- divisorLength?: number | undefined;
553
- /**
554
- * Name of the curve (EC).
555
- */
556
- namedCurve?: string | undefined;
557
- }
558
- /**
559
- * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
560
- * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
561
- * objects are not to be created directly using the `new`keyword.
562
- *
563
- * Most applications should consider using the new `KeyObject` API instead of
564
- * passing keys as strings or `Buffer`s due to improved security features.
565
- *
566
- * `KeyObject` instances can be passed to other threads via `postMessage()`.
567
- * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
568
- * be listed in the `transferList` argument.
569
- * @since v11.6.0
570
- */
571
- class KeyObject {
572
- private constructor();
573
- /**
574
- * Example: Converting a `CryptoKey` instance to a `KeyObject`:
575
- *
576
- * ```js
577
- * const { KeyObject } = await import('node:crypto');
578
- * const { subtle } = globalThis.crypto;
579
- *
580
- * const key = await subtle.generateKey({
581
- * name: 'HMAC',
582
- * hash: 'SHA-256',
583
- * length: 256,
584
- * }, true, ['sign', 'verify']);
585
- *
586
- * const keyObject = KeyObject.from(key);
587
- * console.log(keyObject.symmetricKeySize);
588
- * // Prints: 32 (symmetric key size in bytes)
589
- * ```
590
- * @since v15.0.0
591
- */
592
- static from(key: webcrypto.CryptoKey): KeyObject;
593
- /**
594
- * For asymmetric keys, this property represents the type of the key. Supported key
595
- * types are:
596
- *
597
- * * `'rsa'` (OID 1.2.840.113549.1.1.1)
598
- * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
599
- * * `'dsa'` (OID 1.2.840.10040.4.1)
600
- * * `'ec'` (OID 1.2.840.10045.2.1)
601
- * * `'x25519'` (OID 1.3.101.110)
602
- * * `'x448'` (OID 1.3.101.111)
603
- * * `'ed25519'` (OID 1.3.101.112)
604
- * * `'ed448'` (OID 1.3.101.113)
605
- * * `'dh'` (OID 1.2.840.113549.1.3.1)
606
- *
607
- * This property is `undefined` for unrecognized `KeyObject` types and symmetric
608
- * keys.
609
- * @since v11.6.0
610
- */
611
- asymmetricKeyType?: KeyType | undefined;
612
- /**
613
- * For asymmetric keys, this property represents the size of the embedded key in
614
- * bytes. This property is `undefined` for symmetric keys.
615
- */
616
- asymmetricKeySize?: number | undefined;
617
- /**
618
- * This property exists only on asymmetric keys. Depending on the type of the key,
619
- * this object contains information about the key. None of the information obtained
620
- * through this property can be used to uniquely identify a key or to compromise
621
- * the security of the key.
622
- *
623
- * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
624
- * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
625
- * set.
626
- *
627
- * Other key details might be exposed via this API using additional attributes.
628
- * @since v15.7.0
629
- */
630
- asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
631
- /**
632
- * For symmetric keys, the following encoding options can be used:
633
- *
634
- * For public keys, the following encoding options can be used:
635
- *
636
- * For private keys, the following encoding options can be used:
637
- *
638
- * The result type depends on the selected encoding format, when PEM the
639
- * result is a string, when DER it will be a buffer containing the data
640
- * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
641
- *
642
- * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
643
- * ignored.
644
- *
645
- * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
646
- * 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
647
- * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
648
- * encrypted private keys. Since PKCS#8 defines its own
649
- * encryption mechanism, PEM-level encryption is not supported when encrypting
650
- * 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
651
- * PKCS#1 and SEC1 encryption.
652
- * @since v11.6.0
653
- */
654
- export(options: KeyExportOptions<"pem">): string | Buffer;
655
- export(options?: KeyExportOptions<"der">): Buffer;
656
- export(options?: JwkKeyExportOptions): JsonWebKey;
657
- /**
658
- * Returns `true` or `false` depending on whether the keys have exactly the same
659
- * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
660
- * @since v17.7.0, v16.15.0
661
- * @param otherKeyObject A `KeyObject` with which to compare `keyObject`.
662
- */
663
- equals(otherKeyObject: KeyObject): boolean;
664
- /**
665
- * For secret keys, this property represents the size of the key in bytes. This
666
- * property is `undefined` for asymmetric keys.
667
- * @since v11.6.0
668
- */
669
- symmetricKeySize?: number | undefined;
670
- /**
671
- * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
672
- * or `'private'` for private (asymmetric) keys.
673
- * @since v11.6.0
674
- */
675
- type: KeyObjectType;
676
- }
677
- type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
678
- type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
679
- type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
680
- type BinaryLike = string | NodeJS.ArrayBufferView;
681
- type CipherKey = BinaryLike | KeyObject;
682
- interface CipherCCMOptions extends stream.TransformOptions {
683
- authTagLength: number;
684
- }
685
- interface CipherGCMOptions extends stream.TransformOptions {
686
- authTagLength?: number | undefined;
687
- }
688
- interface CipherOCBOptions extends stream.TransformOptions {
689
- authTagLength: number;
690
- }
691
- /**
692
- * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
693
- * initialization vector (`iv`).
694
- *
695
- * The `options` argument controls stream behavior and is optional except when a
696
- * 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
697
- * 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
698
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
699
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
700
- *
701
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
702
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
703
- * display the available cipher algorithms.
704
- *
705
- * 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
706
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
707
- * a `KeyObject` of type `secret`. If the cipher does not need
708
- * an initialization vector, `iv` may be `null`.
709
- *
710
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
711
- *
712
- * Initialization vectors should be unpredictable and unique; ideally, they will be
713
- * cryptographically random. They do not have to be secret: IVs are typically just
714
- * added to ciphertext messages unencrypted. It may sound contradictory that
715
- * something has to be unpredictable and unique, but does not have to be secret;
716
- * remember that an attacker must not be able to predict ahead of time what a
717
- * given IV will be.
718
- * @since v0.1.94
719
- * @param options `stream.transform` options
720
- */
721
- function createCipheriv(
722
- algorithm: CipherCCMTypes,
723
- key: CipherKey,
724
- iv: BinaryLike,
725
- options: CipherCCMOptions,
726
- ): CipherCCM;
727
- function createCipheriv(
728
- algorithm: CipherOCBTypes,
729
- key: CipherKey,
730
- iv: BinaryLike,
731
- options: CipherOCBOptions,
732
- ): CipherOCB;
733
- function createCipheriv(
734
- algorithm: CipherGCMTypes,
735
- key: CipherKey,
736
- iv: BinaryLike,
737
- options?: CipherGCMOptions,
738
- ): CipherGCM;
739
- function createCipheriv(
740
- algorithm: string,
741
- key: CipherKey,
742
- iv: BinaryLike | null,
743
- options?: stream.TransformOptions,
744
- ): Cipher;
745
- /**
746
- * Instances of the `Cipher` class are used to encrypt data. The class can be
747
- * used in one of two ways:
748
- *
749
- * * As a `stream` that is both readable and writable, where plain unencrypted
750
- * data is written to produce encrypted data on the readable side, or
751
- * * Using the `cipher.update()` and `cipher.final()` methods to produce
752
- * the encrypted data.
753
- *
754
- * The {@link createCipheriv} method is
755
- * used to create `Cipher` instances. `Cipher` objects are not to be created
756
- * directly using the `new` keyword.
757
- *
758
- * Example: Using `Cipher` objects as streams:
759
- *
760
- * ```js
761
- * const {
762
- * scrypt,
763
- * randomFill,
764
- * createCipheriv,
765
- * } = await import('node:crypto');
766
- *
767
- * const algorithm = 'aes-192-cbc';
768
- * const password = 'Password used to generate key';
769
- *
770
- * // First, we'll generate the key. The key length is dependent on the algorithm.
771
- * // In this case for aes192, it is 24 bytes (192 bits).
772
- * scrypt(password, 'salt', 24, (err, key) => {
773
- * if (err) throw err;
774
- * // Then, we'll generate a random initialization vector
775
- * randomFill(new Uint8Array(16), (err, iv) => {
776
- * if (err) throw err;
777
- *
778
- * // Once we have the key and iv, we can create and use the cipher...
779
- * const cipher = createCipheriv(algorithm, key, iv);
780
- *
781
- * let encrypted = '';
782
- * cipher.setEncoding('hex');
783
- *
784
- * cipher.on('data', (chunk) => encrypted += chunk);
785
- * cipher.on('end', () => console.log(encrypted));
786
- *
787
- * cipher.write('some clear text data');
788
- * cipher.end();
789
- * });
790
- * });
791
- * ```
792
- *
793
- * Example: Using `Cipher` and piped streams:
794
- *
795
- * ```js
796
- * import {
797
- * createReadStream,
798
- * createWriteStream,
799
- * } from 'node:fs';
800
- *
801
- * import {
802
- * pipeline,
803
- * } from 'node:stream';
804
- *
805
- * const {
806
- * scrypt,
807
- * randomFill,
808
- * createCipheriv,
809
- * } = await import('node:crypto');
810
- *
811
- * const algorithm = 'aes-192-cbc';
812
- * const password = 'Password used to generate key';
813
- *
814
- * // First, we'll generate the key. The key length is dependent on the algorithm.
815
- * // In this case for aes192, it is 24 bytes (192 bits).
816
- * scrypt(password, 'salt', 24, (err, key) => {
817
- * if (err) throw err;
818
- * // Then, we'll generate a random initialization vector
819
- * randomFill(new Uint8Array(16), (err, iv) => {
820
- * if (err) throw err;
821
- *
822
- * const cipher = createCipheriv(algorithm, key, iv);
823
- *
824
- * const input = createReadStream('test.js');
825
- * const output = createWriteStream('test.enc');
826
- *
827
- * pipeline(input, cipher, output, (err) => {
828
- * if (err) throw err;
829
- * });
830
- * });
831
- * });
832
- * ```
833
- *
834
- * Example: Using the `cipher.update()` and `cipher.final()` methods:
835
- *
836
- * ```js
837
- * const {
838
- * scrypt,
839
- * randomFill,
840
- * createCipheriv,
841
- * } = await import('node:crypto');
842
- *
843
- * const algorithm = 'aes-192-cbc';
844
- * const password = 'Password used to generate key';
845
- *
846
- * // First, we'll generate the key. The key length is dependent on the algorithm.
847
- * // In this case for aes192, it is 24 bytes (192 bits).
848
- * scrypt(password, 'salt', 24, (err, key) => {
849
- * if (err) throw err;
850
- * // Then, we'll generate a random initialization vector
851
- * randomFill(new Uint8Array(16), (err, iv) => {
852
- * if (err) throw err;
853
- *
854
- * const cipher = createCipheriv(algorithm, key, iv);
855
- *
856
- * let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
857
- * encrypted += cipher.final('hex');
858
- * console.log(encrypted);
859
- * });
860
- * });
861
- * ```
862
- * @since v0.1.94
863
- */
864
- class Cipher extends stream.Transform {
865
- private constructor();
866
- /**
867
- * Updates the cipher with `data`. If the `inputEncoding` argument is given,
868
- * 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`,
869
- * `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
870
- *
871
- * The `outputEncoding` specifies the output format of the enciphered
872
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
873
- *
874
- * 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
875
- * thrown.
876
- * @since v0.1.94
877
- * @param inputEncoding The `encoding` of the data.
878
- * @param outputEncoding The `encoding` of the return value.
879
- */
880
- update(data: BinaryLike): Buffer;
881
- update(data: string, inputEncoding: Encoding): Buffer;
882
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
883
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
884
- /**
885
- * Once the `cipher.final()` method has been called, the `Cipher` object can no
886
- * longer be used to encrypt data. Attempts to call `cipher.final()` more than
887
- * once will result in an error being thrown.
888
- * @since v0.1.94
889
- * @param outputEncoding The `encoding` of the return value.
890
- * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
891
- */
892
- final(): Buffer;
893
- final(outputEncoding: BufferEncoding): string;
894
- /**
895
- * When using block encryption algorithms, the `Cipher` class will automatically
896
- * add padding to the input data to the appropriate block size. To disable the
897
- * default padding call `cipher.setAutoPadding(false)`.
898
- *
899
- * When `autoPadding` is `false`, the length of the entire input data must be a
900
- * multiple of the cipher's block size or `cipher.final()` will throw an error.
901
- * Disabling automatic padding is useful for non-standard padding, for instance
902
- * using `0x0` instead of PKCS padding.
903
- *
904
- * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
905
- * @since v0.7.1
906
- * @param [autoPadding=true]
907
- * @return for method chaining.
908
- */
909
- setAutoPadding(autoPadding?: boolean): this;
910
- }
911
- interface CipherCCM extends Cipher {
912
- setAAD(
913
- buffer: NodeJS.ArrayBufferView,
914
- options: {
915
- plaintextLength: number;
916
- },
917
- ): this;
918
- getAuthTag(): Buffer;
919
- }
920
- interface CipherGCM extends Cipher {
921
- setAAD(
922
- buffer: NodeJS.ArrayBufferView,
923
- options?: {
924
- plaintextLength: number;
925
- },
926
- ): this;
927
- getAuthTag(): Buffer;
928
- }
929
- interface CipherOCB extends Cipher {
930
- setAAD(
931
- buffer: NodeJS.ArrayBufferView,
932
- options?: {
933
- plaintextLength: number;
934
- },
935
- ): this;
936
- getAuthTag(): Buffer;
937
- }
938
- /**
939
- * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
940
- *
941
- * The `options` argument controls stream behavior and is optional except when a
942
- * 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
943
- * 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
944
- * to those with the specified length.
945
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
946
- *
947
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
948
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
949
- * display the available cipher algorithms.
950
- *
951
- * 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
952
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
953
- * a `KeyObject` of type `secret`. If the cipher does not need
954
- * an initialization vector, `iv` may be `null`.
955
- *
956
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
957
- *
958
- * Initialization vectors should be unpredictable and unique; ideally, they will be
959
- * cryptographically random. They do not have to be secret: IVs are typically just
960
- * added to ciphertext messages unencrypted. It may sound contradictory that
961
- * something has to be unpredictable and unique, but does not have to be secret;
962
- * remember that an attacker must not be able to predict ahead of time what a given
963
- * IV will be.
964
- * @since v0.1.94
965
- * @param options `stream.transform` options
966
- */
967
- function createDecipheriv(
968
- algorithm: CipherCCMTypes,
969
- key: CipherKey,
970
- iv: BinaryLike,
971
- options: CipherCCMOptions,
972
- ): DecipherCCM;
973
- function createDecipheriv(
974
- algorithm: CipherOCBTypes,
975
- key: CipherKey,
976
- iv: BinaryLike,
977
- options: CipherOCBOptions,
978
- ): DecipherOCB;
979
- function createDecipheriv(
980
- algorithm: CipherGCMTypes,
981
- key: CipherKey,
982
- iv: BinaryLike,
983
- options?: CipherGCMOptions,
984
- ): DecipherGCM;
985
- function createDecipheriv(
986
- algorithm: string,
987
- key: CipherKey,
988
- iv: BinaryLike | null,
989
- options?: stream.TransformOptions,
990
- ): Decipher;
991
- /**
992
- * Instances of the `Decipher` class are used to decrypt data. The class can be
993
- * used in one of two ways:
994
- *
995
- * * As a `stream` that is both readable and writable, where plain encrypted
996
- * data is written to produce unencrypted data on the readable side, or
997
- * * Using the `decipher.update()` and `decipher.final()` methods to
998
- * produce the unencrypted data.
999
- *
1000
- * The {@link createDecipheriv} method is
1001
- * used to create `Decipher` instances. `Decipher` objects are not to be created
1002
- * directly using the `new` keyword.
1003
- *
1004
- * Example: Using `Decipher` objects as streams:
1005
- *
1006
- * ```js
1007
- * import { Buffer } from 'node:buffer';
1008
- * const {
1009
- * scryptSync,
1010
- * createDecipheriv,
1011
- * } = await import('node:crypto');
1012
- *
1013
- * const algorithm = 'aes-192-cbc';
1014
- * const password = 'Password used to generate key';
1015
- * // Key length is dependent on the algorithm. In this case for aes192, it is
1016
- * // 24 bytes (192 bits).
1017
- * // Use the async `crypto.scrypt()` instead.
1018
- * const key = scryptSync(password, 'salt', 24);
1019
- * // The IV is usually passed along with the ciphertext.
1020
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1021
- *
1022
- * const decipher = createDecipheriv(algorithm, key, iv);
1023
- *
1024
- * let decrypted = '';
1025
- * decipher.on('readable', () => {
1026
- * let chunk;
1027
- * while (null !== (chunk = decipher.read())) {
1028
- * decrypted += chunk.toString('utf8');
1029
- * }
1030
- * });
1031
- * decipher.on('end', () => {
1032
- * console.log(decrypted);
1033
- * // Prints: some clear text data
1034
- * });
1035
- *
1036
- * // Encrypted with same algorithm, key and iv.
1037
- * const encrypted =
1038
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1039
- * decipher.write(encrypted, 'hex');
1040
- * decipher.end();
1041
- * ```
1042
- *
1043
- * Example: Using `Decipher` and piped streams:
1044
- *
1045
- * ```js
1046
- * import {
1047
- * createReadStream,
1048
- * createWriteStream,
1049
- * } from 'node:fs';
1050
- * import { Buffer } from 'node:buffer';
1051
- * const {
1052
- * scryptSync,
1053
- * createDecipheriv,
1054
- * } = await import('node:crypto');
1055
- *
1056
- * const algorithm = 'aes-192-cbc';
1057
- * const password = 'Password used to generate key';
1058
- * // Use the async `crypto.scrypt()` instead.
1059
- * const key = scryptSync(password, 'salt', 24);
1060
- * // The IV is usually passed along with the ciphertext.
1061
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1062
- *
1063
- * const decipher = createDecipheriv(algorithm, key, iv);
1064
- *
1065
- * const input = createReadStream('test.enc');
1066
- * const output = createWriteStream('test.js');
1067
- *
1068
- * input.pipe(decipher).pipe(output);
1069
- * ```
1070
- *
1071
- * Example: Using the `decipher.update()` and `decipher.final()` methods:
1072
- *
1073
- * ```js
1074
- * import { Buffer } from 'node:buffer';
1075
- * const {
1076
- * scryptSync,
1077
- * createDecipheriv,
1078
- * } = await import('node:crypto');
1079
- *
1080
- * const algorithm = 'aes-192-cbc';
1081
- * const password = 'Password used to generate key';
1082
- * // Use the async `crypto.scrypt()` instead.
1083
- * const key = scryptSync(password, 'salt', 24);
1084
- * // The IV is usually passed along with the ciphertext.
1085
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1086
- *
1087
- * const decipher = createDecipheriv(algorithm, key, iv);
1088
- *
1089
- * // Encrypted using same algorithm, key and iv.
1090
- * const encrypted =
1091
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1092
- * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
1093
- * decrypted += decipher.final('utf8');
1094
- * console.log(decrypted);
1095
- * // Prints: some clear text data
1096
- * ```
1097
- * @since v0.1.94
1098
- */
1099
- class Decipher extends stream.Transform {
1100
- private constructor();
1101
- /**
1102
- * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1103
- * 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
1104
- * ignored.
1105
- *
1106
- * The `outputEncoding` specifies the output format of the enciphered
1107
- * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
1108
- *
1109
- * 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
1110
- * being thrown.
1111
- * @since v0.1.94
1112
- * @param inputEncoding The `encoding` of the `data` string.
1113
- * @param outputEncoding The `encoding` of the return value.
1114
- */
1115
- update(data: NodeJS.ArrayBufferView): Buffer;
1116
- update(data: string, inputEncoding: Encoding): Buffer;
1117
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
1118
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
1119
- /**
1120
- * Once the `decipher.final()` method has been called, the `Decipher` object can
1121
- * no longer be used to decrypt data. Attempts to call `decipher.final()` more
1122
- * than once will result in an error being thrown.
1123
- * @since v0.1.94
1124
- * @param outputEncoding The `encoding` of the return value.
1125
- * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
1126
- */
1127
- final(): Buffer;
1128
- final(outputEncoding: BufferEncoding): string;
1129
- /**
1130
- * 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
1131
- * removing padding.
1132
- *
1133
- * Turning auto padding off will only work if the input data's length is a
1134
- * multiple of the ciphers block size.
1135
- *
1136
- * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
1137
- * @since v0.7.1
1138
- * @param [autoPadding=true]
1139
- * @return for method chaining.
1140
- */
1141
- setAutoPadding(auto_padding?: boolean): this;
1142
- }
1143
- interface DecipherCCM extends Decipher {
1144
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1145
- setAAD(
1146
- buffer: NodeJS.ArrayBufferView,
1147
- options: {
1148
- plaintextLength: number;
1149
- },
1150
- ): this;
1151
- }
1152
- interface DecipherGCM extends Decipher {
1153
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1154
- setAAD(
1155
- buffer: NodeJS.ArrayBufferView,
1156
- options?: {
1157
- plaintextLength: number;
1158
- },
1159
- ): this;
1160
- }
1161
- interface DecipherOCB 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 PrivateKeyInput {
1171
- key: string | Buffer;
1172
- format?: KeyFormat | undefined;
1173
- type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
1174
- passphrase?: string | Buffer | undefined;
1175
- encoding?: string | undefined;
1176
- }
1177
- interface PublicKeyInput {
1178
- key: string | Buffer;
1179
- format?: KeyFormat | undefined;
1180
- type?: "pkcs1" | "spki" | undefined;
1181
- encoding?: string | undefined;
1182
- }
1183
- /**
1184
- * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1185
- *
1186
- * ```js
1187
- * const {
1188
- * generateKey,
1189
- * } = await import('node:crypto');
1190
- *
1191
- * generateKey('hmac', { length: 512 }, (err, key) => {
1192
- * if (err) throw err;
1193
- * console.log(key.export().toString('hex')); // 46e..........620
1194
- * });
1195
- * ```
1196
- *
1197
- * The size of a generated HMAC key should not exceed the block size of the
1198
- * underlying hash function. See {@link createHmac} for more information.
1199
- * @since v15.0.0
1200
- * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1201
- */
1202
- function generateKey(
1203
- type: "hmac" | "aes",
1204
- options: {
1205
- length: number;
1206
- },
1207
- callback: (err: Error | null, key: KeyObject) => void,
1208
- ): void;
1209
- /**
1210
- * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1211
- *
1212
- * ```js
1213
- * const {
1214
- * generateKeySync,
1215
- * } = await import('node:crypto');
1216
- *
1217
- * const key = generateKeySync('hmac', { length: 512 });
1218
- * console.log(key.export().toString('hex')); // e89..........41e
1219
- * ```
1220
- *
1221
- * The size of a generated HMAC key should not exceed the block size of the
1222
- * underlying hash function. See {@link createHmac} for more information.
1223
- * @since v15.0.0
1224
- * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1225
- */
1226
- function generateKeySync(
1227
- type: "hmac" | "aes",
1228
- options: {
1229
- length: number;
1230
- },
1231
- ): KeyObject;
1232
- interface JsonWebKeyInput {
1233
- key: JsonWebKey;
1234
- format: "jwk";
1235
- }
1236
- /**
1237
- * Creates and returns a new key object containing a private key. If `key` is a
1238
- * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
1239
- *
1240
- * If the private key is encrypted, a `passphrase` must be specified. The length
1241
- * of the passphrase is limited to 1024 bytes.
1242
- * @since v11.6.0
1243
- */
1244
- function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1245
- /**
1246
- * Creates and returns a new key object containing a public key. If `key` is a
1247
- * 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;
1248
- * otherwise, `key` must be an object with the properties described above.
1249
- *
1250
- * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
1251
- *
1252
- * Because public keys can be derived from private keys, a private key may be
1253
- * 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
1254
- * returned `KeyObject` will be `'public'` and that the private key cannot be
1255
- * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
1256
- * and it will be impossible to extract the private key from the returned object.
1257
- * @since v11.6.0
1258
- */
1259
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
1260
- /**
1261
- * Creates and returns a new key object containing a secret key for symmetric
1262
- * encryption or `Hmac`.
1263
- * @since v11.6.0
1264
- * @param encoding The string encoding when `key` is a string.
1265
- */
1266
- function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
1267
- function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
1268
- /**
1269
- * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
1270
- * Optional `options` argument controls the `stream.Writable` behavior.
1271
- *
1272
- * In some cases, a `Sign` instance can be created using the name of a signature
1273
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1274
- * the corresponding digest algorithm. This does not work for all signature
1275
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1276
- * algorithm names.
1277
- * @since v0.1.92
1278
- * @param options `stream.Writable` options
1279
- */
1280
- function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
1281
- type DSAEncoding = "der" | "ieee-p1363";
1282
- interface SigningOptions {
1283
- /**
1284
- * @see crypto.constants.RSA_PKCS1_PADDING
1285
- */
1286
- padding?: number | undefined;
1287
- saltLength?: number | undefined;
1288
- dsaEncoding?: DSAEncoding | undefined;
1289
- }
1290
- interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
1291
- interface SignKeyObjectInput extends SigningOptions {
1292
- key: KeyObject;
1293
- }
1294
- interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1295
- interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1296
- interface VerifyKeyObjectInput extends SigningOptions {
1297
- key: KeyObject;
1298
- }
1299
- interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1300
- type KeyLike = string | Buffer | KeyObject;
1301
- /**
1302
- * The `Sign` class is a utility for generating signatures. It can be used in one
1303
- * of two ways:
1304
- *
1305
- * * 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
1306
- * * Using the `sign.update()` and `sign.sign()` methods to produce the
1307
- * signature.
1308
- *
1309
- * The {@link createSign} method is used to create `Sign` instances. The
1310
- * argument is the string name of the hash function to use. `Sign` objects are not
1311
- * to be created directly using the `new` keyword.
1312
- *
1313
- * Example: Using `Sign` and `Verify` objects as streams:
1314
- *
1315
- * ```js
1316
- * const {
1317
- * generateKeyPairSync,
1318
- * createSign,
1319
- * createVerify,
1320
- * } = await import('node:crypto');
1321
- *
1322
- * const { privateKey, publicKey } = generateKeyPairSync('ec', {
1323
- * namedCurve: 'sect239k1',
1324
- * });
1325
- *
1326
- * const sign = createSign('SHA256');
1327
- * sign.write('some data to sign');
1328
- * sign.end();
1329
- * const signature = sign.sign(privateKey, 'hex');
1330
- *
1331
- * const verify = createVerify('SHA256');
1332
- * verify.write('some data to sign');
1333
- * verify.end();
1334
- * console.log(verify.verify(publicKey, signature, 'hex'));
1335
- * // Prints: true
1336
- * ```
1337
- *
1338
- * Example: Using the `sign.update()` and `verify.update()` methods:
1339
- *
1340
- * ```js
1341
- * const {
1342
- * generateKeyPairSync,
1343
- * createSign,
1344
- * createVerify,
1345
- * } = await import('node:crypto');
1346
- *
1347
- * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
1348
- * modulusLength: 2048,
1349
- * });
1350
- *
1351
- * const sign = createSign('SHA256');
1352
- * sign.update('some data to sign');
1353
- * sign.end();
1354
- * const signature = sign.sign(privateKey);
1355
- *
1356
- * const verify = createVerify('SHA256');
1357
- * verify.update('some data to sign');
1358
- * verify.end();
1359
- * console.log(verify.verify(publicKey, signature));
1360
- * // Prints: true
1361
- * ```
1362
- * @since v0.1.92
1363
- */
1364
- class Sign extends stream.Writable {
1365
- private constructor();
1366
- /**
1367
- * Updates the `Sign` content with the given `data`, the encoding of which
1368
- * is given in `inputEncoding`.
1369
- * If `encoding` is not provided, and the `data` is a string, an
1370
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1371
- *
1372
- * This can be called many times with new data as it is streamed.
1373
- * @since v0.1.92
1374
- * @param inputEncoding The `encoding` of the `data` string.
1375
- */
1376
- update(data: BinaryLike): this;
1377
- update(data: string, inputEncoding: Encoding): this;
1378
- /**
1379
- * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1380
- *
1381
- * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
1382
- * object, the following additional properties can be passed:
1383
- *
1384
- * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
1385
- *
1386
- * The `Sign` object can not be again used after `sign.sign()` method has been
1387
- * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1388
- * @since v0.1.92
1389
- */
1390
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
1391
- sign(
1392
- privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
1393
- outputFormat: BinaryToTextEncoding,
1394
- ): string;
1395
- }
1396
- /**
1397
- * Creates and returns a `Verify` object that uses the given algorithm.
1398
- * Use {@link getHashes} to obtain an array of names of the available
1399
- * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
1400
- *
1401
- * In some cases, a `Verify` instance can be created using the name of a signature
1402
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1403
- * the corresponding digest algorithm. This does not work for all signature
1404
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1405
- * algorithm names.
1406
- * @since v0.1.92
1407
- * @param options `stream.Writable` options
1408
- */
1409
- function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
1410
- /**
1411
- * The `Verify` class is a utility for verifying signatures. It can be used in one
1412
- * of two ways:
1413
- *
1414
- * * As a writable `stream` where written data is used to validate against the
1415
- * supplied signature, or
1416
- * * Using the `verify.update()` and `verify.verify()` methods to verify
1417
- * the signature.
1418
- *
1419
- * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
1420
- *
1421
- * See `Sign` for examples.
1422
- * @since v0.1.92
1423
- */
1424
- class Verify extends stream.Writable {
1425
- private constructor();
1426
- /**
1427
- * Updates the `Verify` content with the given `data`, the encoding of which
1428
- * is given in `inputEncoding`.
1429
- * If `inputEncoding` is not provided, and the `data` is a string, an
1430
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
1431
- *
1432
- * This can be called many times with new data as it is streamed.
1433
- * @since v0.1.92
1434
- * @param inputEncoding The `encoding` of the `data` string.
1435
- */
1436
- update(data: BinaryLike): Verify;
1437
- update(data: string, inputEncoding: Encoding): Verify;
1438
- /**
1439
- * Verifies the provided data using the given `object` and `signature`.
1440
- *
1441
- * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
1442
- * object, the following additional properties can be passed:
1443
- *
1444
- * The `signature` argument is the previously calculated signature for the data, in
1445
- * the `signatureEncoding`.
1446
- * If a `signatureEncoding` is specified, the `signature` is expected to be a
1447
- * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1448
- *
1449
- * The `verify` object can not be used again after `verify.verify()` has been
1450
- * called. Multiple calls to `verify.verify()` will result in an error being
1451
- * thrown.
1452
- *
1453
- * Because public keys can be derived from private keys, a private key may
1454
- * be passed instead of a public key.
1455
- * @since v0.1.92
1456
- */
1457
- verify(
1458
- object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1459
- signature: NodeJS.ArrayBufferView,
1460
- ): boolean;
1461
- verify(
1462
- object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1463
- signature: string,
1464
- signature_format?: BinaryToTextEncoding,
1465
- ): boolean;
1466
- }
1467
- /**
1468
- * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1469
- * optional specific `generator`.
1470
- *
1471
- * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
1472
- *
1473
- * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1474
- * a `Buffer`, `TypedArray`, or `DataView` is expected.
1475
- *
1476
- * If `generatorEncoding` is specified, `generator` is expected to be a string;
1477
- * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
1478
- * @since v0.11.12
1479
- * @param primeEncoding The `encoding` of the `prime` string.
1480
- * @param [generator=2]
1481
- * @param generatorEncoding The `encoding` of the `generator` string.
1482
- */
1483
- function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
1484
- function createDiffieHellman(
1485
- prime: ArrayBuffer | NodeJS.ArrayBufferView,
1486
- generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1487
- ): DiffieHellman;
1488
- function createDiffieHellman(
1489
- prime: ArrayBuffer | NodeJS.ArrayBufferView,
1490
- generator: string,
1491
- generatorEncoding: BinaryToTextEncoding,
1492
- ): DiffieHellman;
1493
- function createDiffieHellman(
1494
- prime: string,
1495
- primeEncoding: BinaryToTextEncoding,
1496
- generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1497
- ): DiffieHellman;
1498
- function createDiffieHellman(
1499
- prime: string,
1500
- primeEncoding: BinaryToTextEncoding,
1501
- generator: string,
1502
- generatorEncoding: BinaryToTextEncoding,
1503
- ): DiffieHellman;
1504
- /**
1505
- * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
1506
- * exchanges.
1507
- *
1508
- * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
1509
- *
1510
- * ```js
1511
- * import assert from 'node:assert';
1512
- *
1513
- * const {
1514
- * createDiffieHellman,
1515
- * } = await import('node:crypto');
1516
- *
1517
- * // Generate Alice's keys...
1518
- * const alice = createDiffieHellman(2048);
1519
- * const aliceKey = alice.generateKeys();
1520
- *
1521
- * // Generate Bob's keys...
1522
- * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1523
- * const bobKey = bob.generateKeys();
1524
- *
1525
- * // Exchange and generate the secret...
1526
- * const aliceSecret = alice.computeSecret(bobKey);
1527
- * const bobSecret = bob.computeSecret(aliceKey);
1528
- *
1529
- * // OK
1530
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
1531
- * ```
1532
- * @since v0.5.0
1533
- */
1534
- class DiffieHellman {
1535
- private constructor();
1536
- /**
1537
- * Generates private and public Diffie-Hellman key values unless they have been
1538
- * generated or computed already, and returns
1539
- * the public key in the specified `encoding`. This key should be
1540
- * transferred to the other party.
1541
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1542
- *
1543
- * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
1544
- * once a private key has been generated or set, calling this function only updates
1545
- * the public key but does not generate a new private key.
1546
- * @since v0.5.0
1547
- * @param encoding The `encoding` of the return value.
1548
- */
1549
- generateKeys(): Buffer;
1550
- generateKeys(encoding: BinaryToTextEncoding): string;
1551
- /**
1552
- * Computes the shared secret using `otherPublicKey` as the other
1553
- * party's public key and returns the computed shared secret. The supplied
1554
- * key is interpreted using the specified `inputEncoding`, and secret is
1555
- * encoded using specified `outputEncoding`.
1556
- * If the `inputEncoding` is not
1557
- * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1558
- *
1559
- * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1560
- * @since v0.5.0
1561
- * @param inputEncoding The `encoding` of an `otherPublicKey` string.
1562
- * @param outputEncoding The `encoding` of the return value.
1563
- */
1564
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
1565
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
1566
- computeSecret(
1567
- otherPublicKey: NodeJS.ArrayBufferView,
1568
- inputEncoding: null,
1569
- outputEncoding: BinaryToTextEncoding,
1570
- ): string;
1571
- computeSecret(
1572
- otherPublicKey: string,
1573
- inputEncoding: BinaryToTextEncoding,
1574
- outputEncoding: BinaryToTextEncoding,
1575
- ): string;
1576
- /**
1577
- * Returns the Diffie-Hellman prime in the specified `encoding`.
1578
- * If `encoding` is provided a string is
1579
- * returned; otherwise a `Buffer` is returned.
1580
- * @since v0.5.0
1581
- * @param encoding The `encoding` of the return value.
1582
- */
1583
- getPrime(): Buffer;
1584
- getPrime(encoding: BinaryToTextEncoding): string;
1585
- /**
1586
- * Returns the Diffie-Hellman generator in the specified `encoding`.
1587
- * If `encoding` is provided a string is
1588
- * returned; otherwise a `Buffer` is returned.
1589
- * @since v0.5.0
1590
- * @param encoding The `encoding` of the return value.
1591
- */
1592
- getGenerator(): Buffer;
1593
- getGenerator(encoding: BinaryToTextEncoding): string;
1594
- /**
1595
- * Returns the Diffie-Hellman public key in the specified `encoding`.
1596
- * If `encoding` is provided a
1597
- * string is returned; otherwise a `Buffer` is returned.
1598
- * @since v0.5.0
1599
- * @param encoding The `encoding` of the return value.
1600
- */
1601
- getPublicKey(): Buffer;
1602
- getPublicKey(encoding: BinaryToTextEncoding): string;
1603
- /**
1604
- * Returns the Diffie-Hellman private key in the specified `encoding`.
1605
- * If `encoding` is provided a
1606
- * string is returned; otherwise a `Buffer` is returned.
1607
- * @since v0.5.0
1608
- * @param encoding The `encoding` of the return value.
1609
- */
1610
- getPrivateKey(): Buffer;
1611
- getPrivateKey(encoding: BinaryToTextEncoding): string;
1612
- /**
1613
- * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
1614
- * to be a string. If no `encoding` is provided, `publicKey` is expected
1615
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1616
- * @since v0.5.0
1617
- * @param encoding The `encoding` of the `publicKey` string.
1618
- */
1619
- setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
1620
- setPublicKey(publicKey: string, encoding: BufferEncoding): void;
1621
- /**
1622
- * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
1623
- * to be a string. If no `encoding` is provided, `privateKey` is expected
1624
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1625
- *
1626
- * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
1627
- * used to manually provide the public key or to automatically derive it.
1628
- * @since v0.5.0
1629
- * @param encoding The `encoding` of the `privateKey` string.
1630
- */
1631
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
1632
- setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
1633
- /**
1634
- * A bit field containing any warnings and/or errors resulting from a check
1635
- * performed during initialization of the `DiffieHellman` object.
1636
- *
1637
- * The following values are valid for this property (as defined in `node:constants` module):
1638
- *
1639
- * * `DH_CHECK_P_NOT_SAFE_PRIME`
1640
- * * `DH_CHECK_P_NOT_PRIME`
1641
- * * `DH_UNABLE_TO_CHECK_GENERATOR`
1642
- * * `DH_NOT_SUITABLE_GENERATOR`
1643
- * @since v0.11.12
1644
- */
1645
- verifyError: number;
1646
- }
1647
- /**
1648
- * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
1649
- * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
1650
- * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
1651
- *
1652
- * ```js
1653
- * const { createDiffieHellmanGroup } = await import('node:crypto');
1654
- * const dh = createDiffieHellmanGroup('modp1');
1655
- * ```
1656
- * 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):
1657
- * ```bash
1658
- * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
1659
- * modp1 # 768 bits
1660
- * modp2 # 1024 bits
1661
- * modp5 # 1536 bits
1662
- * modp14 # 2048 bits
1663
- * modp15 # etc.
1664
- * modp16
1665
- * modp17
1666
- * modp18
1667
- * ```
1668
- * @since v0.7.5
1669
- */
1670
- const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
1671
- interface DiffieHellmanGroupConstructor {
1672
- new(name: string): DiffieHellmanGroup;
1673
- (name: string): DiffieHellmanGroup;
1674
- readonly prototype: DiffieHellmanGroup;
1675
- }
1676
- type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
1677
- /**
1678
- * Creates a predefined `DiffieHellmanGroup` key exchange object. The
1679
- * supported groups are listed in the documentation for `DiffieHellmanGroup`.
1680
- *
1681
- * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
1682
- * the keys (with `diffieHellman.setPublicKey()`, for example). The
1683
- * advantage of using this method is that the parties do not have to
1684
- * generate nor exchange a group modulus beforehand, saving both processor
1685
- * and communication time.
1686
- *
1687
- * Example (obtaining a shared secret):
1688
- *
1689
- * ```js
1690
- * const {
1691
- * getDiffieHellman,
1692
- * } = await import('node:crypto');
1693
- * const alice = getDiffieHellman('modp14');
1694
- * const bob = getDiffieHellman('modp14');
1695
- *
1696
- * alice.generateKeys();
1697
- * bob.generateKeys();
1698
- *
1699
- * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
1700
- * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
1701
- *
1702
- * // aliceSecret and bobSecret should be the same
1703
- * console.log(aliceSecret === bobSecret);
1704
- * ```
1705
- * @since v0.7.5
1706
- */
1707
- function getDiffieHellman(groupName: string): DiffieHellmanGroup;
1708
- /**
1709
- * An alias for {@link getDiffieHellman}
1710
- * @since v0.9.3
1711
- */
1712
- function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
1713
- /**
1714
- * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1715
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1716
- * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1717
- *
1718
- * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
1719
- * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
1720
- * thrown if any of the input arguments specify invalid values or types.
1721
- *
1722
- * The `iterations` argument must be a number set as high as possible. The
1723
- * higher the number of iterations, the more secure the derived key will be,
1724
- * but will take a longer amount of time to complete.
1725
- *
1726
- * The `salt` should be as unique as possible. It is recommended that a salt is
1727
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1728
- *
1729
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1730
- *
1731
- * ```js
1732
- * const {
1733
- * pbkdf2,
1734
- * } = await import('node:crypto');
1735
- *
1736
- * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
1737
- * if (err) throw err;
1738
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1739
- * });
1740
- * ```
1741
- *
1742
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1743
- *
1744
- * This API uses libuv's threadpool, which can have surprising and
1745
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1746
- * @since v0.5.5
1747
- */
1748
- function pbkdf2(
1749
- password: BinaryLike,
1750
- salt: BinaryLike,
1751
- iterations: number,
1752
- keylen: number,
1753
- digest: string,
1754
- callback: (err: Error | null, derivedKey: Buffer) => void,
1755
- ): void;
1756
- /**
1757
- * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1758
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1759
- * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1760
- *
1761
- * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1762
- * returned as a `Buffer`.
1763
- *
1764
- * The `iterations` argument must be a number set as high as possible. The
1765
- * higher the number of iterations, the more secure the derived key will be,
1766
- * but will take a longer amount of time to complete.
1767
- *
1768
- * The `salt` should be as unique as possible. It is recommended that a salt is
1769
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1770
- *
1771
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1772
- *
1773
- * ```js
1774
- * const {
1775
- * pbkdf2Sync,
1776
- * } = await import('node:crypto');
1777
- *
1778
- * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
1779
- * console.log(key.toString('hex')); // '3745e48...08d59ae'
1780
- * ```
1781
- *
1782
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1783
- * @since v0.9.3
1784
- */
1785
- function pbkdf2Sync(
1786
- password: BinaryLike,
1787
- salt: BinaryLike,
1788
- iterations: number,
1789
- keylen: number,
1790
- digest: string,
1791
- ): Buffer;
1792
- /**
1793
- * Generates cryptographically strong pseudorandom data. The `size` argument
1794
- * is a number indicating the number of bytes to generate.
1795
- *
1796
- * If a `callback` function is provided, the bytes are generated asynchronously
1797
- * and the `callback` function is invoked with two arguments: `err` and `buf`.
1798
- * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
1799
- *
1800
- * ```js
1801
- * // Asynchronous
1802
- * const {
1803
- * randomBytes,
1804
- * } = await import('node:crypto');
1805
- *
1806
- * randomBytes(256, (err, buf) => {
1807
- * if (err) throw err;
1808
- * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
1809
- * });
1810
- * ```
1811
- *
1812
- * If the `callback` function is not provided, the random bytes are generated
1813
- * synchronously and returned as a `Buffer`. An error will be thrown if
1814
- * there is a problem generating the bytes.
1815
- *
1816
- * ```js
1817
- * // Synchronous
1818
- * const {
1819
- * randomBytes,
1820
- * } = await import('node:crypto');
1821
- *
1822
- * const buf = randomBytes(256);
1823
- * console.log(
1824
- * `${buf.length} bytes of random data: ${buf.toString('hex')}`);
1825
- * ```
1826
- *
1827
- * The `crypto.randomBytes()` method will not complete until there is
1828
- * sufficient entropy available.
1829
- * This should normally never take longer than a few milliseconds. The only time
1830
- * when generating the random bytes may conceivably block for a longer period of
1831
- * time is right after boot, when the whole system is still low on entropy.
1832
- *
1833
- * This API uses libuv's threadpool, which can have surprising and
1834
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1835
- *
1836
- * The asynchronous version of `crypto.randomBytes()` is carried out in a single
1837
- * threadpool request. To minimize threadpool task length variation, partition
1838
- * large `randomBytes` requests when doing so as part of fulfilling a client
1839
- * request.
1840
- * @since v0.5.8
1841
- * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
1842
- * @return if the `callback` function is not provided.
1843
- */
1844
- function randomBytes(size: number): Buffer;
1845
- function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1846
- function pseudoRandomBytes(size: number): Buffer;
1847
- function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1848
- /**
1849
- * Return a random integer `n` such that `min <= n < max`. This
1850
- * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1851
- *
1852
- * The range (`max - min`) must be less than 2**48. `min` and `max` must
1853
- * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1854
- *
1855
- * If the `callback` function is not provided, the random integer is
1856
- * generated synchronously.
1857
- *
1858
- * ```js
1859
- * // Asynchronous
1860
- * const {
1861
- * randomInt,
1862
- * } = await import('node:crypto');
1863
- *
1864
- * randomInt(3, (err, n) => {
1865
- * if (err) throw err;
1866
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1867
- * });
1868
- * ```
1869
- *
1870
- * ```js
1871
- * // Synchronous
1872
- * const {
1873
- * randomInt,
1874
- * } = await import('node:crypto');
1875
- *
1876
- * const n = randomInt(3);
1877
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1878
- * ```
1879
- *
1880
- * ```js
1881
- * // With `min` argument
1882
- * const {
1883
- * randomInt,
1884
- * } = await import('node:crypto');
1885
- *
1886
- * const n = randomInt(1, 7);
1887
- * console.log(`The dice rolled: ${n}`);
1888
- * ```
1889
- * @since v14.10.0, v12.19.0
1890
- * @param [min=0] Start of random range (inclusive).
1891
- * @param max End of random range (exclusive).
1892
- * @param callback `function(err, n) {}`.
1893
- */
1894
- function randomInt(max: number): number;
1895
- function randomInt(min: number, max: number): number;
1896
- function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
1897
- function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
1898
- /**
1899
- * Synchronous version of {@link randomFill}.
1900
- *
1901
- * ```js
1902
- * import { Buffer } from 'node:buffer';
1903
- * const { randomFillSync } = await import('node:crypto');
1904
- *
1905
- * const buf = Buffer.alloc(10);
1906
- * console.log(randomFillSync(buf).toString('hex'));
1907
- *
1908
- * randomFillSync(buf, 5);
1909
- * console.log(buf.toString('hex'));
1910
- *
1911
- * // The above is equivalent to the following:
1912
- * randomFillSync(buf, 5, 5);
1913
- * console.log(buf.toString('hex'));
1914
- * ```
1915
- *
1916
- * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
1917
- *
1918
- * ```js
1919
- * import { Buffer } from 'node:buffer';
1920
- * const { randomFillSync } = await import('node:crypto');
1921
- *
1922
- * const a = new Uint32Array(10);
1923
- * console.log(Buffer.from(randomFillSync(a).buffer,
1924
- * a.byteOffset, a.byteLength).toString('hex'));
1925
- *
1926
- * const b = new DataView(new ArrayBuffer(10));
1927
- * console.log(Buffer.from(randomFillSync(b).buffer,
1928
- * b.byteOffset, b.byteLength).toString('hex'));
1929
- *
1930
- * const c = new ArrayBuffer(10);
1931
- * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
1932
- * ```
1933
- * @since v7.10.0, v6.13.0
1934
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1935
- * @param [offset=0]
1936
- * @param [size=buffer.length - offset]
1937
- * @return The object passed as `buffer` argument.
1938
- */
1939
- function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
1940
- /**
1941
- * This function is similar to {@link randomBytes} but requires the first
1942
- * argument to be a `Buffer` that will be filled. It also
1943
- * requires that a callback is passed in.
1944
- *
1945
- * If the `callback` function is not provided, an error will be thrown.
1946
- *
1947
- * ```js
1948
- * import { Buffer } from 'node:buffer';
1949
- * const { randomFill } = await import('node:crypto');
1950
- *
1951
- * const buf = Buffer.alloc(10);
1952
- * randomFill(buf, (err, buf) => {
1953
- * if (err) throw err;
1954
- * console.log(buf.toString('hex'));
1955
- * });
1956
- *
1957
- * randomFill(buf, 5, (err, buf) => {
1958
- * if (err) throw err;
1959
- * console.log(buf.toString('hex'));
1960
- * });
1961
- *
1962
- * // The above is equivalent to the following:
1963
- * randomFill(buf, 5, 5, (err, buf) => {
1964
- * if (err) throw err;
1965
- * console.log(buf.toString('hex'));
1966
- * });
1967
- * ```
1968
- *
1969
- * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
1970
- *
1971
- * While this includes instances of `Float32Array` and `Float64Array`, this
1972
- * function should not be used to generate random floating-point numbers. The
1973
- * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
1974
- * contains finite numbers only, they are not drawn from a uniform random
1975
- * distribution and have no meaningful lower or upper bounds.
1976
- *
1977
- * ```js
1978
- * import { Buffer } from 'node:buffer';
1979
- * const { randomFill } = await import('node:crypto');
1980
- *
1981
- * const a = new Uint32Array(10);
1982
- * randomFill(a, (err, buf) => {
1983
- * if (err) throw err;
1984
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1985
- * .toString('hex'));
1986
- * });
1987
- *
1988
- * const b = new DataView(new ArrayBuffer(10));
1989
- * randomFill(b, (err, buf) => {
1990
- * if (err) throw err;
1991
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1992
- * .toString('hex'));
1993
- * });
1994
- *
1995
- * const c = new ArrayBuffer(10);
1996
- * randomFill(c, (err, buf) => {
1997
- * if (err) throw err;
1998
- * console.log(Buffer.from(buf).toString('hex'));
1999
- * });
2000
- * ```
2001
- *
2002
- * This API uses libuv's threadpool, which can have surprising and
2003
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
2004
- *
2005
- * The asynchronous version of `crypto.randomFill()` is carried out in a single
2006
- * threadpool request. To minimize threadpool task length variation, partition
2007
- * large `randomFill` requests when doing so as part of fulfilling a client
2008
- * request.
2009
- * @since v7.10.0, v6.13.0
2010
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
2011
- * @param [offset=0]
2012
- * @param [size=buffer.length - offset]
2013
- * @param callback `function(err, buf) {}`.
2014
- */
2015
- function randomFill<T extends NodeJS.ArrayBufferView>(
2016
- buffer: T,
2017
- callback: (err: Error | null, buf: T) => void,
2018
- ): void;
2019
- function randomFill<T extends NodeJS.ArrayBufferView>(
2020
- buffer: T,
2021
- offset: number,
2022
- callback: (err: Error | null, buf: T) => void,
2023
- ): void;
2024
- function randomFill<T extends NodeJS.ArrayBufferView>(
2025
- buffer: T,
2026
- offset: number,
2027
- size: number,
2028
- callback: (err: Error | null, buf: T) => void,
2029
- ): void;
2030
- interface ScryptOptions {
2031
- cost?: number | undefined;
2032
- blockSize?: number | undefined;
2033
- parallelization?: number | undefined;
2034
- N?: number | undefined;
2035
- r?: number | undefined;
2036
- p?: number | undefined;
2037
- maxmem?: number | undefined;
2038
- }
2039
- /**
2040
- * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2041
- * key derivation function that is designed to be expensive computationally and
2042
- * memory-wise in order to make brute-force attacks unrewarding.
2043
- *
2044
- * The `salt` should be as unique as possible. It is recommended that a salt is
2045
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2046
- *
2047
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2048
- *
2049
- * 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
2050
- * callback as a `Buffer`.
2051
- *
2052
- * An exception is thrown when any of the input arguments specify invalid values
2053
- * or types.
2054
- *
2055
- * ```js
2056
- * const {
2057
- * scrypt,
2058
- * } = await import('node:crypto');
2059
- *
2060
- * // Using the factory defaults.
2061
- * scrypt('password', 'salt', 64, (err, derivedKey) => {
2062
- * if (err) throw err;
2063
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
2064
- * });
2065
- * // Using a custom N parameter. Must be a power of two.
2066
- * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
2067
- * if (err) throw err;
2068
- * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
2069
- * });
2070
- * ```
2071
- * @since v10.5.0
2072
- */
2073
- function scrypt(
2074
- password: BinaryLike,
2075
- salt: BinaryLike,
2076
- keylen: number,
2077
- callback: (err: Error | null, derivedKey: Buffer) => void,
2078
- ): void;
2079
- function scrypt(
2080
- password: BinaryLike,
2081
- salt: BinaryLike,
2082
- keylen: number,
2083
- options: ScryptOptions,
2084
- callback: (err: Error | null, derivedKey: Buffer) => void,
2085
- ): void;
2086
- /**
2087
- * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2088
- * key derivation function that is designed to be expensive computationally and
2089
- * memory-wise in order to make brute-force attacks unrewarding.
2090
- *
2091
- * The `salt` should be as unique as possible. It is recommended that a salt is
2092
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2093
- *
2094
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2095
- *
2096
- * An exception is thrown when key derivation fails, otherwise the derived key is
2097
- * returned as a `Buffer`.
2098
- *
2099
- * An exception is thrown when any of the input arguments specify invalid values
2100
- * or types.
2101
- *
2102
- * ```js
2103
- * const {
2104
- * scryptSync,
2105
- * } = await import('node:crypto');
2106
- * // Using the factory defaults.
2107
- *
2108
- * const key1 = scryptSync('password', 'salt', 64);
2109
- * console.log(key1.toString('hex')); // '3745e48...08d59ae'
2110
- * // Using a custom N parameter. Must be a power of two.
2111
- * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
2112
- * console.log(key2.toString('hex')); // '3745e48...aa39b34'
2113
- * ```
2114
- * @since v10.5.0
2115
- */
2116
- function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
2117
- interface RsaPublicKey {
2118
- key: KeyLike;
2119
- padding?: number | undefined;
2120
- }
2121
- interface RsaPrivateKey {
2122
- key: KeyLike;
2123
- passphrase?: string | undefined;
2124
- /**
2125
- * @default 'sha1'
2126
- */
2127
- oaepHash?: string | undefined;
2128
- oaepLabel?: NodeJS.TypedArray | undefined;
2129
- padding?: number | undefined;
2130
- }
2131
- /**
2132
- * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
2133
- * the corresponding private key, for example using {@link privateDecrypt}.
2134
- *
2135
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2136
- * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2137
- *
2138
- * Because RSA public keys can be derived from private keys, a private key may
2139
- * be passed instead of a public key.
2140
- * @since v0.11.14
2141
- */
2142
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2143
- /**
2144
- * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2145
- * the corresponding private key, for example using {@link privateEncrypt}.
2146
- *
2147
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2148
- * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2149
- *
2150
- * Because RSA public keys can be derived from private keys, a private key may
2151
- * be passed instead of a public key.
2152
- * @since v1.1.0
2153
- */
2154
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2155
- /**
2156
- * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2157
- * the corresponding public key, for example using {@link publicEncrypt}.
2158
- *
2159
- * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2160
- * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2161
- * @since v0.11.14
2162
- */
2163
- function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2164
- /**
2165
- * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2166
- * the corresponding public key, for example using {@link publicDecrypt}.
2167
- *
2168
- * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2169
- * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2170
- * @since v1.1.0
2171
- */
2172
- function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2173
- /**
2174
- * ```js
2175
- * const {
2176
- * getCiphers,
2177
- * } = await import('node:crypto');
2178
- *
2179
- * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
2180
- * ```
2181
- * @since v0.9.3
2182
- * @return An array with the names of the supported cipher algorithms.
2183
- */
2184
- function getCiphers(): string[];
2185
- /**
2186
- * ```js
2187
- * const {
2188
- * getCurves,
2189
- * } = await import('node:crypto');
2190
- *
2191
- * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
2192
- * ```
2193
- * @since v2.3.0
2194
- * @return An array with the names of the supported elliptic curves.
2195
- */
2196
- function getCurves(): string[];
2197
- /**
2198
- * @since v10.0.0
2199
- * @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}.
2200
- */
2201
- function getFips(): 1 | 0;
2202
- /**
2203
- * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build.
2204
- * Throws an error if FIPS mode is not available.
2205
- * @since v10.0.0
2206
- * @param bool `true` to enable FIPS mode.
2207
- */
2208
- function setFips(bool: boolean): void;
2209
- /**
2210
- * ```js
2211
- * const {
2212
- * getHashes,
2213
- * } = await import('node:crypto');
2214
- *
2215
- * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
2216
- * ```
2217
- * @since v0.9.3
2218
- * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
2219
- */
2220
- function getHashes(): string[];
2221
- /**
2222
- * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
2223
- * key exchanges.
2224
- *
2225
- * Instances of the `ECDH` class can be created using the {@link createECDH} function.
2226
- *
2227
- * ```js
2228
- * import assert from 'node:assert';
2229
- *
2230
- * const {
2231
- * createECDH,
2232
- * } = await import('node:crypto');
2233
- *
2234
- * // Generate Alice's keys...
2235
- * const alice = createECDH('secp521r1');
2236
- * const aliceKey = alice.generateKeys();
2237
- *
2238
- * // Generate Bob's keys...
2239
- * const bob = createECDH('secp521r1');
2240
- * const bobKey = bob.generateKeys();
2241
- *
2242
- * // Exchange and generate the secret...
2243
- * const aliceSecret = alice.computeSecret(bobKey);
2244
- * const bobSecret = bob.computeSecret(aliceKey);
2245
- *
2246
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
2247
- * // OK
2248
- * ```
2249
- * @since v0.11.14
2250
- */
2251
- class ECDH {
2252
- private constructor();
2253
- /**
2254
- * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
2255
- * format specified by `format`. The `format` argument specifies point encoding
2256
- * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
2257
- * interpreted using the specified `inputEncoding`, and the returned key is encoded
2258
- * using the specified `outputEncoding`.
2259
- *
2260
- * Use {@link getCurves} to obtain a list of available curve names.
2261
- * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2262
- * the name and description of each available elliptic curve.
2263
- *
2264
- * If `format` is not specified the point will be returned in `'uncompressed'` format.
2265
- *
2266
- * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2267
- *
2268
- * Example (uncompressing a key):
2269
- *
2270
- * ```js
2271
- * const {
2272
- * createECDH,
2273
- * ECDH,
2274
- * } = await import('node:crypto');
2275
- *
2276
- * const ecdh = createECDH('secp256k1');
2277
- * ecdh.generateKeys();
2278
- *
2279
- * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
2280
- *
2281
- * const uncompressedKey = ECDH.convertKey(compressedKey,
2282
- * 'secp256k1',
2283
- * 'hex',
2284
- * 'hex',
2285
- * 'uncompressed');
2286
- *
2287
- * // The converted key and the uncompressed public key should be the same
2288
- * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
2289
- * ```
2290
- * @since v10.0.0
2291
- * @param inputEncoding The `encoding` of the `key` string.
2292
- * @param outputEncoding The `encoding` of the return value.
2293
- * @param [format='uncompressed']
2294
- */
2295
- static convertKey(
2296
- key: BinaryLike,
2297
- curve: string,
2298
- inputEncoding?: BinaryToTextEncoding,
2299
- outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
2300
- format?: "uncompressed" | "compressed" | "hybrid",
2301
- ): Buffer | string;
2302
- /**
2303
- * Generates private and public EC Diffie-Hellman key values, and returns
2304
- * the public key in the specified `format` and `encoding`. This key should be
2305
- * transferred to the other party.
2306
- *
2307
- * 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.
2308
- *
2309
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2310
- * @since v0.11.14
2311
- * @param encoding The `encoding` of the return value.
2312
- * @param [format='uncompressed']
2313
- */
2314
- generateKeys(): Buffer;
2315
- generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2316
- /**
2317
- * Computes the shared secret using `otherPublicKey` as the other
2318
- * party's public key and returns the computed shared secret. The supplied
2319
- * key is interpreted using specified `inputEncoding`, and the returned secret
2320
- * is encoded using the specified `outputEncoding`.
2321
- * If the `inputEncoding` is not
2322
- * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2323
- *
2324
- * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2325
- *
2326
- * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
2327
- * usually supplied from a remote user over an insecure network,
2328
- * be sure to handle this exception accordingly.
2329
- * @since v0.11.14
2330
- * @param inputEncoding The `encoding` of the `otherPublicKey` string.
2331
- * @param outputEncoding The `encoding` of the return value.
2332
- */
2333
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
2334
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
2335
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
2336
- computeSecret(
2337
- otherPublicKey: string,
2338
- inputEncoding: BinaryToTextEncoding,
2339
- outputEncoding: BinaryToTextEncoding,
2340
- ): string;
2341
- /**
2342
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2343
- * returned.
2344
- * @since v0.11.14
2345
- * @param encoding The `encoding` of the return value.
2346
- * @return The EC Diffie-Hellman in the specified `encoding`.
2347
- */
2348
- getPrivateKey(): Buffer;
2349
- getPrivateKey(encoding: BinaryToTextEncoding): string;
2350
- /**
2351
- * 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.
2352
- *
2353
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2354
- * returned.
2355
- * @since v0.11.14
2356
- * @param encoding The `encoding` of the return value.
2357
- * @param [format='uncompressed']
2358
- * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
2359
- */
2360
- getPublicKey(encoding?: null, format?: ECDHKeyFormat): Buffer;
2361
- getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2362
- /**
2363
- * Sets the EC Diffie-Hellman private key.
2364
- * If `encoding` is provided, `privateKey` is expected
2365
- * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2366
- *
2367
- * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2368
- * created, an error is thrown. Upon setting the private key, the associated
2369
- * public point (key) is also generated and set in the `ECDH` object.
2370
- * @since v0.11.14
2371
- * @param encoding The `encoding` of the `privateKey` string.
2372
- */
2373
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
2374
- setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
2375
- }
2376
- /**
2377
- * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
2378
- * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
2379
- * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
2380
- * and description of each available elliptic curve.
2381
- * @since v0.11.14
2382
- */
2383
- function createECDH(curveName: string): ECDH;
2384
- /**
2385
- * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
2386
- * algorithm.
2387
- *
2388
- * This function does not leak timing information that
2389
- * would allow an attacker to guess one of the values. This is suitable for
2390
- * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
2391
- *
2392
- * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
2393
- * must have the same byte length. An error is thrown if `a` and `b` have
2394
- * different byte lengths.
2395
- *
2396
- * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
2397
- * entry, such as `Uint16Array`, the result will be computed using the platform
2398
- * byte order.
2399
- *
2400
- * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
2401
- * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
2402
- * **numbers `x` and `y` are equal.**
2403
- *
2404
- * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
2405
- * is timing-safe. Care should be taken to ensure that the surrounding code does
2406
- * not introduce timing vulnerabilities.
2407
- * @since v6.6.0
2408
- */
2409
- function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
2410
- type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
2411
- type KeyFormat = "pem" | "der" | "jwk";
2412
- interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2413
- format: T;
2414
- cipher?: string | undefined;
2415
- passphrase?: string | undefined;
2416
- }
2417
- interface KeyPairKeyObjectResult {
2418
- publicKey: KeyObject;
2419
- privateKey: KeyObject;
2420
- }
2421
- interface ED25519KeyPairKeyObjectOptions {}
2422
- interface ED448KeyPairKeyObjectOptions {}
2423
- interface X25519KeyPairKeyObjectOptions {}
2424
- interface X448KeyPairKeyObjectOptions {}
2425
- interface ECKeyPairKeyObjectOptions {
2426
- /**
2427
- * Name of the curve to use
2428
- */
2429
- namedCurve: string;
2430
- /**
2431
- * Must be `'named'` or `'explicit'`. Default: `'named'`.
2432
- */
2433
- paramEncoding?: "explicit" | "named" | undefined;
2434
- }
2435
- interface RSAKeyPairKeyObjectOptions {
2436
- /**
2437
- * Key size in bits
2438
- */
2439
- modulusLength: number;
2440
- /**
2441
- * Public exponent
2442
- * @default 0x10001
2443
- */
2444
- publicExponent?: number | undefined;
2445
- }
2446
- interface RSAPSSKeyPairKeyObjectOptions {
2447
- /**
2448
- * Key size in bits
2449
- */
2450
- modulusLength: number;
2451
- /**
2452
- * Public exponent
2453
- * @default 0x10001
2454
- */
2455
- publicExponent?: number | undefined;
2456
- /**
2457
- * Name of the message digest
2458
- */
2459
- hashAlgorithm?: string;
2460
- /**
2461
- * Name of the message digest used by MGF1
2462
- */
2463
- mgf1HashAlgorithm?: string;
2464
- /**
2465
- * Minimal salt length in bytes
2466
- */
2467
- saltLength?: string;
2468
- }
2469
- interface DSAKeyPairKeyObjectOptions {
2470
- /**
2471
- * Key size in bits
2472
- */
2473
- modulusLength: number;
2474
- /**
2475
- * Size of q in bits
2476
- */
2477
- divisorLength: number;
2478
- }
2479
- interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2480
- /**
2481
- * Key size in bits
2482
- */
2483
- modulusLength: number;
2484
- /**
2485
- * Public exponent
2486
- * @default 0x10001
2487
- */
2488
- publicExponent?: number | undefined;
2489
- publicKeyEncoding: {
2490
- type: "pkcs1" | "spki";
2491
- format: PubF;
2492
- };
2493
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2494
- type: "pkcs1" | "pkcs8";
2495
- };
2496
- }
2497
- interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2498
- /**
2499
- * Key size in bits
2500
- */
2501
- modulusLength: number;
2502
- /**
2503
- * Public exponent
2504
- * @default 0x10001
2505
- */
2506
- publicExponent?: number | undefined;
2507
- /**
2508
- * Name of the message digest
2509
- */
2510
- hashAlgorithm?: string;
2511
- /**
2512
- * Name of the message digest used by MGF1
2513
- */
2514
- mgf1HashAlgorithm?: string;
2515
- /**
2516
- * Minimal salt length in bytes
2517
- */
2518
- saltLength?: string;
2519
- publicKeyEncoding: {
2520
- type: "spki";
2521
- format: PubF;
2522
- };
2523
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2524
- type: "pkcs8";
2525
- };
2526
- }
2527
- interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2528
- /**
2529
- * Key size in bits
2530
- */
2531
- modulusLength: number;
2532
- /**
2533
- * Size of q in bits
2534
- */
2535
- divisorLength: number;
2536
- publicKeyEncoding: {
2537
- type: "spki";
2538
- format: PubF;
2539
- };
2540
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2541
- type: "pkcs8";
2542
- };
2543
- }
2544
- interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
2545
- publicKeyEncoding: {
2546
- type: "pkcs1" | "spki";
2547
- format: PubF;
2548
- };
2549
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2550
- type: "sec1" | "pkcs8";
2551
- };
2552
- }
2553
- interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2554
- publicKeyEncoding: {
2555
- type: "spki";
2556
- format: PubF;
2557
- };
2558
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2559
- type: "pkcs8";
2560
- };
2561
- }
2562
- interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2563
- publicKeyEncoding: {
2564
- type: "spki";
2565
- format: PubF;
2566
- };
2567
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2568
- type: "pkcs8";
2569
- };
2570
- }
2571
- interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2572
- publicKeyEncoding: {
2573
- type: "spki";
2574
- format: PubF;
2575
- };
2576
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2577
- type: "pkcs8";
2578
- };
2579
- }
2580
- interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2581
- publicKeyEncoding: {
2582
- type: "spki";
2583
- format: PubF;
2584
- };
2585
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2586
- type: "pkcs8";
2587
- };
2588
- }
2589
- interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
2590
- publicKey: T1;
2591
- privateKey: T2;
2592
- }
2593
- /**
2594
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2595
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2596
- *
2597
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2598
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2599
- * the respective part of the key is returned as a `KeyObject`.
2600
- *
2601
- * When encoding public keys, it is recommended to use `'spki'`. When encoding
2602
- * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2603
- * and to keep the passphrase confidential.
2604
- *
2605
- * ```js
2606
- * const {
2607
- * generateKeyPairSync,
2608
- * } = await import('node:crypto');
2609
- *
2610
- * const {
2611
- * publicKey,
2612
- * privateKey,
2613
- * } = generateKeyPairSync('rsa', {
2614
- * modulusLength: 4096,
2615
- * publicKeyEncoding: {
2616
- * type: 'spki',
2617
- * format: 'pem',
2618
- * },
2619
- * privateKeyEncoding: {
2620
- * type: 'pkcs8',
2621
- * format: 'pem',
2622
- * cipher: 'aes-256-cbc',
2623
- * passphrase: 'top secret',
2624
- * },
2625
- * });
2626
- * ```
2627
- *
2628
- * The return value `{ publicKey, privateKey }` represents the generated key pair.
2629
- * When PEM encoding was selected, the respective key will be a string, otherwise
2630
- * it will be a buffer containing the data encoded as DER.
2631
- * @since v10.12.0
2632
- * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2633
- */
2634
- function generateKeyPairSync(
2635
- type: "rsa",
2636
- options: RSAKeyPairOptions<"pem", "pem">,
2637
- ): KeyPairSyncResult<string, string>;
2638
- function generateKeyPairSync(
2639
- type: "rsa",
2640
- options: RSAKeyPairOptions<"pem", "der">,
2641
- ): KeyPairSyncResult<string, Buffer>;
2642
- function generateKeyPairSync(
2643
- type: "rsa",
2644
- options: RSAKeyPairOptions<"der", "pem">,
2645
- ): KeyPairSyncResult<Buffer, string>;
2646
- function generateKeyPairSync(
2647
- type: "rsa",
2648
- options: RSAKeyPairOptions<"der", "der">,
2649
- ): KeyPairSyncResult<Buffer, Buffer>;
2650
- function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2651
- function generateKeyPairSync(
2652
- type: "rsa-pss",
2653
- options: RSAPSSKeyPairOptions<"pem", "pem">,
2654
- ): KeyPairSyncResult<string, string>;
2655
- function generateKeyPairSync(
2656
- type: "rsa-pss",
2657
- options: RSAPSSKeyPairOptions<"pem", "der">,
2658
- ): KeyPairSyncResult<string, Buffer>;
2659
- function generateKeyPairSync(
2660
- type: "rsa-pss",
2661
- options: RSAPSSKeyPairOptions<"der", "pem">,
2662
- ): KeyPairSyncResult<Buffer, string>;
2663
- function generateKeyPairSync(
2664
- type: "rsa-pss",
2665
- options: RSAPSSKeyPairOptions<"der", "der">,
2666
- ): KeyPairSyncResult<Buffer, Buffer>;
2667
- function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2668
- function generateKeyPairSync(
2669
- type: "dsa",
2670
- options: DSAKeyPairOptions<"pem", "pem">,
2671
- ): KeyPairSyncResult<string, string>;
2672
- function generateKeyPairSync(
2673
- type: "dsa",
2674
- options: DSAKeyPairOptions<"pem", "der">,
2675
- ): KeyPairSyncResult<string, Buffer>;
2676
- function generateKeyPairSync(
2677
- type: "dsa",
2678
- options: DSAKeyPairOptions<"der", "pem">,
2679
- ): KeyPairSyncResult<Buffer, string>;
2680
- function generateKeyPairSync(
2681
- type: "dsa",
2682
- options: DSAKeyPairOptions<"der", "der">,
2683
- ): KeyPairSyncResult<Buffer, Buffer>;
2684
- function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2685
- function generateKeyPairSync(
2686
- type: "ec",
2687
- options: ECKeyPairOptions<"pem", "pem">,
2688
- ): KeyPairSyncResult<string, string>;
2689
- function generateKeyPairSync(
2690
- type: "ec",
2691
- options: ECKeyPairOptions<"pem", "der">,
2692
- ): KeyPairSyncResult<string, Buffer>;
2693
- function generateKeyPairSync(
2694
- type: "ec",
2695
- options: ECKeyPairOptions<"der", "pem">,
2696
- ): KeyPairSyncResult<Buffer, string>;
2697
- function generateKeyPairSync(
2698
- type: "ec",
2699
- options: ECKeyPairOptions<"der", "der">,
2700
- ): KeyPairSyncResult<Buffer, Buffer>;
2701
- function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2702
- function generateKeyPairSync(
2703
- type: "ed25519",
2704
- options: ED25519KeyPairOptions<"pem", "pem">,
2705
- ): KeyPairSyncResult<string, string>;
2706
- function generateKeyPairSync(
2707
- type: "ed25519",
2708
- options: ED25519KeyPairOptions<"pem", "der">,
2709
- ): KeyPairSyncResult<string, Buffer>;
2710
- function generateKeyPairSync(
2711
- type: "ed25519",
2712
- options: ED25519KeyPairOptions<"der", "pem">,
2713
- ): KeyPairSyncResult<Buffer, string>;
2714
- function generateKeyPairSync(
2715
- type: "ed25519",
2716
- options: ED25519KeyPairOptions<"der", "der">,
2717
- ): KeyPairSyncResult<Buffer, Buffer>;
2718
- function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2719
- function generateKeyPairSync(
2720
- type: "ed448",
2721
- options: ED448KeyPairOptions<"pem", "pem">,
2722
- ): KeyPairSyncResult<string, string>;
2723
- function generateKeyPairSync(
2724
- type: "ed448",
2725
- options: ED448KeyPairOptions<"pem", "der">,
2726
- ): KeyPairSyncResult<string, Buffer>;
2727
- function generateKeyPairSync(
2728
- type: "ed448",
2729
- options: ED448KeyPairOptions<"der", "pem">,
2730
- ): KeyPairSyncResult<Buffer, string>;
2731
- function generateKeyPairSync(
2732
- type: "ed448",
2733
- options: ED448KeyPairOptions<"der", "der">,
2734
- ): KeyPairSyncResult<Buffer, Buffer>;
2735
- function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2736
- function generateKeyPairSync(
2737
- type: "x25519",
2738
- options: X25519KeyPairOptions<"pem", "pem">,
2739
- ): KeyPairSyncResult<string, string>;
2740
- function generateKeyPairSync(
2741
- type: "x25519",
2742
- options: X25519KeyPairOptions<"pem", "der">,
2743
- ): KeyPairSyncResult<string, Buffer>;
2744
- function generateKeyPairSync(
2745
- type: "x25519",
2746
- options: X25519KeyPairOptions<"der", "pem">,
2747
- ): KeyPairSyncResult<Buffer, string>;
2748
- function generateKeyPairSync(
2749
- type: "x25519",
2750
- options: X25519KeyPairOptions<"der", "der">,
2751
- ): KeyPairSyncResult<Buffer, Buffer>;
2752
- function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2753
- function generateKeyPairSync(
2754
- type: "x448",
2755
- options: X448KeyPairOptions<"pem", "pem">,
2756
- ): KeyPairSyncResult<string, string>;
2757
- function generateKeyPairSync(
2758
- type: "x448",
2759
- options: X448KeyPairOptions<"pem", "der">,
2760
- ): KeyPairSyncResult<string, Buffer>;
2761
- function generateKeyPairSync(
2762
- type: "x448",
2763
- options: X448KeyPairOptions<"der", "pem">,
2764
- ): KeyPairSyncResult<Buffer, string>;
2765
- function generateKeyPairSync(
2766
- type: "x448",
2767
- options: X448KeyPairOptions<"der", "der">,
2768
- ): KeyPairSyncResult<Buffer, Buffer>;
2769
- function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2770
- /**
2771
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2772
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2773
- *
2774
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2775
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2776
- * the respective part of the key is returned as a `KeyObject`.
2777
- *
2778
- * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
2779
- *
2780
- * ```js
2781
- * const {
2782
- * generateKeyPair,
2783
- * } = await import('node:crypto');
2784
- *
2785
- * generateKeyPair('rsa', {
2786
- * modulusLength: 4096,
2787
- * publicKeyEncoding: {
2788
- * type: 'spki',
2789
- * format: 'pem',
2790
- * },
2791
- * privateKeyEncoding: {
2792
- * type: 'pkcs8',
2793
- * format: 'pem',
2794
- * cipher: 'aes-256-cbc',
2795
- * passphrase: 'top secret',
2796
- * },
2797
- * }, (err, publicKey, privateKey) => {
2798
- * // Handle errors and use the generated key pair.
2799
- * });
2800
- * ```
2801
- *
2802
- * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
2803
- *
2804
- * If this method is invoked as its `util.promisify()` ed version, it returns
2805
- * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
2806
- * @since v10.12.0
2807
- * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2808
- */
2809
- function generateKeyPair(
2810
- type: "rsa",
2811
- options: RSAKeyPairOptions<"pem", "pem">,
2812
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2813
- ): void;
2814
- function generateKeyPair(
2815
- type: "rsa",
2816
- options: RSAKeyPairOptions<"pem", "der">,
2817
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2818
- ): void;
2819
- function generateKeyPair(
2820
- type: "rsa",
2821
- options: RSAKeyPairOptions<"der", "pem">,
2822
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2823
- ): void;
2824
- function generateKeyPair(
2825
- type: "rsa",
2826
- options: RSAKeyPairOptions<"der", "der">,
2827
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2828
- ): void;
2829
- function generateKeyPair(
2830
- type: "rsa",
2831
- options: RSAKeyPairKeyObjectOptions,
2832
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2833
- ): void;
2834
- function generateKeyPair(
2835
- type: "rsa-pss",
2836
- options: RSAPSSKeyPairOptions<"pem", "pem">,
2837
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2838
- ): void;
2839
- function generateKeyPair(
2840
- type: "rsa-pss",
2841
- options: RSAPSSKeyPairOptions<"pem", "der">,
2842
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2843
- ): void;
2844
- function generateKeyPair(
2845
- type: "rsa-pss",
2846
- options: RSAPSSKeyPairOptions<"der", "pem">,
2847
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2848
- ): void;
2849
- function generateKeyPair(
2850
- type: "rsa-pss",
2851
- options: RSAPSSKeyPairOptions<"der", "der">,
2852
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2853
- ): void;
2854
- function generateKeyPair(
2855
- type: "rsa-pss",
2856
- options: RSAPSSKeyPairKeyObjectOptions,
2857
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2858
- ): void;
2859
- function generateKeyPair(
2860
- type: "dsa",
2861
- options: DSAKeyPairOptions<"pem", "pem">,
2862
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2863
- ): void;
2864
- function generateKeyPair(
2865
- type: "dsa",
2866
- options: DSAKeyPairOptions<"pem", "der">,
2867
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2868
- ): void;
2869
- function generateKeyPair(
2870
- type: "dsa",
2871
- options: DSAKeyPairOptions<"der", "pem">,
2872
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2873
- ): void;
2874
- function generateKeyPair(
2875
- type: "dsa",
2876
- options: DSAKeyPairOptions<"der", "der">,
2877
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2878
- ): void;
2879
- function generateKeyPair(
2880
- type: "dsa",
2881
- options: DSAKeyPairKeyObjectOptions,
2882
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2883
- ): void;
2884
- function generateKeyPair(
2885
- type: "ec",
2886
- options: ECKeyPairOptions<"pem", "pem">,
2887
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2888
- ): void;
2889
- function generateKeyPair(
2890
- type: "ec",
2891
- options: ECKeyPairOptions<"pem", "der">,
2892
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2893
- ): void;
2894
- function generateKeyPair(
2895
- type: "ec",
2896
- options: ECKeyPairOptions<"der", "pem">,
2897
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2898
- ): void;
2899
- function generateKeyPair(
2900
- type: "ec",
2901
- options: ECKeyPairOptions<"der", "der">,
2902
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2903
- ): void;
2904
- function generateKeyPair(
2905
- type: "ec",
2906
- options: ECKeyPairKeyObjectOptions,
2907
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2908
- ): void;
2909
- function generateKeyPair(
2910
- type: "ed25519",
2911
- options: ED25519KeyPairOptions<"pem", "pem">,
2912
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2913
- ): void;
2914
- function generateKeyPair(
2915
- type: "ed25519",
2916
- options: ED25519KeyPairOptions<"pem", "der">,
2917
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2918
- ): void;
2919
- function generateKeyPair(
2920
- type: "ed25519",
2921
- options: ED25519KeyPairOptions<"der", "pem">,
2922
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2923
- ): void;
2924
- function generateKeyPair(
2925
- type: "ed25519",
2926
- options: ED25519KeyPairOptions<"der", "der">,
2927
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2928
- ): void;
2929
- function generateKeyPair(
2930
- type: "ed25519",
2931
- options: ED25519KeyPairKeyObjectOptions | undefined,
2932
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2933
- ): void;
2934
- function generateKeyPair(
2935
- type: "ed448",
2936
- options: ED448KeyPairOptions<"pem", "pem">,
2937
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2938
- ): void;
2939
- function generateKeyPair(
2940
- type: "ed448",
2941
- options: ED448KeyPairOptions<"pem", "der">,
2942
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2943
- ): void;
2944
- function generateKeyPair(
2945
- type: "ed448",
2946
- options: ED448KeyPairOptions<"der", "pem">,
2947
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2948
- ): void;
2949
- function generateKeyPair(
2950
- type: "ed448",
2951
- options: ED448KeyPairOptions<"der", "der">,
2952
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2953
- ): void;
2954
- function generateKeyPair(
2955
- type: "ed448",
2956
- options: ED448KeyPairKeyObjectOptions | undefined,
2957
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2958
- ): void;
2959
- function generateKeyPair(
2960
- type: "x25519",
2961
- options: X25519KeyPairOptions<"pem", "pem">,
2962
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2963
- ): void;
2964
- function generateKeyPair(
2965
- type: "x25519",
2966
- options: X25519KeyPairOptions<"pem", "der">,
2967
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2968
- ): void;
2969
- function generateKeyPair(
2970
- type: "x25519",
2971
- options: X25519KeyPairOptions<"der", "pem">,
2972
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2973
- ): void;
2974
- function generateKeyPair(
2975
- type: "x25519",
2976
- options: X25519KeyPairOptions<"der", "der">,
2977
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2978
- ): void;
2979
- function generateKeyPair(
2980
- type: "x25519",
2981
- options: X25519KeyPairKeyObjectOptions | undefined,
2982
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2983
- ): void;
2984
- function generateKeyPair(
2985
- type: "x448",
2986
- options: X448KeyPairOptions<"pem", "pem">,
2987
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2988
- ): void;
2989
- function generateKeyPair(
2990
- type: "x448",
2991
- options: X448KeyPairOptions<"pem", "der">,
2992
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2993
- ): void;
2994
- function generateKeyPair(
2995
- type: "x448",
2996
- options: X448KeyPairOptions<"der", "pem">,
2997
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2998
- ): void;
2999
- function generateKeyPair(
3000
- type: "x448",
3001
- options: X448KeyPairOptions<"der", "der">,
3002
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3003
- ): void;
3004
- function generateKeyPair(
3005
- type: "x448",
3006
- options: X448KeyPairKeyObjectOptions | undefined,
3007
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3008
- ): void;
3009
- namespace generateKeyPair {
3010
- function __promisify__(
3011
- type: "rsa",
3012
- options: RSAKeyPairOptions<"pem", "pem">,
3013
- ): Promise<{
3014
- publicKey: string;
3015
- privateKey: string;
3016
- }>;
3017
- function __promisify__(
3018
- type: "rsa",
3019
- options: RSAKeyPairOptions<"pem", "der">,
3020
- ): Promise<{
3021
- publicKey: string;
3022
- privateKey: Buffer;
3023
- }>;
3024
- function __promisify__(
3025
- type: "rsa",
3026
- options: RSAKeyPairOptions<"der", "pem">,
3027
- ): Promise<{
3028
- publicKey: Buffer;
3029
- privateKey: string;
3030
- }>;
3031
- function __promisify__(
3032
- type: "rsa",
3033
- options: RSAKeyPairOptions<"der", "der">,
3034
- ): Promise<{
3035
- publicKey: Buffer;
3036
- privateKey: Buffer;
3037
- }>;
3038
- function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3039
- function __promisify__(
3040
- type: "rsa-pss",
3041
- options: RSAPSSKeyPairOptions<"pem", "pem">,
3042
- ): Promise<{
3043
- publicKey: string;
3044
- privateKey: string;
3045
- }>;
3046
- function __promisify__(
3047
- type: "rsa-pss",
3048
- options: RSAPSSKeyPairOptions<"pem", "der">,
3049
- ): Promise<{
3050
- publicKey: string;
3051
- privateKey: Buffer;
3052
- }>;
3053
- function __promisify__(
3054
- type: "rsa-pss",
3055
- options: RSAPSSKeyPairOptions<"der", "pem">,
3056
- ): Promise<{
3057
- publicKey: Buffer;
3058
- privateKey: string;
3059
- }>;
3060
- function __promisify__(
3061
- type: "rsa-pss",
3062
- options: RSAPSSKeyPairOptions<"der", "der">,
3063
- ): Promise<{
3064
- publicKey: Buffer;
3065
- privateKey: Buffer;
3066
- }>;
3067
- function __promisify__(
3068
- type: "rsa-pss",
3069
- options: RSAPSSKeyPairKeyObjectOptions,
3070
- ): Promise<KeyPairKeyObjectResult>;
3071
- function __promisify__(
3072
- type: "dsa",
3073
- options: DSAKeyPairOptions<"pem", "pem">,
3074
- ): Promise<{
3075
- publicKey: string;
3076
- privateKey: string;
3077
- }>;
3078
- function __promisify__(
3079
- type: "dsa",
3080
- options: DSAKeyPairOptions<"pem", "der">,
3081
- ): Promise<{
3082
- publicKey: string;
3083
- privateKey: Buffer;
3084
- }>;
3085
- function __promisify__(
3086
- type: "dsa",
3087
- options: DSAKeyPairOptions<"der", "pem">,
3088
- ): Promise<{
3089
- publicKey: Buffer;
3090
- privateKey: string;
3091
- }>;
3092
- function __promisify__(
3093
- type: "dsa",
3094
- options: DSAKeyPairOptions<"der", "der">,
3095
- ): Promise<{
3096
- publicKey: Buffer;
3097
- privateKey: Buffer;
3098
- }>;
3099
- function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3100
- function __promisify__(
3101
- type: "ec",
3102
- options: ECKeyPairOptions<"pem", "pem">,
3103
- ): Promise<{
3104
- publicKey: string;
3105
- privateKey: string;
3106
- }>;
3107
- function __promisify__(
3108
- type: "ec",
3109
- options: ECKeyPairOptions<"pem", "der">,
3110
- ): Promise<{
3111
- publicKey: string;
3112
- privateKey: Buffer;
3113
- }>;
3114
- function __promisify__(
3115
- type: "ec",
3116
- options: ECKeyPairOptions<"der", "pem">,
3117
- ): Promise<{
3118
- publicKey: Buffer;
3119
- privateKey: string;
3120
- }>;
3121
- function __promisify__(
3122
- type: "ec",
3123
- options: ECKeyPairOptions<"der", "der">,
3124
- ): Promise<{
3125
- publicKey: Buffer;
3126
- privateKey: Buffer;
3127
- }>;
3128
- function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3129
- function __promisify__(
3130
- type: "ed25519",
3131
- options: ED25519KeyPairOptions<"pem", "pem">,
3132
- ): Promise<{
3133
- publicKey: string;
3134
- privateKey: string;
3135
- }>;
3136
- function __promisify__(
3137
- type: "ed25519",
3138
- options: ED25519KeyPairOptions<"pem", "der">,
3139
- ): Promise<{
3140
- publicKey: string;
3141
- privateKey: Buffer;
3142
- }>;
3143
- function __promisify__(
3144
- type: "ed25519",
3145
- options: ED25519KeyPairOptions<"der", "pem">,
3146
- ): Promise<{
3147
- publicKey: Buffer;
3148
- privateKey: string;
3149
- }>;
3150
- function __promisify__(
3151
- type: "ed25519",
3152
- options: ED25519KeyPairOptions<"der", "der">,
3153
- ): Promise<{
3154
- publicKey: Buffer;
3155
- privateKey: Buffer;
3156
- }>;
3157
- function __promisify__(
3158
- type: "ed25519",
3159
- options?: ED25519KeyPairKeyObjectOptions,
3160
- ): Promise<KeyPairKeyObjectResult>;
3161
- function __promisify__(
3162
- type: "ed448",
3163
- options: ED448KeyPairOptions<"pem", "pem">,
3164
- ): Promise<{
3165
- publicKey: string;
3166
- privateKey: string;
3167
- }>;
3168
- function __promisify__(
3169
- type: "ed448",
3170
- options: ED448KeyPairOptions<"pem", "der">,
3171
- ): Promise<{
3172
- publicKey: string;
3173
- privateKey: Buffer;
3174
- }>;
3175
- function __promisify__(
3176
- type: "ed448",
3177
- options: ED448KeyPairOptions<"der", "pem">,
3178
- ): Promise<{
3179
- publicKey: Buffer;
3180
- privateKey: string;
3181
- }>;
3182
- function __promisify__(
3183
- type: "ed448",
3184
- options: ED448KeyPairOptions<"der", "der">,
3185
- ): Promise<{
3186
- publicKey: Buffer;
3187
- privateKey: Buffer;
3188
- }>;
3189
- function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3190
- function __promisify__(
3191
- type: "x25519",
3192
- options: X25519KeyPairOptions<"pem", "pem">,
3193
- ): Promise<{
3194
- publicKey: string;
3195
- privateKey: string;
3196
- }>;
3197
- function __promisify__(
3198
- type: "x25519",
3199
- options: X25519KeyPairOptions<"pem", "der">,
3200
- ): Promise<{
3201
- publicKey: string;
3202
- privateKey: Buffer;
3203
- }>;
3204
- function __promisify__(
3205
- type: "x25519",
3206
- options: X25519KeyPairOptions<"der", "pem">,
3207
- ): Promise<{
3208
- publicKey: Buffer;
3209
- privateKey: string;
3210
- }>;
3211
- function __promisify__(
3212
- type: "x25519",
3213
- options: X25519KeyPairOptions<"der", "der">,
3214
- ): Promise<{
3215
- publicKey: Buffer;
3216
- privateKey: Buffer;
3217
- }>;
3218
- function __promisify__(
3219
- type: "x25519",
3220
- options?: X25519KeyPairKeyObjectOptions,
3221
- ): Promise<KeyPairKeyObjectResult>;
3222
- function __promisify__(
3223
- type: "x448",
3224
- options: X448KeyPairOptions<"pem", "pem">,
3225
- ): Promise<{
3226
- publicKey: string;
3227
- privateKey: string;
3228
- }>;
3229
- function __promisify__(
3230
- type: "x448",
3231
- options: X448KeyPairOptions<"pem", "der">,
3232
- ): Promise<{
3233
- publicKey: string;
3234
- privateKey: Buffer;
3235
- }>;
3236
- function __promisify__(
3237
- type: "x448",
3238
- options: X448KeyPairOptions<"der", "pem">,
3239
- ): Promise<{
3240
- publicKey: Buffer;
3241
- privateKey: string;
3242
- }>;
3243
- function __promisify__(
3244
- type: "x448",
3245
- options: X448KeyPairOptions<"der", "der">,
3246
- ): Promise<{
3247
- publicKey: Buffer;
3248
- privateKey: Buffer;
3249
- }>;
3250
- function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3251
- }
3252
- /**
3253
- * Calculates and returns the signature for `data` using the given private key and
3254
- * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
3255
- * dependent upon the key type (especially Ed25519 and Ed448).
3256
- *
3257
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3258
- * passed to {@link createPrivateKey}. If it is an object, the following
3259
- * additional properties can be passed:
3260
- *
3261
- * If the `callback` function is provided this function uses libuv's threadpool.
3262
- * @since v12.0.0
3263
- */
3264
- function sign(
3265
- algorithm: string | null | undefined,
3266
- data: NodeJS.ArrayBufferView,
3267
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3268
- ): Buffer;
3269
- function sign(
3270
- algorithm: string | null | undefined,
3271
- data: NodeJS.ArrayBufferView,
3272
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3273
- callback: (error: Error | null, data: Buffer) => void,
3274
- ): void;
3275
- /**
3276
- * 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
3277
- * key type (especially Ed25519 and Ed448).
3278
- *
3279
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3280
- * passed to {@link createPublicKey}. If it is an object, the following
3281
- * additional properties can be passed:
3282
- *
3283
- * The `signature` argument is the previously calculated signature for the `data`.
3284
- *
3285
- * Because public keys can be derived from private keys, a private key or a public
3286
- * key may be passed for `key`.
3287
- *
3288
- * If the `callback` function is provided this function uses libuv's threadpool.
3289
- * @since v12.0.0
3290
- */
3291
- function verify(
3292
- algorithm: string | null | undefined,
3293
- data: NodeJS.ArrayBufferView,
3294
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3295
- signature: NodeJS.ArrayBufferView,
3296
- ): boolean;
3297
- function verify(
3298
- algorithm: string | null | undefined,
3299
- data: NodeJS.ArrayBufferView,
3300
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3301
- signature: NodeJS.ArrayBufferView,
3302
- callback: (error: Error | null, result: boolean) => void,
3303
- ): void;
3304
- /**
3305
- * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
3306
- * 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).
3307
- * @since v13.9.0, v12.17.0
3308
- */
3309
- function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
3310
- /**
3311
- * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
3312
- * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
3313
- * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
3314
- * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
3315
- *
3316
- * Example:
3317
- *
3318
- * ```js
3319
- * const crypto = require('node:crypto');
3320
- * const { Buffer } = require('node:buffer');
3321
- *
3322
- * // Hashing a string and return the result as a hex-encoded string.
3323
- * const string = 'Node.js';
3324
- * // 10b3493287f831e81a438811a1ffba01f8cec4b7
3325
- * console.log(crypto.hash('sha1', string));
3326
- *
3327
- * // Encode a base64-encoded string into a Buffer, hash it and return
3328
- * // the result as a buffer.
3329
- * const base64 = 'Tm9kZS5qcw==';
3330
- * // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
3331
- * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
3332
- * ```
3333
- * @since v21.7.0, v20.12.0
3334
- * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
3335
- * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
3336
- * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v22.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
3337
- */
3338
- function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
3339
- function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
3340
- function hash(
3341
- algorithm: string,
3342
- data: BinaryLike,
3343
- outputEncoding?: BinaryToTextEncoding | "buffer",
3344
- ): string | Buffer;
3345
- type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
3346
- interface CipherInfoOptions {
3347
- /**
3348
- * A test key length.
3349
- */
3350
- keyLength?: number | undefined;
3351
- /**
3352
- * A test IV length.
3353
- */
3354
- ivLength?: number | undefined;
3355
- }
3356
- interface CipherInfo {
3357
- /**
3358
- * The name of the cipher.
3359
- */
3360
- name: string;
3361
- /**
3362
- * The nid of the cipher.
3363
- */
3364
- nid: number;
3365
- /**
3366
- * The block size of the cipher in bytes.
3367
- * This property is omitted when mode is 'stream'.
3368
- */
3369
- blockSize?: number | undefined;
3370
- /**
3371
- * The expected or default initialization vector length in bytes.
3372
- * This property is omitted if the cipher does not use an initialization vector.
3373
- */
3374
- ivLength?: number | undefined;
3375
- /**
3376
- * The expected or default key length in bytes.
3377
- */
3378
- keyLength: number;
3379
- /**
3380
- * The cipher mode.
3381
- */
3382
- mode: CipherMode;
3383
- }
3384
- /**
3385
- * Returns information about a given cipher.
3386
- *
3387
- * Some ciphers accept variable length keys and initialization vectors. By default,
3388
- * the `crypto.getCipherInfo()` method will return the default values for these
3389
- * ciphers. To test if a given key length or iv length is acceptable for given
3390
- * cipher, use the `keyLength` and `ivLength` options. If the given values are
3391
- * unacceptable, `undefined` will be returned.
3392
- * @since v15.0.0
3393
- * @param nameOrNid The name or nid of the cipher to query.
3394
- */
3395
- function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
3396
- /**
3397
- * 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.
3398
- *
3399
- * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3400
- * otherwise `err` will be `null`. The successfully generated `derivedKey` will
3401
- * 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
3402
- * of the input arguments specify invalid values or types.
3403
- *
3404
- * ```js
3405
- * import { Buffer } from 'node:buffer';
3406
- * const {
3407
- * hkdf,
3408
- * } = await import('node:crypto');
3409
- *
3410
- * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
3411
- * if (err) throw err;
3412
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3413
- * });
3414
- * ```
3415
- * @since v15.0.0
3416
- * @param digest The digest algorithm to use.
3417
- * @param ikm The input keying material. Must be provided but can be zero-length.
3418
- * @param salt The salt value. Must be provided but can be zero-length.
3419
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3420
- * @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`
3421
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3422
- */
3423
- function hkdf(
3424
- digest: string,
3425
- irm: BinaryLike | KeyObject,
3426
- salt: BinaryLike,
3427
- info: BinaryLike,
3428
- keylen: number,
3429
- callback: (err: Error | null, derivedKey: ArrayBuffer) => void,
3430
- ): void;
3431
- /**
3432
- * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
3433
- * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3434
- *
3435
- * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
3436
- *
3437
- * An error will be thrown if any of the input arguments specify invalid values or
3438
- * types, or if the derived key cannot be generated.
3439
- *
3440
- * ```js
3441
- * import { Buffer } from 'node:buffer';
3442
- * const {
3443
- * hkdfSync,
3444
- * } = await import('node:crypto');
3445
- *
3446
- * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
3447
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3448
- * ```
3449
- * @since v15.0.0
3450
- * @param digest The digest algorithm to use.
3451
- * @param ikm The input keying material. Must be provided but can be zero-length.
3452
- * @param salt The salt value. Must be provided but can be zero-length.
3453
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3454
- * @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`
3455
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3456
- */
3457
- function hkdfSync(
3458
- digest: string,
3459
- ikm: BinaryLike | KeyObject,
3460
- salt: BinaryLike,
3461
- info: BinaryLike,
3462
- keylen: number,
3463
- ): ArrayBuffer;
3464
- interface SecureHeapUsage {
3465
- /**
3466
- * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
3467
- */
3468
- total: number;
3469
- /**
3470
- * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
3471
- */
3472
- min: number;
3473
- /**
3474
- * The total number of bytes currently allocated from the secure heap.
3475
- */
3476
- used: number;
3477
- /**
3478
- * The calculated ratio of `used` to `total` allocated bytes.
3479
- */
3480
- utilization: number;
3481
- }
3482
- /**
3483
- * @since v15.6.0
3484
- */
3485
- function secureHeapUsed(): SecureHeapUsage;
3486
- interface RandomUUIDOptions {
3487
- /**
3488
- * By default, to improve performance,
3489
- * Node.js will pre-emptively generate and persistently cache enough
3490
- * random data to generate up to 128 random UUIDs. To generate a UUID
3491
- * without using the cache, set `disableEntropyCache` to `true`.
3492
- *
3493
- * @default `false`
3494
- */
3495
- disableEntropyCache?: boolean | undefined;
3496
- }
3497
- type UUID = `${string}-${string}-${string}-${string}-${string}`;
3498
- /**
3499
- * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3500
- * cryptographic pseudorandom number generator.
3501
- * @since v15.6.0, v14.17.0
3502
- */
3503
- function randomUUID(options?: RandomUUIDOptions): UUID;
3504
- interface X509CheckOptions {
3505
- /**
3506
- * @default 'always'
3507
- */
3508
- subject?: "always" | "default" | "never";
3509
- /**
3510
- * @default true
3511
- */
3512
- wildcards?: boolean;
3513
- /**
3514
- * @default true
3515
- */
3516
- partialWildcards?: boolean;
3517
- /**
3518
- * @default false
3519
- */
3520
- multiLabelWildcards?: boolean;
3521
- /**
3522
- * @default false
3523
- */
3524
- singleLabelSubdomains?: boolean;
3525
- }
3526
- /**
3527
- * Encapsulates an X509 certificate and provides read-only access to
3528
- * its information.
3529
- *
3530
- * ```js
3531
- * const { X509Certificate } = await import('node:crypto');
3532
- *
3533
- * const x509 = new X509Certificate('{... pem encoded cert ...}');
3534
- *
3535
- * console.log(x509.subject);
3536
- * ```
3537
- * @since v15.6.0
3538
- */
3539
- class X509Certificate {
3540
- /**
3541
- * Will be \`true\` if this is a Certificate Authority (CA) certificate.
3542
- * @since v15.6.0
3543
- */
3544
- readonly ca: boolean;
3545
- /**
3546
- * The SHA-1 fingerprint of this certificate.
3547
- *
3548
- * Because SHA-1 is cryptographically broken and because the security of SHA-1 is
3549
- * significantly worse than that of algorithms that are commonly used to sign
3550
- * certificates, consider using `x509.fingerprint256` instead.
3551
- * @since v15.6.0
3552
- */
3553
- readonly fingerprint: string;
3554
- /**
3555
- * The SHA-256 fingerprint of this certificate.
3556
- * @since v15.6.0
3557
- */
3558
- readonly fingerprint256: string;
3559
- /**
3560
- * The SHA-512 fingerprint of this certificate.
3561
- *
3562
- * Because computing the SHA-256 fingerprint is usually faster and because it is
3563
- * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be
3564
- * a better choice. While SHA-512 presumably provides a higher level of security in
3565
- * general, the security of SHA-256 matches that of most algorithms that are
3566
- * commonly used to sign certificates.
3567
- * @since v17.2.0, v16.14.0
3568
- */
3569
- readonly fingerprint512: string;
3570
- /**
3571
- * The complete subject of this certificate.
3572
- * @since v15.6.0
3573
- */
3574
- readonly subject: string;
3575
- /**
3576
- * The subject alternative name specified for this certificate.
3577
- *
3578
- * This is a comma-separated list of subject alternative names. Each entry begins
3579
- * with a string identifying the kind of the subject alternative name followed by
3580
- * a colon and the value associated with the entry.
3581
- *
3582
- * Earlier versions of Node.js incorrectly assumed that it is safe to split this
3583
- * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However,
3584
- * both malicious and legitimate certificates can contain subject alternative names
3585
- * that include this sequence when represented as a string.
3586
- *
3587
- * After the prefix denoting the type of the entry, the remainder of each entry
3588
- * might be enclosed in quotes to indicate that the value is a JSON string literal.
3589
- * For backward compatibility, Node.js only uses JSON string literals within this
3590
- * property when necessary to avoid ambiguity. Third-party code should be prepared
3591
- * to handle both possible entry formats.
3592
- * @since v15.6.0
3593
- */
3594
- readonly subjectAltName: string | undefined;
3595
- /**
3596
- * A textual representation of the certificate's authority information access
3597
- * extension.
3598
- *
3599
- * This is a line feed separated list of access descriptions. Each line begins with
3600
- * the access method and the kind of the access location, followed by a colon and
3601
- * the value associated with the access location.
3602
- *
3603
- * After the prefix denoting the access method and the kind of the access location,
3604
- * the remainder of each line might be enclosed in quotes to indicate that the
3605
- * value is a JSON string literal. For backward compatibility, Node.js only uses
3606
- * JSON string literals within this property when necessary to avoid ambiguity.
3607
- * Third-party code should be prepared to handle both possible entry formats.
3608
- * @since v15.6.0
3609
- */
3610
- readonly infoAccess: string | undefined;
3611
- /**
3612
- * An array detailing the key usages for this certificate.
3613
- * @since v15.6.0
3614
- */
3615
- readonly keyUsage: string[];
3616
- /**
3617
- * The issuer identification included in this certificate.
3618
- * @since v15.6.0
3619
- */
3620
- readonly issuer: string;
3621
- /**
3622
- * The issuer certificate or `undefined` if the issuer certificate is not
3623
- * available.
3624
- * @since v15.9.0
3625
- */
3626
- readonly issuerCertificate?: X509Certificate | undefined;
3627
- /**
3628
- * The public key `KeyObject` for this certificate.
3629
- * @since v15.6.0
3630
- */
3631
- readonly publicKey: KeyObject;
3632
- /**
3633
- * A `Buffer` containing the DER encoding of this certificate.
3634
- * @since v15.6.0
3635
- */
3636
- readonly raw: Buffer;
3637
- /**
3638
- * The serial number of this certificate.
3639
- *
3640
- * Serial numbers are assigned by certificate authorities and do not uniquely
3641
- * identify certificates. Consider using `x509.fingerprint256` as a unique
3642
- * identifier instead.
3643
- * @since v15.6.0
3644
- */
3645
- readonly serialNumber: string;
3646
- /**
3647
- * The date/time from which this certificate is considered valid.
3648
- * @since v15.6.0
3649
- */
3650
- readonly validFrom: string;
3651
- /**
3652
- * The date/time until which this certificate is considered valid.
3653
- * @since v15.6.0
3654
- */
3655
- readonly validTo: string;
3656
- constructor(buffer: BinaryLike);
3657
- /**
3658
- * Checks whether the certificate matches the given email address.
3659
- *
3660
- * If the `'subject'` option is undefined or set to `'default'`, the certificate
3661
- * subject is only considered if the subject alternative name extension either does
3662
- * not exist or does not contain any email addresses.
3663
- *
3664
- * If the `'subject'` option is set to `'always'` and if the subject alternative
3665
- * name extension either does not exist or does not contain a matching email
3666
- * address, the certificate subject is considered.
3667
- *
3668
- * If the `'subject'` option is set to `'never'`, the certificate subject is never
3669
- * considered, even if the certificate contains no subject alternative names.
3670
- * @since v15.6.0
3671
- * @return Returns `email` if the certificate matches, `undefined` if it does not.
3672
- */
3673
- checkEmail(email: string, options?: Pick<X509CheckOptions, "subject">): string | undefined;
3674
- /**
3675
- * Checks whether the certificate matches the given host name.
3676
- *
3677
- * If the certificate matches the given host name, the matching subject name is
3678
- * returned. The returned name might be an exact match (e.g., `foo.example.com`)
3679
- * or it might contain wildcards (e.g., `*.example.com`). Because host name
3680
- * comparisons are case-insensitive, the returned subject name might also differ
3681
- * from the given `name` in capitalization.
3682
- *
3683
- * If the `'subject'` option is undefined or set to `'default'`, the certificate
3684
- * subject is only considered if the subject alternative name extension either does
3685
- * 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").
3686
- *
3687
- * If the `'subject'` option is set to `'always'` and if the subject alternative
3688
- * name extension either does not exist or does not contain a matching DNS name,
3689
- * the certificate subject is considered.
3690
- *
3691
- * If the `'subject'` option is set to `'never'`, the certificate subject is never
3692
- * considered, even if the certificate contains no subject alternative names.
3693
- * @since v15.6.0
3694
- * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`.
3695
- */
3696
- checkHost(name: string, options?: X509CheckOptions): string | undefined;
3697
- /**
3698
- * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
3699
- *
3700
- * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they
3701
- * must match the given `ip` address exactly. Other subject alternative names as
3702
- * well as the subject field of the certificate are ignored.
3703
- * @since v15.6.0
3704
- * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3705
- */
3706
- checkIP(ip: string): string | undefined;
3707
- /**
3708
- * Checks whether this certificate was issued by the given `otherCert`.
3709
- * @since v15.6.0
3710
- */
3711
- checkIssued(otherCert: X509Certificate): boolean;
3712
- /**
3713
- * Checks whether the public key for this certificate is consistent with
3714
- * the given private key.
3715
- * @since v15.6.0
3716
- * @param privateKey A private key.
3717
- */
3718
- checkPrivateKey(privateKey: KeyObject): boolean;
3719
- /**
3720
- * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
3721
- * certificate.
3722
- * @since v15.6.0
3723
- */
3724
- toJSON(): string;
3725
- /**
3726
- * Returns information about this certificate using the legacy `certificate object` encoding.
3727
- * @since v15.6.0
3728
- */
3729
- toLegacyObject(): PeerCertificate;
3730
- /**
3731
- * Returns the PEM-encoded certificate.
3732
- * @since v15.6.0
3733
- */
3734
- toString(): string;
3735
- /**
3736
- * Verifies that this certificate was signed by the given public key.
3737
- * Does not perform any other validation checks on the certificate.
3738
- * @since v15.6.0
3739
- * @param publicKey A public key.
3740
- */
3741
- verify(publicKey: KeyObject): boolean;
3742
- }
3743
- type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
3744
- interface GeneratePrimeOptions {
3745
- add?: LargeNumberLike | undefined;
3746
- rem?: LargeNumberLike | undefined;
3747
- /**
3748
- * @default false
3749
- */
3750
- safe?: boolean | undefined;
3751
- bigint?: boolean | undefined;
3752
- }
3753
- interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
3754
- bigint: true;
3755
- }
3756
- interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
3757
- bigint?: false | undefined;
3758
- }
3759
- /**
3760
- * Generates a pseudorandom prime of `size` bits.
3761
- *
3762
- * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3763
- *
3764
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3765
- * requirements, e.g., for Diffie-Hellman:
3766
- *
3767
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3768
- * condition that `prime % add = rem`.
3769
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3770
- * satisfy the condition that `prime % add = 1`.
3771
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3772
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3773
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3774
- * enforced by `options.safe`.
3775
- * * `options.rem` is ignored if `options.add` is not given.
3776
- *
3777
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3778
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3779
- *
3780
- * By default, the prime is encoded as a big-endian sequence of octets
3781
- * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3782
- * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3783
- * @since v15.8.0
3784
- * @param size The size (in bits) of the prime to generate.
3785
- */
3786
- function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3787
- function generatePrime(
3788
- size: number,
3789
- options: GeneratePrimeOptionsBigInt,
3790
- callback: (err: Error | null, prime: bigint) => void,
3791
- ): void;
3792
- function generatePrime(
3793
- size: number,
3794
- options: GeneratePrimeOptionsArrayBuffer,
3795
- callback: (err: Error | null, prime: ArrayBuffer) => void,
3796
- ): void;
3797
- function generatePrime(
3798
- size: number,
3799
- options: GeneratePrimeOptions,
3800
- callback: (err: Error | null, prime: ArrayBuffer | bigint) => void,
3801
- ): void;
3802
- /**
3803
- * Generates a pseudorandom prime of `size` bits.
3804
- *
3805
- * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3806
- *
3807
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3808
- * requirements, e.g., for Diffie-Hellman:
3809
- *
3810
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3811
- * condition that `prime % add = rem`.
3812
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3813
- * satisfy the condition that `prime % add = 1`.
3814
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3815
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3816
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3817
- * enforced by `options.safe`.
3818
- * * `options.rem` is ignored if `options.add` is not given.
3819
- *
3820
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3821
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3822
- *
3823
- * By default, the prime is encoded as a big-endian sequence of octets
3824
- * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3825
- * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3826
- * @since v15.8.0
3827
- * @param size The size (in bits) of the prime to generate.
3828
- */
3829
- function generatePrimeSync(size: number): ArrayBuffer;
3830
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
3831
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
3832
- function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
3833
- interface CheckPrimeOptions {
3834
- /**
3835
- * The number of Miller-Rabin probabilistic primality iterations to perform.
3836
- * 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.
3837
- * Care must be used when selecting a number of checks.
3838
- * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
3839
- *
3840
- * @default 0
3841
- */
3842
- checks?: number | undefined;
3843
- }
3844
- /**
3845
- * Checks the primality of the `candidate`.
3846
- * @since v15.8.0
3847
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3848
- */
3849
- function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
3850
- function checkPrime(
3851
- value: LargeNumberLike,
3852
- options: CheckPrimeOptions,
3853
- callback: (err: Error | null, result: boolean) => void,
3854
- ): void;
3855
- /**
3856
- * Checks the primality of the `candidate`.
3857
- * @since v15.8.0
3858
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3859
- * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
3860
- */
3861
- function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
3862
- /**
3863
- * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
3864
- *
3865
- * `engine` could be either an id or a path to the engine's shared library.
3866
- *
3867
- * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
3868
- *
3869
- * * `crypto.constants.ENGINE_METHOD_RSA`
3870
- * * `crypto.constants.ENGINE_METHOD_DSA`
3871
- * * `crypto.constants.ENGINE_METHOD_DH`
3872
- * * `crypto.constants.ENGINE_METHOD_RAND`
3873
- * * `crypto.constants.ENGINE_METHOD_EC`
3874
- * * `crypto.constants.ENGINE_METHOD_CIPHERS`
3875
- * * `crypto.constants.ENGINE_METHOD_DIGESTS`
3876
- * * `crypto.constants.ENGINE_METHOD_PKEY_METHS`
3877
- * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
3878
- * * `crypto.constants.ENGINE_METHOD_ALL`
3879
- * * `crypto.constants.ENGINE_METHOD_NONE`
3880
- * @since v0.11.11
3881
- * @param flags
3882
- */
3883
- function setEngine(engine: string, flags?: number): void;
3884
- /**
3885
- * A convenient alias for {@link webcrypto.getRandomValues}. This
3886
- * implementation is not compliant with the Web Crypto spec, to write
3887
- * web-compatible code use {@link webcrypto.getRandomValues} instead.
3888
- * @since v17.4.0
3889
- * @return Returns `typedArray`.
3890
- */
3891
- function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
3892
- /**
3893
- * A convenient alias for `crypto.webcrypto.subtle`.
3894
- * @since v17.4.0
3895
- */
3896
- const subtle: webcrypto.SubtleCrypto;
3897
- /**
3898
- * An implementation of the Web Crypto API standard.
3899
- *
3900
- * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details.
3901
- * @since v15.0.0
3902
- */
3903
- const webcrypto: webcrypto.Crypto;
3904
- namespace webcrypto {
3905
- type BufferSource = ArrayBufferView | ArrayBuffer;
3906
- type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
3907
- type KeyType = "private" | "public" | "secret";
3908
- type KeyUsage =
3909
- | "decrypt"
3910
- | "deriveBits"
3911
- | "deriveKey"
3912
- | "encrypt"
3913
- | "sign"
3914
- | "unwrapKey"
3915
- | "verify"
3916
- | "wrapKey";
3917
- type AlgorithmIdentifier = Algorithm | string;
3918
- type HashAlgorithmIdentifier = AlgorithmIdentifier;
3919
- type NamedCurve = string;
3920
- type BigInteger = Uint8Array;
3921
- interface AesCbcParams extends Algorithm {
3922
- iv: BufferSource;
3923
- }
3924
- interface AesCtrParams extends Algorithm {
3925
- counter: BufferSource;
3926
- length: number;
3927
- }
3928
- interface AesDerivedKeyParams extends Algorithm {
3929
- length: number;
3930
- }
3931
- interface AesGcmParams extends Algorithm {
3932
- additionalData?: BufferSource;
3933
- iv: BufferSource;
3934
- tagLength?: number;
3935
- }
3936
- interface AesKeyAlgorithm extends KeyAlgorithm {
3937
- length: number;
3938
- }
3939
- interface AesKeyGenParams extends Algorithm {
3940
- length: number;
3941
- }
3942
- interface Algorithm {
3943
- name: string;
3944
- }
3945
- interface EcKeyAlgorithm extends KeyAlgorithm {
3946
- namedCurve: NamedCurve;
3947
- }
3948
- interface EcKeyGenParams extends Algorithm {
3949
- namedCurve: NamedCurve;
3950
- }
3951
- interface EcKeyImportParams extends Algorithm {
3952
- namedCurve: NamedCurve;
3953
- }
3954
- interface EcdhKeyDeriveParams extends Algorithm {
3955
- public: CryptoKey;
3956
- }
3957
- interface EcdsaParams extends Algorithm {
3958
- hash: HashAlgorithmIdentifier;
3959
- }
3960
- interface Ed448Params extends Algorithm {
3961
- context?: BufferSource;
3962
- }
3963
- interface HkdfParams extends Algorithm {
3964
- hash: HashAlgorithmIdentifier;
3965
- info: BufferSource;
3966
- salt: BufferSource;
3967
- }
3968
- interface HmacImportParams extends Algorithm {
3969
- hash: HashAlgorithmIdentifier;
3970
- length?: number;
3971
- }
3972
- interface HmacKeyAlgorithm extends KeyAlgorithm {
3973
- hash: KeyAlgorithm;
3974
- length: number;
3975
- }
3976
- interface HmacKeyGenParams extends Algorithm {
3977
- hash: HashAlgorithmIdentifier;
3978
- length?: number;
3979
- }
3980
- interface JsonWebKey {
3981
- alg?: string;
3982
- crv?: string;
3983
- d?: string;
3984
- dp?: string;
3985
- dq?: string;
3986
- e?: string;
3987
- ext?: boolean;
3988
- k?: string;
3989
- key_ops?: string[];
3990
- kty?: string;
3991
- n?: string;
3992
- oth?: RsaOtherPrimesInfo[];
3993
- p?: string;
3994
- q?: string;
3995
- qi?: string;
3996
- use?: string;
3997
- x?: string;
3998
- y?: string;
3999
- }
4000
- interface KeyAlgorithm {
4001
- name: string;
4002
- }
4003
- interface Pbkdf2Params extends Algorithm {
4004
- hash: HashAlgorithmIdentifier;
4005
- iterations: number;
4006
- salt: BufferSource;
4007
- }
4008
- interface RsaHashedImportParams extends Algorithm {
4009
- hash: HashAlgorithmIdentifier;
4010
- }
4011
- interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
4012
- hash: KeyAlgorithm;
4013
- }
4014
- interface RsaHashedKeyGenParams extends RsaKeyGenParams {
4015
- hash: HashAlgorithmIdentifier;
4016
- }
4017
- interface RsaKeyAlgorithm extends KeyAlgorithm {
4018
- modulusLength: number;
4019
- publicExponent: BigInteger;
4020
- }
4021
- interface RsaKeyGenParams extends Algorithm {
4022
- modulusLength: number;
4023
- publicExponent: BigInteger;
4024
- }
4025
- interface RsaOaepParams extends Algorithm {
4026
- label?: BufferSource;
4027
- }
4028
- interface RsaOtherPrimesInfo {
4029
- d?: string;
4030
- r?: string;
4031
- t?: string;
4032
- }
4033
- interface RsaPssParams extends Algorithm {
4034
- saltLength: number;
4035
- }
4036
- /**
4037
- * Calling `require('node:crypto').webcrypto` returns an instance of the `Crypto` class.
4038
- * `Crypto` is a singleton that provides access to the remainder of the crypto API.
4039
- * @since v15.0.0
4040
- */
4041
- interface Crypto {
4042
- /**
4043
- * Provides access to the `SubtleCrypto` API.
4044
- * @since v15.0.0
4045
- */
4046
- readonly subtle: SubtleCrypto;
4047
- /**
4048
- * Generates cryptographically strong random values.
4049
- * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned.
4050
- *
4051
- * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted.
4052
- *
4053
- * An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
4054
- * @since v15.0.0
4055
- */
4056
- getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(typedArray: T): T;
4057
- /**
4058
- * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
4059
- * The UUID is generated using a cryptographic pseudorandom number generator.
4060
- * @since v16.7.0
4061
- */
4062
- randomUUID(): UUID;
4063
- CryptoKey: CryptoKeyConstructor;
4064
- }
4065
- // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
4066
- interface CryptoKeyConstructor {
4067
- /** Illegal constructor */
4068
- (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
4069
- readonly length: 0;
4070
- readonly name: "CryptoKey";
4071
- readonly prototype: CryptoKey;
4072
- }
4073
- /**
4074
- * @since v15.0.0
4075
- */
4076
- interface CryptoKey {
4077
- /**
4078
- * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
4079
- * @since v15.0.0
4080
- */
4081
- readonly algorithm: KeyAlgorithm;
4082
- /**
4083
- * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
4084
- * @since v15.0.0
4085
- */
4086
- readonly extractable: boolean;
4087
- /**
4088
- * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key.
4089
- * @since v15.0.0
4090
- */
4091
- readonly type: KeyType;
4092
- /**
4093
- * An array of strings identifying the operations for which the key may be used.
4094
- *
4095
- * The possible usages are:
4096
- * - `'encrypt'` - The key may be used to encrypt data.
4097
- * - `'decrypt'` - The key may be used to decrypt data.
4098
- * - `'sign'` - The key may be used to generate digital signatures.
4099
- * - `'verify'` - The key may be used to verify digital signatures.
4100
- * - `'deriveKey'` - The key may be used to derive a new key.
4101
- * - `'deriveBits'` - The key may be used to derive bits.
4102
- * - `'wrapKey'` - The key may be used to wrap another key.
4103
- * - `'unwrapKey'` - The key may be used to unwrap another key.
4104
- *
4105
- * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`).
4106
- * @since v15.0.0
4107
- */
4108
- readonly usages: KeyUsage[];
4109
- }
4110
- /**
4111
- * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.
4112
- * @since v15.0.0
4113
- */
4114
- interface CryptoKeyPair {
4115
- /**
4116
- * A {@link CryptoKey} whose type will be `'private'`.
4117
- * @since v15.0.0
4118
- */
4119
- privateKey: CryptoKey;
4120
- /**
4121
- * A {@link CryptoKey} whose type will be `'public'`.
4122
- * @since v15.0.0
4123
- */
4124
- publicKey: CryptoKey;
4125
- }
4126
- /**
4127
- * @since v15.0.0
4128
- */
4129
- interface SubtleCrypto {
4130
- /**
4131
- * Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
4132
- * `subtle.decrypt()` attempts to decipher the provided `data`. If successful,
4133
- * the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
4134
- *
4135
- * The algorithms currently supported include:
4136
- *
4137
- * - `'RSA-OAEP'`
4138
- * - `'AES-CTR'`
4139
- * - `'AES-CBC'`
4140
- * - `'AES-GCM'`
4141
- * @since v15.0.0
4142
- */
4143
- decrypt(
4144
- algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4145
- key: CryptoKey,
4146
- data: BufferSource,
4147
- ): Promise<ArrayBuffer>;
4148
- /**
4149
- * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
4150
- * `subtle.deriveBits()` attempts to generate `length` bits.
4151
- * The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
4152
- * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
4153
- * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
4154
- * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the generated data.
4155
- *
4156
- * The algorithms currently supported include:
4157
- *
4158
- * - `'ECDH'`
4159
- * - `'X25519'`
4160
- * - `'X448'`
4161
- * - `'HKDF'`
4162
- * - `'PBKDF2'`
4163
- * @since v15.0.0
4164
- */
4165
- deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
4166
- deriveBits(
4167
- algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params,
4168
- baseKey: CryptoKey,
4169
- length: number,
4170
- ): Promise<ArrayBuffer>;
4171
- /**
4172
- * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
4173
- * `subtle.deriveKey()` attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
4174
- *
4175
- * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
4176
- * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
4177
- *
4178
- * The algorithms currently supported include:
4179
- *
4180
- * - `'ECDH'`
4181
- * - `'X25519'`
4182
- * - `'X448'`
4183
- * - `'HKDF'`
4184
- * - `'PBKDF2'`
4185
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4186
- * @since v15.0.0
4187
- */
4188
- deriveKey(
4189
- algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4190
- baseKey: CryptoKey,
4191
- derivedKeyAlgorithm:
4192
- | AlgorithmIdentifier
4193
- | AesDerivedKeyParams
4194
- | HmacImportParams
4195
- | HkdfParams
4196
- | Pbkdf2Params,
4197
- extractable: boolean,
4198
- keyUsages: readonly KeyUsage[],
4199
- ): Promise<CryptoKey>;
4200
- /**
4201
- * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
4202
- * If successful, the returned promise is resolved with an `<ArrayBuffer>` containing the computed digest.
4203
- *
4204
- * If `algorithm` is provided as a `<string>`, it must be one of:
4205
- *
4206
- * - `'SHA-1'`
4207
- * - `'SHA-256'`
4208
- * - `'SHA-384'`
4209
- * - `'SHA-512'`
4210
- *
4211
- * If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
4212
- * @since v15.0.0
4213
- */
4214
- digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
4215
- /**
4216
- * Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
4217
- * `subtle.encrypt()` attempts to encipher `data`. If successful,
4218
- * the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
4219
- *
4220
- * The algorithms currently supported include:
4221
- *
4222
- * - `'RSA-OAEP'`
4223
- * - `'AES-CTR'`
4224
- * - `'AES-CBC'`
4225
- * - `'AES-GCM'`
4226
- * @since v15.0.0
4227
- */
4228
- encrypt(
4229
- algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4230
- key: CryptoKey,
4231
- data: BufferSource,
4232
- ): Promise<ArrayBuffer>;
4233
- /**
4234
- * Exports the given key into the specified format, if supported.
4235
- *
4236
- * If the `<CryptoKey>` is not extractable, the returned promise will reject.
4237
- *
4238
- * When `format` is either `'pkcs8'` or `'spki'` and the export is successful,
4239
- * the returned promise will be resolved with an `<ArrayBuffer>` containing the exported key data.
4240
- *
4241
- * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
4242
- * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
4243
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4244
- * @returns `<Promise>` containing `<ArrayBuffer>`.
4245
- * @since v15.0.0
4246
- */
4247
- exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
4248
- exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
4249
- /**
4250
- * Using the method and parameters provided in `algorithm`,
4251
- * `subtle.generateKey()` attempts to generate new keying material.
4252
- * Depending the method used, the method may generate either a single `<CryptoKey>` or a `<CryptoKeyPair>`.
4253
- *
4254
- * The `<CryptoKeyPair>` (public and private key) generating algorithms supported include:
4255
- *
4256
- * - `'RSASSA-PKCS1-v1_5'`
4257
- * - `'RSA-PSS'`
4258
- * - `'RSA-OAEP'`
4259
- * - `'ECDSA'`
4260
- * - `'Ed25519'`
4261
- * - `'Ed448'`
4262
- * - `'ECDH'`
4263
- * - `'X25519'`
4264
- * - `'X448'`
4265
- * The `<CryptoKey>` (secret key) generating algorithms supported include:
4266
- *
4267
- * - `'HMAC'`
4268
- * - `'AES-CTR'`
4269
- * - `'AES-CBC'`
4270
- * - `'AES-GCM'`
4271
- * - `'AES-KW'`
4272
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4273
- * @since v15.0.0
4274
- */
4275
- generateKey(
4276
- algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
4277
- extractable: boolean,
4278
- keyUsages: readonly KeyUsage[],
4279
- ): Promise<CryptoKeyPair>;
4280
- generateKey(
4281
- algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4282
- extractable: boolean,
4283
- keyUsages: readonly KeyUsage[],
4284
- ): Promise<CryptoKey>;
4285
- generateKey(
4286
- algorithm: AlgorithmIdentifier,
4287
- extractable: boolean,
4288
- keyUsages: KeyUsage[],
4289
- ): Promise<CryptoKeyPair | CryptoKey>;
4290
- /**
4291
- * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
4292
- * to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
4293
- * If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
4294
- *
4295
- * If importing a `'PBKDF2'` key, `extractable` must be `false`.
4296
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4297
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4298
- * @since v15.0.0
4299
- */
4300
- importKey(
4301
- format: "jwk",
4302
- keyData: JsonWebKey,
4303
- algorithm:
4304
- | AlgorithmIdentifier
4305
- | RsaHashedImportParams
4306
- | EcKeyImportParams
4307
- | HmacImportParams
4308
- | AesKeyAlgorithm,
4309
- extractable: boolean,
4310
- keyUsages: readonly KeyUsage[],
4311
- ): Promise<CryptoKey>;
4312
- importKey(
4313
- format: Exclude<KeyFormat, "jwk">,
4314
- keyData: BufferSource,
4315
- algorithm:
4316
- | AlgorithmIdentifier
4317
- | RsaHashedImportParams
4318
- | EcKeyImportParams
4319
- | HmacImportParams
4320
- | AesKeyAlgorithm,
4321
- extractable: boolean,
4322
- keyUsages: KeyUsage[],
4323
- ): Promise<CryptoKey>;
4324
- /**
4325
- * Using the method and parameters given by `algorithm` and the keying material provided by `key`,
4326
- * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
4327
- * the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
4328
- *
4329
- * The algorithms currently supported include:
4330
- *
4331
- * - `'RSASSA-PKCS1-v1_5'`
4332
- * - `'RSA-PSS'`
4333
- * - `'ECDSA'`
4334
- * - `'Ed25519'`
4335
- * - `'Ed448'`
4336
- * - `'HMAC'`
4337
- * @since v15.0.0
4338
- */
4339
- sign(
4340
- algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4341
- key: CryptoKey,
4342
- data: BufferSource,
4343
- ): Promise<ArrayBuffer>;
4344
- /**
4345
- * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4346
- * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
4347
- * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
4348
- * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
4349
- * If successful, the returned promise is resolved with a `<CryptoKey>` object.
4350
- *
4351
- * The wrapping algorithms currently supported include:
4352
- *
4353
- * - `'RSA-OAEP'`
4354
- * - `'AES-CTR'`
4355
- * - `'AES-CBC'`
4356
- * - `'AES-GCM'`
4357
- * - `'AES-KW'`
4358
- *
4359
- * The unwrapped key algorithms supported include:
4360
- *
4361
- * - `'RSASSA-PKCS1-v1_5'`
4362
- * - `'RSA-PSS'`
4363
- * - `'RSA-OAEP'`
4364
- * - `'ECDSA'`
4365
- * - `'Ed25519'`
4366
- * - `'Ed448'`
4367
- * - `'ECDH'`
4368
- * - `'X25519'`
4369
- * - `'X448'`
4370
- * - `'HMAC'`
4371
- * - `'AES-CTR'`
4372
- * - `'AES-CBC'`
4373
- * - `'AES-GCM'`
4374
- * - `'AES-KW'`
4375
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4376
- * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4377
- * @since v15.0.0
4378
- */
4379
- unwrapKey(
4380
- format: KeyFormat,
4381
- wrappedKey: BufferSource,
4382
- unwrappingKey: CryptoKey,
4383
- unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4384
- unwrappedKeyAlgorithm:
4385
- | AlgorithmIdentifier
4386
- | RsaHashedImportParams
4387
- | EcKeyImportParams
4388
- | HmacImportParams
4389
- | AesKeyAlgorithm,
4390
- extractable: boolean,
4391
- keyUsages: KeyUsage[],
4392
- ): Promise<CryptoKey>;
4393
- /**
4394
- * Using the method and parameters given in `algorithm` and the keying material provided by `key`,
4395
- * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`.
4396
- * The returned promise is resolved with either `true` or `false`.
4397
- *
4398
- * The algorithms currently supported include:
4399
- *
4400
- * - `'RSASSA-PKCS1-v1_5'`
4401
- * - `'RSA-PSS'`
4402
- * - `'ECDSA'`
4403
- * - `'Ed25519'`
4404
- * - `'Ed448'`
4405
- * - `'HMAC'`
4406
- * @since v15.0.0
4407
- */
4408
- verify(
4409
- algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4410
- key: CryptoKey,
4411
- signature: BufferSource,
4412
- data: BufferSource,
4413
- ): Promise<boolean>;
4414
- /**
4415
- * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4416
- * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`,
4417
- * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
4418
- * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
4419
- * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
4420
- * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the encrypted key data.
4421
- *
4422
- * The wrapping algorithms currently supported include:
4423
- *
4424
- * - `'RSA-OAEP'`
4425
- * - `'AES-CTR'`
4426
- * - `'AES-CBC'`
4427
- * - `'AES-GCM'`
4428
- * - `'AES-KW'`
4429
- * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4430
- * @since v15.0.0
4431
- */
4432
- wrapKey(
4433
- format: KeyFormat,
4434
- key: CryptoKey,
4435
- wrappingKey: CryptoKey,
4436
- wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4437
- ): Promise<ArrayBuffer>;
4438
- }
4439
- }
4440
-
4441
- global {
4442
- var crypto: typeof globalThis extends {
4443
- crypto: infer T;
4444
- onmessage: any;
4445
- } ? T
4446
- : webcrypto.Crypto;
4447
- }
4448
- }
4449
- declare module "node:crypto" {
4450
- export * from "crypto";
4451
- }