@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,427 +0,0 @@
1
- 'use strict';
2
-
3
- const Stream = require('stream').Stream;
4
- const nmfetch = require('../fetch');
5
- const crypto = require('crypto');
6
- const shared = require('../shared');
7
-
8
- /**
9
- * XOAUTH2 access_token generator for Gmail.
10
- * Create client ID for web applications in Google API console to use it.
11
- * See Offline Access for receiving the needed refreshToken for an user
12
- * https://developers.google.com/accounts/docs/OAuth2WebServer#offline
13
- *
14
- * Usage for generating access tokens with a custom method using provisionCallback:
15
- * provisionCallback(user, renew, callback)
16
- * * user is the username to get the token for
17
- * * renew is a boolean that if true indicates that existing token failed and needs to be renewed
18
- * * callback is the callback to run with (error, accessToken [, expires])
19
- * * accessToken is a string
20
- * * expires is an optional expire time in milliseconds
21
- * If provisionCallback is used, then Nodemailer does not try to attempt generating the token by itself
22
- *
23
- * @constructor
24
- * @param {Object} options Client information for token generation
25
- * @param {String} options.user User e-mail address
26
- * @param {String} options.clientId Client ID value
27
- * @param {String} options.clientSecret Client secret value
28
- * @param {String} options.refreshToken Refresh token for an user
29
- * @param {String} options.accessUrl Endpoint for token generation, defaults to 'https://accounts.google.com/o/oauth2/token'
30
- * @param {String} options.accessToken An existing valid accessToken
31
- * @param {String} options.privateKey Private key for JSW
32
- * @param {Number} options.expires Optional Access Token expire time in ms
33
- * @param {Number} options.timeout Optional TTL for Access Token in seconds
34
- * @param {Function} options.provisionCallback Function to run when a new access token is required
35
- */
36
- class XOAuth2 extends Stream {
37
- constructor(options, logger) {
38
- super();
39
-
40
- this.options = options || {};
41
-
42
- if (options && options.serviceClient) {
43
- if (!options.privateKey || !options.user) {
44
- setImmediate(() => this.emit('error', new Error('Options "privateKey" and "user" are required for service account!')));
45
- return;
46
- }
47
-
48
- let serviceRequestTimeout = Math.min(Math.max(Number(this.options.serviceRequestTimeout) || 0, 0), 3600);
49
- this.options.serviceRequestTimeout = serviceRequestTimeout || 5 * 60;
50
- }
51
-
52
- this.logger = shared.getLogger(
53
- {
54
- logger
55
- },
56
- {
57
- component: this.options.component || 'OAuth2'
58
- }
59
- );
60
-
61
- this.provisionCallback = typeof this.options.provisionCallback === 'function' ? this.options.provisionCallback : false;
62
-
63
- this.options.accessUrl = this.options.accessUrl || 'https://accounts.google.com/o/oauth2/token';
64
- this.options.customHeaders = this.options.customHeaders || {};
65
- this.options.customParams = this.options.customParams || {};
66
-
67
- this.accessToken = this.options.accessToken || false;
68
-
69
- if (this.options.expires && Number(this.options.expires)) {
70
- this.expires = this.options.expires;
71
- } else {
72
- let timeout = Math.max(Number(this.options.timeout) || 0, 0);
73
- this.expires = (timeout && Date.now() + timeout * 1000) || 0;
74
- }
75
-
76
- this.renewing = false; // Track if renewal is in progress
77
- this.renewalQueue = []; // Queue for pending requests during renewal
78
- }
79
-
80
- /**
81
- * Returns or generates (if previous has expired) a XOAuth2 token
82
- *
83
- * @param {Boolean} renew If false then use cached access token (if available)
84
- * @param {Function} callback Callback function with error object and token string
85
- */
86
- getToken(renew, callback) {
87
- if (!renew && this.accessToken && (!this.expires || this.expires > Date.now())) {
88
- this.logger.debug(
89
- {
90
- tnx: 'OAUTH2',
91
- user: this.options.user,
92
- action: 'reuse'
93
- },
94
- 'Reusing existing access token for %s',
95
- this.options.user
96
- );
97
- return callback(null, this.accessToken);
98
- }
99
-
100
- // check if it is possible to renew, if not, return the current token or error
101
- if (!this.provisionCallback && !this.options.refreshToken && !this.options.serviceClient) {
102
- if (this.accessToken) {
103
- this.logger.debug(
104
- {
105
- tnx: 'OAUTH2',
106
- user: this.options.user,
107
- action: 'reuse'
108
- },
109
- 'Reusing existing access token (no refresh capability) for %s',
110
- this.options.user
111
- );
112
- return callback(null, this.accessToken);
113
- }
114
- this.logger.error(
115
- {
116
- tnx: 'OAUTH2',
117
- user: this.options.user,
118
- action: 'renew'
119
- },
120
- 'Cannot renew access token for %s: No refresh mechanism available',
121
- this.options.user
122
- );
123
- return callback(new Error("Can't create new access token for user"));
124
- }
125
-
126
- // If renewal already in progress, queue this request instead of starting another
127
- if (this.renewing) {
128
- return this.renewalQueue.push({ renew, callback });
129
- }
130
-
131
- this.renewing = true;
132
-
133
- // Handles token renewal completion - processes queued requests and cleans up
134
- const generateCallback = (err, accessToken) => {
135
- this.renewalQueue.forEach(item => item.callback(err, accessToken));
136
- this.renewalQueue = [];
137
- this.renewing = false;
138
-
139
- if (err) {
140
- this.logger.error(
141
- {
142
- err,
143
- tnx: 'OAUTH2',
144
- user: this.options.user,
145
- action: 'renew'
146
- },
147
- 'Failed generating new Access Token for %s',
148
- this.options.user
149
- );
150
- } else {
151
- this.logger.info(
152
- {
153
- tnx: 'OAUTH2',
154
- user: this.options.user,
155
- action: 'renew'
156
- },
157
- 'Generated new Access Token for %s',
158
- this.options.user
159
- );
160
- }
161
- // Complete original request
162
- callback(err, accessToken);
163
- };
164
-
165
- if (this.provisionCallback) {
166
- this.provisionCallback(this.options.user, !!renew, (err, accessToken, expires) => {
167
- if (!err && accessToken) {
168
- this.accessToken = accessToken;
169
- this.expires = expires || 0;
170
- }
171
- generateCallback(err, accessToken);
172
- });
173
- } else {
174
- this.generateToken(generateCallback);
175
- }
176
- }
177
-
178
- /**
179
- * Updates token values
180
- *
181
- * @param {String} accessToken New access token
182
- * @param {Number} timeout Access token lifetime in seconds
183
- *
184
- * Emits 'token': { user: User email-address, accessToken: the new accessToken, timeout: TTL in seconds}
185
- */
186
- updateToken(accessToken, timeout) {
187
- this.accessToken = accessToken;
188
- timeout = Math.max(Number(timeout) || 0, 0);
189
- this.expires = (timeout && Date.now() + timeout * 1000) || 0;
190
-
191
- this.emit('token', {
192
- user: this.options.user,
193
- accessToken: accessToken || '',
194
- expires: this.expires
195
- });
196
- }
197
-
198
- /**
199
- * Generates a new XOAuth2 token with the credentials provided at initialization
200
- *
201
- * @param {Function} callback Callback function with error object and token string
202
- */
203
- generateToken(callback) {
204
- let urlOptions;
205
- let loggedUrlOptions;
206
- if (this.options.serviceClient) {
207
- // service account - https://developers.google.com/identity/protocols/OAuth2ServiceAccount
208
- let iat = Math.floor(Date.now() / 1000); // unix time
209
- let tokenData = {
210
- iss: this.options.serviceClient,
211
- scope: this.options.scope || 'https://mail.google.com/',
212
- sub: this.options.user,
213
- aud: this.options.accessUrl,
214
- iat,
215
- exp: iat + this.options.serviceRequestTimeout
216
- };
217
- let token;
218
- try {
219
- token = this.jwtSignRS256(tokenData);
220
- } catch (_err) {
221
- return callback(new Error("Can't generate token. Check your auth options"));
222
- }
223
-
224
- urlOptions = {
225
- grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
226
- assertion: token
227
- };
228
-
229
- loggedUrlOptions = {
230
- grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
231
- assertion: tokenData
232
- };
233
- } else {
234
- if (!this.options.refreshToken) {
235
- return callback(new Error("Can't create new access token for user"));
236
- }
237
-
238
- // web app - https://developers.google.com/identity/protocols/OAuth2WebServer
239
- urlOptions = {
240
- client_id: this.options.clientId || '',
241
- client_secret: this.options.clientSecret || '',
242
- refresh_token: this.options.refreshToken,
243
- grant_type: 'refresh_token'
244
- };
245
-
246
- loggedUrlOptions = {
247
- client_id: this.options.clientId || '',
248
- client_secret: (this.options.clientSecret || '').substr(0, 6) + '...',
249
- refresh_token: (this.options.refreshToken || '').substr(0, 6) + '...',
250
- grant_type: 'refresh_token'
251
- };
252
- }
253
-
254
- Object.keys(this.options.customParams).forEach(key => {
255
- urlOptions[key] = this.options.customParams[key];
256
- loggedUrlOptions[key] = this.options.customParams[key];
257
- });
258
-
259
- this.logger.debug(
260
- {
261
- tnx: 'OAUTH2',
262
- user: this.options.user,
263
- action: 'generate'
264
- },
265
- 'Requesting token using: %s',
266
- JSON.stringify(loggedUrlOptions)
267
- );
268
-
269
- this.postRequest(this.options.accessUrl, urlOptions, this.options, (error, body) => {
270
- let data;
271
-
272
- if (error) {
273
- return callback(error);
274
- }
275
-
276
- try {
277
- data = JSON.parse(body.toString());
278
- } catch (E) {
279
- return callback(E);
280
- }
281
-
282
- if (!data || typeof data !== 'object') {
283
- this.logger.debug(
284
- {
285
- tnx: 'OAUTH2',
286
- user: this.options.user,
287
- action: 'post'
288
- },
289
- 'Response: %s',
290
- (body || '').toString()
291
- );
292
- return callback(new Error('Invalid authentication response'));
293
- }
294
-
295
- let logData = {};
296
- Object.keys(data).forEach(key => {
297
- if (key !== 'access_token') {
298
- logData[key] = data[key];
299
- } else {
300
- logData[key] = (data[key] || '').toString().substr(0, 6) + '...';
301
- }
302
- });
303
-
304
- this.logger.debug(
305
- {
306
- tnx: 'OAUTH2',
307
- user: this.options.user,
308
- action: 'post'
309
- },
310
- 'Response: %s',
311
- JSON.stringify(logData)
312
- );
313
-
314
- if (data.error) {
315
- // Error Response : https://tools.ietf.org/html/rfc6749#section-5.2
316
- let errorMessage = data.error;
317
- if (data.error_description) {
318
- errorMessage += ': ' + data.error_description;
319
- }
320
- if (data.error_uri) {
321
- errorMessage += ' (' + data.error_uri + ')';
322
- }
323
- return callback(new Error(errorMessage));
324
- }
325
-
326
- if (data.access_token) {
327
- this.updateToken(data.access_token, data.expires_in);
328
- return callback(null, this.accessToken);
329
- }
330
-
331
- return callback(new Error('No access token'));
332
- });
333
- }
334
-
335
- /**
336
- * Converts an access_token and user id into a base64 encoded XOAuth2 token
337
- *
338
- * @param {String} [accessToken] Access token string
339
- * @return {String} Base64 encoded token for IMAP or SMTP login
340
- */
341
- buildXOAuth2Token(accessToken) {
342
- let authData = ['user=' + (this.options.user || ''), 'auth=Bearer ' + (accessToken || this.accessToken), '', ''];
343
- return Buffer.from(authData.join('\x01'), 'utf-8').toString('base64');
344
- }
345
-
346
- /**
347
- * Custom POST request handler.
348
- * This is only needed to keep paths short in Windows – usually this module
349
- * is a dependency of a dependency and if it tries to require something
350
- * like the request module the paths get way too long to handle for Windows.
351
- * As we do only a simple POST request we do not actually require complicated
352
- * logic support (no redirects, no nothing) anyway.
353
- *
354
- * @param {String} url Url to POST to
355
- * @param {String|Buffer} payload Payload to POST
356
- * @param {Function} callback Callback function with (err, buff)
357
- */
358
- postRequest(url, payload, params, callback) {
359
- let returned = false;
360
-
361
- let chunks = [];
362
- let chunklen = 0;
363
-
364
- let req = nmfetch(url, {
365
- method: 'post',
366
- headers: params.customHeaders,
367
- body: payload,
368
- allowErrorResponse: true
369
- });
370
-
371
- req.on('readable', () => {
372
- let chunk;
373
- while ((chunk = req.read()) !== null) {
374
- chunks.push(chunk);
375
- chunklen += chunk.length;
376
- }
377
- });
378
-
379
- req.once('error', err => {
380
- if (returned) {
381
- return;
382
- }
383
- returned = true;
384
- return callback(err);
385
- });
386
-
387
- req.once('end', () => {
388
- if (returned) {
389
- return;
390
- }
391
- returned = true;
392
- return callback(null, Buffer.concat(chunks, chunklen));
393
- });
394
- }
395
-
396
- /**
397
- * Encodes a buffer or a string into Base64url format
398
- *
399
- * @param {Buffer|String} data The data to convert
400
- * @return {String} The encoded string
401
- */
402
- toBase64URL(data) {
403
- if (typeof data === 'string') {
404
- data = Buffer.from(data);
405
- }
406
-
407
- return data
408
- .toString('base64')
409
- .replace(/[=]+/g, '') // remove '='s
410
- .replace(/\+/g, '-') // '+' → '-'
411
- .replace(/\//g, '_'); // '/' → '_'
412
- }
413
-
414
- /**
415
- * Creates a JSON Web Token signed with RS256 (SHA256 + RSA)
416
- *
417
- * @param {Object} payload The payload to include in the generated token
418
- * @return {String} The generated and signed token
419
- */
420
- jwtSignRS256(payload) {
421
- payload = ['{"alg":"RS256","typ":"JWT"}', JSON.stringify(payload)].map(val => this.toBase64URL(val)).join('.');
422
- let signature = crypto.createSign('RSA-SHA256').update(payload).sign(this.options.privateKey);
423
- return payload + '.' + this.toBase64URL(signature);
424
- }
425
- }
426
-
427
- module.exports = XOAuth2;
@@ -1,47 +0,0 @@
1
- {
2
- "name": "nodemailer",
3
- "version": "7.0.13",
4
- "description": "Easy as cake e-mail sending from your Node.js applications",
5
- "main": "lib/nodemailer.js",
6
- "scripts": {
7
- "test": "node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js",
8
- "test:coverage": "c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js",
9
- "format": "prettier --write \"**/*.{js,json,md}\"",
10
- "format:check": "prettier --check \"**/*.{js,json,md}\"",
11
- "lint": "eslint .",
12
- "lint:fix": "eslint . --fix",
13
- "update": "rm -rf node_modules/ package-lock.json && ncu -u && npm install"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/nodemailer/nodemailer.git"
18
- },
19
- "keywords": [
20
- "Nodemailer"
21
- ],
22
- "author": "Andris Reinman",
23
- "license": "MIT-0",
24
- "bugs": {
25
- "url": "https://github.com/nodemailer/nodemailer/issues"
26
- },
27
- "homepage": "https://nodemailer.com/",
28
- "devDependencies": {
29
- "@aws-sdk/client-sesv2": "3.975.0",
30
- "bunyan": "1.8.15",
31
- "c8": "10.1.3",
32
- "eslint": "9.39.2",
33
- "eslint-config-prettier": "10.1.8",
34
- "globals": "17.1.0",
35
- "libbase64": "1.3.0",
36
- "libmime": "5.3.7",
37
- "libqp": "2.1.1",
38
- "nodemailer-ntlm-auth": "1.0.4",
39
- "prettier": "3.8.1",
40
- "proxy": "1.0.2",
41
- "proxy-test-server": "1.0.0",
42
- "smtp-server": "3.18.0"
43
- },
44
- "engines": {
45
- "node": ">=6.0.0"
46
- }
47
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Matteo Collina and Undici contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,6 +0,0 @@
1
- # undici-types
2
-
3
- This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
4
-
5
- - [GitHub nodejs/undici](https://github.com/nodejs/undici)
6
- - [Undici Documentation](https://undici.nodejs.org/#/)
@@ -1,31 +0,0 @@
1
- import { URL } from 'url'
2
- import Pool from './pool'
3
- import Dispatcher from "./dispatcher";
4
-
5
- export default Agent
6
-
7
- declare class Agent extends Dispatcher{
8
- constructor(opts?: Agent.Options)
9
- /** `true` after `dispatcher.close()` has been called. */
10
- closed: boolean;
11
- /** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */
12
- destroyed: boolean;
13
- /** Dispatches a request. */
14
- dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
15
- }
16
-
17
- declare namespace Agent {
18
- export interface Options extends Pool.Options {
19
- /** Default: `(origin, opts) => new Pool(origin, opts)`. */
20
- factory?(origin: string | URL, opts: Object): Dispatcher;
21
- /** Integer. Default: `0` */
22
- maxRedirections?: number;
23
-
24
- interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options["interceptors"]
25
- }
26
-
27
- export interface DispatchOptions extends Dispatcher.DispatchOptions {
28
- /** Integer. */
29
- maxRedirections?: number;
30
- }
31
- }
@@ -1,43 +0,0 @@
1
- import { URL, UrlObject } from 'url'
2
- import { Duplex } from 'stream'
3
- import Dispatcher from './dispatcher'
4
-
5
- export {
6
- request,
7
- stream,
8
- pipeline,
9
- connect,
10
- upgrade,
11
- }
12
-
13
- /** Performs an HTTP request. */
14
- declare function request(
15
- url: string | URL | UrlObject,
16
- options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
17
- ): Promise<Dispatcher.ResponseData>;
18
-
19
- /** A faster version of `request`. */
20
- declare function stream(
21
- url: string | URL | UrlObject,
22
- options: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path'>,
23
- factory: Dispatcher.StreamFactory
24
- ): Promise<Dispatcher.StreamData>;
25
-
26
- /** For easy use with `stream.pipeline`. */
27
- declare function pipeline(
28
- url: string | URL | UrlObject,
29
- options: { dispatcher?: Dispatcher } & Omit<Dispatcher.PipelineOptions, 'origin' | 'path'>,
30
- handler: Dispatcher.PipelineHandler
31
- ): Duplex;
32
-
33
- /** Starts two-way communications with the requested resource. */
34
- declare function connect(
35
- url: string | URL | UrlObject,
36
- options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin' | 'path'>
37
- ): Promise<Dispatcher.ConnectData>;
38
-
39
- /** Upgrade to a different protocol. */
40
- declare function upgrade(
41
- url: string | URL | UrlObject,
42
- options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.UpgradeOptions, 'origin' | 'path'>
43
- ): Promise<Dispatcher.UpgradeData>;
@@ -1,29 +0,0 @@
1
- import Pool from './pool'
2
- import Dispatcher from './dispatcher'
3
- import { URL } from 'url'
4
-
5
- export default BalancedPool
6
-
7
- type BalancedPoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
8
-
9
- declare class BalancedPool extends Dispatcher {
10
- constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
11
-
12
- addUpstream(upstream: string | URL): BalancedPool;
13
- removeUpstream(upstream: string | URL): BalancedPool;
14
- upstreams: Array<string>;
15
-
16
- /** `true` after `pool.close()` has been called. */
17
- closed: boolean;
18
- /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
19
- destroyed: boolean;
20
-
21
- // Override dispatcher APIs.
22
- override connect(
23
- options: BalancedPoolConnectOptions
24
- ): Promise<Dispatcher.ConnectData>;
25
- override connect(
26
- options: BalancedPoolConnectOptions,
27
- callback: (err: Error | null, data: Dispatcher.ConnectData) => void
28
- ): void;
29
- }
@@ -1,36 +0,0 @@
1
- import type { RequestInfo, Response, Request } from './fetch'
2
-
3
- export interface CacheStorage {
4
- match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
5
- has (cacheName: string): Promise<boolean>,
6
- open (cacheName: string): Promise<Cache>,
7
- delete (cacheName: string): Promise<boolean>,
8
- keys (): Promise<string[]>
9
- }
10
-
11
- declare const CacheStorage: {
12
- prototype: CacheStorage
13
- new(): CacheStorage
14
- }
15
-
16
- export interface Cache {
17
- match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>,
18
- matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>,
19
- add (request: RequestInfo): Promise<undefined>,
20
- addAll (requests: RequestInfo[]): Promise<undefined>,
21
- put (request: RequestInfo, response: Response): Promise<undefined>,
22
- delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
23
- keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request[]>
24
- }
25
-
26
- export interface CacheQueryOptions {
27
- ignoreSearch?: boolean,
28
- ignoreMethod?: boolean,
29
- ignoreVary?: boolean
30
- }
31
-
32
- export interface MultiCacheQueryOptions extends CacheQueryOptions {
33
- cacheName?: string
34
- }
35
-
36
- export declare const caches: CacheStorage