@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,441 +0,0 @@
1
- 'use strict';
2
-
3
- const EventEmitter = require('events');
4
- const shared = require('../shared');
5
- const mimeTypes = require('../mime-funcs/mime-types');
6
- const MailComposer = require('../mail-composer');
7
- const DKIM = require('../dkim');
8
- const httpProxyClient = require('../smtp-connection/http-proxy-client');
9
- const util = require('util');
10
- const urllib = require('url');
11
- const packageData = require('../../package.json');
12
- const MailMessage = require('./mail-message');
13
- const net = require('net');
14
- const dns = require('dns');
15
- const crypto = require('crypto');
16
-
17
- /**
18
- * Creates an object for exposing the Mail API
19
- *
20
- * @constructor
21
- * @param {Object} transporter Transport object instance to pass the mails to
22
- */
23
- class Mail extends EventEmitter {
24
- constructor(transporter, options, defaults) {
25
- super();
26
-
27
- this.options = options || {};
28
- this._defaults = defaults || {};
29
-
30
- this._defaultPlugins = {
31
- compile: [(...args) => this._convertDataImages(...args)],
32
- stream: []
33
- };
34
-
35
- this._userPlugins = {
36
- compile: [],
37
- stream: []
38
- };
39
-
40
- this.meta = new Map();
41
-
42
- this.dkim = this.options.dkim ? new DKIM(this.options.dkim) : false;
43
-
44
- this.transporter = transporter;
45
- this.transporter.mailer = this;
46
-
47
- this.logger = shared.getLogger(this.options, {
48
- component: this.options.component || 'mail'
49
- });
50
-
51
- this.logger.debug(
52
- {
53
- tnx: 'create'
54
- },
55
- 'Creating transport: %s',
56
- this.getVersionString()
57
- );
58
-
59
- // setup emit handlers for the transporter
60
- if (typeof this.transporter.on === 'function') {
61
- // deprecated log interface
62
- this.transporter.on('log', log => {
63
- this.logger.debug(
64
- {
65
- tnx: 'transport'
66
- },
67
- '%s: %s',
68
- log.type,
69
- log.message
70
- );
71
- });
72
-
73
- // transporter errors
74
- this.transporter.on('error', err => {
75
- this.logger.error(
76
- {
77
- err,
78
- tnx: 'transport'
79
- },
80
- 'Transport Error: %s',
81
- err.message
82
- );
83
- this.emit('error', err);
84
- });
85
-
86
- // indicates if the sender has became idle
87
- this.transporter.on('idle', (...args) => {
88
- this.emit('idle', ...args);
89
- });
90
-
91
- // indicates if the sender has became idle and all connections are terminated
92
- this.transporter.on('clear', (...args) => {
93
- this.emit('clear', ...args);
94
- });
95
- }
96
-
97
- /**
98
- * Optional methods passed to the underlying transport object
99
- */
100
- ['close', 'isIdle', 'verify'].forEach(method => {
101
- this[method] = (...args) => {
102
- if (typeof this.transporter[method] === 'function') {
103
- if (method === 'verify' && typeof this.getSocket === 'function') {
104
- this.transporter.getSocket = this.getSocket;
105
- this.getSocket = false;
106
- }
107
- return this.transporter[method](...args);
108
- } else {
109
- this.logger.warn(
110
- {
111
- tnx: 'transport',
112
- methodName: method
113
- },
114
- 'Non existing method %s called for transport',
115
- method
116
- );
117
- return false;
118
- }
119
- };
120
- });
121
-
122
- // setup proxy handling
123
- if (this.options.proxy && typeof this.options.proxy === 'string') {
124
- this.setupProxy(this.options.proxy);
125
- }
126
- }
127
-
128
- use(step, plugin) {
129
- step = (step || '').toString();
130
- if (!this._userPlugins.hasOwnProperty(step)) {
131
- this._userPlugins[step] = [plugin];
132
- } else {
133
- this._userPlugins[step].push(plugin);
134
- }
135
-
136
- return this;
137
- }
138
-
139
- /**
140
- * Sends an email using the preselected transport object
141
- *
142
- * @param {Object} data E-data description
143
- * @param {Function?} callback Callback to run once the sending succeeded or failed
144
- */
145
- sendMail(data, callback = null) {
146
- let promise;
147
-
148
- if (!callback) {
149
- promise = new Promise((resolve, reject) => {
150
- callback = shared.callbackPromise(resolve, reject);
151
- });
152
- }
153
-
154
- if (typeof this.getSocket === 'function') {
155
- this.transporter.getSocket = this.getSocket;
156
- this.getSocket = false;
157
- }
158
-
159
- let mail = new MailMessage(this, data);
160
-
161
- this.logger.debug(
162
- {
163
- tnx: 'transport',
164
- name: this.transporter.name,
165
- version: this.transporter.version,
166
- action: 'send'
167
- },
168
- 'Sending mail using %s/%s',
169
- this.transporter.name,
170
- this.transporter.version
171
- );
172
-
173
- this._processPlugins('compile', mail, err => {
174
- if (err) {
175
- this.logger.error(
176
- {
177
- err,
178
- tnx: 'plugin',
179
- action: 'compile'
180
- },
181
- 'PluginCompile Error: %s',
182
- err.message
183
- );
184
- return callback(err);
185
- }
186
-
187
- mail.message = new MailComposer(mail.data).compile();
188
-
189
- mail.setMailerHeader();
190
- mail.setPriorityHeaders();
191
- mail.setListHeaders();
192
-
193
- this._processPlugins('stream', mail, err => {
194
- if (err) {
195
- this.logger.error(
196
- {
197
- err,
198
- tnx: 'plugin',
199
- action: 'stream'
200
- },
201
- 'PluginStream Error: %s',
202
- err.message
203
- );
204
- return callback(err);
205
- }
206
-
207
- if (mail.data.dkim || this.dkim) {
208
- mail.message.processFunc(input => {
209
- let dkim = mail.data.dkim ? new DKIM(mail.data.dkim) : this.dkim;
210
- this.logger.debug(
211
- {
212
- tnx: 'DKIM',
213
- messageId: mail.message.messageId(),
214
- dkimDomains: dkim.keys.map(key => key.keySelector + '.' + key.domainName).join(', ')
215
- },
216
- 'Signing outgoing message with %s keys',
217
- dkim.keys.length
218
- );
219
- return dkim.sign(input, mail.data._dkim);
220
- });
221
- }
222
-
223
- this.transporter.send(mail, (...args) => {
224
- if (args[0]) {
225
- this.logger.error(
226
- {
227
- err: args[0],
228
- tnx: 'transport',
229
- action: 'send'
230
- },
231
- 'Send Error: %s',
232
- args[0].message
233
- );
234
- }
235
- callback(...args);
236
- });
237
- });
238
- });
239
-
240
- return promise;
241
- }
242
-
243
- getVersionString() {
244
- return util.format(
245
- '%s (%s; +%s; %s/%s)',
246
- packageData.name,
247
- packageData.version,
248
- packageData.homepage,
249
- this.transporter.name,
250
- this.transporter.version
251
- );
252
- }
253
-
254
- _processPlugins(step, mail, callback) {
255
- step = (step || '').toString();
256
-
257
- if (!this._userPlugins.hasOwnProperty(step)) {
258
- return callback();
259
- }
260
-
261
- let userPlugins = this._userPlugins[step] || [];
262
- let defaultPlugins = this._defaultPlugins[step] || [];
263
-
264
- if (userPlugins.length) {
265
- this.logger.debug(
266
- {
267
- tnx: 'transaction',
268
- pluginCount: userPlugins.length,
269
- step
270
- },
271
- 'Using %s plugins for %s',
272
- userPlugins.length,
273
- step
274
- );
275
- }
276
-
277
- if (userPlugins.length + defaultPlugins.length === 0) {
278
- return callback();
279
- }
280
-
281
- let pos = 0;
282
- let block = 'default';
283
- let processPlugins = () => {
284
- let curplugins = block === 'default' ? defaultPlugins : userPlugins;
285
- if (pos >= curplugins.length) {
286
- if (block === 'default' && userPlugins.length) {
287
- block = 'user';
288
- pos = 0;
289
- curplugins = userPlugins;
290
- } else {
291
- return callback();
292
- }
293
- }
294
- let plugin = curplugins[pos++];
295
- plugin(mail, err => {
296
- if (err) {
297
- return callback(err);
298
- }
299
- processPlugins();
300
- });
301
- };
302
-
303
- processPlugins();
304
- }
305
-
306
- /**
307
- * Sets up proxy handler for a Nodemailer object
308
- *
309
- * @param {String} proxyUrl Proxy configuration url
310
- */
311
- setupProxy(proxyUrl) {
312
- let proxy = urllib.parse(proxyUrl);
313
-
314
- // setup socket handler for the mailer object
315
- this.getSocket = (options, callback) => {
316
- let protocol = proxy.protocol.replace(/:$/, '').toLowerCase();
317
-
318
- if (this.meta.has('proxy_handler_' + protocol)) {
319
- return this.meta.get('proxy_handler_' + protocol)(proxy, options, callback);
320
- }
321
-
322
- switch (protocol) {
323
- // Connect using a HTTP CONNECT method
324
- case 'http':
325
- case 'https':
326
- httpProxyClient(proxy.href, options.port, options.host, (err, socket) => {
327
- if (err) {
328
- return callback(err);
329
- }
330
- return callback(null, {
331
- connection: socket
332
- });
333
- });
334
- return;
335
- case 'socks':
336
- case 'socks5':
337
- case 'socks4':
338
- case 'socks4a': {
339
- if (!this.meta.has('proxy_socks_module')) {
340
- return callback(new Error('Socks module not loaded'));
341
- }
342
- let connect = ipaddress => {
343
- let proxyV2 = !!this.meta.get('proxy_socks_module').SocksClient;
344
- let socksClient = proxyV2 ? this.meta.get('proxy_socks_module').SocksClient : this.meta.get('proxy_socks_module');
345
- let proxyType = Number(proxy.protocol.replace(/\D/g, '')) || 5;
346
- let connectionOpts = {
347
- proxy: {
348
- ipaddress,
349
- port: Number(proxy.port),
350
- type: proxyType
351
- },
352
- [proxyV2 ? 'destination' : 'target']: {
353
- host: options.host,
354
- port: options.port
355
- },
356
- command: 'connect'
357
- };
358
-
359
- if (proxy.auth) {
360
- let username = decodeURIComponent(proxy.auth.split(':').shift());
361
- let password = decodeURIComponent(proxy.auth.split(':').pop());
362
- if (proxyV2) {
363
- connectionOpts.proxy.userId = username;
364
- connectionOpts.proxy.password = password;
365
- } else if (proxyType === 4) {
366
- connectionOpts.userid = username;
367
- } else {
368
- connectionOpts.authentication = {
369
- username,
370
- password
371
- };
372
- }
373
- }
374
-
375
- socksClient.createConnection(connectionOpts, (err, info) => {
376
- if (err) {
377
- return callback(err);
378
- }
379
- return callback(null, {
380
- connection: info.socket || info
381
- });
382
- });
383
- };
384
-
385
- if (net.isIP(proxy.hostname)) {
386
- return connect(proxy.hostname);
387
- }
388
-
389
- return dns.resolve(proxy.hostname, (err, address) => {
390
- if (err) {
391
- return callback(err);
392
- }
393
- connect(Array.isArray(address) ? address[0] : address);
394
- });
395
- }
396
- }
397
- callback(new Error('Unknown proxy configuration'));
398
- };
399
- }
400
-
401
- _convertDataImages(mail, callback) {
402
- if ((!this.options.attachDataUrls && !mail.data.attachDataUrls) || !mail.data.html) {
403
- return callback();
404
- }
405
- mail.resolveContent(mail.data, 'html', (err, html) => {
406
- if (err) {
407
- return callback(err);
408
- }
409
- let cidCounter = 0;
410
- html = (html || '')
411
- .toString()
412
- .replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi, (match, prefix, dataUri, mimeType) => {
413
- let cid = crypto.randomBytes(10).toString('hex') + '@localhost';
414
- if (!mail.data.attachments) {
415
- mail.data.attachments = [];
416
- }
417
- if (!Array.isArray(mail.data.attachments)) {
418
- mail.data.attachments = [].concat(mail.data.attachments || []);
419
- }
420
- mail.data.attachments.push({
421
- path: dataUri,
422
- cid,
423
- filename: 'image-' + ++cidCounter + '.' + mimeTypes.detectExtension(mimeType)
424
- });
425
- return prefix + 'cid:' + cid;
426
- });
427
- mail.data.html = html;
428
- callback();
429
- });
430
- }
431
-
432
- set(key, value) {
433
- return this.meta.set(key, value);
434
- }
435
-
436
- get(key) {
437
- return this.meta.get(key);
438
- }
439
- }
440
-
441
- module.exports = Mail;