aws-delivlib 14.4.2 → 14.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/lib/publishing/github/node_modules/.yarn-integrity +42 -36
  2. package/lib/publishing/github/node_modules/@octokit/app/dist-node/index.js +146 -106
  3. package/lib/publishing/github/node_modules/@octokit/app/dist-node/index.js.map +7 -1
  4. package/lib/publishing/github/node_modules/@octokit/app/dist-src/each-installation.js +34 -23
  5. package/lib/publishing/github/node_modules/@octokit/app/dist-src/each-repository.js +46 -38
  6. package/lib/publishing/github/node_modules/@octokit/app/dist-src/get-installation-octokit.js +16 -13
  7. package/lib/publishing/github/node_modules/@octokit/app/dist-src/index.js +76 -63
  8. package/lib/publishing/github/node_modules/@octokit/app/dist-src/middleware/node/index.js +48 -41
  9. package/lib/publishing/github/node_modules/@octokit/app/dist-src/middleware/node/on-unhandled-request-default.js +12 -7
  10. package/lib/publishing/github/node_modules/@octokit/app/dist-src/version.js +4 -1
  11. package/lib/publishing/github/node_modules/@octokit/app/dist-src/webhooks.js +44 -51
  12. package/lib/publishing/github/node_modules/@octokit/app/dist-types/each-installation.d.ts +6 -3
  13. package/lib/publishing/github/node_modules/@octokit/app/dist-types/each-repository.d.ts +1 -0
  14. package/lib/publishing/github/node_modules/@octokit/app/dist-types/version.d.ts +1 -1
  15. package/lib/publishing/github/node_modules/@octokit/app/dist-web/index.js +306 -0
  16. package/lib/publishing/github/node_modules/@octokit/app/dist-web/index.js.map +7 -0
  17. package/lib/publishing/github/node_modules/@octokit/app/package.json +22 -21
  18. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-node/index.js +239 -180
  19. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-node/index.js.map +7 -1
  20. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/auth.js +27 -24
  21. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/cache.js +73 -66
  22. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/get-app-authentication.js +28 -21
  23. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js +96 -74
  24. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/hook.js +79 -75
  25. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/index.js +51 -39
  26. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/requires-app-auth.js +30 -47
  27. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/to-token-authentication.js +29 -11
  28. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/version.js +4 -1
  29. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/auth.d.ts +1 -1
  30. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/cache.d.ts +3 -3
  31. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/get-app-authentication.d.ts +1 -1
  32. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/get-installation-authentication.d.ts +1 -1
  33. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/hook.d.ts +1 -1
  34. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/index.d.ts +2 -2
  35. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/to-token-authentication.d.ts +1 -1
  36. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/types.d.ts +1 -1
  37. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/version.d.ts +1 -1
  38. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-web/index.js +405 -360
  39. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-web/index.js.map +7 -1
  40. package/lib/publishing/github/node_modules/@octokit/auth-app/package.json +24 -25
  41. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-node/index.js +15 -17
  42. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-node/index.js.map +1 -1
  43. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-src/version.js +1 -1
  44. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-types/types.d.ts +17 -17
  45. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-types/version.d.ts +1 -1
  46. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-web/index.js +1 -1
  47. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-web/index.js.map +1 -1
  48. package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/package.json +3 -3
  49. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-node/index.js +23 -31
  50. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-node/index.js.map +1 -1
  51. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-src/version.js +1 -1
  52. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-types/types.d.ts +12 -12
  53. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-types/version.d.ts +1 -1
  54. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-web/index.js +1 -1
  55. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-web/index.js.map +1 -1
  56. package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/package.json +5 -5
  57. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/README.md +23 -1
  58. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-node/index.js +40 -39
  59. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-node/index.js.map +1 -1
  60. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/auth.js +8 -0
  61. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/get-authentication.js +3 -0
  62. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/index.js +2 -1
  63. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/version.js +1 -1
  64. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/hook.d.ts +1 -1
  65. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/types.d.ts +38 -34
  66. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/version.d.ts +1 -1
  67. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-web/index.js +14 -2
  68. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-web/index.js.map +1 -1
  69. package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/package.json +5 -5
  70. package/lib/publishing/github/node_modules/@octokit/auth-token/README.md +5 -10
  71. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-node/index.js +44 -20
  72. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-node/index.js.map +7 -1
  73. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/auth.js +13 -17
  74. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/hook.js +10 -4
  75. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/index.js +16 -11
  76. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js +8 -10
  77. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/auth.d.ts +1 -1
  78. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/hook.d.ts +1 -1
  79. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/index.d.ts +2 -2
  80. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/types.d.ts +13 -13
  81. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-web/index.js +42 -45
  82. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-web/index.js.map +7 -1
  83. package/lib/publishing/github/node_modules/@octokit/auth-token/package.json +23 -27
  84. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-node/index.js +47 -22
  85. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-node/index.js.map +7 -1
  86. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/auth.js +8 -5
  87. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/hook.js +33 -24
  88. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/index.js +12 -7
  89. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/is-abuse-limit-error.js +8 -5
  90. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/is-rate-limit-error.js +11 -9
  91. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-types/index.d.ts +1 -1
  92. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-types/types.d.ts +9 -9
  93. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-web/index.js +62 -50
  94. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-web/index.js.map +7 -1
  95. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/package.json +22 -23
  96. package/lib/publishing/github/node_modules/@octokit/core/README.md +4 -4
  97. package/lib/publishing/github/node_modules/@octokit/core/dist-node/index.js +119 -100
  98. package/lib/publishing/github/node_modules/@octokit/core/dist-node/index.js.map +7 -1
  99. package/lib/publishing/github/node_modules/@octokit/core/dist-src/index.js +114 -112
  100. package/lib/publishing/github/node_modules/@octokit/core/dist-src/version.js +4 -1
  101. package/lib/publishing/github/node_modules/@octokit/core/dist-types/types.d.ts +7 -7
  102. package/lib/publishing/github/node_modules/@octokit/core/dist-types/version.d.ts +1 -1
  103. package/lib/publishing/github/node_modules/@octokit/core/dist-web/index.js +124 -122
  104. package/lib/publishing/github/node_modules/@octokit/core/dist-web/index.js.map +7 -1
  105. package/lib/publishing/github/node_modules/@octokit/core/package.json +26 -27
  106. package/lib/publishing/github/node_modules/@octokit/endpoint/README.md +3 -3
  107. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-node/index.js +22 -62
  108. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-node/index.js.map +1 -1
  109. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-src/version.js +1 -1
  110. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-types/version.d.ts +1 -1
  111. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-web/index.js +1 -1
  112. package/lib/publishing/github/node_modules/@octokit/endpoint/dist-web/index.js.map +1 -1
  113. package/lib/publishing/github/node_modules/@octokit/endpoint/package.json +4 -4
  114. package/lib/publishing/github/node_modules/@octokit/graphql/README.md +1 -1
  115. package/lib/publishing/github/node_modules/@octokit/graphql/dist-node/index.js +81 -39
  116. package/lib/publishing/github/node_modules/@octokit/graphql/dist-node/index.js.map +7 -1
  117. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/error.js +17 -17
  118. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/graphql.js +55 -44
  119. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/index.js +17 -12
  120. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/version.js +4 -1
  121. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/with-defaults.js +12 -9
  122. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/error.d.ts +3 -3
  123. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/graphql.d.ts +1 -1
  124. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/index.d.ts +1 -1
  125. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/types.d.ts +7 -7
  126. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/version.d.ts +1 -1
  127. package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts +1 -1
  128. package/lib/publishing/github/node_modules/@octokit/graphql/dist-web/index.js +103 -90
  129. package/lib/publishing/github/node_modules/@octokit/graphql/dist-web/index.js.map +7 -1
  130. package/lib/publishing/github/node_modules/@octokit/graphql/package.json +23 -24
  131. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-node/index.js +290 -263
  132. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-node/index.js.map +7 -1
  133. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/add-event-handler.js +13 -10
  134. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/emit-event.js +13 -10
  135. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/index.js +108 -64
  136. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/check-token.js +14 -11
  137. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/create-token.js +27 -24
  138. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/delete-authorization.js +43 -40
  139. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/delete-token.js +32 -29
  140. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-oauth-client-code.js +5 -2
  141. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-user-octokit.js +29 -24
  142. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-web-flow-authorization-url.js +16 -28
  143. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/refresh-token.js +34 -29
  144. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/reset-token.js +58 -55
  145. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/scope-token.js +34 -29
  146. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2-parse-request.js +14 -11
  147. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2-send-response.js +9 -6
  148. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2.js +21 -13
  149. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/handle-request.js +217 -210
  150. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/index.js +30 -20
  151. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/parse-request.js +13 -13
  152. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/send-response.js +6 -3
  153. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/on-unhandled-request-default.js +11 -8
  154. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/index.js +31 -19
  155. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/parse-request.js +11 -9
  156. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/send-response.js +8 -5
  157. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/oauth-app-octokit.js +5 -2
  158. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/version.js +4 -1
  159. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-types/middleware/web-worker/index.d.ts +1 -1
  160. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-types/version.d.ts +1 -1
  161. package/lib/publishing/github/node_modules/@octokit/oauth-app/package.json +20 -20
  162. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-node/index.js +1 -1
  163. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-node/index.js.map +1 -1
  164. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-src/version.js +1 -1
  165. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/check-token.d.ts +4 -4
  166. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/create-device-code.d.ts +3 -3
  167. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/delete-authorization.d.ts +3 -3
  168. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/delete-token.d.ts +3 -3
  169. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/exchange-device-code.d.ts +11 -11
  170. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/exchange-web-flow-code.d.ts +4 -4
  171. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/get-web-flow-authorization-url.d.ts +4 -4
  172. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/refresh-token.d.ts +2 -2
  173. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/reset-token.d.ts +4 -4
  174. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/scope-token.d.ts +8 -8
  175. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/types.d.ts +9 -9
  176. package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/version.d.ts +1 -1
  177. package/lib/publishing/github/node_modules/@octokit/oauth-methods/package.json +7 -7
  178. package/lib/publishing/github/node_modules/@octokit/openapi-types/package.json +2 -2
  179. package/lib/publishing/github/node_modules/@octokit/openapi-types/types.d.ts +77450 -13127
  180. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js +292 -57
  181. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map +7 -1
  182. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js +5 -2
  183. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js +226 -213
  184. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js +17 -12
  185. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js +36 -37
  186. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js +29 -45
  187. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js +31 -21
  188. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/paginating-endpoints.js +14 -9
  189. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js +4 -1
  190. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts +1 -1
  191. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts +183 -111
  192. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts +3 -4
  193. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts +3 -3
  194. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts +1 -1
  195. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts +3 -3
  196. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts +29 -29
  197. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts +1 -1
  198. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js +334 -334
  199. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map +7 -1
  200. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/package.json +24 -26
  201. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js +99 -39
  202. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map +1 -1
  203. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +197 -77
  204. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +1 -1
  205. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts +1419 -661
  206. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts +359 -119
  207. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts +3 -3
  208. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts +1 -1
  209. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js +198 -78
  210. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map +1 -1
  211. package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +9 -9
  212. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-node/index.js +80 -35
  213. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-node/index.js.map +7 -1
  214. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/error-request.js +12 -13
  215. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/index.js +29 -22
  216. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/version.js +4 -1
  217. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/wrap-request.js +31 -15
  218. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/error-request.d.ts +1 -1
  219. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/version.d.ts +1 -1
  220. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/wrap-request.d.ts +1 -1
  221. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-web/index.js +68 -54
  222. package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-web/index.js.map +7 -1
  223. package/lib/publishing/github/node_modules/@octokit/plugin-retry/package.json +21 -22
  224. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-node/index.js +18 -11
  225. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-node/index.js.map +1 -1
  226. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-src/index.js +21 -14
  227. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-src/version.js +1 -1
  228. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/index.d.ts +6 -0
  229. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/types.d.ts +13 -12
  230. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/version.d.ts +1 -1
  231. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-web/index.js +22 -15
  232. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-web/index.js.map +1 -1
  233. package/lib/publishing/github/node_modules/@octokit/plugin-throttling/package.json +7 -7
  234. package/lib/publishing/github/node_modules/@octokit/request/README.md +3 -3
  235. package/lib/publishing/github/node_modules/@octokit/request/dist-node/index.js +105 -77
  236. package/lib/publishing/github/node_modules/@octokit/request/dist-node/index.js.map +7 -1
  237. package/lib/publishing/github/node_modules/@octokit/request/dist-src/fetch-wrapper.js +111 -108
  238. package/lib/publishing/github/node_modules/@octokit/request/dist-src/get-buffer-response.js +5 -2
  239. package/lib/publishing/github/node_modules/@octokit/request/dist-src/index.js +7 -4
  240. package/lib/publishing/github/node_modules/@octokit/request/dist-src/version.js +4 -1
  241. package/lib/publishing/github/node_modules/@octokit/request/dist-src/with-defaults.js +23 -18
  242. package/lib/publishing/github/node_modules/@octokit/request/dist-types/version.d.ts +1 -1
  243. package/lib/publishing/github/node_modules/@octokit/request/dist-web/index.js +148 -138
  244. package/lib/publishing/github/node_modules/@octokit/request/dist-web/index.js.map +7 -1
  245. package/lib/publishing/github/node_modules/@octokit/request/package.json +23 -24
  246. package/lib/publishing/github/node_modules/@octokit/request-error/dist-node/index.js +10 -19
  247. package/lib/publishing/github/node_modules/@octokit/request-error/dist-node/index.js.map +1 -1
  248. package/lib/publishing/github/node_modules/@octokit/request-error/dist-types/types.d.ts +1 -1
  249. package/lib/publishing/github/node_modules/@octokit/request-error/package.json +4 -4
  250. package/lib/publishing/github/node_modules/@octokit/tsconfig/LICENSE +7 -0
  251. package/lib/publishing/github/node_modules/@octokit/tsconfig/README.md +31 -0
  252. package/lib/publishing/github/node_modules/@octokit/tsconfig/package.json +28 -0
  253. package/lib/publishing/github/node_modules/@octokit/types/dist-node/index.js +1 -1
  254. package/lib/publishing/github/node_modules/@octokit/types/dist-src/VERSION.js +1 -1
  255. package/lib/publishing/github/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts +1 -1
  256. package/lib/publishing/github/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts +1 -1
  257. package/lib/publishing/github/node_modules/@octokit/types/dist-types/Fetch.d.ts +1 -1
  258. package/lib/publishing/github/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts +4 -4
  259. package/lib/publishing/github/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts +1 -1
  260. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestError.d.ts +1 -1
  261. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts +1 -1
  262. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestMethod.d.ts +1 -1
  263. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestOptions.d.ts +1 -1
  264. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestParameters.d.ts +1 -1
  265. package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts +1 -1
  266. package/lib/publishing/github/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts +1 -1
  267. package/lib/publishing/github/node_modules/@octokit/types/dist-types/Route.d.ts +1 -1
  268. package/lib/publishing/github/node_modules/@octokit/types/dist-types/Signal.d.ts +1 -1
  269. package/lib/publishing/github/node_modules/@octokit/types/dist-types/Url.d.ts +1 -1
  270. package/lib/publishing/github/node_modules/@octokit/types/dist-types/VERSION.d.ts +1 -1
  271. package/lib/publishing/github/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts +464 -332
  272. package/lib/publishing/github/node_modules/@octokit/types/dist-web/index.js +1 -1
  273. package/lib/publishing/github/node_modules/@octokit/types/package.json +10 -10
  274. package/lib/publishing/github/node_modules/@octokit/webhooks/README.md +68 -64
  275. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-node/index.js +467 -97
  276. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-node/index.js.map +7 -1
  277. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/createLogger.js +11 -6
  278. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/index.js +23 -16
  279. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/on.js +31 -22
  280. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/receive.js +51 -49
  281. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/remove-listener.js +18 -15
  282. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/wrap-error-handler.js +17 -18
  283. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/generated/webhook-names.js +262 -254
  284. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/index.js +40 -22
  285. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/get-missing-headers.js +8 -6
  286. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/get-payload.js +27 -22
  287. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/index.js +19 -6
  288. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/middleware.js +86 -72
  289. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/on-unhandled-request-default.js +12 -7
  290. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/sign.js +8 -2
  291. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/to-normalized-json-string.js +8 -8
  292. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/verify-and-receive.js +22 -16
  293. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/verify.js +9 -2
  294. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/event-handler/on.d.ts +1 -1
  295. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/event-handler/remove-listener.d.ts +1 -1
  296. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/generated/webhook-names.d.ts +1 -1
  297. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/index.d.ts +14 -4
  298. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/get-missing-headers.d.ts +1 -1
  299. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/get-payload.d.ts +3 -3
  300. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/index.d.ts +2 -2
  301. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/middleware.d.ts +4 -4
  302. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/on-unhandled-request-default.d.ts +2 -2
  303. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/types.d.ts +5 -4
  304. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/to-normalized-json-string.d.ts +1 -1
  305. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/types.d.ts +12 -11
  306. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/verify-and-receive.d.ts +1 -1
  307. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-web/index.js +609 -533
  308. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-web/index.js.map +7 -1
  309. package/lib/publishing/github/node_modules/@octokit/webhooks/package.json +20 -22
  310. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/README.md +84 -3
  311. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-node/index.js +89 -48
  312. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-node/index.js.map +7 -1
  313. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/index.js +22 -2
  314. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/node/sign.js +19 -16
  315. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/node/verify.js +18 -14
  316. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/types.js +8 -5
  317. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/utils.js +5 -2
  318. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/version.js +4 -1
  319. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/web.js +62 -44
  320. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/index.d.ts +3 -1
  321. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/node/sign.d.ts +1 -1
  322. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/types.d.ts +2 -2
  323. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/version.d.ts +1 -1
  324. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/web.d.ts +1 -1
  325. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-web/index.js +71 -53
  326. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-web/index.js.map +7 -1
  327. package/lib/publishing/github/node_modules/@octokit/webhooks-methods/package.json +36 -25
  328. package/lib/publishing/github/node_modules/@octokit/webhooks-types/package.json +1 -1
  329. package/lib/publishing/github/node_modules/@octokit/webhooks-types/schema.d.ts +670 -35
  330. package/lib/publishing/github/node_modules/@types/aws-lambda/README.md +2 -2
  331. package/lib/publishing/github/node_modules/@types/aws-lambda/index.d.ts +3 -2
  332. package/lib/publishing/github/node_modules/@types/aws-lambda/package.json +3 -8
  333. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.ts +38 -0
  334. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +75 -1
  335. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +4 -0
  336. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/codecommit.d.ts +36 -0
  337. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +8 -4
  338. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.ts +49 -0
  339. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +1 -0
  340. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +11 -1
  341. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +26 -1
  342. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/msk.d.ts +7 -0
  343. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.ts +27 -0
  344. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/sns.d.ts +2 -2
  345. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/sqs.d.ts +1 -0
  346. package/lib/publishing/github/node_modules/@types/jsonwebtoken/README.md +1 -1
  347. package/lib/publishing/github/node_modules/@types/jsonwebtoken/index.d.ts +14 -0
  348. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +2 -2
  349. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +135 -75
  350. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +67 -38
  351. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +220 -101
  352. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +87 -58
  353. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +25 -29
  354. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +5 -5
  355. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +873 -249
  356. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +16 -16
  357. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
  358. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns/promises.d.ts +52 -8
  359. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +27 -18
  360. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dom-events.d.ts +126 -0
  361. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +6 -5
  362. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +166 -93
  363. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +149 -74
  364. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +288 -121
  365. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +22 -13
  366. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +453 -125
  367. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +74 -46
  368. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +103 -53
  369. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +6 -2
  370. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +20 -16
  371. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +6 -4
  372. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +106 -16
  373. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +36 -14
  374. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +15 -3
  375. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +37 -26
  376. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +96 -15
  377. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +53 -50
  378. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +1 -1
  379. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +6 -6
  380. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +145 -0
  381. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +51 -175
  382. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +21 -21
  383. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/consumers.d.ts +2 -14
  384. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +983 -824
  385. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +6 -6
  386. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +1052 -0
  387. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +26 -1
  388. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +125 -4
  389. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +149 -50
  390. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +30 -9
  391. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  392. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  393. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  394. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
  395. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  396. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  397. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  398. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  399. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  400. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  401. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  402. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  403. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  404. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  405. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  406. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  407. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  408. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
  409. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  410. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  411. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  412. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  413. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  414. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  415. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  416. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  417. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/net.d.ts +886 -0
  418. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  419. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  420. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  421. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
  422. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  423. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  424. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  425. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  426. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  427. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  428. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  429. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  430. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  431. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  432. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
  433. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  434. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  435. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  436. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  437. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
  438. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  439. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  440. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  441. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  442. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  443. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  444. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  445. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +7 -6
  446. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +66 -56
  447. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +528 -70
  448. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +271 -14
  449. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +421 -34
  450. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +13 -19
  451. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +81 -37
  452. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +11 -11
  453. package/lib/publishing/github/node_modules/@types/jsonwebtoken/package.json +3 -3
  454. package/lib/publishing/github/node_modules/@types/node/README.md +1 -1
  455. package/lib/publishing/github/node_modules/@types/node/child_process.d.ts +41 -2
  456. package/lib/publishing/github/node_modules/@types/node/crypto.d.ts +77 -7
  457. package/lib/publishing/github/node_modules/@types/node/fs/promises.d.ts +15 -12
  458. package/lib/publishing/github/node_modules/@types/node/globals.d.ts +5 -3
  459. package/lib/publishing/github/node_modules/@types/node/http.d.ts +142 -53
  460. package/lib/publishing/github/node_modules/@types/node/http2.d.ts +1 -2
  461. package/lib/publishing/github/node_modules/@types/node/https.d.ts +192 -62
  462. package/lib/publishing/github/node_modules/@types/node/index.d.ts +1 -1
  463. package/lib/publishing/github/node_modules/@types/node/inspector.d.ts +1 -1
  464. package/lib/publishing/github/node_modules/@types/node/net.d.ts +1 -0
  465. package/lib/publishing/github/node_modules/@types/node/os.d.ts +1 -0
  466. package/lib/publishing/github/node_modules/@types/node/package.json +10 -3
  467. package/lib/publishing/github/node_modules/@types/node/path.d.ts +32 -21
  468. package/lib/publishing/github/node_modules/@types/node/stream.d.ts +99 -0
  469. package/lib/publishing/github/node_modules/@types/node/tls.d.ts +13 -13
  470. package/lib/publishing/github/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  471. package/lib/publishing/github/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  472. package/lib/publishing/github/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  473. package/lib/publishing/github/node_modules/@types/node/ts4.8/child_process.d.ts +553 -0
  474. package/lib/publishing/github/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  475. package/lib/publishing/github/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  476. package/lib/publishing/github/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  477. package/lib/publishing/github/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  478. package/lib/publishing/github/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  479. package/lib/publishing/github/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  480. package/lib/publishing/github/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  481. package/lib/publishing/github/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  482. package/lib/publishing/github/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  483. package/lib/publishing/github/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  484. package/lib/publishing/github/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  485. package/lib/publishing/github/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  486. package/lib/publishing/github/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  487. package/lib/publishing/github/node_modules/@types/node/ts4.8/http2.d.ts +961 -0
  488. package/lib/publishing/github/node_modules/@types/node/ts4.8/https.d.ts +272 -0
  489. package/lib/publishing/github/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  490. package/lib/publishing/github/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  491. package/lib/publishing/github/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  492. package/lib/publishing/github/node_modules/@types/node/ts4.8/net.d.ts +309 -0
  493. package/lib/publishing/github/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  494. package/lib/publishing/github/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  495. package/lib/publishing/github/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  496. package/lib/publishing/github/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  497. package/lib/publishing/github/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  498. package/lib/publishing/github/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  499. package/lib/publishing/github/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  500. package/lib/publishing/github/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  501. package/lib/publishing/github/node_modules/@types/node/ts4.8/stream.d.ts +458 -0
  502. package/lib/publishing/github/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  503. package/lib/publishing/github/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  504. package/lib/publishing/github/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  505. package/lib/publishing/github/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  506. package/lib/publishing/github/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  507. package/lib/publishing/github/node_modules/@types/node/ts4.8/url.d.ts +177 -0
  508. package/lib/publishing/github/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  509. package/lib/publishing/github/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  510. package/lib/publishing/github/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  511. package/lib/publishing/github/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  512. package/lib/publishing/github/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  513. package/lib/publishing/github/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  514. package/lib/publishing/github/node_modules/@types/node/url.d.ts +28 -0
  515. package/lib/publishing/github/node_modules/before-after-hook/README.md +1 -3
  516. package/lib/publishing/github/node_modules/before-after-hook/index.d.ts +48 -48
  517. package/lib/publishing/github/node_modules/before-after-hook/index.js +43 -39
  518. package/lib/publishing/github/node_modules/before-after-hook/package.json +15 -10
  519. package/lib/publishing/github/node_modules/lru-cache/LICENSE +1 -1
  520. package/lib/publishing/github/node_modules/lru-cache/README.md +1127 -104
  521. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.d.ts +834 -0
  522. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.d.ts.map +1 -0
  523. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.js +1395 -0
  524. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.js.map +1 -0
  525. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.min.js +2 -0
  526. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.min.js.map +7 -0
  527. package/lib/publishing/github/node_modules/lru-cache/dist/cjs/package.json +3 -0
  528. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.d.ts +834 -0
  529. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.d.ts.map +1 -0
  530. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.js +1391 -0
  531. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.js.map +1 -0
  532. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.min.js +2 -0
  533. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.min.js.map +7 -0
  534. package/lib/publishing/github/node_modules/lru-cache/dist/mjs/package.json +3 -0
  535. package/lib/publishing/github/node_modules/lru-cache/package.json +86 -12
  536. package/lib/publishing/github/node_modules/node-fetch/README.md +43 -0
  537. package/lib/publishing/github/node_modules/node-fetch/browser.js +7 -7
  538. package/lib/publishing/github/node_modules/node-fetch/lib/index.es.js +92 -2
  539. package/lib/publishing/github/node_modules/node-fetch/lib/index.js +92 -2
  540. package/lib/publishing/github/node_modules/node-fetch/lib/index.mjs +92 -2
  541. package/lib/publishing/github/node_modules/node-fetch/package.json +16 -3
  542. package/lib/publishing/github/node_modules/octokit/README.md +4 -4
  543. package/lib/publishing/github/node_modules/octokit/dist-node/index.js +60 -33
  544. package/lib/publishing/github/node_modules/octokit/dist-node/index.js.map +7 -1
  545. package/lib/publishing/github/node_modules/octokit/dist-src/app.js +8 -3
  546. package/lib/publishing/github/node_modules/octokit/dist-src/index.js +8 -2
  547. package/lib/publishing/github/node_modules/octokit/dist-src/octokit.js +28 -20
  548. package/lib/publishing/github/node_modules/octokit/dist-src/version.js +4 -1
  549. package/lib/publishing/github/node_modules/octokit/dist-types/app.d.ts +2 -2
  550. package/lib/publishing/github/node_modules/octokit/dist-types/octokit.d.ts +1 -1
  551. package/lib/publishing/github/node_modules/octokit/dist-types/version.d.ts +1 -1
  552. package/lib/publishing/github/node_modules/octokit/dist-web/index.js +46 -34
  553. package/lib/publishing/github/node_modules/octokit/dist-web/index.js.map +7 -1
  554. package/lib/publishing/github/node_modules/octokit/package.json +26 -28
  555. package/lib/publishing/github/node_modules/semver/README.md +67 -0
  556. package/lib/publishing/github/node_modules/semver/bin/semver.js +16 -2
  557. package/lib/publishing/github/node_modules/semver/classes/comparator.js +37 -33
  558. package/lib/publishing/github/node_modules/semver/classes/range.js +6 -2
  559. package/lib/publishing/github/node_modules/semver/classes/semver.js +27 -14
  560. package/lib/publishing/github/node_modules/semver/functions/diff.js +48 -17
  561. package/lib/publishing/github/node_modules/semver/functions/inc.js +3 -2
  562. package/lib/publishing/github/node_modules/semver/functions/parse.js +5 -22
  563. package/lib/publishing/github/node_modules/semver/index.js +1 -0
  564. package/lib/publishing/github/node_modules/semver/internal/constants.js +15 -2
  565. package/lib/publishing/github/node_modules/semver/internal/parse-options.js +14 -10
  566. package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/LICENSE +15 -0
  567. package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/README.md +166 -0
  568. package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/package.json +34 -0
  569. package/lib/publishing/github/node_modules/semver/package.json +7 -6
  570. package/lib/publishing/github/node_modules/semver/ranges/intersects.js +1 -1
  571. package/lib/publishing/github/node_modules/semver/ranges/subset.js +6 -3
  572. package/lib/publishing/github/node_modules/typescript/lib/tsc.js +8 -3
  573. package/lib/publishing/github/node_modules/typescript/lib/tsserver.js +13 -3
  574. package/lib/publishing/github/node_modules/typescript/lib/tsserverlibrary.js +13 -3
  575. package/lib/publishing/github/node_modules/typescript/lib/typescript.js +13 -3
  576. package/lib/publishing/github/node_modules/typescript/lib/typescriptServices.js +13 -3
  577. package/lib/publishing/github/node_modules/typescript/lib/typingsInstaller.js +13 -3
  578. package/lib/publishing/github/node_modules/typescript/package.json +1 -1
  579. package/lib/publishing/github/package-lock.json +675 -0
  580. package/lib/publishing/github/package.json +1 -1
  581. package/lib/publishing/github/publish.sh +3 -1
  582. package/package.json +1 -1
  583. package/lib/publishing/github/node_modules/@octokit/app/dist-src/types.js +0 -1
  584. package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/types.js +0 -1
  585. package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/types.js +0 -1
  586. package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/types.js +0 -1
  587. package/lib/publishing/github/node_modules/@octokit/core/dist-src/types.js +0 -1
  588. package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/types.js +0 -1
  589. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/types.js +0 -1
  590. package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/types.js +0 -1
  591. package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js +0 -1
  592. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/types.js +0 -1
  593. package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/types.js +0 -1
  594. package/lib/publishing/github/node_modules/@types/lru-cache/LICENSE +0 -21
  595. package/lib/publishing/github/node_modules/@types/lru-cache/README.md +0 -16
  596. package/lib/publishing/github/node_modules/@types/lru-cache/index.d.ts +0 -193
  597. package/lib/publishing/github/node_modules/@types/lru-cache/package.json +0 -30
  598. package/lib/publishing/github/yarn.lock +0 -473
  599. /package/lib/publishing/github/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
@@ -1,22 +1,22 @@
1
1
  /**
2
- * The `fs` module enables interacting with the file system in a
2
+ * The `node:fs` module enables interacting with the file system in a
3
3
  * way modeled on standard POSIX functions.
4
4
  *
5
5
  * To use the promise-based APIs:
6
6
  *
7
7
  * ```js
8
- * import * as fs from 'fs/promises';
8
+ * import * as fs from 'node:fs/promises';
9
9
  * ```
10
10
  *
11
11
  * To use the callback and sync APIs:
12
12
  *
13
13
  * ```js
14
- * import * as fs from 'fs';
14
+ * import * as fs from 'node:fs';
15
15
  * ```
16
16
  *
17
17
  * All file system operations have synchronous, callback, and promise-based
18
18
  * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
19
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/fs.js)
19
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/fs.js)
20
20
  */
21
21
  declare module 'fs' {
22
22
  import * as stream from 'node:stream';
@@ -73,7 +73,7 @@ declare module 'fs' {
73
73
  /**
74
74
  * A `fs.Stats` object provides information about a file.
75
75
  *
76
- * Objects returned from {@link stat}, {@link lstat} and {@link fstat} and
76
+ * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and
77
77
  * their synchronous counterparts are of this type.
78
78
  * If `bigint` in the `options` passed to those methods is true, the numeric values
79
79
  * will be `bigint` instead of `number`, and the object will contain additional
@@ -131,6 +131,62 @@ declare module 'fs' {
131
131
  * @since v0.1.21
132
132
  */
133
133
  export class Stats {}
134
+ export interface StatsFsBase<T> {
135
+ /** Type of file system. */
136
+ type: T;
137
+ /** Optimal transfer block size. */
138
+ bsize: T;
139
+ /** Total data blocks in file system. */
140
+ blocks: T;
141
+ /** Free blocks in file system. */
142
+ bfree: T;
143
+ /** Available blocks for unprivileged users */
144
+ bavail: T;
145
+ /** Total file nodes in file system. */
146
+ files: T;
147
+ /** Free file nodes in file system. */
148
+ ffree: T;
149
+ }
150
+ export interface StatsFs extends StatsFsBase<number> {}
151
+ /**
152
+ * Provides information about a mounted file system.
153
+ *
154
+ * Objects returned from {@link statfs} and its synchronous counterpart are of
155
+ * this type. If `bigint` in the `options` passed to those methods is `true`, the
156
+ * numeric values will be `bigint` instead of `number`.
157
+ *
158
+ * ```console
159
+ * StatFs {
160
+ * type: 1397114950,
161
+ * bsize: 4096,
162
+ * blocks: 121938943,
163
+ * bfree: 61058895,
164
+ * bavail: 61058895,
165
+ * files: 999,
166
+ * ffree: 1000000
167
+ * }
168
+ * ```
169
+ *
170
+ * `bigint` version:
171
+ *
172
+ * ```console
173
+ * StatFs {
174
+ * type: 1397114950n,
175
+ * bsize: 4096n,
176
+ * blocks: 121938943n,
177
+ * bfree: 61058895n,
178
+ * bavail: 61058895n,
179
+ * files: 999n,
180
+ * ffree: 1000000n
181
+ * }
182
+ * ```
183
+ * @since v19.6.0, v18.15.0
184
+ */
185
+ export class StatsFs {}
186
+ export interface BigIntStatsFs extends StatsFsBase<bigint> {}
187
+ export interface StatFsOptions {
188
+ bigint?: boolean | undefined;
189
+ }
134
190
  /**
135
191
  * A representation of a directory entry, which can be a file or a subdirectory
136
192
  * within the directory, as returned by reading from an `fs.Dir`. The
@@ -184,6 +240,11 @@ declare module 'fs' {
184
240
  * @since v10.10.0
185
241
  */
186
242
  name: string;
243
+ /**
244
+ * The base path that this `fs.Dirent` object refers to.
245
+ * @since v20.1.0
246
+ */
247
+ path: string;
187
248
  }
188
249
  /**
189
250
  * A class representing a directory stream.
@@ -191,7 +252,7 @@ declare module 'fs' {
191
252
  * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`.
192
253
  *
193
254
  * ```js
194
- * import { opendir } from 'fs/promises';
255
+ * import { opendir } from 'node:fs/promises';
195
256
  *
196
257
  * try {
197
258
  * const dir = await opendir('./');
@@ -494,7 +555,7 @@ declare module 'fs' {
494
555
  * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html).
495
556
  *
496
557
  * ```js
497
- * import { rename } from 'fs';
558
+ * import { rename } from 'node:fs';
498
559
  *
499
560
  * rename('oldFile.txt', 'newFile.txt', (err) => {
500
561
  * if (err) throw err;
@@ -527,7 +588,7 @@ declare module 'fs' {
527
588
  * first argument. In this case, `fs.ftruncate()` is called.
528
589
  *
529
590
  * ```js
530
- * import { truncate } from 'fs';
591
+ * import { truncate } from 'node:fs';
531
592
  * // Assuming that 'path/file.txt' is a regular file.
532
593
  * truncate('path/file.txt', (err) => {
533
594
  * if (err) throw err;
@@ -579,7 +640,7 @@ declare module 'fs' {
579
640
  * file:
580
641
  *
581
642
  * ```js
582
- * import { open, close, ftruncate } from 'fs';
643
+ * import { open, close, ftruncate } from 'node:fs';
583
644
  *
584
645
  * function closeFd(fd) {
585
646
  * close(fd, (err) => {
@@ -736,7 +797,7 @@ declare module 'fs' {
736
797
  * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail.
737
798
  *
738
799
  * ```js
739
- * import { chmod } from 'fs';
800
+ * import { chmod } from 'node:fs';
740
801
  *
741
802
  * chmod('my_file.txt', 0o775, (err) => {
742
803
  * if (err) throw err;
@@ -818,7 +879,10 @@ declare module 'fs' {
818
879
  *
819
880
  * In case of an error, the `err.code` will be one of `Common System Errors`.
820
881
  *
821
- * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended.
882
+ * {@link stat} follows symbolic links. Use {@link lstat} to look at the
883
+ * links themselves.
884
+ *
885
+ * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended.
822
886
  * Instead, user code should open/read/write the file directly and handle the
823
887
  * error raised if the file is not available.
824
888
  *
@@ -835,7 +899,7 @@ declare module 'fs' {
835
899
  * The next program will check for the stats of the given paths:
836
900
  *
837
901
  * ```js
838
- * import { stat } from 'fs';
902
+ * import { stat } from 'node:fs';
839
903
  *
840
904
  * const pathsToCheck = ['./txtDir', './txtDir/file.txt'];
841
905
  *
@@ -1081,6 +1145,72 @@ declare module 'fs' {
1081
1145
  ): Promise<BigIntStats>;
1082
1146
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
1083
1147
  }
1148
+ /**
1149
+ * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
1150
+ * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object.
1151
+ *
1152
+ * In case of an error, the `err.code` will be one of `Common System Errors`.
1153
+ * @since v19.6.0, v18.15.0
1154
+ * @param path A path to an existing file or directory on the file system to be queried.
1155
+ */
1156
+ export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
1157
+ export function statfs(
1158
+ path: PathLike,
1159
+ options:
1160
+ | (StatFsOptions & {
1161
+ bigint?: false | undefined;
1162
+ })
1163
+ | undefined,
1164
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void
1165
+ ): void;
1166
+ export function statfs(
1167
+ path: PathLike,
1168
+ options: StatFsOptions & {
1169
+ bigint: true;
1170
+ },
1171
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void
1172
+ ): void;
1173
+ export function statfs(path: PathLike, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
1174
+ export namespace statfs {
1175
+ /**
1176
+ * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1177
+ * @param path A path to an existing file or directory on the file system to be queried.
1178
+ */
1179
+ function __promisify__(
1180
+ path: PathLike,
1181
+ options?: StatFsOptions & {
1182
+ bigint?: false | undefined;
1183
+ }
1184
+ ): Promise<StatsFs>;
1185
+ function __promisify__(
1186
+ path: PathLike,
1187
+ options: StatFsOptions & {
1188
+ bigint: true;
1189
+ }
1190
+ ): Promise<BigIntStatsFs>;
1191
+ function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
1192
+ }
1193
+ /**
1194
+ * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
1195
+ * contains `path`.
1196
+ *
1197
+ * In case of an error, the `err.code` will be one of `Common System Errors`.
1198
+ * @since v19.6.0, v18.15.0
1199
+ * @param path A path to an existing file or directory on the file system to be queried.
1200
+ */
1201
+ export function statfsSync(
1202
+ path: PathLike,
1203
+ options?: StatFsOptions & {
1204
+ bigint?: false | undefined;
1205
+ }
1206
+ ): StatsFs;
1207
+ export function statfsSync(
1208
+ path: PathLike,
1209
+ options: StatFsOptions & {
1210
+ bigint: true;
1211
+ }
1212
+ ): BigIntStatsFs;
1213
+ export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
1084
1214
  /**
1085
1215
  * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
1086
1216
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -1114,28 +1244,30 @@ declare module 'fs' {
1114
1244
  *
1115
1245
  * The `type` argument is only available on Windows and ignored on other platforms.
1116
1246
  * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is
1117
- * not set, Node.js will autodetect `target` type and use `'file'` or `'dir'`. If
1118
- * the `target` does not exist, `'file'` will be used. Windows junction points
1119
- * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path.
1247
+ * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`.
1248
+ * If the `target` does not exist, `'file'` will be used. Windows junction points
1249
+ * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction
1250
+ * points on NTFS volumes can only point to directories.
1120
1251
  *
1121
- * Relative targets are relative to the links parent directory.
1252
+ * Relative targets are relative to the link's parent directory.
1122
1253
  *
1123
1254
  * ```js
1124
- * import { symlink } from 'fs';
1255
+ * import { symlink } from 'node:fs';
1125
1256
  *
1126
- * symlink('./mew', './example/mewtwo', callback);
1257
+ * symlink('./mew', './mewtwo', callback);
1127
1258
  * ```
1128
1259
  *
1129
- * The above example creates a symbolic link `mewtwo` in the `example` which points
1130
- * to `mew` in the same directory:
1260
+ * The above example creates a symbolic link `mewtwo` which points to `mew` in the
1261
+ * same directory:
1131
1262
  *
1132
1263
  * ```bash
1133
- * $ tree example/
1134
- * example/
1264
+ * $ tree .
1265
+ * .
1135
1266
  * ├── mew
1136
1267
  * └── mewtwo -> ./mew
1137
1268
  * ```
1138
1269
  * @since v0.1.31
1270
+ * @param [type='null']
1139
1271
  */
1140
1272
  export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void;
1141
1273
  /**
@@ -1161,6 +1293,7 @@ declare module 'fs' {
1161
1293
  * For detailed information, see the documentation of the asynchronous version of
1162
1294
  * this API: {@link symlink}.
1163
1295
  * @since v0.1.31
1296
+ * @param [type='null']
1164
1297
  */
1165
1298
  export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
1166
1299
  /**
@@ -1238,7 +1371,7 @@ declare module 'fs' {
1238
1371
  */
1239
1372
  export function readlinkSync(path: PathLike, options?: EncodingOption): string | Buffer;
1240
1373
  /**
1241
- * Asynchronously computes the canonical pathname by resolving `.`, `..` and
1374
+ * Asynchronously computes the canonical pathname by resolving `.`, `..`, and
1242
1375
  * symbolic links.
1243
1376
  *
1244
1377
  * A canonical pathname is not necessarily unique. Hard links and bind mounts can
@@ -1352,7 +1485,7 @@ declare module 'fs' {
1352
1485
  * possible exception are given to the completion callback.
1353
1486
  *
1354
1487
  * ```js
1355
- * import { unlink } from 'fs';
1488
+ * import { unlink } from 'node:fs';
1356
1489
  * // Assuming that 'path/file.txt' is a regular file.
1357
1490
  * unlink('path/file.txt', (err) => {
1358
1491
  * if (err) throw err;
@@ -1395,7 +1528,7 @@ declare module 'fs' {
1395
1528
  * Use `fs.rm(path, { recursive: true, force: true })` instead.
1396
1529
  *
1397
1530
  * If `true`, perform a recursive directory removal. In
1398
- * recursive mode soperations are retried on failure.
1531
+ * recursive mode, operations are retried on failure.
1399
1532
  * @default false
1400
1533
  */
1401
1534
  recursive?: boolean | undefined;
@@ -1507,7 +1640,7 @@ declare module 'fs' {
1507
1640
  * when `recursive` is false.
1508
1641
  *
1509
1642
  * ```js
1510
- * import { mkdir } from 'fs';
1643
+ * import { mkdir } from 'node:fs';
1511
1644
  *
1512
1645
  * // Creates /tmp/a/apple, regardless of whether `/tmp` and /tmp/a exist.
1513
1646
  * mkdir('/tmp/a/apple', { recursive: true }, (err) => {
@@ -1519,7 +1652,7 @@ declare module 'fs' {
1519
1652
  * result in an error:
1520
1653
  *
1521
1654
  * ```js
1522
- * import { mkdir } from 'fs';
1655
+ * import { mkdir } from 'node:fs';
1523
1656
  *
1524
1657
  * mkdir('/', { recursive: true }, (err) => {
1525
1658
  * // => [Error: EPERM: operation not permitted, mkdir 'C:\']
@@ -1651,9 +1784,11 @@ declare module 'fs' {
1651
1784
  * object with an `encoding` property specifying the character encoding to use.
1652
1785
  *
1653
1786
  * ```js
1654
- * import { mkdtemp } from 'fs';
1787
+ * import { mkdtemp } from 'node:fs';
1788
+ * import { join } from 'node:path';
1789
+ * import { tmpdir } from 'node:os';
1655
1790
  *
1656
- * mkdtemp(path.join(os.tmpdir(), 'foo-'), (err, directory) => {
1791
+ * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => {
1657
1792
  * if (err) throw err;
1658
1793
  * console.log(directory);
1659
1794
  * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2
@@ -1663,11 +1798,11 @@ declare module 'fs' {
1663
1798
  * The `fs.mkdtemp()` method will append the six randomly selected characters
1664
1799
  * directly to the `prefix` string. For instance, given a directory `/tmp`, if the
1665
1800
  * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator
1666
- * (`require('path').sep`).
1801
+ * (`require('node:path').sep`).
1667
1802
  *
1668
1803
  * ```js
1669
- * import { tmpdir } from 'os';
1670
- * import { mkdtemp } from 'fs';
1804
+ * import { tmpdir } from 'node:os';
1805
+ * import { mkdtemp } from 'node:fs';
1671
1806
  *
1672
1807
  * // The parent directory for the new temporary directory
1673
1808
  * const tmpDir = tmpdir();
@@ -1682,7 +1817,7 @@ declare module 'fs' {
1682
1817
  * });
1683
1818
  *
1684
1819
  * // This method is *CORRECT*:
1685
- * import { sep } from 'path';
1820
+ * import { sep } from 'node:path';
1686
1821
  * mkdtemp(`${tmpDir}${sep}`, (err, directory) => {
1687
1822
  * if (err) throw err;
1688
1823
  * console.log(directory);
@@ -1781,6 +1916,7 @@ declare module 'fs' {
1781
1916
  | {
1782
1917
  encoding: BufferEncoding | null;
1783
1918
  withFileTypes?: false | undefined;
1919
+ recursive?: boolean | undefined;
1784
1920
  }
1785
1921
  | BufferEncoding
1786
1922
  | undefined
@@ -1798,6 +1934,7 @@ declare module 'fs' {
1798
1934
  | {
1799
1935
  encoding: 'buffer';
1800
1936
  withFileTypes?: false | undefined;
1937
+ recursive?: boolean | undefined;
1801
1938
  }
1802
1939
  | 'buffer',
1803
1940
  callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
@@ -1812,6 +1949,7 @@ declare module 'fs' {
1812
1949
  options:
1813
1950
  | (ObjectEncodingOptions & {
1814
1951
  withFileTypes?: false | undefined;
1952
+ recursive?: boolean | undefined;
1815
1953
  })
1816
1954
  | BufferEncoding
1817
1955
  | undefined
@@ -1832,6 +1970,7 @@ declare module 'fs' {
1832
1970
  path: PathLike,
1833
1971
  options: ObjectEncodingOptions & {
1834
1972
  withFileTypes: true;
1973
+ recursive?: boolean | undefined;
1835
1974
  },
1836
1975
  callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void
1837
1976
  ): void;
@@ -1847,6 +1986,7 @@ declare module 'fs' {
1847
1986
  | {
1848
1987
  encoding: BufferEncoding | null;
1849
1988
  withFileTypes?: false | undefined;
1989
+ recursive?: boolean | undefined;
1850
1990
  }
1851
1991
  | BufferEncoding
1852
1992
  | null
@@ -1863,6 +2003,7 @@ declare module 'fs' {
1863
2003
  | {
1864
2004
  encoding: 'buffer';
1865
2005
  withFileTypes?: false | undefined;
2006
+ recursive?: boolean | undefined;
1866
2007
  }
1867
2008
  ): Promise<Buffer[]>;
1868
2009
  /**
@@ -1875,6 +2016,7 @@ declare module 'fs' {
1875
2016
  options?:
1876
2017
  | (ObjectEncodingOptions & {
1877
2018
  withFileTypes?: false | undefined;
2019
+ recursive?: boolean | undefined;
1878
2020
  })
1879
2021
  | BufferEncoding
1880
2022
  | null
@@ -1888,6 +2030,7 @@ declare module 'fs' {
1888
2030
  path: PathLike,
1889
2031
  options: ObjectEncodingOptions & {
1890
2032
  withFileTypes: true;
2033
+ recursive?: boolean | undefined;
1891
2034
  }
1892
2035
  ): Promise<Dirent[]>;
1893
2036
  }
@@ -1910,6 +2053,7 @@ declare module 'fs' {
1910
2053
  | {
1911
2054
  encoding: BufferEncoding | null;
1912
2055
  withFileTypes?: false | undefined;
2056
+ recursive?: boolean | undefined;
1913
2057
  }
1914
2058
  | BufferEncoding
1915
2059
  | null
@@ -1925,6 +2069,7 @@ declare module 'fs' {
1925
2069
  | {
1926
2070
  encoding: 'buffer';
1927
2071
  withFileTypes?: false | undefined;
2072
+ recursive?: boolean | undefined;
1928
2073
  }
1929
2074
  | 'buffer'
1930
2075
  ): Buffer[];
@@ -1938,6 +2083,7 @@ declare module 'fs' {
1938
2083
  options?:
1939
2084
  | (ObjectEncodingOptions & {
1940
2085
  withFileTypes?: false | undefined;
2086
+ recursive?: boolean | undefined;
1941
2087
  })
1942
2088
  | BufferEncoding
1943
2089
  | null
@@ -1951,6 +2097,7 @@ declare module 'fs' {
1951
2097
  path: PathLike,
1952
2098
  options: ObjectEncodingOptions & {
1953
2099
  withFileTypes: true;
2100
+ recursive?: boolean | undefined;
1954
2101
  }
1955
2102
  ): Dirent[];
1956
2103
  /**
@@ -2010,7 +2157,6 @@ declare module 'fs' {
2010
2157
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2011
2158
  */
2012
2159
  export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
2013
-
2014
2160
  export namespace open {
2015
2161
  /**
2016
2162
  * Asynchronous open(2) - open and possibly create a file.
@@ -2035,7 +2181,7 @@ declare module 'fs' {
2035
2181
  * The `atime` and `mtime` arguments follow these rules:
2036
2182
  *
2037
2183
  * * Values can be either numbers representing Unix epoch time in seconds,`Date`s, or a numeric string like `'123456789.0'`.
2038
- * * If the value can not be converted to a number, or is `NaN`, `Infinity` or`-Infinity`, an `Error` will be thrown.
2184
+ * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or`-Infinity`, an `Error` will be thrown.
2039
2185
  * @since v0.4.2
2040
2186
  */
2041
2187
  export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
@@ -2099,8 +2245,7 @@ declare module 'fs' {
2099
2245
  */
2100
2246
  export function fsyncSync(fd: number): void;
2101
2247
  /**
2102
- * Write `buffer` to the file specified by `fd`. If `buffer` is a normal object, it
2103
- * must have an own `toString` function property.
2248
+ * Write `buffer` to the file specified by `fd`.
2104
2249
  *
2105
2250
  * `offset` determines the part of the buffer to be written, and `length` is
2106
2251
  * an integer specifying the number of bytes to write.
@@ -2122,6 +2267,9 @@ declare module 'fs' {
2122
2267
  * The kernel ignores the position argument and always appends the data to
2123
2268
  * the end of the file.
2124
2269
  * @since v0.0.2
2270
+ * @param [offset=0]
2271
+ * @param [length=buffer.byteLength - offset]
2272
+ * @param [position='null']
2125
2273
  */
2126
2274
  export function write<TBuffer extends NodeJS.ArrayBufferView>(
2127
2275
  fd: number,
@@ -2223,11 +2371,12 @@ declare module 'fs' {
2223
2371
  }>;
2224
2372
  }
2225
2373
  /**
2226
- * If `buffer` is a plain object, it must have an own (not inherited) `toString`function property.
2227
- *
2228
2374
  * For detailed information, see the documentation of the asynchronous version of
2229
2375
  * this API: {@link write}.
2230
2376
  * @since v0.1.21
2377
+ * @param [offset=0]
2378
+ * @param [length=buffer.byteLength - offset]
2379
+ * @param [position='null']
2231
2380
  * @return The number of bytes written.
2232
2381
  */
2233
2382
  export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number;
@@ -2296,10 +2445,7 @@ declare module 'fs' {
2296
2445
  options: ReadAsyncOptions<TBuffer>,
2297
2446
  callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
2298
2447
  ): void;
2299
- export function read(
2300
- fd: number,
2301
- callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void
2302
- ): void;
2448
+ export function read(fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void): void;
2303
2449
  export namespace read {
2304
2450
  /**
2305
2451
  * @param fd A file descriptor.
@@ -2325,9 +2471,7 @@ declare module 'fs' {
2325
2471
  bytesRead: number;
2326
2472
  buffer: TBuffer;
2327
2473
  }>;
2328
- function __promisify__(
2329
- fd: number
2330
- ): Promise<{
2474
+ function __promisify__(fd: number): Promise<{
2331
2475
  bytesRead: number;
2332
2476
  buffer: NodeJS.ArrayBufferView;
2333
2477
  }>;
@@ -2338,6 +2482,7 @@ declare module 'fs' {
2338
2482
  * For detailed information, see the documentation of the asynchronous version of
2339
2483
  * this API: {@link read}.
2340
2484
  * @since v0.1.21
2485
+ * @param [position='null']
2341
2486
  */
2342
2487
  export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number;
2343
2488
  /**
@@ -2349,7 +2494,7 @@ declare module 'fs' {
2349
2494
  * Asynchronously reads the entire contents of a file.
2350
2495
  *
2351
2496
  * ```js
2352
- * import { readFile } from 'fs';
2497
+ * import { readFile } from 'node:fs';
2353
2498
  *
2354
2499
  * readFile('/etc/passwd', (err, data) => {
2355
2500
  * if (err) throw err;
@@ -2365,7 +2510,7 @@ declare module 'fs' {
2365
2510
  * If `options` is a string, then it specifies the encoding:
2366
2511
  *
2367
2512
  * ```js
2368
- * import { readFile } from 'fs';
2513
+ * import { readFile } from 'node:fs';
2369
2514
  *
2370
2515
  * readFile('/etc/passwd', 'utf8', callback);
2371
2516
  * ```
@@ -2375,7 +2520,7 @@ declare module 'fs' {
2375
2520
  * will be returned.
2376
2521
  *
2377
2522
  * ```js
2378
- * import { readFile } from 'fs';
2523
+ * import { readFile } from 'node:fs';
2379
2524
  *
2380
2525
  * // macOS, Linux, and Windows
2381
2526
  * readFile('<directory>', (err, data) => {
@@ -2392,7 +2537,7 @@ declare module 'fs' {
2392
2537
  * request is aborted the callback is called with an `AbortError`:
2393
2538
  *
2394
2539
  * ```js
2395
- * import { readFile } from 'fs';
2540
+ * import { readFile } from 'node:fs';
2396
2541
  *
2397
2542
  * const controller = new AbortController();
2398
2543
  * const signal = controller.signal;
@@ -2525,7 +2670,7 @@ declare module 'fs' {
2525
2670
  * Similar to {@link readFile}, when the path is a directory, the behavior of`fs.readFileSync()` is platform-specific.
2526
2671
  *
2527
2672
  * ```js
2528
- * import { readFileSync } from 'fs';
2673
+ * import { readFileSync } from 'node:fs';
2529
2674
  *
2530
2675
  * // macOS, Linux, and Windows
2531
2676
  * readFileSync('<directory>');
@@ -2595,11 +2740,9 @@ declare module 'fs' {
2595
2740
  *
2596
2741
  * The `mode` option only affects the newly created file. See {@link open} for more details.
2597
2742
  *
2598
- * If `data` is a plain object, it must have an own (not inherited) `toString`function property.
2599
- *
2600
2743
  * ```js
2601
- * import { writeFile } from 'fs';
2602
- * import { Buffer } from 'buffer';
2744
+ * import { writeFile } from 'node:fs';
2745
+ * import { Buffer } from 'node:buffer';
2603
2746
  *
2604
2747
  * const data = new Uint8Array(Buffer.from('Hello Node.js'));
2605
2748
  * writeFile('message.txt', data, (err) => {
@@ -2611,7 +2754,7 @@ declare module 'fs' {
2611
2754
  * If `options` is a string, then it specifies the encoding:
2612
2755
  *
2613
2756
  * ```js
2614
- * import { writeFile } from 'fs';
2757
+ * import { writeFile } from 'node:fs';
2615
2758
  *
2616
2759
  * writeFile('message.txt', 'Hello Node.js', 'utf8', callback);
2617
2760
  * ```
@@ -2629,8 +2772,8 @@ declare module 'fs' {
2629
2772
  * to be written.
2630
2773
  *
2631
2774
  * ```js
2632
- * import { writeFile } from 'fs';
2633
- * import { Buffer } from 'buffer';
2775
+ * import { writeFile } from 'node:fs';
2776
+ * import { Buffer } from 'node:buffer';
2634
2777
  *
2635
2778
  * const controller = new AbortController();
2636
2779
  * const { signal } = controller;
@@ -2673,8 +2816,6 @@ declare module 'fs' {
2673
2816
  /**
2674
2817
  * Returns `undefined`.
2675
2818
  *
2676
- * If `data` is a plain object, it must have an own (not inherited) `toString`function property.
2677
- *
2678
2819
  * The `mode` option only affects the newly created file. See {@link open} for more details.
2679
2820
  *
2680
2821
  * For detailed information, see the documentation of the asynchronous version of
@@ -2690,7 +2831,7 @@ declare module 'fs' {
2690
2831
  * The `mode` option only affects the newly created file. See {@link open} for more details.
2691
2832
  *
2692
2833
  * ```js
2693
- * import { appendFile } from 'fs';
2834
+ * import { appendFile } from 'node:fs';
2694
2835
  *
2695
2836
  * appendFile('message.txt', 'data to append', (err) => {
2696
2837
  * if (err) throw err;
@@ -2701,7 +2842,7 @@ declare module 'fs' {
2701
2842
  * If `options` is a string, then it specifies the encoding:
2702
2843
  *
2703
2844
  * ```js
2704
- * import { appendFile } from 'fs';
2845
+ * import { appendFile } from 'node:fs';
2705
2846
  *
2706
2847
  * appendFile('message.txt', 'data to append', 'utf8', callback);
2707
2848
  * ```
@@ -2711,7 +2852,7 @@ declare module 'fs' {
2711
2852
  * not be closed automatically.
2712
2853
  *
2713
2854
  * ```js
2714
- * import { open, close, appendFile } from 'fs';
2855
+ * import { open, close, appendFile } from 'node:fs';
2715
2856
  *
2716
2857
  * function closeFd(fd) {
2717
2858
  * close(fd, (err) => {
@@ -2766,7 +2907,7 @@ declare module 'fs' {
2766
2907
  * The `mode` option only affects the newly created file. See {@link open} for more details.
2767
2908
  *
2768
2909
  * ```js
2769
- * import { appendFileSync } from 'fs';
2910
+ * import { appendFileSync } from 'node:fs';
2770
2911
  *
2771
2912
  * try {
2772
2913
  * appendFileSync('message.txt', 'data to append');
@@ -2779,7 +2920,7 @@ declare module 'fs' {
2779
2920
  * If `options` is a string, then it specifies the encoding:
2780
2921
  *
2781
2922
  * ```js
2782
- * import { appendFileSync } from 'fs';
2923
+ * import { appendFileSync } from 'node:fs';
2783
2924
  *
2784
2925
  * appendFileSync('message.txt', 'data to append', 'utf8');
2785
2926
  * ```
@@ -2789,7 +2930,7 @@ declare module 'fs' {
2789
2930
  * not be closed automatically.
2790
2931
  *
2791
2932
  * ```js
2792
- * import { openSync, closeSync, appendFileSync } from 'fs';
2933
+ * import { openSync, closeSync, appendFileSync } from 'node:fs';
2793
2934
  *
2794
2935
  * let fd;
2795
2936
  *
@@ -2871,7 +3012,7 @@ declare module 'fs' {
2871
3012
  * stat object:
2872
3013
  *
2873
3014
  * ```js
2874
- * import { watchFile } from 'fs';
3015
+ * import { watchFile } from 'node:fs';
2875
3016
  *
2876
3017
  * watchFile('message.text', (curr, prev) => {
2877
3018
  * console.log(`the current mtime is: ${curr.mtime}`);
@@ -2911,7 +3052,7 @@ declare module 'fs' {
2911
3052
  bigint?: false | undefined;
2912
3053
  })
2913
3054
  | undefined,
2914
- listener: (curr: Stats, prev: Stats) => void
3055
+ listener: StatsListener
2915
3056
  ): StatWatcher;
2916
3057
  export function watchFile(
2917
3058
  filename: PathLike,
@@ -2920,13 +3061,13 @@ declare module 'fs' {
2920
3061
  bigint: true;
2921
3062
  })
2922
3063
  | undefined,
2923
- listener: (curr: BigIntStats, prev: BigIntStats) => void
3064
+ listener: BigIntStatsListener
2924
3065
  ): StatWatcher;
2925
3066
  /**
2926
3067
  * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
2927
3068
  * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
2928
3069
  */
2929
- export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): StatWatcher;
3070
+ export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
2930
3071
  /**
2931
3072
  * Stop watching for changes on `filename`. If `listener` is specified, only that
2932
3073
  * particular listener is removed. Otherwise, _all_ listeners are removed,
@@ -2939,14 +3080,17 @@ declare module 'fs' {
2939
3080
  * @since v0.1.31
2940
3081
  * @param listener Optional, a listener previously attached using `fs.watchFile()`
2941
3082
  */
2942
- export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void;
3083
+ export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
3084
+ export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
2943
3085
  export interface WatchOptions extends Abortable {
2944
3086
  encoding?: BufferEncoding | 'buffer' | undefined;
2945
3087
  persistent?: boolean | undefined;
2946
3088
  recursive?: boolean | undefined;
2947
3089
  }
2948
3090
  export type WatchEventType = 'rename' | 'change';
2949
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
3091
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
3092
+ export type StatsListener = (curr: Stats, prev: Stats) => void;
3093
+ export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
2950
3094
  /**
2951
3095
  * Watch for changes on `filename`, where `filename` is either a file or a
2952
3096
  * directory.
@@ -3004,7 +3148,7 @@ declare module 'fs' {
3004
3148
  * Then call the `callback` argument with either true or false:
3005
3149
  *
3006
3150
  * ```js
3007
- * import { exists } from 'fs';
3151
+ * import { exists } from 'node:fs';
3008
3152
  *
3009
3153
  * exists('/etc/passwd', (e) => {
3010
3154
  * console.log(e ? 'it exists' : 'no passwd!');
@@ -3016,7 +3160,7 @@ declare module 'fs' {
3016
3160
  * has only one boolean parameter. This is one reason `fs.access()` is recommended
3017
3161
  * instead of `fs.exists()`.
3018
3162
  *
3019
- * Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended. Doing
3163
+ * Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing
3020
3164
  * so introduces a race condition, since other processes may change the file's
3021
3165
  * state between the two calls. Instead, user code should open/read/write the
3022
3166
  * file directly and handle the error raised if the file does not exist.
@@ -3024,7 +3168,7 @@ declare module 'fs' {
3024
3168
  * **write (NOT RECOMMENDED)**
3025
3169
  *
3026
3170
  * ```js
3027
- * import { exists, open, close } from 'fs';
3171
+ * import { exists, open, close } from 'node:fs';
3028
3172
  *
3029
3173
  * exists('myfile', (e) => {
3030
3174
  * if (e) {
@@ -3048,7 +3192,7 @@ declare module 'fs' {
3048
3192
  * **write (RECOMMENDED)**
3049
3193
  *
3050
3194
  * ```js
3051
- * import { open, close } from 'fs';
3195
+ * import { open, close } from 'node:fs';
3052
3196
  * open('myfile', 'wx', (err, fd) => {
3053
3197
  * if (err) {
3054
3198
  * if (err.code === 'EEXIST') {
@@ -3072,7 +3216,7 @@ declare module 'fs' {
3072
3216
  * **read (NOT RECOMMENDED)**
3073
3217
  *
3074
3218
  * ```js
3075
- * import { open, close, exists } from 'fs';
3219
+ * import { open, close, exists } from 'node:fs';
3076
3220
  *
3077
3221
  * exists('myfile', (e) => {
3078
3222
  * if (e) {
@@ -3096,7 +3240,7 @@ declare module 'fs' {
3096
3240
  * **read (RECOMMENDED)**
3097
3241
  *
3098
3242
  * ```js
3099
- * import { open, close } from 'fs';
3243
+ * import { open, close } from 'node:fs';
3100
3244
  *
3101
3245
  * open('myfile', 'r', (err, fd) => {
3102
3246
  * if (err) {
@@ -3122,7 +3266,7 @@ declare module 'fs' {
3122
3266
  * file; the "recommended" examples are better because they use the file directly
3123
3267
  * and handle the error, if any.
3124
3268
  *
3125
- * In general, check for the existence of a file only if the file wont be
3269
+ * In general, check for the existence of a file only if the file won't be
3126
3270
  * used directly, for example when its existence is a signal from another
3127
3271
  * process.
3128
3272
  * @since v0.0.2
@@ -3147,7 +3291,7 @@ declare module 'fs' {
3147
3291
  * Node.js callbacks. `fs.existsSync()` does not use a callback.
3148
3292
  *
3149
3293
  * ```js
3150
- * import { existsSync } from 'fs';
3294
+ * import { existsSync } from 'node:fs';
3151
3295
  *
3152
3296
  * if (existsSync('/etc/passwd'))
3153
3297
  * console.log('The path exists.');
@@ -3272,16 +3416,16 @@ declare module 'fs' {
3272
3416
  /**
3273
3417
  * Tests a user's permissions for the file or directory specified by `path`.
3274
3418
  * The `mode` argument is an optional integer that specifies the accessibility
3275
- * checks to be performed. Check `File access constants` for possible values
3276
- * of `mode`. It is possible to create a mask consisting of the bitwise OR of
3277
- * two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
3419
+ * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK`
3420
+ * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
3421
+ * possible values of `mode`.
3278
3422
  *
3279
3423
  * The final argument, `callback`, is a callback function that is invoked with
3280
3424
  * a possible error argument. If any of the accessibility checks fail, the error
3281
3425
  * argument will be an `Error` object. The following examples check if`package.json` exists, and if it is readable or writable.
3282
3426
  *
3283
3427
  * ```js
3284
- * import { access, constants } from 'fs';
3428
+ * import { access, constants } from 'node:fs';
3285
3429
  *
3286
3430
  * const file = 'package.json';
3287
3431
  *
@@ -3300,18 +3444,13 @@ declare module 'fs' {
3300
3444
  * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`);
3301
3445
  * });
3302
3446
  *
3303
- * // Check if the file exists in the current directory, and if it is writable.
3304
- * access(file, constants.F_OK | constants.W_OK, (err) => {
3305
- * if (err) {
3306
- * console.error(
3307
- * `${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);
3308
- * } else {
3309
- * console.log(`${file} exists, and it is writable`);
3310
- * }
3447
+ * // Check if the file is readable and writable.
3448
+ * access(file, constants.R_OK | constants.W_OK, (err) => {
3449
+ * console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`);
3311
3450
  * });
3312
3451
  * ```
3313
3452
  *
3314
- * Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()`. Doing
3453
+ * Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing
3315
3454
  * so introduces a race condition, since other processes may change the file's
3316
3455
  * state between the two calls. Instead, user code should open/read/write the
3317
3456
  * file directly and handle the error raised if the file is not accessible.
@@ -3319,7 +3458,7 @@ declare module 'fs' {
3319
3458
  * **write (NOT RECOMMENDED)**
3320
3459
  *
3321
3460
  * ```js
3322
- * import { access, open, close } from 'fs';
3461
+ * import { access, open, close } from 'node:fs';
3323
3462
  *
3324
3463
  * access('myfile', (err) => {
3325
3464
  * if (!err) {
@@ -3344,7 +3483,7 @@ declare module 'fs' {
3344
3483
  * **write (RECOMMENDED)**
3345
3484
  *
3346
3485
  * ```js
3347
- * import { open, close } from 'fs';
3486
+ * import { open, close } from 'node:fs';
3348
3487
  *
3349
3488
  * open('myfile', 'wx', (err, fd) => {
3350
3489
  * if (err) {
@@ -3369,7 +3508,7 @@ declare module 'fs' {
3369
3508
  * **read (NOT RECOMMENDED)**
3370
3509
  *
3371
3510
  * ```js
3372
- * import { access, open, close } from 'fs';
3511
+ * import { access, open, close } from 'node:fs';
3373
3512
  * access('myfile', (err) => {
3374
3513
  * if (err) {
3375
3514
  * if (err.code === 'ENOENT') {
@@ -3397,7 +3536,7 @@ declare module 'fs' {
3397
3536
  * **read (RECOMMENDED)**
3398
3537
  *
3399
3538
  * ```js
3400
- * import { open, close } from 'fs';
3539
+ * import { open, close } from 'node:fs';
3401
3540
  *
3402
3541
  * open('myfile', 'r', (err, fd) => {
3403
3542
  * if (err) {
@@ -3451,16 +3590,15 @@ declare module 'fs' {
3451
3590
  /**
3452
3591
  * Synchronously tests a user's permissions for the file or directory specified
3453
3592
  * by `path`. The `mode` argument is an optional integer that specifies the
3454
- * accessibility checks to be performed. Check `File access constants` for
3455
- * possible values of `mode`. It is possible to create a mask consisting of
3456
- * the bitwise OR of two or more values
3457
- * (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
3593
+ * accessibility checks to be performed. `mode` should be either the value`fs.constants.F_OK` or a mask consisting of the bitwise OR of any of`fs.constants.R_OK`, `fs.constants.W_OK`, and
3594
+ * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
3595
+ * possible values of `mode`.
3458
3596
  *
3459
3597
  * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise,
3460
3598
  * the method will return `undefined`.
3461
3599
  *
3462
3600
  * ```js
3463
- * import { accessSync, constants } from 'fs';
3601
+ * import { accessSync, constants } from 'node:fs';
3464
3602
  *
3465
3603
  * try {
3466
3604
  * accessSync('etc/passwd', constants.R_OK | constants.W_OK);
@@ -3490,8 +3628,8 @@ declare module 'fs' {
3490
3628
  end?: number | undefined;
3491
3629
  }
3492
3630
  /**
3493
- * Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
3494
- * returned by this method has a default `highWaterMark` of 64 kb.
3631
+ * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
3632
+ * returned by this method has a default `highWaterMark` of 64 KiB.
3495
3633
  *
3496
3634
  * `options` can include `start` and `end` values to read a range of bytes from
3497
3635
  * the file instead of the entire file. Both `start` and `end` are inclusive and
@@ -3517,7 +3655,7 @@ declare module 'fs' {
3517
3655
  * also required.
3518
3656
  *
3519
3657
  * ```js
3520
- * import { createReadStream } from 'fs';
3658
+ * import { createReadStream } from 'node:fs';
3521
3659
  *
3522
3660
  * // Create a stream from some character device.
3523
3661
  * const stream = createReadStream('/dev/input/event0');
@@ -3545,7 +3683,7 @@ declare module 'fs' {
3545
3683
  * An example to read the last 10 bytes of a file which is 100 bytes long:
3546
3684
  *
3547
3685
  * ```js
3548
- * import { createReadStream } from 'fs';
3686
+ * import { createReadStream } from 'node:fs';
3549
3687
  *
3550
3688
  * createReadStream('sample.txt', { start: 90, end: 99 });
3551
3689
  * ```
@@ -3557,9 +3695,9 @@ declare module 'fs' {
3557
3695
  /**
3558
3696
  * `options` may also include a `start` option to allow writing data at some
3559
3697
  * position past the beginning of the file, allowed values are in the
3560
- * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing
3561
- * it may require the `flags` option to be set to `r+` rather than the default `w`.
3562
- * The `encoding` can be any one of those accepted by `Buffer`.
3698
+ * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
3699
+ * replacing it may require the `flags` option to be set to `r+` rather than the
3700
+ * default `w`. The `encoding` can be any one of those accepted by `Buffer`.
3563
3701
  *
3564
3702
  * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
3565
3703
  * then the file descriptor won't be closed, even if there's an error.
@@ -3569,7 +3707,7 @@ declare module 'fs' {
3569
3707
  * By default, the stream will emit a `'close'` event after it has been
3570
3708
  * destroyed. Set the `emitClose` option to `false` to change this behavior.
3571
3709
  *
3572
- * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce
3710
+ * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev`, and `close`. Overriding `write()`without `writev()` can reduce
3573
3711
  * performance as some optimizations (`_writev()`)
3574
3712
  * will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override
3575
3713
  * for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
@@ -3624,7 +3762,7 @@ declare module 'fs' {
3624
3762
  * copy-on-write, then the operation will fail.
3625
3763
  *
3626
3764
  * ```js
3627
- * import { copyFile, constants } from 'fs';
3765
+ * import { copyFile, constants } from 'node:fs';
3628
3766
  *
3629
3767
  * function callback(err) {
3630
3768
  * if (err) throw err;
@@ -3667,7 +3805,7 @@ declare module 'fs' {
3667
3805
  * copy-on-write, then the operation will fail.
3668
3806
  *
3669
3807
  * ```js
3670
- * import { copyFileSync, constants } from 'fs';
3808
+ * import { copyFileSync, constants } from 'node:fs';
3671
3809
  *
3672
3810
  * // destination.txt will be created or overwritten by default.
3673
3811
  * copyFileSync('source.txt', 'destination.txt');
@@ -3700,6 +3838,7 @@ declare module 'fs' {
3700
3838
  * The kernel ignores the position argument and always appends the data to
3701
3839
  * the end of the file.
3702
3840
  * @since v12.9.0
3841
+ * @param [position='null']
3703
3842
  */
3704
3843
  export function writev(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
3705
3844
  export function writev(
@@ -3719,6 +3858,7 @@ declare module 'fs' {
3719
3858
  * For detailed information, see the documentation of the asynchronous version of
3720
3859
  * this API: {@link writev}.
3721
3860
  * @since v12.9.0
3861
+ * @param [position='null']
3722
3862
  * @return The number of bytes written.
3723
3863
  */
3724
3864
  export function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
@@ -3735,6 +3875,7 @@ declare module 'fs' {
3735
3875
  * If this method is invoked as its `util.promisify()` ed version, it returns
3736
3876
  * a promise for an `Object` with `bytesRead` and `buffers` properties.
3737
3877
  * @since v13.13.0, v12.17.0
3878
+ * @param [position='null']
3738
3879
  */
3739
3880
  export function readv(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
3740
3881
  export function readv(
@@ -3754,10 +3895,14 @@ declare module 'fs' {
3754
3895
  * For detailed information, see the documentation of the asynchronous version of
3755
3896
  * this API: {@link readv}.
3756
3897
  * @since v13.13.0, v12.17.0
3898
+ * @param [position='null']
3757
3899
  * @return The number of bytes read.
3758
3900
  */
3759
3901
  export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
3760
3902
  export interface OpenDirOptions {
3903
+ /**
3904
+ * @default 'utf8'
3905
+ */
3761
3906
  encoding?: BufferEncoding | undefined;
3762
3907
  /**
3763
3908
  * Number of directory entries that are buffered
@@ -3766,6 +3911,10 @@ declare module 'fs' {
3766
3911
  * @default 32
3767
3912
  */
3768
3913
  bufferSize?: number | undefined;
3914
+ /**
3915
+ * @default false
3916
+ */
3917
+ recursive?: boolean;
3769
3918
  }
3770
3919
  /**
3771
3920
  * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html).
@@ -3809,7 +3958,7 @@ declare module 'fs' {
3809
3958
  export interface StatSyncOptions extends StatOptions {
3810
3959
  throwIfNoEntry?: boolean | undefined;
3811
3960
  }
3812
- export interface CopyOptions {
3961
+ interface CopyOptionsBase {
3813
3962
  /**
3814
3963
  * Dereference symlinks
3815
3964
  * @default false
@@ -3821,11 +3970,6 @@ declare module 'fs' {
3821
3970
  * @default false
3822
3971
  */
3823
3972
  errorOnExist?: boolean;
3824
- /**
3825
- * Function to filter copied files/directories. Return
3826
- * `true` to copy the item, `false` to ignore it.
3827
- */
3828
- filter?(source: string, destination: string): boolean;
3829
3973
  /**
3830
3974
  * Overwrite existing file or directory. _The copy
3831
3975
  * operation will ignore errors if you set this to false and the destination
@@ -3833,6 +3977,10 @@ declare module 'fs' {
3833
3977
  * @default true
3834
3978
  */
3835
3979
  force?: boolean;
3980
+ /**
3981
+ * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
3982
+ */
3983
+ mode?: number;
3836
3984
  /**
3837
3985
  * When `true` timestamps from `src` will
3838
3986
  * be preserved.
@@ -3844,6 +3992,25 @@ declare module 'fs' {
3844
3992
  * @default false
3845
3993
  */
3846
3994
  recursive?: boolean;
3995
+ /**
3996
+ * When true, path resolution for symlinks will be skipped
3997
+ * @default false
3998
+ */
3999
+ verbatimSymlinks?: boolean;
4000
+ }
4001
+ export interface CopyOptions extends CopyOptionsBase {
4002
+ /**
4003
+ * Function to filter copied files/directories. Return
4004
+ * `true` to copy the item, `false` to ignore it.
4005
+ */
4006
+ filter?(source: string, destination: string): boolean | Promise<boolean>;
4007
+ }
4008
+ export interface CopySyncOptions extends CopyOptionsBase {
4009
+ /**
4010
+ * Function to filter copied files/directories. Return
4011
+ * `true` to copy the item, `false` to ignore it.
4012
+ */
4013
+ filter?(source: string, destination: string): boolean;
3847
4014
  }
3848
4015
  /**
3849
4016
  * Asynchronously copies the entire directory structure from `src` to `dest`,
@@ -3856,8 +4023,8 @@ declare module 'fs' {
3856
4023
  * @param src source path to copy.
3857
4024
  * @param dest destination path to copy to.
3858
4025
  */
3859
- export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
3860
- export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
4026
+ export function cp(source: string | URL, destination: string | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
4027
+ export function cp(source: string | URL, destination: string | URL, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
3861
4028
  /**
3862
4029
  * Synchronously copies the entire directory structure from `src` to `dest`,
3863
4030
  * including subdirectories and files.
@@ -3869,7 +4036,7 @@ declare module 'fs' {
3869
4036
  * @param src source path to copy.
3870
4037
  * @param dest destination path to copy to.
3871
4038
  */
3872
- export function cpSync(source: string, destination: string, opts?: CopyOptions): void;
4039
+ export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
3873
4040
  }
3874
4041
  declare module 'node:fs' {
3875
4042
  export * from 'fs';