@contrast/agent-bundle 5.41.0 → 5.45.1

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 (489) hide show
  1. package/README.md +1 -10
  2. package/node_modules/@contrast/agent/README.md +1 -10
  3. package/node_modules/@contrast/agent/package.json +13 -12
  4. package/node_modules/@contrast/agent-swc-plugin/package.json +3 -3
  5. package/node_modules/@contrast/agentify/lib/rewrite-hooks.js +3 -3
  6. package/node_modules/@contrast/agentify/lib/utils.js +13 -7
  7. package/node_modules/@contrast/agentify/package.json +17 -17
  8. package/node_modules/@contrast/architecture-components/package.json +6 -6
  9. package/node_modules/@contrast/assess/lib/dataflow/propagation/install/ejs/template.js +1 -1
  10. package/node_modules/@contrast/assess/lib/dataflow/propagation/install/pug/index.js +1 -1
  11. package/node_modules/@contrast/assess/lib/dataflow/sinks/install/http/server-response.js +1 -12
  12. package/node_modules/@contrast/assess/lib/dataflow/sinks/install/restify.js +1 -1
  13. package/node_modules/@contrast/assess/lib/dataflow/sources/install/http.js +1 -1
  14. package/node_modules/@contrast/assess/lib/dataflow/tracker.js +1 -1
  15. package/node_modules/@contrast/assess/lib/get-source-context.js +1 -1
  16. package/node_modules/@contrast/assess/lib/response-scanning/install/http.js +0 -12
  17. package/node_modules/@contrast/assess/package.json +14 -14
  18. package/node_modules/@contrast/code-events/binding.gyp +1 -1
  19. package/node_modules/@contrast/code-events/package.json +11 -9
  20. package/node_modules/@contrast/code-events/prebuilds/darwin-x64+arm64/@contrast+code-events.abi108.node +0 -0
  21. package/node_modules/@contrast/code-events/prebuilds/darwin-x64+arm64/@contrast+code-events.abi115.node +0 -0
  22. package/node_modules/@contrast/code-events/prebuilds/darwin-x64+arm64/@contrast+code-events.abi127.node +0 -0
  23. package/node_modules/@contrast/code-events/prebuilds/darwin-x64+arm64/{@contrast+code-events.abi93.node → @contrast+code-events.abi137.node} +0 -0
  24. package/node_modules/@contrast/code-events/prebuilds/linux-arm64/@contrast+code-events.abi108.armv8.node +0 -0
  25. package/node_modules/@contrast/code-events/prebuilds/linux-arm64/@contrast+code-events.abi115.armv8.node +0 -0
  26. package/node_modules/@contrast/code-events/prebuilds/linux-arm64/@contrast+code-events.abi127.armv8.node +0 -0
  27. package/node_modules/@contrast/code-events/prebuilds/linux-arm64/@contrast+code-events.abi137.armv8.node +0 -0
  28. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi108.glibc.node +0 -0
  29. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi108.musl.node +0 -0
  30. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi115.glibc.node +0 -0
  31. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi115.musl.node +0 -0
  32. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi127.glibc.node +0 -0
  33. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi127.musl.node +0 -0
  34. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi137.glibc.node +0 -0
  35. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi137.musl.node +0 -0
  36. package/node_modules/@contrast/code-events/prebuilds/win32-x64/@contrast+code-events.abi108.node +0 -0
  37. package/node_modules/@contrast/code-events/prebuilds/win32-x64/@contrast+code-events.abi115.node +0 -0
  38. package/node_modules/@contrast/code-events/prebuilds/win32-x64/@contrast+code-events.abi127.node +0 -0
  39. package/node_modules/@contrast/code-events/prebuilds/win32-x64/@contrast+code-events.abi137.node +0 -0
  40. package/node_modules/@contrast/common/lib/constants.d.ts +1 -1
  41. package/node_modules/@contrast/common/lib/constants.js +1 -1
  42. package/node_modules/@contrast/common/lib/index.js +15 -15
  43. package/node_modules/@contrast/common/lib/primordials.d.ts +22 -20
  44. package/node_modules/@contrast/common/lib/types.d.ts +18 -6
  45. package/node_modules/@contrast/common/package.json +2 -2
  46. package/node_modules/@contrast/config/lib/options.js +29 -4
  47. package/node_modules/@contrast/config/package.json +4 -4
  48. package/node_modules/@contrast/core/lib/app-info.js +53 -74
  49. package/node_modules/@contrast/core/lib/index.d.ts +17 -1
  50. package/node_modules/@contrast/core/lib/sensitive-data-masking/index.js +33 -5
  51. package/node_modules/@contrast/core/package.json +10 -9
  52. package/node_modules/@contrast/deadzones/package.json +6 -6
  53. package/node_modules/@contrast/dep-hooks/lib/export-handler-registry.d.ts +17 -13
  54. package/node_modules/@contrast/dep-hooks/lib/export-handler-registry.js +16 -4
  55. package/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.d.ts +2 -2
  56. package/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.js +2 -3
  57. package/node_modules/@contrast/dep-hooks/lib/handler-invoker.d.ts +6 -6
  58. package/node_modules/@contrast/dep-hooks/lib/handler-invoker.js +0 -1
  59. package/node_modules/@contrast/dep-hooks/lib/helpers.d.ts +0 -7
  60. package/node_modules/@contrast/dep-hooks/lib/helpers.js +2 -18
  61. package/node_modules/@contrast/dep-hooks/lib/index.d.ts +17 -12
  62. package/node_modules/@contrast/dep-hooks/lib/index.js +5 -3
  63. package/node_modules/@contrast/dep-hooks/lib/package-finder.d.ts +2 -1
  64. package/node_modules/@contrast/dep-hooks/lib/package-finder.js +6 -6
  65. package/node_modules/@contrast/dep-hooks/package.json +4 -3
  66. package/node_modules/@contrast/distringuish/package.json +7 -6
  67. package/node_modules/@contrast/distringuish/prebuilds/darwin-x64+arm64/@contrast+distringuish.abi108.node +0 -0
  68. package/node_modules/@contrast/distringuish/prebuilds/darwin-x64+arm64/@contrast+distringuish.abi115.node +0 -0
  69. package/node_modules/@contrast/distringuish/prebuilds/darwin-x64+arm64/@contrast+distringuish.abi127.node +0 -0
  70. package/node_modules/@contrast/distringuish/prebuilds/darwin-x64+arm64/{@contrast+distringuish.abi93.node → @contrast+distringuish.abi137.node} +0 -0
  71. package/node_modules/@contrast/distringuish/prebuilds/linux-arm64/@contrast+distringuish.abi108.armv8.node +0 -0
  72. package/node_modules/@contrast/distringuish/prebuilds/linux-arm64/@contrast+distringuish.abi115.armv8.node +0 -0
  73. package/node_modules/@contrast/distringuish/prebuilds/linux-arm64/@contrast+distringuish.abi127.armv8.node +0 -0
  74. package/node_modules/@contrast/distringuish/prebuilds/linux-arm64/@contrast+distringuish.abi137.armv8.node +0 -0
  75. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi108.glibc.node +0 -0
  76. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi108.musl.node +0 -0
  77. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi115.glibc.node +0 -0
  78. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi115.musl.node +0 -0
  79. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi127.glibc.node +0 -0
  80. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi127.musl.node +0 -0
  81. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi137.glibc.node +0 -0
  82. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi137.musl.node +0 -0
  83. package/node_modules/@contrast/distringuish/prebuilds/win32-x64/@contrast+distringuish.abi108.node +0 -0
  84. package/node_modules/@contrast/distringuish/prebuilds/win32-x64/@contrast+distringuish.abi115.node +0 -0
  85. package/node_modules/@contrast/distringuish/prebuilds/win32-x64/@contrast+distringuish.abi127.node +0 -0
  86. package/node_modules/@contrast/distringuish/prebuilds/win32-x64/@contrast+distringuish.abi137.node +0 -0
  87. package/node_modules/@contrast/esm-hooks/lib/debug-methods.mjs +4 -4
  88. package/node_modules/@contrast/esm-hooks/lib/get-file-type.mjs +2 -9
  89. package/node_modules/@contrast/esm-hooks/lib/hooks.mjs +0 -2
  90. package/node_modules/@contrast/esm-hooks/lib/redirects/builtin/fs/promises.mjs +2 -0
  91. package/node_modules/@contrast/esm-hooks/lib/redirects/builtin/fs.mjs +3 -0
  92. package/node_modules/@contrast/esm-hooks/lib/redirects/builtin/util.mjs +1 -0
  93. package/node_modules/@contrast/esm-hooks/package.json +7 -7
  94. package/node_modules/@contrast/fn-inspect/package.json +9 -5
  95. package/node_modules/@contrast/fn-inspect/prebuilds/darwin-x64+arm64/@contrast+fn-inspect.abi108.node +0 -0
  96. package/node_modules/@contrast/fn-inspect/prebuilds/darwin-x64+arm64/@contrast+fn-inspect.abi115.node +0 -0
  97. package/node_modules/@contrast/fn-inspect/prebuilds/darwin-x64+arm64/@contrast+fn-inspect.abi127.node +0 -0
  98. package/node_modules/@contrast/fn-inspect/prebuilds/darwin-x64+arm64/{@contrast+fn-inspect.abi93.node → @contrast+fn-inspect.abi137.node} +0 -0
  99. package/node_modules/@contrast/fn-inspect/prebuilds/linux-arm64/@contrast+fn-inspect.abi108.armv8.node +0 -0
  100. package/node_modules/@contrast/fn-inspect/prebuilds/linux-arm64/@contrast+fn-inspect.abi115.armv8.node +0 -0
  101. package/node_modules/@contrast/fn-inspect/prebuilds/linux-arm64/@contrast+fn-inspect.abi127.armv8.node +0 -0
  102. package/node_modules/@contrast/fn-inspect/prebuilds/linux-arm64/@contrast+fn-inspect.abi137.armv8.node +0 -0
  103. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi108.glibc.node +0 -0
  104. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi108.musl.node +0 -0
  105. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi115.glibc.node +0 -0
  106. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi115.musl.node +0 -0
  107. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi127.glibc.node +0 -0
  108. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi127.musl.node +0 -0
  109. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi137.glibc.node +0 -0
  110. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/{@contrast+fn-inspect.abi93.musl.node → @contrast+fn-inspect.abi137.musl.node} +0 -0
  111. package/node_modules/@contrast/fn-inspect/prebuilds/win32-x64/@contrast+fn-inspect.abi108.node +0 -0
  112. package/node_modules/@contrast/fn-inspect/prebuilds/win32-x64/@contrast+fn-inspect.abi115.node +0 -0
  113. package/node_modules/@contrast/fn-inspect/prebuilds/win32-x64/@contrast+fn-inspect.abi127.node +0 -0
  114. package/node_modules/@contrast/fn-inspect/prebuilds/win32-x64/@contrast+fn-inspect.abi137.node +0 -0
  115. package/node_modules/@contrast/instrumentation/lib/http2.js +0 -11
  116. package/node_modules/@contrast/instrumentation/package.json +6 -6
  117. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +312 -224
  118. package/node_modules/@contrast/library-analysis/package.json +6 -6
  119. package/node_modules/@contrast/logger/lib/index.js +18 -8
  120. package/node_modules/@contrast/logger/lib/serializers.js +5 -5
  121. package/node_modules/@contrast/logger/lib/utils.d.ts +0 -6
  122. package/node_modules/@contrast/logger/package.json +4 -4
  123. package/node_modules/@contrast/metrics/lib/index.d.ts +6 -6
  124. package/node_modules/@contrast/metrics/lib/index.js +0 -1
  125. package/node_modules/@contrast/metrics/package.json +7 -7
  126. package/node_modules/@contrast/patcher/package.json +3 -3
  127. package/node_modules/@contrast/perf/package.json +7 -4
  128. package/node_modules/@contrast/protect/lib/hardening/handlers.js +37 -21
  129. package/node_modules/@contrast/protect/lib/index.d.ts +3 -2
  130. package/node_modules/@contrast/protect/lib/index.js +9 -2
  131. package/node_modules/@contrast/protect/lib/input-analysis/handlers.js +275 -233
  132. package/node_modules/@contrast/protect/lib/input-analysis/install/http.js +3 -4
  133. package/node_modules/@contrast/protect/lib/input-tracing/{handlers/index.js → handlers.js} +15 -15
  134. package/node_modules/@contrast/protect/lib/input-tracing/index.js +0 -1
  135. package/node_modules/@contrast/protect/lib/make-source-context.js +5 -7
  136. package/node_modules/@contrast/protect/lib/policy.js +130 -95
  137. package/node_modules/@contrast/protect/lib/semantic-analysis/handlers.js +19 -18
  138. package/node_modules/@contrast/protect/package.json +12 -12
  139. package/node_modules/@contrast/reporter/lib/index.js +1 -1
  140. package/node_modules/@contrast/reporter/lib/reporters/base.d.ts +0 -1
  141. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/index.d.ts +4 -2
  142. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/index.js +14 -14
  143. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.d.ts +43 -6
  144. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.js +262 -429
  145. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/server-inventory.d.ts +3 -3
  146. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.d.ts +11 -11
  147. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +93 -93
  148. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.js +12 -13
  149. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/utils.js +6 -7
  150. package/node_modules/@contrast/reporter/lib/reporters/file.js +1 -1
  151. package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.d.ts +2 -3
  152. package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.js +72 -86
  153. package/node_modules/@contrast/reporter/lib/reporters/security-logger/messages.js +6 -7
  154. package/node_modules/@contrast/reporter/lib/validators.js +0 -1
  155. package/node_modules/@contrast/reporter/node_modules/sonic-boom/.husky/pre-commit +2 -2
  156. package/node_modules/@contrast/reporter/node_modules/sonic-boom/.taprc +5 -0
  157. package/node_modules/@contrast/reporter/node_modules/sonic-boom/README.md +2 -4
  158. package/node_modules/@contrast/reporter/node_modules/sonic-boom/bench.js +5 -36
  159. package/node_modules/@contrast/reporter/node_modules/sonic-boom/index.js +56 -300
  160. package/node_modules/@contrast/reporter/node_modules/sonic-boom/package.json +12 -7
  161. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test.js +1684 -0
  162. package/node_modules/@contrast/reporter/node_modules/sonic-boom/types/index.d.ts +1 -2
  163. package/node_modules/@contrast/reporter/package.json +10 -10
  164. package/node_modules/@contrast/rewriter/lib/index.js +5 -43
  165. package/node_modules/@contrast/rewriter/package.json +8 -8
  166. package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +0 -5
  167. package/node_modules/@contrast/route-coverage/lib/install/hapi.js +9 -2
  168. package/node_modules/@contrast/route-coverage/lib/install/restify.js +1 -1
  169. package/node_modules/@contrast/route-coverage/package.json +10 -10
  170. package/node_modules/@contrast/scopes/package.json +6 -6
  171. package/node_modules/@contrast/sec-obs/lib/traces/http.js +1 -1
  172. package/node_modules/@contrast/sec-obs/lib/traces/http.test.js +1 -1
  173. package/node_modules/@contrast/sec-obs/package.json +10 -10
  174. package/node_modules/@contrast/sources/lib/index.js +1 -1
  175. package/node_modules/@contrast/sources/lib/index.test.js +0 -26
  176. package/node_modules/@contrast/sources/package.json +3 -3
  177. package/node_modules/@contrast/telemetry/package.json +6 -6
  178. package/node_modules/@opentelemetry/semantic-conventions/README.md +3 -2
  179. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +4350 -2882
  180. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +4350 -2882
  181. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js.map +1 -1
  182. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +136 -0
  183. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +154 -0
  184. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js.map +1 -0
  185. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +713 -141
  186. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +713 -141
  187. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js.map +1 -1
  188. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +2 -0
  189. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +2 -0
  190. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js.map +1 -1
  191. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +1 -0
  192. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +1 -0
  193. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js.map +1 -1
  194. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +7 -1
  195. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +7 -1
  196. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +1 -1
  197. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +5 -0
  198. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +23 -0
  199. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js.map +1 -0
  200. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +1 -1
  201. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +1 -1
  202. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js.map +1 -1
  203. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +4350 -2882
  204. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +4350 -2882
  205. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js.map +1 -1
  206. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +136 -0
  207. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +154 -0
  208. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js.map +1 -0
  209. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +713 -141
  210. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +713 -141
  211. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js.map +1 -1
  212. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +2 -0
  213. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +2 -0
  214. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js.map +1 -1
  215. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +1 -0
  216. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +1 -0
  217. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js.map +1 -1
  218. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +7 -1
  219. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +7 -1
  220. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js.map +1 -1
  221. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +5 -0
  222. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +23 -0
  223. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js.map +1 -0
  224. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +1 -1
  225. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +1 -1
  226. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js.map +1 -1
  227. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +4350 -2882
  228. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +4354 -2883
  229. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js.map +1 -1
  230. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +136 -0
  231. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +157 -0
  232. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js.map +1 -0
  233. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +713 -141
  234. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +720 -147
  235. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js.map +1 -1
  236. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +2 -0
  237. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +2 -0
  238. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js.map +1 -1
  239. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +1 -0
  240. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +1 -0
  241. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js.map +1 -1
  242. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +7 -1
  243. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +10 -4
  244. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js.map +1 -1
  245. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +5 -0
  246. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +26 -0
  247. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js.map +1 -0
  248. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +1 -1
  249. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +1 -1
  250. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js.map +1 -1
  251. package/node_modules/@opentelemetry/semantic-conventions/package.json +6 -7
  252. package/node_modules/@swc/core/README.md +5 -0
  253. package/node_modules/@swc/core/binding.d.ts +2 -2
  254. package/node_modules/@swc/core/index.d.ts +5 -4
  255. package/node_modules/@swc/core/index.js +2 -2
  256. package/node_modules/@swc/core/package.json +12 -12
  257. package/node_modules/@swc/core-darwin-arm64/package.json +1 -1
  258. package/node_modules/@swc/core-darwin-arm64/swc.darwin-arm64.node +0 -0
  259. package/node_modules/@swc/core-darwin-x64/package.json +1 -1
  260. package/node_modules/@swc/core-darwin-x64/swc.darwin-x64.node +0 -0
  261. package/node_modules/@swc/core-linux-arm64-gnu/package.json +1 -1
  262. package/node_modules/@swc/core-linux-arm64-gnu/swc.linux-arm64-gnu.node +0 -0
  263. package/node_modules/@swc/core-linux-arm64-musl/package.json +1 -1
  264. package/node_modules/@swc/core-linux-arm64-musl/swc.linux-arm64-musl.node +0 -0
  265. package/node_modules/@swc/core-linux-x64-gnu/package.json +1 -1
  266. package/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
  267. package/node_modules/@swc/core-linux-x64-musl/package.json +1 -1
  268. package/node_modules/@swc/core-linux-x64-musl/swc.linux-x64-musl.node +0 -0
  269. package/node_modules/@swc/core-win32-arm64-msvc/package.json +1 -1
  270. package/node_modules/@swc/core-win32-arm64-msvc/swc.win32-arm64-msvc.node +0 -0
  271. package/node_modules/@swc/core-win32-x64-msvc/package.json +1 -1
  272. package/node_modules/@swc/core-win32-x64-msvc/swc.win32-x64-msvc.node +0 -0
  273. package/node_modules/@swc/types/index.d.ts +15 -5
  274. package/node_modules/@swc/types/package.json +2 -2
  275. package/node_modules/@types/node/README.md +1 -1
  276. package/node_modules/@types/node/buffer.d.ts +1 -1
  277. package/node_modules/@types/node/child_process.d.ts +26 -122
  278. package/node_modules/@types/node/crypto.d.ts +61 -11
  279. package/node_modules/@types/node/dns.d.ts +5 -0
  280. package/node_modules/@types/node/fs/promises.d.ts +48 -29
  281. package/node_modules/@types/node/fs.d.ts +52 -37
  282. package/node_modules/@types/node/globals.d.ts +148 -347
  283. package/node_modules/@types/node/http.d.ts +29 -5
  284. package/node_modules/@types/node/http2.d.ts +13 -11
  285. package/node_modules/@types/node/https.d.ts +5 -0
  286. package/node_modules/@types/node/index.d.ts +7 -2
  287. package/node_modules/@types/node/inspector.d.ts +187 -3985
  288. package/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  289. package/node_modules/@types/node/module.d.ts +25 -0
  290. package/node_modules/@types/node/net.d.ts +21 -0
  291. package/node_modules/@types/node/package.json +4 -9
  292. package/node_modules/@types/node/perf_hooks.d.ts +14 -0
  293. package/node_modules/@types/node/repl.d.ts +11 -1
  294. package/node_modules/@types/node/sqlite.d.ts +34 -1
  295. package/node_modules/@types/node/stream/web.d.ts +4 -0
  296. package/node_modules/@types/node/stream.d.ts +17 -6
  297. package/node_modules/@types/node/test.d.ts +120 -1
  298. package/node_modules/@types/node/timers.d.ts +0 -2
  299. package/node_modules/@types/node/tls.d.ts +32 -0
  300. package/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  301. package/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  302. package/node_modules/@types/node/url.d.ts +20 -6
  303. package/node_modules/@types/node/util.d.ts +12 -6
  304. package/node_modules/@types/node/vm.d.ts +73 -10
  305. package/node_modules/@types/node/wasi.d.ts +21 -0
  306. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  307. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  308. package/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +47 -52
  309. package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  310. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  311. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  312. package/node_modules/@types/node/worker_threads.d.ts +63 -3
  313. package/node_modules/@types/node/zlib.d.ts +8 -2
  314. package/node_modules/axios/CHANGELOG.md +58 -0
  315. package/node_modules/axios/README.md +87 -10
  316. package/node_modules/axios/dist/axios.js +355 -289
  317. package/node_modules/axios/dist/axios.js.map +1 -1
  318. package/node_modules/axios/dist/axios.min.js +2 -2
  319. package/node_modules/axios/dist/axios.min.js.map +1 -1
  320. package/node_modules/axios/dist/browser/axios.cjs +286 -213
  321. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  322. package/node_modules/axios/dist/esm/axios.js +286 -213
  323. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  324. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  325. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  326. package/node_modules/axios/dist/node/axios.cjs +377 -213
  327. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  328. package/node_modules/axios/index.d.cts +12 -5
  329. package/node_modules/axios/index.d.ts +13 -4
  330. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  331. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  332. package/node_modules/axios/lib/adapters/http.js +18 -0
  333. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  334. package/node_modules/axios/lib/core/Axios.js +0 -2
  335. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  336. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  337. package/node_modules/axios/lib/defaults/index.js +1 -1
  338. package/node_modules/axios/lib/env/data.js +1 -1
  339. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  340. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  341. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  342. package/node_modules/axios/lib/utils.js +5 -3
  343. package/node_modules/axios/package.json +18 -12
  344. package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  345. package/node_modules/balanced-match/LICENSE.md +21 -0
  346. package/node_modules/balanced-match/README.md +97 -0
  347. package/node_modules/balanced-match/index.js +62 -0
  348. package/node_modules/balanced-match/package.json +48 -0
  349. package/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  350. package/node_modules/brace-expansion/LICENSE +21 -0
  351. package/node_modules/brace-expansion/README.md +135 -0
  352. package/node_modules/brace-expansion/index.js +203 -0
  353. package/node_modules/brace-expansion/package.json +49 -0
  354. package/node_modules/detect-libc/lib/detect-libc.js +59 -13
  355. package/node_modules/detect-libc/lib/elf.js +39 -0
  356. package/node_modules/detect-libc/lib/filesystem.js +18 -8
  357. package/node_modules/detect-libc/package.json +3 -2
  358. package/node_modules/minimatch/LICENSE +15 -0
  359. package/node_modules/minimatch/README.md +454 -0
  360. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  361. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  362. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  363. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  364. package/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  365. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  366. package/node_modules/minimatch/dist/commonjs/ast.js +592 -0
  367. package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  368. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  369. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  370. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  371. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  372. package/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  373. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  374. package/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  375. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  376. package/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  377. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  378. package/node_modules/minimatch/dist/commonjs/index.js +1017 -0
  379. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  380. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  381. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  382. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  383. package/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  384. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  385. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  386. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  387. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  388. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  389. package/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  390. package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  391. package/node_modules/minimatch/dist/esm/ast.js +588 -0
  392. package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  393. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  394. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  395. package/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  396. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  397. package/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  398. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  399. package/node_modules/minimatch/dist/esm/escape.js +18 -0
  400. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  401. package/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  402. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  403. package/node_modules/minimatch/dist/esm/index.js +1001 -0
  404. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  405. package/node_modules/minimatch/dist/esm/package.json +3 -0
  406. package/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  407. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  408. package/node_modules/minimatch/dist/esm/unescape.js +20 -0
  409. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  410. package/node_modules/minimatch/package.json +82 -0
  411. package/node_modules/node-abi/LICENSE +21 -0
  412. package/node_modules/node-abi/README.md +54 -0
  413. package/node_modules/node-abi/abi_registry.json +408 -0
  414. package/node_modules/node-abi/getNextTarget.js +13 -0
  415. package/node_modules/node-abi/index.js +161 -0
  416. package/node_modules/node-abi/package.json +46 -0
  417. package/node_modules/node-addon-api/README.md +25 -249
  418. package/node_modules/node-addon-api/common.gypi +1 -0
  419. package/node_modules/node-addon-api/index.js +2 -0
  420. package/node_modules/node-addon-api/napi-inl.h +592 -166
  421. package/node_modules/node-addon-api/napi.h +167 -59
  422. package/node_modules/node-addon-api/node_addon_api.gyp +10 -0
  423. package/node_modules/node-addon-api/noexcept.gypi +1 -1
  424. package/node_modules/node-addon-api/package.json +13 -13
  425. package/node_modules/node-addon-api/tools/conversion.js +1 -1
  426. package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
  427. package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
  428. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  429. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  430. package/node_modules/protobufjs/dist/protobuf.js +2 -2
  431. package/node_modules/protobufjs/dist/protobuf.min.js +2 -2
  432. package/node_modules/protobufjs/google/protobuf/descriptor.json +2 -2
  433. package/node_modules/protobufjs/google/protobuf/descriptor.proto +2 -1
  434. package/node_modules/protobufjs/package.json +1 -1
  435. package/node_modules/undici-types/agent.d.ts +4 -0
  436. package/node_modules/undici-types/client-stats.d.ts +15 -0
  437. package/node_modules/undici-types/client.d.ts +6 -3
  438. package/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  439. package/node_modules/undici-types/dispatcher.d.ts +3 -2
  440. package/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  441. package/node_modules/undici-types/eventsource.d.ts +3 -3
  442. package/node_modules/undici-types/fetch.d.ts +1 -0
  443. package/node_modules/undici-types/handlers.d.ts +1 -1
  444. package/node_modules/undici-types/mock-agent.d.ts +3 -0
  445. package/node_modules/undici-types/mock-client.d.ts +2 -0
  446. package/node_modules/undici-types/mock-interceptor.d.ts +2 -0
  447. package/node_modules/undici-types/mock-pool.d.ts +2 -0
  448. package/node_modules/undici-types/package.json +1 -1
  449. package/node_modules/undici-types/pool.d.ts +2 -0
  450. package/node_modules/undici-types/proxy-agent.d.ts +1 -0
  451. package/node_modules/undici-types/retry-handler.d.ts +9 -0
  452. package/node_modules/undici-types/webidl.d.ts +29 -15
  453. package/node_modules/undici-types/websocket.d.ts +3 -1
  454. package/node_modules/yaml/README.md +2 -20
  455. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  456. package/node_modules/yaml/dist/stringify/stringifyString.js +1 -1
  457. package/node_modules/yaml/package.json +2 -1
  458. package/package.json +4 -3
  459. package/node_modules/@contrast/code-events/prebuilds/linux-arm64/@contrast+code-events.abi93.armv8.node +0 -0
  460. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi93.glibc.node +0 -0
  461. package/node_modules/@contrast/code-events/prebuilds/linux-x64/@contrast+code-events.abi93.musl.node +0 -0
  462. package/node_modules/@contrast/code-events/prebuilds/win32-x64/@contrast+code-events.abi93.node +0 -0
  463. package/node_modules/@contrast/core/lib/sensitive-data-masking/protect-listener.js +0 -111
  464. package/node_modules/@contrast/distringuish/prebuilds/linux-arm64/@contrast+distringuish.abi93.armv8.node +0 -0
  465. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi93.glibc.node +0 -0
  466. package/node_modules/@contrast/distringuish/prebuilds/linux-x64/@contrast+distringuish.abi93.musl.node +0 -0
  467. package/node_modules/@contrast/distringuish/prebuilds/win32-x64/@contrast+distringuish.abi93.node +0 -0
  468. package/node_modules/@contrast/fn-inspect/prebuilds/linux-arm64/@contrast+fn-inspect.abi93.armv8.node +0 -0
  469. package/node_modules/@contrast/fn-inspect/prebuilds/linux-x64/@contrast+fn-inspect.abi93.glibc.node +0 -0
  470. package/node_modules/@contrast/fn-inspect/prebuilds/win32-x64/@contrast+fn-inspect.abi93.node +0 -0
  471. package/node_modules/@contrast/perf/lib/index.test.js +0 -547
  472. package/node_modules/@contrast/perf/lib/tsconfig.json +0 -31
  473. package/node_modules/@contrast/protect/lib/input-tracing/install/spdy.js +0 -63
  474. package/node_modules/@contrast/reporter/node_modules/sonic-boom/.taprc.yaml +0 -11
  475. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/destroy.test.js +0 -49
  476. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/end.test.js +0 -98
  477. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/flush-sync.test.js +0 -140
  478. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/flush.test.js +0 -419
  479. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/fsync.test.js +0 -63
  480. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/helper.js +0 -42
  481. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/minlength.test.js +0 -35
  482. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/mode.test.js +0 -116
  483. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/reopen.test.js +0 -239
  484. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/retry.test.js +0 -414
  485. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/sync.test.js +0 -261
  486. package/node_modules/@contrast/reporter/node_modules/sonic-boom/test/write.test.js +0 -465
  487. package/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  488. package/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  489. package/node_modules/node-addon-api/tools/eslint-format.js +0 -79
@@ -359,6 +359,7 @@ declare module "module" {
359
359
  interface ImportAttributes extends NodeJS.Dict<string> {
360
360
  type?: string | undefined;
361
361
  }
362
+ type ImportPhase = "source" | "evaluation";
362
363
  type ModuleFormat =
363
364
  | "addon"
364
365
  | "builtin"
@@ -685,6 +686,30 @@ declare module "module" {
685
686
  * @returns The absolute URL string that the specifier would resolve to.
686
687
  */
687
688
  resolve(specifier: string, parent?: string | URL): string;
689
+ /**
690
+ * `true` when the current module is the entry point of the current process; `false` otherwise.
691
+ *
692
+ * Equivalent to `require.main === module` in CommonJS.
693
+ *
694
+ * Analogous to Python's `__name__ == "__main__"`.
695
+ *
696
+ * ```js
697
+ * export function foo() {
698
+ * return 'Hello, world';
699
+ * }
700
+ *
701
+ * function main() {
702
+ * const message = foo();
703
+ * console.log(message);
704
+ * }
705
+ *
706
+ * if (import.meta.main) main();
707
+ * // `foo` can be imported from another module without possible side-effects from `main`
708
+ * ```
709
+ * @since v24.2.0
710
+ * @experimental
711
+ */
712
+ main: boolean;
688
713
  }
689
714
  namespace NodeJS {
690
715
  interface Module {
@@ -805,6 +805,27 @@ declare module "net" {
805
805
  * @param value Any JS value
806
806
  */
807
807
  static isBlockList(value: unknown): value is BlockList;
808
+ /**
809
+ * ```js
810
+ * const blockList = new net.BlockList();
811
+ * const data = [
812
+ * 'Subnet: IPv4 192.168.1.0/24',
813
+ * 'Address: IPv4 10.0.0.5',
814
+ * 'Range: IPv4 192.168.2.1-192.168.2.10',
815
+ * 'Range: IPv4 10.0.0.1-10.0.0.10',
816
+ * ];
817
+ * blockList.fromJSON(data);
818
+ * blockList.fromJSON(JSON.stringify(data));
819
+ * ```
820
+ * @since v24.5.0
821
+ * @experimental
822
+ */
823
+ fromJSON(data: string | readonly string[]): void;
824
+ /**
825
+ * @since v24.5.0
826
+ * @experimental
827
+ */
828
+ toJSON(): readonly string[];
808
829
  }
809
830
  interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
810
831
  timeout?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.1.0",
3
+ "version": "24.5.2",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -129,11 +129,6 @@
129
129
  "main": "",
130
130
  "types": "index.d.ts",
131
131
  "typesVersions": {
132
- "<=5.1": {
133
- "*": [
134
- "ts5.1/*"
135
- ]
136
- },
137
132
  "<=5.6": {
138
133
  "*": [
139
134
  "ts5.6/*"
@@ -152,9 +147,9 @@
152
147
  },
153
148
  "scripts": {},
154
149
  "dependencies": {
155
- "undici-types": "~7.8.0"
150
+ "undici-types": "~7.12.0"
156
151
  },
157
152
  "peerDependencies": {},
158
- "typesPublisherContentHash": "83cb68186fcf703a4b7951de645e523dc4495aa83f0ef95d9b64cb5032c5b1d6",
159
- "typeScriptVersion": "5.1"
153
+ "typesPublisherContentHash": "5df6870a3de1de1f3716802276fe0c64c2b3a2903d725578b50f533f42cfea46",
154
+ "typeScriptVersion": "5.2"
160
155
  }
@@ -813,6 +813,20 @@ declare module "perf_hooks" {
813
813
  * @since v11.10.0
814
814
  */
815
815
  disable(): boolean;
816
+ /**
817
+ * Disables the update interval timer when the histogram is disposed.
818
+ *
819
+ * ```js
820
+ * const { monitorEventLoopDelay } = require('node:perf_hooks');
821
+ * {
822
+ * using hist = monitorEventLoopDelay({ resolution: 20 });
823
+ * hist.enable();
824
+ * // The histogram will be disabled when the block is exited.
825
+ * }
826
+ * ```
827
+ * @since v24.2.0
828
+ */
829
+ [Symbol.dispose](): void;
816
830
  }
817
831
  interface RecordableHistogram extends Histogram {
818
832
  /**
@@ -123,6 +123,12 @@ declare module "repl" {
123
123
  */
124
124
  action: REPLCommandAction;
125
125
  }
126
+ interface REPLServerSetupHistoryOptions {
127
+ filePath?: string | undefined;
128
+ size?: number | undefined;
129
+ removeHistoryDuplicates?: boolean | undefined;
130
+ onHistoryFileLoaded?: ((err: Error | null, repl: REPLServer) => void) | undefined;
131
+ }
126
132
  /**
127
133
  * Instances of `repl.REPLServer` are created using the {@link start} method
128
134
  * or directly using the JavaScript `new` keyword.
@@ -316,7 +322,11 @@ declare module "repl" {
316
322
  * @param historyPath the path to the history file
317
323
  * @param callback called when history writes are ready or upon error
318
324
  */
319
- setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void;
325
+ setupHistory(historyPath: string, callback: (err: Error | null, repl: this) => void): void;
326
+ setupHistory(
327
+ historyConfig?: REPLServerSetupHistoryOptions,
328
+ callback?: (err: Error | null, repl: this) => void,
329
+ ): void;
320
330
  /**
321
331
  * events.EventEmitter
322
332
  * 1. close - inherited from `readline.Interface`
@@ -97,6 +97,33 @@ declare module "node:sqlite" {
97
97
  * @default 0
98
98
  */
99
99
  timeout?: number | undefined;
100
+ /**
101
+ * If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
102
+ * integer fields are read as JavaScript numbers.
103
+ * @since v24.4.0
104
+ * @default false
105
+ */
106
+ readBigInts?: boolean | undefined;
107
+ /**
108
+ * If `true`, query results are returned as arrays instead of objects.
109
+ * @since v24.4.0
110
+ * @default false
111
+ */
112
+ returnArrays?: boolean | undefined;
113
+ /**
114
+ * If `true`, allows binding named parameters without the prefix
115
+ * character (e.g., `foo` instead of `:foo`).
116
+ * @since v24.4.40
117
+ * @default true
118
+ */
119
+ allowBareNamedParameters?: boolean | undefined;
120
+ /**
121
+ * If `true`, unknown named parameters are ignored when binding.
122
+ * If `false`, an exception is thrown for unknown named parameters.
123
+ * @since v24.4.40
124
+ * @default false
125
+ */
126
+ allowUnknownNamedParameters?: boolean | undefined;
100
127
  }
101
128
  interface CreateSessionOptions {
102
129
  /**
@@ -369,7 +396,6 @@ declare module "node:sqlite" {
369
396
  * Closes the database connection. If the database connection is already closed
370
397
  * then this is a no-op.
371
398
  * @since v22.15.0
372
- * @experimental
373
399
  */
374
400
  [Symbol.dispose](): void;
375
401
  }
@@ -567,6 +593,13 @@ declare module "node:sqlite" {
567
593
  * @param enabled Enables or disables support for unknown named parameters.
568
594
  */
569
595
  setAllowUnknownNamedParameters(enabled: boolean): void;
596
+ /**
597
+ * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
598
+ * of objects.
599
+ * @since v24.0.0
600
+ * @param enabled Enables or disables the return of query results as arrays.
601
+ */
602
+ setReturnArrays(enabled: boolean): void;
570
603
  /**
571
604
  * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
572
605
  * numbers by default. However, SQLite `INTEGER`s can store values larger than
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
6
6
  : import("stream/web").CountQueuingStrategy;
7
7
  type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
8
8
  : import("stream/web").DecompressionStream;
9
+ type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
10
+ : import("stream/web").QueuingStrategy<T>;
9
11
  type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
10
12
  : import("stream/web").ReadableByteStreamController;
11
13
  type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
@@ -487,6 +489,8 @@ declare module "stream/web" {
487
489
  }
488
490
  : typeof import("stream/web").DecompressionStream;
489
491
 
492
+ interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
493
+
490
494
  interface ReadableByteStreamController extends _ReadableByteStreamController {}
491
495
  /**
492
496
  * `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
@@ -615,6 +615,17 @@ declare module "stream" {
615
615
  * @param error Error which will be passed as payload in `'error'` event
616
616
  */
617
617
  destroy(error?: Error): this;
618
+ /**
619
+ * @returns `AsyncIterator` to fully consume the stream.
620
+ * @since v10.0.0
621
+ */
622
+ [Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
623
+ /**
624
+ * Calls `readable.destroy()` with an `AbortError` and returns
625
+ * a promise that fulfills when the stream is finished.
626
+ * @since v20.4.0
627
+ */
628
+ [Symbol.asyncDispose](): Promise<void>;
618
629
  /**
619
630
  * Event emitter
620
631
  * The defined events on documents including:
@@ -682,12 +693,6 @@ declare module "stream" {
682
693
  removeListener(event: "readable", listener: () => void): this;
683
694
  removeListener(event: "resume", listener: () => void): this;
684
695
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
685
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
686
- /**
687
- * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
688
- * @since v20.4.0
689
- */
690
- [Symbol.asyncDispose](): Promise<void>;
691
696
  }
692
697
  interface WritableOptions<T extends Writable = Writable> extends StreamOptions<T> {
693
698
  decodeStrings?: boolean | undefined;
@@ -957,6 +962,12 @@ declare module "stream" {
957
962
  * @param error Optional, an error to emit with `'error'` event.
958
963
  */
959
964
  destroy(error?: Error): this;
965
+ /**
966
+ * Calls `writable.destroy()` with an `AbortError` and returns
967
+ * a promise that fulfills when the stream is finished.
968
+ * @since v22.4.0, v20.16.0
969
+ */
970
+ [Symbol.asyncDispose](): Promise<void>;
960
971
  /**
961
972
  * Event emitter
962
973
  * The defined events on documents including:
@@ -410,6 +410,7 @@ declare module "node:test" {
410
410
  addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
411
411
  addListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
412
412
  addListener(event: "test:watch:drained", listener: () => void): this;
413
+ addListener(event: "test:watch:restarted", listener: () => void): this;
413
414
  addListener(event: string, listener: (...args: any[]) => void): this;
414
415
  emit(event: "test:coverage", data: EventData.TestCoverage): boolean;
415
416
  emit(event: "test:complete", data: EventData.TestComplete): boolean;
@@ -424,6 +425,7 @@ declare module "node:test" {
424
425
  emit(event: "test:stdout", data: EventData.TestStdout): boolean;
425
426
  emit(event: "test:summary", data: EventData.TestSummary): boolean;
426
427
  emit(event: "test:watch:drained"): boolean;
428
+ emit(event: "test:watch:restarted"): boolean;
427
429
  emit(event: string | symbol, ...args: any[]): boolean;
428
430
  on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
429
431
  on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
@@ -438,6 +440,7 @@ declare module "node:test" {
438
440
  on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
439
441
  on(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
440
442
  on(event: "test:watch:drained", listener: () => void): this;
443
+ on(event: "test:watch:restarted", listener: () => void): this;
441
444
  on(event: string, listener: (...args: any[]) => void): this;
442
445
  once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
443
446
  once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
@@ -452,6 +455,7 @@ declare module "node:test" {
452
455
  once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
453
456
  once(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
454
457
  once(event: "test:watch:drained", listener: () => void): this;
458
+ once(event: "test:watch:restarted", listener: () => void): this;
455
459
  once(event: string, listener: (...args: any[]) => void): this;
456
460
  prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
457
461
  prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
@@ -466,6 +470,7 @@ declare module "node:test" {
466
470
  prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
467
471
  prependListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
468
472
  prependListener(event: "test:watch:drained", listener: () => void): this;
473
+ prependListener(event: "test:watch:restarted", listener: () => void): this;
469
474
  prependListener(event: string, listener: (...args: any[]) => void): this;
470
475
  prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
471
476
  prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
@@ -480,6 +485,7 @@ declare module "node:test" {
480
485
  prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
481
486
  prependOnceListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
482
487
  prependOnceListener(event: "test:watch:drained", listener: () => void): this;
488
+ prependOnceListener(event: "test:watch:restarted", listener: () => void): this;
483
489
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
484
490
  }
485
491
  namespace EventData {
@@ -510,6 +516,14 @@ declare module "node:test" {
510
516
  * The nesting level of the test.
511
517
  */
512
518
  nesting: number;
519
+ /**
520
+ * The severity level of the diagnostic message.
521
+ * Possible values are:
522
+ * * `'info'`: Informational messages.
523
+ * * `'warn'`: Warnings.
524
+ * * `'error'`: Errors.
525
+ */
526
+ level: "info" | "warn" | "error";
513
527
  }
514
528
  interface TestCoverage {
515
529
  /**
@@ -1693,6 +1707,46 @@ declare module "node:test" {
1693
1707
  * @param options Optional configuration options for the mock module.
1694
1708
  */
1695
1709
  module(specifier: string, options?: MockModuleOptions): MockModuleContext;
1710
+ /**
1711
+ * Creates a mock for a property value on an object. This allows you to track and control access to a specific property,
1712
+ * including how many times it is read (getter) or written (setter), and to restore the original value after mocking.
1713
+ *
1714
+ * ```js
1715
+ * test('mocks a property value', (t) => {
1716
+ * const obj = { foo: 42 };
1717
+ * const prop = t.mock.property(obj, 'foo', 100);
1718
+ *
1719
+ * assert.strictEqual(obj.foo, 100);
1720
+ * assert.strictEqual(prop.mock.accessCount(), 1);
1721
+ * assert.strictEqual(prop.mock.accesses[0].type, 'get');
1722
+ * assert.strictEqual(prop.mock.accesses[0].value, 100);
1723
+ *
1724
+ * obj.foo = 200;
1725
+ * assert.strictEqual(prop.mock.accessCount(), 2);
1726
+ * assert.strictEqual(prop.mock.accesses[1].type, 'set');
1727
+ * assert.strictEqual(prop.mock.accesses[1].value, 200);
1728
+ *
1729
+ * prop.mock.restore();
1730
+ * assert.strictEqual(obj.foo, 42);
1731
+ * });
1732
+ * ```
1733
+ * @since v24.3.0
1734
+ * @param object The object whose value is being mocked.
1735
+ * @param propertyName The identifier of the property on `object` to mock.
1736
+ * @param value An optional value used as the mock value
1737
+ * for `object[propertyName]`. **Default:** The original property value.
1738
+ * @returns A proxy to the mocked object. The mocked object contains a
1739
+ * special `mock` property, which is an instance of [`MockPropertyContext`][], and
1740
+ * can be used for inspecting and changing the behavior of the mocked property.
1741
+ */
1742
+ property<
1743
+ MockedObject extends object,
1744
+ PropertyName extends keyof MockedObject,
1745
+ >(
1746
+ object: MockedObject,
1747
+ property: PropertyName,
1748
+ value?: MockedObject[PropertyName],
1749
+ ): MockedObject & { mock: MockPropertyContext<MockedObject[PropertyName]> };
1696
1750
  /**
1697
1751
  * This function restores the default behavior of all mocks that were previously
1698
1752
  * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
@@ -1862,6 +1916,70 @@ declare module "node:test" {
1862
1916
  */
1863
1917
  restore(): void;
1864
1918
  }
1919
+ /**
1920
+ * @since v24.3.0
1921
+ */
1922
+ class MockPropertyContext<PropertyType = any> {
1923
+ /**
1924
+ * A getter that returns a copy of the internal array used to track accesses (get/set) to
1925
+ * the mocked property. Each entry in the array is an object with the following properties:
1926
+ */
1927
+ readonly accesses: Array<{
1928
+ type: "get" | "set";
1929
+ value: PropertyType;
1930
+ stack: Error;
1931
+ }>;
1932
+ /**
1933
+ * This function returns the number of times that the property was accessed.
1934
+ * This function is more efficient than checking `ctx.accesses.length` because
1935
+ * `ctx.accesses` is a getter that creates a copy of the internal access tracking array.
1936
+ * @returns The number of times that the property was accessed (read or written).
1937
+ */
1938
+ accessCount(): number;
1939
+ /**
1940
+ * This function is used to change the value returned by the mocked property getter.
1941
+ * @param value The new value to be set as the mocked property value.
1942
+ */
1943
+ mockImplementation(value: PropertyType): void;
1944
+ /**
1945
+ * This function is used to change the behavior of an existing mock for a single
1946
+ * invocation. Once invocation `onAccess` has occurred, the mock will revert to
1947
+ * whatever behavior it would have used had `mockImplementationOnce()` not been
1948
+ * called.
1949
+ *
1950
+ * The following example creates a mock function using `t.mock.property()`, calls the
1951
+ * mock property, changes the mock implementation to a different value for the
1952
+ * next invocation, and then resumes its previous behavior.
1953
+ *
1954
+ * ```js
1955
+ * test('changes a mock behavior once', (t) => {
1956
+ * const obj = { foo: 1 };
1957
+ *
1958
+ * const prop = t.mock.property(obj, 'foo', 5);
1959
+ *
1960
+ * assert.strictEqual(obj.foo, 5);
1961
+ * prop.mock.mockImplementationOnce(25);
1962
+ * assert.strictEqual(obj.foo, 25);
1963
+ * assert.strictEqual(obj.foo, 5);
1964
+ * });
1965
+ * ```
1966
+ * @param value The value to be used as the mock's
1967
+ * implementation for the invocation number specified by `onAccess`.
1968
+ * @param onAccess The invocation number that will use `value`. If
1969
+ * the specified invocation has already occurred then an exception is thrown.
1970
+ * **Default:** The number of the next invocation.
1971
+ */
1972
+ mockImplementationOnce(value: PropertyType, onAccess?: number): void;
1973
+ /**
1974
+ * Resets the access history of the mocked property.
1975
+ */
1976
+ resetAccesses(): void;
1977
+ /**
1978
+ * Resets the implementation of the mock property to its original behavior. The
1979
+ * mock can still be used after calling this function.
1980
+ */
1981
+ restore(): void;
1982
+ }
1865
1983
  interface MockTimersOptions {
1866
1984
  apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">;
1867
1985
  now?: number | Date | undefined;
@@ -2168,7 +2286,8 @@ declare module "node:test/reporters" {
2168
2286
  | { type: "test:stderr"; data: EventData.TestStderr }
2169
2287
  | { type: "test:stdout"; data: EventData.TestStdout }
2170
2288
  | { type: "test:summary"; data: EventData.TestSummary }
2171
- | { type: "test:watch:drained"; data: undefined };
2289
+ | { type: "test:watch:drained"; data: undefined }
2290
+ | { type: "test:watch:restarted"; data: undefined };
2172
2291
  type TestEventGenerator = AsyncGenerator<TestEvent, void>;
2173
2292
 
2174
2293
  interface ReporterConstructorWrapper<T extends new(...args: any[]) => Transform> {
@@ -60,7 +60,6 @@ declare module "timers" {
60
60
  /**
61
61
  * Cancels the immediate. This is similar to calling `clearImmediate()`.
62
62
  * @since v20.5.0, v18.18.0
63
- * @experimental
64
63
  */
65
64
  [Symbol.dispose](): void;
66
65
  _onImmediate(...args: any[]): void;
@@ -141,7 +140,6 @@ declare module "timers" {
141
140
  /**
142
141
  * Cancels the timeout.
143
142
  * @since v20.5.0, v18.18.0
144
- * @experimental
145
143
  */
146
144
  [Symbol.dispose](): void;
147
145
  _onTimeout(...args: any[]): void;
@@ -1162,6 +1162,38 @@ declare module "tls" {
1162
1162
  * @since v0.10.2
1163
1163
  */
1164
1164
  function getCiphers(): string[];
1165
+ /**
1166
+ * Sets the default CA certificates used by Node.js TLS clients. If the provided
1167
+ * certificates are parsed successfully, they will become the default CA
1168
+ * certificate list returned by {@link getCACertificates} and used
1169
+ * by subsequent TLS connections that don't specify their own CA certificates.
1170
+ * The certificates will be deduplicated before being set as the default.
1171
+ *
1172
+ * This function only affects the current Node.js thread. Previous
1173
+ * sessions cached by the HTTPS agent won't be affected by this change, so
1174
+ * this method should be called before any unwanted cachable TLS connections are
1175
+ * made.
1176
+ *
1177
+ * To use system CA certificates as the default:
1178
+ *
1179
+ * ```js
1180
+ * import tls from 'node:tls';
1181
+ * tls.setDefaultCACertificates(tls.getCACertificates('system'));
1182
+ * ```
1183
+ *
1184
+ * This function completely replaces the default CA certificate list. To add additional
1185
+ * certificates to the existing defaults, get the current certificates and append to them:
1186
+ *
1187
+ * ```js
1188
+ * import tls from 'node:tls';
1189
+ * const currentCerts = tls.getCACertificates('default');
1190
+ * const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
1191
+ * tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
1192
+ * ```
1193
+ * @since v24.5.0
1194
+ * @param certs An array of CA certificates in PEM format.
1195
+ */
1196
+ function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
1165
1197
  /**
1166
1198
  * The default curve name to use for ECDH key agreement in a tls server.
1167
1199
  * The default value is `'auto'`. See `{@link createSecureContext()}` for further
@@ -40,6 +40,12 @@
40
40
 
41
41
  // Definitions for Node.js modules that are not specific to any version of TypeScript:
42
42
  /// <reference path="../globals.d.ts" />
43
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
44
+ /// <reference path="../web-globals/domexception.d.ts" />
45
+ /// <reference path="../web-globals/events.d.ts" />
46
+ /// <reference path="../web-globals/fetch.d.ts" />
47
+ /// <reference path="../web-globals/navigator.d.ts" />
48
+ /// <reference path="../web-globals/storage.d.ts" />
43
49
  /// <reference path="../assert.d.ts" />
44
50
  /// <reference path="../assert/strict.d.ts" />
45
51
  /// <reference path="../async_hooks.d.ts" />
@@ -53,9 +59,7 @@
53
59
  /// <reference path="../diagnostics_channel.d.ts" />
54
60
  /// <reference path="../dns.d.ts" />
55
61
  /// <reference path="../dns/promises.d.ts" />
56
- /// <reference path="../dns/promises.d.ts" />
57
62
  /// <reference path="../domain.d.ts" />
58
- /// <reference path="../dom-events.d.ts" />
59
63
  /// <reference path="../events.d.ts" />
60
64
  /// <reference path="../fs.d.ts" />
61
65
  /// <reference path="../fs/promises.d.ts" />
@@ -63,6 +67,7 @@
63
67
  /// <reference path="../http2.d.ts" />
64
68
  /// <reference path="../https.d.ts" />
65
69
  /// <reference path="../inspector.d.ts" />
70
+ /// <reference path="../inspector.generated.d.ts" />
66
71
  /// <reference path="../module.d.ts" />
67
72
  /// <reference path="../net.d.ts" />
68
73
  /// <reference path="../os.d.ts" />
@@ -40,6 +40,12 @@
40
40
 
41
41
  // Definitions for Node.js modules that are not specific to any version of TypeScript:
42
42
  /// <reference path="../globals.d.ts" />
43
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
44
+ /// <reference path="../web-globals/domexception.d.ts" />
45
+ /// <reference path="../web-globals/events.d.ts" />
46
+ /// <reference path="../web-globals/fetch.d.ts" />
47
+ /// <reference path="../web-globals/navigator.d.ts" />
48
+ /// <reference path="../web-globals/storage.d.ts" />
43
49
  /// <reference path="../assert.d.ts" />
44
50
  /// <reference path="../assert/strict.d.ts" />
45
51
  /// <reference path="../async_hooks.d.ts" />
@@ -53,9 +59,7 @@
53
59
  /// <reference path="../diagnostics_channel.d.ts" />
54
60
  /// <reference path="../dns.d.ts" />
55
61
  /// <reference path="../dns/promises.d.ts" />
56
- /// <reference path="../dns/promises.d.ts" />
57
62
  /// <reference path="../domain.d.ts" />
58
- /// <reference path="../dom-events.d.ts" />
59
63
  /// <reference path="../events.d.ts" />
60
64
  /// <reference path="../fs.d.ts" />
61
65
  /// <reference path="../fs/promises.d.ts" />
@@ -63,6 +67,7 @@
63
67
  /// <reference path="../http2.d.ts" />
64
68
  /// <reference path="../https.d.ts" />
65
69
  /// <reference path="../inspector.d.ts" />
70
+ /// <reference path="../inspector.generated.d.ts" />
66
71
  /// <reference path="../module.d.ts" />
67
72
  /// <reference path="../net.d.ts" />
68
73
  /// <reference path="../os.d.ts" />
@@ -315,6 +315,17 @@ declare module "url" {
315
315
  * @return The fully-resolved platform-specific Node.js file path.
316
316
  */
317
317
  function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
318
+ /**
319
+ * Like `url.fileURLToPath(...)` except that instead of returning a string
320
+ * representation of the path, a `Buffer` is returned. This conversion is
321
+ * helpful when the input URL contains percent-encoded segments that are
322
+ * not valid UTF-8 / Unicode sequences.
323
+ * @since v24.3.0
324
+ * @param url The file URL string or URL object to convert to a path.
325
+ * @returns The fully-resolved platform-specific Node.js file path
326
+ * as a `Buffer`.
327
+ */
328
+ function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): Buffer;
318
329
  /**
319
330
  * This function ensures that `path` is resolved absolutely, and that the URL
320
331
  * control characters are correctly encoded when converting into a File URL.
@@ -444,12 +455,15 @@ declare module "url" {
444
455
  */
445
456
  static canParse(input: string, base?: string): boolean;
446
457
  /**
447
- * Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs.
448
- * Returns `null` if `input` is not a valid.
449
- * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
450
- * `converted to a string` first.
451
- * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
458
+ * Parses a string as a URL. If `base` is provided, it will be used as the base
459
+ * URL for the purpose of resolving non-absolute `input` URLs. Returns `null`
460
+ * if the parameters can't be resolved to a valid URL.
452
461
  * @since v22.1.0
462
+ * @param input The absolute or relative input URL to parse. If `input`
463
+ * is relative, then `base` is required. If `input` is absolute, the `base`
464
+ * is ignored. If `input` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
465
+ * @param base The base URL to resolve against if the `input` is not
466
+ * absolute. If `base` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
453
467
  */
454
468
  static parse(input: string, base?: string): URL | null;
455
469
  constructor(input: string | { toString: () => string }, base?: string | URL);
@@ -874,7 +888,7 @@ declare module "url" {
874
888
  * Returns an ES6 `Iterator` over each of the name-value pairs in the query.
875
889
  * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
876
890
  *
877
- * Alias for `urlSearchParams[@@iterator]()`.
891
+ * Alias for `urlSearchParams[Symbol.iterator]()`.
878
892
  */
879
893
  entries(): URLSearchParamsIterator<[string, string]>;
880
894
  /**