@bobfrankston/mailx 1.0.30 → 1.0.32

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 (313) hide show
  1. package/bin/mailx.js +20 -5
  2. package/client/styles/layout.css +12 -7
  3. package/launcher/builder/postinstall.js +7 -7
  4. package/package.json +4 -4
  5. package/packages/mailx-send/mailsend/node_modules/.package-lock.json +0 -49
  6. package/packages/mailx-send/mailsend/node_modules/@types/node/LICENSE +0 -21
  7. package/packages/mailx-send/mailsend/node_modules/@types/node/README.md +0 -15
  8. package/packages/mailx-send/mailsend/node_modules/@types/node/assert/strict.d.ts +0 -111
  9. package/packages/mailx-send/mailsend/node_modules/@types/node/assert.d.ts +0 -1078
  10. package/packages/mailx-send/mailsend/node_modules/@types/node/async_hooks.d.ts +0 -603
  11. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  12. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.d.ts +0 -1934
  13. package/packages/mailx-send/mailsend/node_modules/@types/node/child_process.d.ts +0 -1476
  14. package/packages/mailx-send/mailsend/node_modules/@types/node/cluster.d.ts +0 -578
  15. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  16. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/index.d.ts +0 -9
  17. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  18. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  19. package/packages/mailx-send/mailsend/node_modules/@types/node/console.d.ts +0 -452
  20. package/packages/mailx-send/mailsend/node_modules/@types/node/constants.d.ts +0 -21
  21. package/packages/mailx-send/mailsend/node_modules/@types/node/crypto.d.ts +0 -4545
  22. package/packages/mailx-send/mailsend/node_modules/@types/node/dgram.d.ts +0 -600
  23. package/packages/mailx-send/mailsend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  24. package/packages/mailx-send/mailsend/node_modules/@types/node/dns/promises.d.ts +0 -503
  25. package/packages/mailx-send/mailsend/node_modules/@types/node/dns.d.ts +0 -923
  26. package/packages/mailx-send/mailsend/node_modules/@types/node/domain.d.ts +0 -170
  27. package/packages/mailx-send/mailsend/node_modules/@types/node/events.d.ts +0 -976
  28. package/packages/mailx-send/mailsend/node_modules/@types/node/fs/promises.d.ts +0 -1295
  29. package/packages/mailx-send/mailsend/node_modules/@types/node/fs.d.ts +0 -4461
  30. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.d.ts +0 -172
  31. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  32. package/packages/mailx-send/mailsend/node_modules/@types/node/http.d.ts +0 -2089
  33. package/packages/mailx-send/mailsend/node_modules/@types/node/http2.d.ts +0 -2644
  34. package/packages/mailx-send/mailsend/node_modules/@types/node/https.d.ts +0 -579
  35. package/packages/mailx-send/mailsend/node_modules/@types/node/index.d.ts +0 -97
  36. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.d.ts +0 -253
  37. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  38. package/packages/mailx-send/mailsend/node_modules/@types/node/module.d.ts +0 -891
  39. package/packages/mailx-send/mailsend/node_modules/@types/node/net.d.ts +0 -1057
  40. package/packages/mailx-send/mailsend/node_modules/@types/node/os.d.ts +0 -506
  41. package/packages/mailx-send/mailsend/node_modules/@types/node/package.json +0 -145
  42. package/packages/mailx-send/mailsend/node_modules/@types/node/path.d.ts +0 -200
  43. package/packages/mailx-send/mailsend/node_modules/@types/node/perf_hooks.d.ts +0 -968
  44. package/packages/mailx-send/mailsend/node_modules/@types/node/process.d.ts +0 -2084
  45. package/packages/mailx-send/mailsend/node_modules/@types/node/punycode.d.ts +0 -117
  46. package/packages/mailx-send/mailsend/node_modules/@types/node/querystring.d.ts +0 -152
  47. package/packages/mailx-send/mailsend/node_modules/@types/node/readline/promises.d.ts +0 -161
  48. package/packages/mailx-send/mailsend/node_modules/@types/node/readline.d.ts +0 -594
  49. package/packages/mailx-send/mailsend/node_modules/@types/node/repl.d.ts +0 -428
  50. package/packages/mailx-send/mailsend/node_modules/@types/node/sea.d.ts +0 -153
  51. package/packages/mailx-send/mailsend/node_modules/@types/node/sqlite.d.ts +0 -721
  52. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/consumers.d.ts +0 -38
  53. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/promises.d.ts +0 -90
  54. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/web.d.ts +0 -622
  55. package/packages/mailx-send/mailsend/node_modules/@types/node/stream.d.ts +0 -1664
  56. package/packages/mailx-send/mailsend/node_modules/@types/node/string_decoder.d.ts +0 -67
  57. package/packages/mailx-send/mailsend/node_modules/@types/node/test.d.ts +0 -2163
  58. package/packages/mailx-send/mailsend/node_modules/@types/node/timers/promises.d.ts +0 -108
  59. package/packages/mailx-send/mailsend/node_modules/@types/node/timers.d.ts +0 -287
  60. package/packages/mailx-send/mailsend/node_modules/@types/node/tls.d.ts +0 -1319
  61. package/packages/mailx-send/mailsend/node_modules/@types/node/trace_events.d.ts +0 -197
  62. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  63. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  64. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  65. package/packages/mailx-send/mailsend/node_modules/@types/node/tty.d.ts +0 -208
  66. package/packages/mailx-send/mailsend/node_modules/@types/node/url.d.ts +0 -984
  67. package/packages/mailx-send/mailsend/node_modules/@types/node/util.d.ts +0 -2606
  68. package/packages/mailx-send/mailsend/node_modules/@types/node/v8.d.ts +0 -920
  69. package/packages/mailx-send/mailsend/node_modules/@types/node/vm.d.ts +0 -1000
  70. package/packages/mailx-send/mailsend/node_modules/@types/node/wasi.d.ts +0 -181
  71. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  72. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  73. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/events.d.ts +0 -97
  74. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  75. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  76. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  77. package/packages/mailx-send/mailsend/node_modules/@types/node/worker_threads.d.ts +0 -784
  78. package/packages/mailx-send/mailsend/node_modules/@types/node/zlib.d.ts +0 -747
  79. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/LICENSE +0 -21
  80. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/README.md +0 -15
  81. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/index.d.ts +0 -82
  82. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +0 -31
  83. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/base64/index.d.ts +0 -22
  84. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/index.d.ts +0 -45
  85. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +0 -75
  86. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +0 -75
  87. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +0 -21
  88. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +0 -54
  89. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/index.d.ts +0 -38
  90. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +0 -53
  91. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +0 -25
  92. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/index.d.ts +0 -283
  93. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +0 -32
  94. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +0 -87
  95. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +0 -2
  96. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +0 -224
  97. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +0 -9
  98. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/qp/index.d.ts +0 -23
  99. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +0 -53
  100. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +0 -7
  101. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +0 -7
  102. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +0 -146
  103. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/shared/index.d.ts +0 -58
  104. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +0 -11
  105. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +0 -16
  106. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +0 -270
  107. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +0 -93
  108. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +0 -66
  109. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +0 -115
  110. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +0 -59
  111. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/well-known/index.d.ts +0 -6
  112. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +0 -114
  113. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/package.json +0 -38
  114. package/packages/mailx-send/mailsend/node_modules/nodemailer/.ncurc.js +0 -9
  115. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierignore +0 -8
  116. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc +0 -12
  117. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc.js +0 -10
  118. package/packages/mailx-send/mailsend/node_modules/nodemailer/.release-please-config.json +0 -9
  119. package/packages/mailx-send/mailsend/node_modules/nodemailer/LICENSE +0 -16
  120. package/packages/mailx-send/mailsend/node_modules/nodemailer/README.md +0 -86
  121. package/packages/mailx-send/mailsend/node_modules/nodemailer/SECURITY.txt +0 -22
  122. package/packages/mailx-send/mailsend/node_modules/nodemailer/eslint.config.js +0 -88
  123. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/addressparser/index.js +0 -383
  124. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/base64/index.js +0 -139
  125. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/index.js +0 -253
  126. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/message-parser.js +0 -155
  127. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/relaxed-body.js +0 -154
  128. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/sign.js +0 -117
  129. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/cookies.js +0 -281
  130. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/index.js +0 -280
  131. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/json-transport/index.js +0 -82
  132. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mail-composer/index.js +0 -629
  133. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/index.js +0 -441
  134. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/mail-message.js +0 -316
  135. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/index.js +0 -625
  136. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/mime-types.js +0 -2113
  137. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/index.js +0 -1316
  138. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/last-newline.js +0 -33
  139. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-unix.js +0 -43
  140. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-windows.js +0 -52
  141. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/nodemailer.js +0 -157
  142. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/punycode/index.js +0 -460
  143. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/qp/index.js +0 -227
  144. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js +0 -210
  145. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/ses-transport/index.js +0 -234
  146. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/shared/index.js +0 -754
  147. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/data-stream.js +0 -108
  148. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +0 -143
  149. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/index.js +0 -1870
  150. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/index.js +0 -652
  151. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +0 -259
  152. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-transport/index.js +0 -421
  153. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/stream-transport/index.js +0 -135
  154. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/index.js +0 -47
  155. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/services.json +0 -611
  156. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/xoauth2/index.js +0 -427
  157. package/packages/mailx-send/mailsend/node_modules/nodemailer/package.json +0 -47
  158. package/packages/mailx-send/mailsend/node_modules/undici-types/LICENSE +0 -21
  159. package/packages/mailx-send/mailsend/node_modules/undici-types/README.md +0 -6
  160. package/packages/mailx-send/mailsend/node_modules/undici-types/agent.d.ts +0 -31
  161. package/packages/mailx-send/mailsend/node_modules/undici-types/api.d.ts +0 -43
  162. package/packages/mailx-send/mailsend/node_modules/undici-types/balanced-pool.d.ts +0 -29
  163. package/packages/mailx-send/mailsend/node_modules/undici-types/cache.d.ts +0 -36
  164. package/packages/mailx-send/mailsend/node_modules/undici-types/client.d.ts +0 -108
  165. package/packages/mailx-send/mailsend/node_modules/undici-types/connector.d.ts +0 -34
  166. package/packages/mailx-send/mailsend/node_modules/undici-types/content-type.d.ts +0 -21
  167. package/packages/mailx-send/mailsend/node_modules/undici-types/cookies.d.ts +0 -28
  168. package/packages/mailx-send/mailsend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  169. package/packages/mailx-send/mailsend/node_modules/undici-types/dispatcher.d.ts +0 -256
  170. package/packages/mailx-send/mailsend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  171. package/packages/mailx-send/mailsend/node_modules/undici-types/errors.d.ts +0 -149
  172. package/packages/mailx-send/mailsend/node_modules/undici-types/eventsource.d.ts +0 -61
  173. package/packages/mailx-send/mailsend/node_modules/undici-types/fetch.d.ts +0 -209
  174. package/packages/mailx-send/mailsend/node_modules/undici-types/file.d.ts +0 -39
  175. package/packages/mailx-send/mailsend/node_modules/undici-types/filereader.d.ts +0 -54
  176. package/packages/mailx-send/mailsend/node_modules/undici-types/formdata.d.ts +0 -108
  177. package/packages/mailx-send/mailsend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  178. package/packages/mailx-send/mailsend/node_modules/undici-types/global-origin.d.ts +0 -7
  179. package/packages/mailx-send/mailsend/node_modules/undici-types/handlers.d.ts +0 -15
  180. package/packages/mailx-send/mailsend/node_modules/undici-types/header.d.ts +0 -4
  181. package/packages/mailx-send/mailsend/node_modules/undici-types/index.d.ts +0 -71
  182. package/packages/mailx-send/mailsend/node_modules/undici-types/interceptors.d.ts +0 -17
  183. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-agent.d.ts +0 -50
  184. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-client.d.ts +0 -25
  185. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-errors.d.ts +0 -12
  186. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  187. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-pool.d.ts +0 -25
  188. package/packages/mailx-send/mailsend/node_modules/undici-types/package.json +0 -55
  189. package/packages/mailx-send/mailsend/node_modules/undici-types/patch.d.ts +0 -33
  190. package/packages/mailx-send/mailsend/node_modules/undici-types/pool-stats.d.ts +0 -19
  191. package/packages/mailx-send/mailsend/node_modules/undici-types/pool.d.ts +0 -39
  192. package/packages/mailx-send/mailsend/node_modules/undici-types/proxy-agent.d.ts +0 -28
  193. package/packages/mailx-send/mailsend/node_modules/undici-types/readable.d.ts +0 -65
  194. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-agent.d.ts +0 -8
  195. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-handler.d.ts +0 -116
  196. package/packages/mailx-send/mailsend/node_modules/undici-types/util.d.ts +0 -18
  197. package/packages/mailx-send/mailsend/node_modules/undici-types/webidl.d.ts +0 -228
  198. package/packages/mailx-send/mailsend/node_modules/undici-types/websocket.d.ts +0 -150
  199. package/packages/mailx-send/node_modules/.package-lock.json +0 -49
  200. package/packages/mailx-send/node_modules/@types/node/LICENSE +0 -21
  201. package/packages/mailx-send/node_modules/@types/node/README.md +0 -15
  202. package/packages/mailx-send/node_modules/@types/node/assert/strict.d.ts +0 -111
  203. package/packages/mailx-send/node_modules/@types/node/assert.d.ts +0 -1078
  204. package/packages/mailx-send/node_modules/@types/node/async_hooks.d.ts +0 -603
  205. package/packages/mailx-send/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  206. package/packages/mailx-send/node_modules/@types/node/buffer.d.ts +0 -1934
  207. package/packages/mailx-send/node_modules/@types/node/child_process.d.ts +0 -1476
  208. package/packages/mailx-send/node_modules/@types/node/cluster.d.ts +0 -578
  209. package/packages/mailx-send/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  210. package/packages/mailx-send/node_modules/@types/node/compatibility/index.d.ts +0 -9
  211. package/packages/mailx-send/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  212. package/packages/mailx-send/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  213. package/packages/mailx-send/node_modules/@types/node/console.d.ts +0 -452
  214. package/packages/mailx-send/node_modules/@types/node/constants.d.ts +0 -21
  215. package/packages/mailx-send/node_modules/@types/node/crypto.d.ts +0 -4545
  216. package/packages/mailx-send/node_modules/@types/node/dgram.d.ts +0 -600
  217. package/packages/mailx-send/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  218. package/packages/mailx-send/node_modules/@types/node/dns/promises.d.ts +0 -503
  219. package/packages/mailx-send/node_modules/@types/node/dns.d.ts +0 -923
  220. package/packages/mailx-send/node_modules/@types/node/domain.d.ts +0 -170
  221. package/packages/mailx-send/node_modules/@types/node/events.d.ts +0 -976
  222. package/packages/mailx-send/node_modules/@types/node/fs/promises.d.ts +0 -1295
  223. package/packages/mailx-send/node_modules/@types/node/fs.d.ts +0 -4461
  224. package/packages/mailx-send/node_modules/@types/node/globals.d.ts +0 -172
  225. package/packages/mailx-send/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  226. package/packages/mailx-send/node_modules/@types/node/http.d.ts +0 -2089
  227. package/packages/mailx-send/node_modules/@types/node/http2.d.ts +0 -2644
  228. package/packages/mailx-send/node_modules/@types/node/https.d.ts +0 -579
  229. package/packages/mailx-send/node_modules/@types/node/index.d.ts +0 -97
  230. package/packages/mailx-send/node_modules/@types/node/inspector.d.ts +0 -253
  231. package/packages/mailx-send/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  232. package/packages/mailx-send/node_modules/@types/node/module.d.ts +0 -891
  233. package/packages/mailx-send/node_modules/@types/node/net.d.ts +0 -1057
  234. package/packages/mailx-send/node_modules/@types/node/os.d.ts +0 -506
  235. package/packages/mailx-send/node_modules/@types/node/package.json +0 -145
  236. package/packages/mailx-send/node_modules/@types/node/path.d.ts +0 -200
  237. package/packages/mailx-send/node_modules/@types/node/perf_hooks.d.ts +0 -968
  238. package/packages/mailx-send/node_modules/@types/node/process.d.ts +0 -2084
  239. package/packages/mailx-send/node_modules/@types/node/punycode.d.ts +0 -117
  240. package/packages/mailx-send/node_modules/@types/node/querystring.d.ts +0 -152
  241. package/packages/mailx-send/node_modules/@types/node/readline/promises.d.ts +0 -161
  242. package/packages/mailx-send/node_modules/@types/node/readline.d.ts +0 -594
  243. package/packages/mailx-send/node_modules/@types/node/repl.d.ts +0 -428
  244. package/packages/mailx-send/node_modules/@types/node/sea.d.ts +0 -153
  245. package/packages/mailx-send/node_modules/@types/node/sqlite.d.ts +0 -721
  246. package/packages/mailx-send/node_modules/@types/node/stream/consumers.d.ts +0 -38
  247. package/packages/mailx-send/node_modules/@types/node/stream/promises.d.ts +0 -90
  248. package/packages/mailx-send/node_modules/@types/node/stream/web.d.ts +0 -622
  249. package/packages/mailx-send/node_modules/@types/node/stream.d.ts +0 -1664
  250. package/packages/mailx-send/node_modules/@types/node/string_decoder.d.ts +0 -67
  251. package/packages/mailx-send/node_modules/@types/node/test.d.ts +0 -2163
  252. package/packages/mailx-send/node_modules/@types/node/timers/promises.d.ts +0 -108
  253. package/packages/mailx-send/node_modules/@types/node/timers.d.ts +0 -287
  254. package/packages/mailx-send/node_modules/@types/node/tls.d.ts +0 -1319
  255. package/packages/mailx-send/node_modules/@types/node/trace_events.d.ts +0 -197
  256. package/packages/mailx-send/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  257. package/packages/mailx-send/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  258. package/packages/mailx-send/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  259. package/packages/mailx-send/node_modules/@types/node/tty.d.ts +0 -208
  260. package/packages/mailx-send/node_modules/@types/node/url.d.ts +0 -984
  261. package/packages/mailx-send/node_modules/@types/node/util.d.ts +0 -2606
  262. package/packages/mailx-send/node_modules/@types/node/v8.d.ts +0 -920
  263. package/packages/mailx-send/node_modules/@types/node/vm.d.ts +0 -1000
  264. package/packages/mailx-send/node_modules/@types/node/wasi.d.ts +0 -181
  265. package/packages/mailx-send/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  266. package/packages/mailx-send/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  267. package/packages/mailx-send/node_modules/@types/node/web-globals/events.d.ts +0 -97
  268. package/packages/mailx-send/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  269. package/packages/mailx-send/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  270. package/packages/mailx-send/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  271. package/packages/mailx-send/node_modules/@types/node/worker_threads.d.ts +0 -784
  272. package/packages/mailx-send/node_modules/@types/node/zlib.d.ts +0 -747
  273. package/packages/mailx-send/node_modules/undici-types/LICENSE +0 -21
  274. package/packages/mailx-send/node_modules/undici-types/README.md +0 -6
  275. package/packages/mailx-send/node_modules/undici-types/agent.d.ts +0 -31
  276. package/packages/mailx-send/node_modules/undici-types/api.d.ts +0 -43
  277. package/packages/mailx-send/node_modules/undici-types/balanced-pool.d.ts +0 -29
  278. package/packages/mailx-send/node_modules/undici-types/cache.d.ts +0 -36
  279. package/packages/mailx-send/node_modules/undici-types/client.d.ts +0 -108
  280. package/packages/mailx-send/node_modules/undici-types/connector.d.ts +0 -34
  281. package/packages/mailx-send/node_modules/undici-types/content-type.d.ts +0 -21
  282. package/packages/mailx-send/node_modules/undici-types/cookies.d.ts +0 -28
  283. package/packages/mailx-send/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  284. package/packages/mailx-send/node_modules/undici-types/dispatcher.d.ts +0 -256
  285. package/packages/mailx-send/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  286. package/packages/mailx-send/node_modules/undici-types/errors.d.ts +0 -149
  287. package/packages/mailx-send/node_modules/undici-types/eventsource.d.ts +0 -61
  288. package/packages/mailx-send/node_modules/undici-types/fetch.d.ts +0 -209
  289. package/packages/mailx-send/node_modules/undici-types/file.d.ts +0 -39
  290. package/packages/mailx-send/node_modules/undici-types/filereader.d.ts +0 -54
  291. package/packages/mailx-send/node_modules/undici-types/formdata.d.ts +0 -108
  292. package/packages/mailx-send/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  293. package/packages/mailx-send/node_modules/undici-types/global-origin.d.ts +0 -7
  294. package/packages/mailx-send/node_modules/undici-types/handlers.d.ts +0 -15
  295. package/packages/mailx-send/node_modules/undici-types/header.d.ts +0 -4
  296. package/packages/mailx-send/node_modules/undici-types/index.d.ts +0 -71
  297. package/packages/mailx-send/node_modules/undici-types/interceptors.d.ts +0 -17
  298. package/packages/mailx-send/node_modules/undici-types/mock-agent.d.ts +0 -50
  299. package/packages/mailx-send/node_modules/undici-types/mock-client.d.ts +0 -25
  300. package/packages/mailx-send/node_modules/undici-types/mock-errors.d.ts +0 -12
  301. package/packages/mailx-send/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  302. package/packages/mailx-send/node_modules/undici-types/mock-pool.d.ts +0 -25
  303. package/packages/mailx-send/node_modules/undici-types/package.json +0 -55
  304. package/packages/mailx-send/node_modules/undici-types/patch.d.ts +0 -33
  305. package/packages/mailx-send/node_modules/undici-types/pool-stats.d.ts +0 -19
  306. package/packages/mailx-send/node_modules/undici-types/pool.d.ts +0 -39
  307. package/packages/mailx-send/node_modules/undici-types/proxy-agent.d.ts +0 -28
  308. package/packages/mailx-send/node_modules/undici-types/readable.d.ts +0 -65
  309. package/packages/mailx-send/node_modules/undici-types/retry-agent.d.ts +0 -8
  310. package/packages/mailx-send/node_modules/undici-types/retry-handler.d.ts +0 -116
  311. package/packages/mailx-send/node_modules/undici-types/util.d.ts +0 -18
  312. package/packages/mailx-send/node_modules/undici-types/webidl.d.ts +0 -228
  313. package/packages/mailx-send/node_modules/undici-types/websocket.d.ts +0 -150
@@ -1,984 +0,0 @@
1
- /**
2
- * The `node:url` module provides utilities for URL resolution and parsing. It can
3
- * be accessed using:
4
- *
5
- * ```js
6
- * import url from 'node:url';
7
- * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/url.js)
9
- */
10
- declare module "url" {
11
- import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
12
- import { ClientRequestArgs } from "node:http";
13
- import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
14
- // Input to `url.format`
15
- interface UrlObject {
16
- auth?: string | null | undefined;
17
- hash?: string | null | undefined;
18
- host?: string | null | undefined;
19
- hostname?: string | null | undefined;
20
- href?: string | null | undefined;
21
- pathname?: string | null | undefined;
22
- protocol?: string | null | undefined;
23
- search?: string | null | undefined;
24
- slashes?: boolean | null | undefined;
25
- port?: string | number | null | undefined;
26
- query?: string | null | ParsedUrlQueryInput | undefined;
27
- }
28
- // Output of `url.parse`
29
- interface Url {
30
- auth: string | null;
31
- hash: string | null;
32
- host: string | null;
33
- hostname: string | null;
34
- href: string;
35
- path: string | null;
36
- pathname: string | null;
37
- protocol: string | null;
38
- search: string | null;
39
- slashes: boolean | null;
40
- port: string | null;
41
- query: string | null | ParsedUrlQuery;
42
- }
43
- interface UrlWithParsedQuery extends Url {
44
- query: ParsedUrlQuery;
45
- }
46
- interface UrlWithStringQuery extends Url {
47
- query: string | null;
48
- }
49
- interface FileUrlToPathOptions {
50
- /**
51
- * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
52
- * @default undefined
53
- * @since v22.1.0
54
- */
55
- windows?: boolean | undefined;
56
- }
57
- interface PathToFileUrlOptions {
58
- /**
59
- * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
60
- * @default undefined
61
- * @since v22.1.0
62
- */
63
- windows?: boolean | undefined;
64
- }
65
- /**
66
- * The `url.parse()` method takes a URL string, parses it, and returns a URL
67
- * object.
68
- *
69
- * A `TypeError` is thrown if `urlString` is not a string.
70
- *
71
- * A `URIError` is thrown if the `auth` property is present but cannot be decoded.
72
- *
73
- * `url.parse()` uses a lenient, non-standard algorithm for parsing URL
74
- * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted
75
- * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead.
76
- * @since v0.1.25
77
- * @deprecated Use the WHATWG URL API instead.
78
- * @param urlString The URL string to parse.
79
- * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
80
- * on the returned URL object will be an unparsed, undecoded string.
81
- * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the
82
- * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
83
- */
84
- function parse(urlString: string): UrlWithStringQuery;
85
- function parse(
86
- urlString: string,
87
- parseQueryString: false | undefined,
88
- slashesDenoteHost?: boolean,
89
- ): UrlWithStringQuery;
90
- function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
91
- function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
92
- /**
93
- * The `url.format()` method returns a formatted URL string derived from `urlObject`.
94
- *
95
- * ```js
96
- * import url from 'node:url';
97
- * url.format({
98
- * protocol: 'https',
99
- * hostname: 'example.com',
100
- * pathname: '/some/path',
101
- * query: {
102
- * page: 1,
103
- * format: 'json',
104
- * },
105
- * });
106
- *
107
- * // => 'https://example.com/some/path?page=1&format=json'
108
- * ```
109
- *
110
- * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
111
- *
112
- * The formatting process operates as follows:
113
- *
114
- * * A new empty string `result` is created.
115
- * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
116
- * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
117
- * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
118
- * colon (`:`) character, the literal string `:` will be appended to `result`.
119
- * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
120
- * * `urlObject.slashes` property is true;
121
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
122
- * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
123
- * and appended to `result` followed by the literal string `@`.
124
- * * If the `urlObject.host` property is `undefined` then:
125
- * * If the `urlObject.hostname` is a string, it is appended to `result`.
126
- * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
127
- * an `Error` is thrown.
128
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
129
- * * The literal string `:` is appended to `result`, and
130
- * * The value of `urlObject.port` is coerced to a string and appended to `result`.
131
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
132
- * * If the `urlObject.pathname` property is a string that is not an empty string:
133
- * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
134
- * (`/`), then the literal string `'/'` is appended to `result`.
135
- * * The value of `urlObject.pathname` is appended to `result`.
136
- * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
137
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
138
- * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
139
- * * Otherwise, if `urlObject.search` is a string:
140
- * * If the value of `urlObject.search` _does not start_ with the ASCII question
141
- * mark (`?`) character, the literal string `?` is appended to `result`.
142
- * * The value of `urlObject.search` is appended to `result`.
143
- * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
144
- * * If the `urlObject.hash` property is a string:
145
- * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
146
- * character, the literal string `#` is appended to `result`.
147
- * * The value of `urlObject.hash` is appended to `result`.
148
- * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
149
- * string, an `Error` is thrown.
150
- * * `result` is returned.
151
- * @since v0.1.25
152
- * @legacy Use the WHATWG URL API instead.
153
- * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
154
- */
155
- function format(urlObject: URL, options?: URLFormatOptions): string;
156
- /**
157
- * The `url.format()` method returns a formatted URL string derived from `urlObject`.
158
- *
159
- * ```js
160
- * import url from 'node:url';
161
- * url.format({
162
- * protocol: 'https',
163
- * hostname: 'example.com',
164
- * pathname: '/some/path',
165
- * query: {
166
- * page: 1,
167
- * format: 'json',
168
- * },
169
- * });
170
- *
171
- * // => 'https://example.com/some/path?page=1&format=json'
172
- * ```
173
- *
174
- * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
175
- *
176
- * The formatting process operates as follows:
177
- *
178
- * * A new empty string `result` is created.
179
- * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
180
- * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
181
- * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
182
- * colon (`:`) character, the literal string `:` will be appended to `result`.
183
- * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
184
- * * `urlObject.slashes` property is true;
185
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
186
- * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
187
- * and appended to `result` followed by the literal string `@`.
188
- * * If the `urlObject.host` property is `undefined` then:
189
- * * If the `urlObject.hostname` is a string, it is appended to `result`.
190
- * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
191
- * an `Error` is thrown.
192
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
193
- * * The literal string `:` is appended to `result`, and
194
- * * The value of `urlObject.port` is coerced to a string and appended to `result`.
195
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
196
- * * If the `urlObject.pathname` property is a string that is not an empty string:
197
- * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
198
- * (`/`), then the literal string `'/'` is appended to `result`.
199
- * * The value of `urlObject.pathname` is appended to `result`.
200
- * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
201
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
202
- * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
203
- * * Otherwise, if `urlObject.search` is a string:
204
- * * If the value of `urlObject.search` _does not start_ with the ASCII question
205
- * mark (`?`) character, the literal string `?` is appended to `result`.
206
- * * The value of `urlObject.search` is appended to `result`.
207
- * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
208
- * * If the `urlObject.hash` property is a string:
209
- * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
210
- * character, the literal string `#` is appended to `result`.
211
- * * The value of `urlObject.hash` is appended to `result`.
212
- * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
213
- * string, an `Error` is thrown.
214
- * * `result` is returned.
215
- * @since v0.1.25
216
- * @legacy Use the WHATWG URL API instead.
217
- * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
218
- */
219
- function format(urlObject: UrlObject | string): string;
220
- /**
221
- * The `url.resolve()` method resolves a target URL relative to a base URL in a
222
- * manner similar to that of a web browser resolving an anchor tag.
223
- *
224
- * ```js
225
- * import url from 'node:url';
226
- * url.resolve('/one/two/three', 'four'); // '/one/two/four'
227
- * url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
228
- * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
229
- * ```
230
- *
231
- * To achieve the same result using the WHATWG URL API:
232
- *
233
- * ```js
234
- * function resolve(from, to) {
235
- * const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
236
- * if (resolvedUrl.protocol === 'resolve:') {
237
- * // `from` is a relative URL.
238
- * const { pathname, search, hash } = resolvedUrl;
239
- * return pathname + search + hash;
240
- * }
241
- * return resolvedUrl.toString();
242
- * }
243
- *
244
- * resolve('/one/two/three', 'four'); // '/one/two/four'
245
- * resolve('http://example.com/', '/one'); // 'http://example.com/one'
246
- * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
247
- * ```
248
- * @since v0.1.25
249
- * @legacy Use the WHATWG URL API instead.
250
- * @param from The base URL to use if `to` is a relative URL.
251
- * @param to The target URL to resolve.
252
- */
253
- function resolve(from: string, to: string): string;
254
- /**
255
- * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an
256
- * invalid domain, the empty string is returned.
257
- *
258
- * It performs the inverse operation to {@link domainToUnicode}.
259
- *
260
- * ```js
261
- * import url from 'node:url';
262
- *
263
- * console.log(url.domainToASCII('español.com'));
264
- * // Prints xn--espaol-zwa.com
265
- * console.log(url.domainToASCII('中文.com'));
266
- * // Prints xn--fiq228c.com
267
- * console.log(url.domainToASCII('xn--iñvalid.com'));
268
- * // Prints an empty string
269
- * ```
270
- * @since v7.4.0, v6.13.0
271
- */
272
- function domainToASCII(domain: string): string;
273
- /**
274
- * Returns the Unicode serialization of the `domain`. If `domain` is an invalid
275
- * domain, the empty string is returned.
276
- *
277
- * It performs the inverse operation to {@link domainToASCII}.
278
- *
279
- * ```js
280
- * import url from 'node:url';
281
- *
282
- * console.log(url.domainToUnicode('xn--espaol-zwa.com'));
283
- * // Prints español.com
284
- * console.log(url.domainToUnicode('xn--fiq228c.com'));
285
- * // Prints 中文.com
286
- * console.log(url.domainToUnicode('xn--iñvalid.com'));
287
- * // Prints an empty string
288
- * ```
289
- * @since v7.4.0, v6.13.0
290
- */
291
- function domainToUnicode(domain: string): string;
292
- /**
293
- * This function ensures the correct decodings of percent-encoded characters as
294
- * well as ensuring a cross-platform valid absolute path string.
295
- *
296
- * ```js
297
- * import { fileURLToPath } from 'node:url';
298
- *
299
- * const __filename = fileURLToPath(import.meta.url);
300
- *
301
- * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/
302
- * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
303
- *
304
- * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt
305
- * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
306
- *
307
- * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
308
- * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
309
- *
310
- * new URL('file:///hello world').pathname; // Incorrect: /hello%20world
311
- * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
312
- * ```
313
- * @since v10.12.0
314
- * @param url The file URL string or URL object to convert to a path.
315
- * @return The fully-resolved platform-specific Node.js file path.
316
- */
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 v22.18.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): NonSharedBuffer;
329
- /**
330
- * This function ensures that `path` is resolved absolutely, and that the URL
331
- * control characters are correctly encoded when converting into a File URL.
332
- *
333
- * ```js
334
- * import { pathToFileURL } from 'node:url';
335
- *
336
- * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
337
- * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
338
- *
339
- * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
340
- * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
341
- * ```
342
- * @since v10.12.0
343
- * @param path The path to convert to a File URL.
344
- * @return The file URL object.
345
- */
346
- function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL;
347
- /**
348
- * This utility function converts a URL object into an ordinary options object as
349
- * expected by the `http.request()` and `https.request()` APIs.
350
- *
351
- * ```js
352
- * import { urlToHttpOptions } from 'node:url';
353
- * const myURL = new URL('https://a:b@測試?abc#foo');
354
- *
355
- * console.log(urlToHttpOptions(myURL));
356
- * /*
357
- * {
358
- * protocol: 'https:',
359
- * hostname: 'xn--g6w251d',
360
- * hash: '#foo',
361
- * search: '?abc',
362
- * pathname: '/',
363
- * path: '/?abc',
364
- * href: 'https://a:b@xn--g6w251d/?abc#foo',
365
- * auth: 'a:b'
366
- * }
367
- *
368
- * ```
369
- * @since v15.7.0, v14.18.0
370
- * @param url The `WHATWG URL` object to convert to an options object.
371
- * @return Options object
372
- */
373
- function urlToHttpOptions(url: URL): ClientRequestArgs;
374
- interface URLFormatOptions {
375
- /**
376
- * `true` if the serialized URL string should include the username and password, `false` otherwise.
377
- * @default true
378
- */
379
- auth?: boolean | undefined;
380
- /**
381
- * `true` if the serialized URL string should include the fragment, `false` otherwise.
382
- * @default true
383
- */
384
- fragment?: boolean | undefined;
385
- /**
386
- * `true` if the serialized URL string should include the search query, `false` otherwise.
387
- * @default true
388
- */
389
- search?: boolean | undefined;
390
- /**
391
- * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
392
- * being Punycode encoded.
393
- * @default false
394
- */
395
- unicode?: boolean | undefined;
396
- }
397
- /**
398
- * Browser-compatible `URL` class, implemented by following the WHATWG URL
399
- * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself.
400
- * The `URL` class is also available on the global object.
401
- *
402
- * In accordance with browser conventions, all properties of `URL` objects
403
- * are implemented as getters and setters on the class prototype, rather than as
404
- * data properties on the object itself. Thus, unlike `legacy urlObject`s,
405
- * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
406
- * return `true`.
407
- * @since v7.0.0, v6.13.0
408
- */
409
- class URL {
410
- /**
411
- * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later.
412
- *
413
- * ```js
414
- * import {
415
- * Blob,
416
- * resolveObjectURL,
417
- * } from 'node:buffer';
418
- *
419
- * const blob = new Blob(['hello']);
420
- * const id = URL.createObjectURL(blob);
421
- *
422
- * // later...
423
- *
424
- * const otherBlob = resolveObjectURL(id);
425
- * console.log(otherBlob.size);
426
- * ```
427
- *
428
- * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it.
429
- *
430
- * `Blob` objects are registered within the current thread. If using Worker
431
- * Threads, `Blob` objects registered within one Worker will not be available
432
- * to other workers or the main thread.
433
- * @since v16.7.0
434
- */
435
- static createObjectURL(blob: NodeBlob): string;
436
- /**
437
- * Removes the stored `Blob` identified by the given ID. Attempting to revoke a
438
- * ID that isn't registered will silently fail.
439
- * @since v16.7.0
440
- * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
441
- */
442
- static revokeObjectURL(id: string): void;
443
- /**
444
- * Checks if an `input` relative to the `base` can be parsed to a `URL`.
445
- *
446
- * ```js
447
- * const isValid = URL.canParse('/foo', 'https://example.org/'); // true
448
- *
449
- * const isNotValid = URL.canParse('/foo'); // false
450
- * ```
451
- * @since v19.9.0
452
- * @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
453
- * `converted to a string` first.
454
- * @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.
455
- */
456
- static canParse(input: string, base?: string): boolean;
457
- /**
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.
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.
467
- */
468
- static parse(input: string, base?: string): URL | null;
469
- constructor(input: string | { toString: () => string }, base?: string | URL);
470
- /**
471
- * Gets and sets the fragment portion of the URL.
472
- *
473
- * ```js
474
- * const myURL = new URL('https://example.org/foo#bar');
475
- * console.log(myURL.hash);
476
- * // Prints #bar
477
- *
478
- * myURL.hash = 'baz';
479
- * console.log(myURL.href);
480
- * // Prints https://example.org/foo#baz
481
- * ```
482
- *
483
- * Invalid URL characters included in the value assigned to the `hash` property
484
- * are `percent-encoded`. The selection of which characters to
485
- * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
486
- */
487
- hash: string;
488
- /**
489
- * Gets and sets the host portion of the URL.
490
- *
491
- * ```js
492
- * const myURL = new URL('https://example.org:81/foo');
493
- * console.log(myURL.host);
494
- * // Prints example.org:81
495
- *
496
- * myURL.host = 'example.com:82';
497
- * console.log(myURL.href);
498
- * // Prints https://example.com:82/foo
499
- * ```
500
- *
501
- * Invalid host values assigned to the `host` property are ignored.
502
- */
503
- host: string;
504
- /**
505
- * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the
506
- * port.
507
- *
508
- * ```js
509
- * const myURL = new URL('https://example.org:81/foo');
510
- * console.log(myURL.hostname);
511
- * // Prints example.org
512
- *
513
- * // Setting the hostname does not change the port
514
- * myURL.hostname = 'example.com';
515
- * console.log(myURL.href);
516
- * // Prints https://example.com:81/foo
517
- *
518
- * // Use myURL.host to change the hostname and port
519
- * myURL.host = 'example.org:82';
520
- * console.log(myURL.href);
521
- * // Prints https://example.org:82/foo
522
- * ```
523
- *
524
- * Invalid host name values assigned to the `hostname` property are ignored.
525
- */
526
- hostname: string;
527
- /**
528
- * Gets and sets the serialized URL.
529
- *
530
- * ```js
531
- * const myURL = new URL('https://example.org/foo');
532
- * console.log(myURL.href);
533
- * // Prints https://example.org/foo
534
- *
535
- * myURL.href = 'https://example.com/bar';
536
- * console.log(myURL.href);
537
- * // Prints https://example.com/bar
538
- * ```
539
- *
540
- * Getting the value of the `href` property is equivalent to calling {@link toString}.
541
- *
542
- * Setting the value of this property to a new value is equivalent to creating a
543
- * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified.
544
- *
545
- * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown.
546
- */
547
- href: string;
548
- /**
549
- * Gets the read-only serialization of the URL's origin.
550
- *
551
- * ```js
552
- * const myURL = new URL('https://example.org/foo/bar?baz');
553
- * console.log(myURL.origin);
554
- * // Prints https://example.org
555
- * ```
556
- *
557
- * ```js
558
- * const idnURL = new URL('https://測試');
559
- * console.log(idnURL.origin);
560
- * // Prints https://xn--g6w251d
561
- *
562
- * console.log(idnURL.hostname);
563
- * // Prints xn--g6w251d
564
- * ```
565
- */
566
- readonly origin: string;
567
- /**
568
- * Gets and sets the password portion of the URL.
569
- *
570
- * ```js
571
- * const myURL = new URL('https://abc:xyz@example.com');
572
- * console.log(myURL.password);
573
- * // Prints xyz
574
- *
575
- * myURL.password = '123';
576
- * console.log(myURL.href);
577
- * // Prints https://abc:123@example.com/
578
- * ```
579
- *
580
- * Invalid URL characters included in the value assigned to the `password` property
581
- * are `percent-encoded`. The selection of which characters to
582
- * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
583
- */
584
- password: string;
585
- /**
586
- * Gets and sets the path portion of the URL.
587
- *
588
- * ```js
589
- * const myURL = new URL('https://example.org/abc/xyz?123');
590
- * console.log(myURL.pathname);
591
- * // Prints /abc/xyz
592
- *
593
- * myURL.pathname = '/abcdef';
594
- * console.log(myURL.href);
595
- * // Prints https://example.org/abcdef?123
596
- * ```
597
- *
598
- * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters
599
- * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
600
- */
601
- pathname: string;
602
- /**
603
- * Gets and sets the port portion of the URL.
604
- *
605
- * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will
606
- * result in the `port` value becoming
607
- * the empty string (`''`).
608
- *
609
- * The port value can be an empty string in which case the port depends on
610
- * the protocol/scheme:
611
- *
612
- * <omitted>
613
- *
614
- * Upon assigning a value to the port, the value will first be converted to a
615
- * string using `.toString()`.
616
- *
617
- * If that string is invalid but it begins with a number, the leading number is
618
- * assigned to `port`.
619
- * If the number lies outside the range denoted above, it is ignored.
620
- *
621
- * ```js
622
- * const myURL = new URL('https://example.org:8888');
623
- * console.log(myURL.port);
624
- * // Prints 8888
625
- *
626
- * // Default ports are automatically transformed to the empty string
627
- * // (HTTPS protocol's default port is 443)
628
- * myURL.port = '443';
629
- * console.log(myURL.port);
630
- * // Prints the empty string
631
- * console.log(myURL.href);
632
- * // Prints https://example.org/
633
- *
634
- * myURL.port = 1234;
635
- * console.log(myURL.port);
636
- * // Prints 1234
637
- * console.log(myURL.href);
638
- * // Prints https://example.org:1234/
639
- *
640
- * // Completely invalid port strings are ignored
641
- * myURL.port = 'abcd';
642
- * console.log(myURL.port);
643
- * // Prints 1234
644
- *
645
- * // Leading numbers are treated as a port number
646
- * myURL.port = '5678abcd';
647
- * console.log(myURL.port);
648
- * // Prints 5678
649
- *
650
- * // Non-integers are truncated
651
- * myURL.port = 1234.5678;
652
- * console.log(myURL.port);
653
- * // Prints 1234
654
- *
655
- * // Out-of-range numbers which are not represented in scientific notation
656
- * // will be ignored.
657
- * myURL.port = 1e10; // 10000000000, will be range-checked as described below
658
- * console.log(myURL.port);
659
- * // Prints 1234
660
- * ```
661
- *
662
- * Numbers which contain a decimal point,
663
- * such as floating-point numbers or numbers in scientific notation,
664
- * are not an exception to this rule.
665
- * Leading numbers up to the decimal point will be set as the URL's port,
666
- * assuming they are valid:
667
- *
668
- * ```js
669
- * myURL.port = 4.567e21;
670
- * console.log(myURL.port);
671
- * // Prints 4 (because it is the leading number in the string '4.567e21')
672
- * ```
673
- */
674
- port: string;
675
- /**
676
- * Gets and sets the protocol portion of the URL.
677
- *
678
- * ```js
679
- * const myURL = new URL('https://example.org');
680
- * console.log(myURL.protocol);
681
- * // Prints https:
682
- *
683
- * myURL.protocol = 'ftp';
684
- * console.log(myURL.href);
685
- * // Prints ftp://example.org/
686
- * ```
687
- *
688
- * Invalid URL protocol values assigned to the `protocol` property are ignored.
689
- */
690
- protocol: string;
691
- /**
692
- * Gets and sets the serialized query portion of the URL.
693
- *
694
- * ```js
695
- * const myURL = new URL('https://example.org/abc?123');
696
- * console.log(myURL.search);
697
- * // Prints ?123
698
- *
699
- * myURL.search = 'abc=xyz';
700
- * console.log(myURL.href);
701
- * // Prints https://example.org/abc?abc=xyz
702
- * ```
703
- *
704
- * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which
705
- * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
706
- */
707
- search: string;
708
- /**
709
- * Gets the `URLSearchParams` object representing the query parameters of the
710
- * URL. This property is read-only but the `URLSearchParams` object it provides
711
- * can be used to mutate the URL instance; to replace the entirety of query
712
- * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details.
713
- *
714
- * Use care when using `.searchParams` to modify the `URL` because,
715
- * per the WHATWG specification, the `URLSearchParams` object uses
716
- * different rules to determine which characters to percent-encode. For
717
- * instance, the `URL` object will not percent encode the ASCII tilde (`~`)
718
- * character, while `URLSearchParams` will always encode it:
719
- *
720
- * ```js
721
- * const myURL = new URL('https://example.org/abc?foo=~bar');
722
- *
723
- * console.log(myURL.search); // prints ?foo=~bar
724
- *
725
- * // Modify the URL via searchParams...
726
- * myURL.searchParams.sort();
727
- *
728
- * console.log(myURL.search); // prints ?foo=%7Ebar
729
- * ```
730
- */
731
- readonly searchParams: URLSearchParams;
732
- /**
733
- * Gets and sets the username portion of the URL.
734
- *
735
- * ```js
736
- * const myURL = new URL('https://abc:xyz@example.com');
737
- * console.log(myURL.username);
738
- * // Prints abc
739
- *
740
- * myURL.username = '123';
741
- * console.log(myURL.href);
742
- * // Prints https://123:xyz@example.com/
743
- * ```
744
- *
745
- * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which
746
- * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
747
- */
748
- username: string;
749
- /**
750
- * The `toString()` method on the `URL` object returns the serialized URL. The
751
- * value returned is equivalent to that of {@link href} and {@link toJSON}.
752
- */
753
- toString(): string;
754
- /**
755
- * The `toJSON()` method on the `URL` object returns the serialized URL. The
756
- * value returned is equivalent to that of {@link href} and {@link toString}.
757
- *
758
- * This method is automatically called when an `URL` object is serialized
759
- * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).
760
- *
761
- * ```js
762
- * const myURLs = [
763
- * new URL('https://www.example.com'),
764
- * new URL('https://test.example.org'),
765
- * ];
766
- * console.log(JSON.stringify(myURLs));
767
- * // Prints ["https://www.example.com/","https://test.example.org/"]
768
- * ```
769
- */
770
- toJSON(): string;
771
- }
772
- interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
773
- [Symbol.iterator](): URLSearchParamsIterator<T>;
774
- }
775
- /**
776
- * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
777
- * four following constructors.
778
- * The `URLSearchParams` class is also available on the global object.
779
- *
780
- * The WHATWG `URLSearchParams` interface and the `querystring` module have
781
- * similar purpose, but the purpose of the `querystring` module is more
782
- * general, as it allows the customization of delimiter characters (`&#x26;` and `=`).
783
- * On the other hand, this API is designed purely for URL query strings.
784
- *
785
- * ```js
786
- * const myURL = new URL('https://example.org/?abc=123');
787
- * console.log(myURL.searchParams.get('abc'));
788
- * // Prints 123
789
- *
790
- * myURL.searchParams.append('abc', 'xyz');
791
- * console.log(myURL.href);
792
- * // Prints https://example.org/?abc=123&#x26;abc=xyz
793
- *
794
- * myURL.searchParams.delete('abc');
795
- * myURL.searchParams.set('a', 'b');
796
- * console.log(myURL.href);
797
- * // Prints https://example.org/?a=b
798
- *
799
- * const newSearchParams = new URLSearchParams(myURL.searchParams);
800
- * // The above is equivalent to
801
- * // const newSearchParams = new URLSearchParams(myURL.search);
802
- *
803
- * newSearchParams.append('a', 'c');
804
- * console.log(myURL.href);
805
- * // Prints https://example.org/?a=b
806
- * console.log(newSearchParams.toString());
807
- * // Prints a=b&#x26;a=c
808
- *
809
- * // newSearchParams.toString() is implicitly called
810
- * myURL.search = newSearchParams;
811
- * console.log(myURL.href);
812
- * // Prints https://example.org/?a=b&#x26;a=c
813
- * newSearchParams.delete('a');
814
- * console.log(myURL.href);
815
- * // Prints https://example.org/?a=b&#x26;a=c
816
- * ```
817
- * @since v7.5.0, v6.13.0
818
- */
819
- class URLSearchParams implements Iterable<[string, string]> {
820
- constructor(
821
- init?:
822
- | URLSearchParams
823
- | string
824
- | Record<string, string | readonly string[]>
825
- | Iterable<[string, string]>
826
- | ReadonlyArray<[string, string]>,
827
- );
828
- /**
829
- * Append a new name-value pair to the query string.
830
- */
831
- append(name: string, value: string): void;
832
- /**
833
- * If `value` is provided, removes all name-value pairs
834
- * where name is `name` and value is `value`.
835
- *
836
- * If `value` is not provided, removes all name-value pairs whose name is `name`.
837
- */
838
- delete(name: string, value?: string): void;
839
- /**
840
- * Returns an ES6 `Iterator` over each of the name-value pairs in the query.
841
- * 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`.
842
- *
843
- * Alias for `urlSearchParams[Symbol.iterator]()`.
844
- */
845
- entries(): URLSearchParamsIterator<[string, string]>;
846
- /**
847
- * Iterates over each name-value pair in the query and invokes the given function.
848
- *
849
- * ```js
850
- * const myURL = new URL('https://example.org/?a=b&#x26;c=d');
851
- * myURL.searchParams.forEach((value, name, searchParams) => {
852
- * console.log(name, value, myURL.searchParams === searchParams);
853
- * });
854
- * // Prints:
855
- * // a b true
856
- * // c d true
857
- * ```
858
- * @param fn Invoked for each name-value pair in the query
859
- * @param thisArg To be used as `this` value for when `fn` is called
860
- */
861
- forEach<TThis = this>(
862
- fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
863
- thisArg?: TThis,
864
- ): void;
865
- /**
866
- * Returns the value of the first name-value pair whose name is `name`. If there
867
- * are no such pairs, `null` is returned.
868
- * @return or `null` if there is no name-value pair with the given `name`.
869
- */
870
- get(name: string): string | null;
871
- /**
872
- * Returns the values of all name-value pairs whose name is `name`. If there are
873
- * no such pairs, an empty array is returned.
874
- */
875
- getAll(name: string): string[];
876
- /**
877
- * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument.
878
- *
879
- * If `value` is provided, returns `true` when name-value pair with
880
- * same `name` and `value` exists.
881
- *
882
- * If `value` is not provided, returns `true` if there is at least one name-value
883
- * pair whose name is `name`.
884
- */
885
- has(name: string, value?: string): boolean;
886
- /**
887
- * Returns an ES6 `Iterator` over the names of each name-value pair.
888
- *
889
- * ```js
890
- * const params = new URLSearchParams('foo=bar&#x26;foo=baz');
891
- * for (const name of params.keys()) {
892
- * console.log(name);
893
- * }
894
- * // Prints:
895
- * // foo
896
- * // foo
897
- * ```
898
- */
899
- keys(): URLSearchParamsIterator<string>;
900
- /**
901
- * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
902
- * set the first such pair's value to `value` and remove all others. If not,
903
- * append the name-value pair to the query string.
904
- *
905
- * ```js
906
- * const params = new URLSearchParams();
907
- * params.append('foo', 'bar');
908
- * params.append('foo', 'baz');
909
- * params.append('abc', 'def');
910
- * console.log(params.toString());
911
- * // Prints foo=bar&#x26;foo=baz&#x26;abc=def
912
- *
913
- * params.set('foo', 'def');
914
- * params.set('xyz', 'opq');
915
- * console.log(params.toString());
916
- * // Prints foo=def&#x26;abc=def&#x26;xyz=opq
917
- * ```
918
- */
919
- set(name: string, value: string): void;
920
- /**
921
- * The total number of parameter entries.
922
- * @since v19.8.0
923
- */
924
- readonly size: number;
925
- /**
926
- * Sort all existing name-value pairs in-place by their names. Sorting is done
927
- * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs
928
- * with the same name is preserved.
929
- *
930
- * This method can be used, in particular, to increase cache hits.
931
- *
932
- * ```js
933
- * const params = new URLSearchParams('query[]=abc&#x26;type=search&#x26;query[]=123');
934
- * params.sort();
935
- * console.log(params.toString());
936
- * // Prints query%5B%5D=abc&#x26;query%5B%5D=123&#x26;type=search
937
- * ```
938
- * @since v7.7.0, v6.13.0
939
- */
940
- sort(): void;
941
- /**
942
- * Returns the search parameters serialized as a string, with characters
943
- * percent-encoded where necessary.
944
- */
945
- toString(): string;
946
- /**
947
- * Returns an ES6 `Iterator` over the values of each name-value pair.
948
- */
949
- values(): URLSearchParamsIterator<string>;
950
- [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
951
- }
952
- import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
953
- global {
954
- interface URLSearchParams extends _URLSearchParams {}
955
- interface URL extends _URL {}
956
- interface Global {
957
- URL: typeof _URL;
958
- URLSearchParams: typeof _URLSearchParams;
959
- }
960
- /**
961
- * `URL` class is a global reference for `import { URL } from 'url'`
962
- * https://nodejs.org/api/url.html#the-whatwg-url-api
963
- * @since v10.0.0
964
- */
965
- var URL: typeof globalThis extends {
966
- onmessage: any;
967
- URL: infer T;
968
- } ? T
969
- : typeof _URL;
970
- /**
971
- * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'`
972
- * https://nodejs.org/api/url.html#class-urlsearchparams
973
- * @since v10.0.0
974
- */
975
- var URLSearchParams: typeof globalThis extends {
976
- onmessage: any;
977
- URLSearchParams: infer T;
978
- } ? T
979
- : typeof _URLSearchParams;
980
- }
981
- }
982
- declare module "node:url" {
983
- export * from "url";
984
- }