@bobfrankston/mailx 1.0.31 → 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 (312) hide show
  1. package/client/styles/layout.css +12 -7
  2. package/launcher/builder/postinstall.js +7 -7
  3. package/package.json +4 -4
  4. package/packages/mailx-send/mailsend/node_modules/.package-lock.json +0 -49
  5. package/packages/mailx-send/mailsend/node_modules/@types/node/LICENSE +0 -21
  6. package/packages/mailx-send/mailsend/node_modules/@types/node/README.md +0 -15
  7. package/packages/mailx-send/mailsend/node_modules/@types/node/assert/strict.d.ts +0 -111
  8. package/packages/mailx-send/mailsend/node_modules/@types/node/assert.d.ts +0 -1078
  9. package/packages/mailx-send/mailsend/node_modules/@types/node/async_hooks.d.ts +0 -603
  10. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  11. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.d.ts +0 -1934
  12. package/packages/mailx-send/mailsend/node_modules/@types/node/child_process.d.ts +0 -1476
  13. package/packages/mailx-send/mailsend/node_modules/@types/node/cluster.d.ts +0 -578
  14. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  15. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/index.d.ts +0 -9
  16. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  17. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  18. package/packages/mailx-send/mailsend/node_modules/@types/node/console.d.ts +0 -452
  19. package/packages/mailx-send/mailsend/node_modules/@types/node/constants.d.ts +0 -21
  20. package/packages/mailx-send/mailsend/node_modules/@types/node/crypto.d.ts +0 -4545
  21. package/packages/mailx-send/mailsend/node_modules/@types/node/dgram.d.ts +0 -600
  22. package/packages/mailx-send/mailsend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  23. package/packages/mailx-send/mailsend/node_modules/@types/node/dns/promises.d.ts +0 -503
  24. package/packages/mailx-send/mailsend/node_modules/@types/node/dns.d.ts +0 -923
  25. package/packages/mailx-send/mailsend/node_modules/@types/node/domain.d.ts +0 -170
  26. package/packages/mailx-send/mailsend/node_modules/@types/node/events.d.ts +0 -976
  27. package/packages/mailx-send/mailsend/node_modules/@types/node/fs/promises.d.ts +0 -1295
  28. package/packages/mailx-send/mailsend/node_modules/@types/node/fs.d.ts +0 -4461
  29. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.d.ts +0 -172
  30. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  31. package/packages/mailx-send/mailsend/node_modules/@types/node/http.d.ts +0 -2089
  32. package/packages/mailx-send/mailsend/node_modules/@types/node/http2.d.ts +0 -2644
  33. package/packages/mailx-send/mailsend/node_modules/@types/node/https.d.ts +0 -579
  34. package/packages/mailx-send/mailsend/node_modules/@types/node/index.d.ts +0 -97
  35. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.d.ts +0 -253
  36. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  37. package/packages/mailx-send/mailsend/node_modules/@types/node/module.d.ts +0 -891
  38. package/packages/mailx-send/mailsend/node_modules/@types/node/net.d.ts +0 -1057
  39. package/packages/mailx-send/mailsend/node_modules/@types/node/os.d.ts +0 -506
  40. package/packages/mailx-send/mailsend/node_modules/@types/node/package.json +0 -145
  41. package/packages/mailx-send/mailsend/node_modules/@types/node/path.d.ts +0 -200
  42. package/packages/mailx-send/mailsend/node_modules/@types/node/perf_hooks.d.ts +0 -968
  43. package/packages/mailx-send/mailsend/node_modules/@types/node/process.d.ts +0 -2084
  44. package/packages/mailx-send/mailsend/node_modules/@types/node/punycode.d.ts +0 -117
  45. package/packages/mailx-send/mailsend/node_modules/@types/node/querystring.d.ts +0 -152
  46. package/packages/mailx-send/mailsend/node_modules/@types/node/readline/promises.d.ts +0 -161
  47. package/packages/mailx-send/mailsend/node_modules/@types/node/readline.d.ts +0 -594
  48. package/packages/mailx-send/mailsend/node_modules/@types/node/repl.d.ts +0 -428
  49. package/packages/mailx-send/mailsend/node_modules/@types/node/sea.d.ts +0 -153
  50. package/packages/mailx-send/mailsend/node_modules/@types/node/sqlite.d.ts +0 -721
  51. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/consumers.d.ts +0 -38
  52. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/promises.d.ts +0 -90
  53. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/web.d.ts +0 -622
  54. package/packages/mailx-send/mailsend/node_modules/@types/node/stream.d.ts +0 -1664
  55. package/packages/mailx-send/mailsend/node_modules/@types/node/string_decoder.d.ts +0 -67
  56. package/packages/mailx-send/mailsend/node_modules/@types/node/test.d.ts +0 -2163
  57. package/packages/mailx-send/mailsend/node_modules/@types/node/timers/promises.d.ts +0 -108
  58. package/packages/mailx-send/mailsend/node_modules/@types/node/timers.d.ts +0 -287
  59. package/packages/mailx-send/mailsend/node_modules/@types/node/tls.d.ts +0 -1319
  60. package/packages/mailx-send/mailsend/node_modules/@types/node/trace_events.d.ts +0 -197
  61. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  62. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  63. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  64. package/packages/mailx-send/mailsend/node_modules/@types/node/tty.d.ts +0 -208
  65. package/packages/mailx-send/mailsend/node_modules/@types/node/url.d.ts +0 -984
  66. package/packages/mailx-send/mailsend/node_modules/@types/node/util.d.ts +0 -2606
  67. package/packages/mailx-send/mailsend/node_modules/@types/node/v8.d.ts +0 -920
  68. package/packages/mailx-send/mailsend/node_modules/@types/node/vm.d.ts +0 -1000
  69. package/packages/mailx-send/mailsend/node_modules/@types/node/wasi.d.ts +0 -181
  70. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  71. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  72. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/events.d.ts +0 -97
  73. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  74. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  75. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  76. package/packages/mailx-send/mailsend/node_modules/@types/node/worker_threads.d.ts +0 -784
  77. package/packages/mailx-send/mailsend/node_modules/@types/node/zlib.d.ts +0 -747
  78. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/LICENSE +0 -21
  79. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/README.md +0 -15
  80. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/index.d.ts +0 -82
  81. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +0 -31
  82. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/base64/index.d.ts +0 -22
  83. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/index.d.ts +0 -45
  84. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +0 -75
  85. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +0 -75
  86. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +0 -21
  87. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +0 -54
  88. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/index.d.ts +0 -38
  89. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +0 -53
  90. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +0 -25
  91. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/index.d.ts +0 -283
  92. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +0 -32
  93. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +0 -87
  94. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +0 -2
  95. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +0 -224
  96. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +0 -9
  97. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/qp/index.d.ts +0 -23
  98. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +0 -53
  99. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +0 -7
  100. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +0 -7
  101. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +0 -146
  102. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/shared/index.d.ts +0 -58
  103. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +0 -11
  104. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +0 -16
  105. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +0 -270
  106. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +0 -93
  107. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +0 -66
  108. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +0 -115
  109. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +0 -59
  110. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/well-known/index.d.ts +0 -6
  111. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +0 -114
  112. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/package.json +0 -38
  113. package/packages/mailx-send/mailsend/node_modules/nodemailer/.ncurc.js +0 -9
  114. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierignore +0 -8
  115. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc +0 -12
  116. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc.js +0 -10
  117. package/packages/mailx-send/mailsend/node_modules/nodemailer/.release-please-config.json +0 -9
  118. package/packages/mailx-send/mailsend/node_modules/nodemailer/LICENSE +0 -16
  119. package/packages/mailx-send/mailsend/node_modules/nodemailer/README.md +0 -86
  120. package/packages/mailx-send/mailsend/node_modules/nodemailer/SECURITY.txt +0 -22
  121. package/packages/mailx-send/mailsend/node_modules/nodemailer/eslint.config.js +0 -88
  122. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/addressparser/index.js +0 -383
  123. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/base64/index.js +0 -139
  124. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/index.js +0 -253
  125. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/message-parser.js +0 -155
  126. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/relaxed-body.js +0 -154
  127. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/sign.js +0 -117
  128. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/cookies.js +0 -281
  129. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/index.js +0 -280
  130. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/json-transport/index.js +0 -82
  131. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mail-composer/index.js +0 -629
  132. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/index.js +0 -441
  133. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/mail-message.js +0 -316
  134. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/index.js +0 -625
  135. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/mime-types.js +0 -2113
  136. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/index.js +0 -1316
  137. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/last-newline.js +0 -33
  138. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-unix.js +0 -43
  139. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-windows.js +0 -52
  140. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/nodemailer.js +0 -157
  141. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/punycode/index.js +0 -460
  142. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/qp/index.js +0 -227
  143. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js +0 -210
  144. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/ses-transport/index.js +0 -234
  145. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/shared/index.js +0 -754
  146. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/data-stream.js +0 -108
  147. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +0 -143
  148. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/index.js +0 -1870
  149. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/index.js +0 -652
  150. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +0 -259
  151. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-transport/index.js +0 -421
  152. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/stream-transport/index.js +0 -135
  153. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/index.js +0 -47
  154. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/services.json +0 -611
  155. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/xoauth2/index.js +0 -427
  156. package/packages/mailx-send/mailsend/node_modules/nodemailer/package.json +0 -47
  157. package/packages/mailx-send/mailsend/node_modules/undici-types/LICENSE +0 -21
  158. package/packages/mailx-send/mailsend/node_modules/undici-types/README.md +0 -6
  159. package/packages/mailx-send/mailsend/node_modules/undici-types/agent.d.ts +0 -31
  160. package/packages/mailx-send/mailsend/node_modules/undici-types/api.d.ts +0 -43
  161. package/packages/mailx-send/mailsend/node_modules/undici-types/balanced-pool.d.ts +0 -29
  162. package/packages/mailx-send/mailsend/node_modules/undici-types/cache.d.ts +0 -36
  163. package/packages/mailx-send/mailsend/node_modules/undici-types/client.d.ts +0 -108
  164. package/packages/mailx-send/mailsend/node_modules/undici-types/connector.d.ts +0 -34
  165. package/packages/mailx-send/mailsend/node_modules/undici-types/content-type.d.ts +0 -21
  166. package/packages/mailx-send/mailsend/node_modules/undici-types/cookies.d.ts +0 -28
  167. package/packages/mailx-send/mailsend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  168. package/packages/mailx-send/mailsend/node_modules/undici-types/dispatcher.d.ts +0 -256
  169. package/packages/mailx-send/mailsend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  170. package/packages/mailx-send/mailsend/node_modules/undici-types/errors.d.ts +0 -149
  171. package/packages/mailx-send/mailsend/node_modules/undici-types/eventsource.d.ts +0 -61
  172. package/packages/mailx-send/mailsend/node_modules/undici-types/fetch.d.ts +0 -209
  173. package/packages/mailx-send/mailsend/node_modules/undici-types/file.d.ts +0 -39
  174. package/packages/mailx-send/mailsend/node_modules/undici-types/filereader.d.ts +0 -54
  175. package/packages/mailx-send/mailsend/node_modules/undici-types/formdata.d.ts +0 -108
  176. package/packages/mailx-send/mailsend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  177. package/packages/mailx-send/mailsend/node_modules/undici-types/global-origin.d.ts +0 -7
  178. package/packages/mailx-send/mailsend/node_modules/undici-types/handlers.d.ts +0 -15
  179. package/packages/mailx-send/mailsend/node_modules/undici-types/header.d.ts +0 -4
  180. package/packages/mailx-send/mailsend/node_modules/undici-types/index.d.ts +0 -71
  181. package/packages/mailx-send/mailsend/node_modules/undici-types/interceptors.d.ts +0 -17
  182. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-agent.d.ts +0 -50
  183. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-client.d.ts +0 -25
  184. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-errors.d.ts +0 -12
  185. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  186. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-pool.d.ts +0 -25
  187. package/packages/mailx-send/mailsend/node_modules/undici-types/package.json +0 -55
  188. package/packages/mailx-send/mailsend/node_modules/undici-types/patch.d.ts +0 -33
  189. package/packages/mailx-send/mailsend/node_modules/undici-types/pool-stats.d.ts +0 -19
  190. package/packages/mailx-send/mailsend/node_modules/undici-types/pool.d.ts +0 -39
  191. package/packages/mailx-send/mailsend/node_modules/undici-types/proxy-agent.d.ts +0 -28
  192. package/packages/mailx-send/mailsend/node_modules/undici-types/readable.d.ts +0 -65
  193. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-agent.d.ts +0 -8
  194. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-handler.d.ts +0 -116
  195. package/packages/mailx-send/mailsend/node_modules/undici-types/util.d.ts +0 -18
  196. package/packages/mailx-send/mailsend/node_modules/undici-types/webidl.d.ts +0 -228
  197. package/packages/mailx-send/mailsend/node_modules/undici-types/websocket.d.ts +0 -150
  198. package/packages/mailx-send/node_modules/.package-lock.json +0 -49
  199. package/packages/mailx-send/node_modules/@types/node/LICENSE +0 -21
  200. package/packages/mailx-send/node_modules/@types/node/README.md +0 -15
  201. package/packages/mailx-send/node_modules/@types/node/assert/strict.d.ts +0 -111
  202. package/packages/mailx-send/node_modules/@types/node/assert.d.ts +0 -1078
  203. package/packages/mailx-send/node_modules/@types/node/async_hooks.d.ts +0 -603
  204. package/packages/mailx-send/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  205. package/packages/mailx-send/node_modules/@types/node/buffer.d.ts +0 -1934
  206. package/packages/mailx-send/node_modules/@types/node/child_process.d.ts +0 -1476
  207. package/packages/mailx-send/node_modules/@types/node/cluster.d.ts +0 -578
  208. package/packages/mailx-send/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  209. package/packages/mailx-send/node_modules/@types/node/compatibility/index.d.ts +0 -9
  210. package/packages/mailx-send/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  211. package/packages/mailx-send/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  212. package/packages/mailx-send/node_modules/@types/node/console.d.ts +0 -452
  213. package/packages/mailx-send/node_modules/@types/node/constants.d.ts +0 -21
  214. package/packages/mailx-send/node_modules/@types/node/crypto.d.ts +0 -4545
  215. package/packages/mailx-send/node_modules/@types/node/dgram.d.ts +0 -600
  216. package/packages/mailx-send/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  217. package/packages/mailx-send/node_modules/@types/node/dns/promises.d.ts +0 -503
  218. package/packages/mailx-send/node_modules/@types/node/dns.d.ts +0 -923
  219. package/packages/mailx-send/node_modules/@types/node/domain.d.ts +0 -170
  220. package/packages/mailx-send/node_modules/@types/node/events.d.ts +0 -976
  221. package/packages/mailx-send/node_modules/@types/node/fs/promises.d.ts +0 -1295
  222. package/packages/mailx-send/node_modules/@types/node/fs.d.ts +0 -4461
  223. package/packages/mailx-send/node_modules/@types/node/globals.d.ts +0 -172
  224. package/packages/mailx-send/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  225. package/packages/mailx-send/node_modules/@types/node/http.d.ts +0 -2089
  226. package/packages/mailx-send/node_modules/@types/node/http2.d.ts +0 -2644
  227. package/packages/mailx-send/node_modules/@types/node/https.d.ts +0 -579
  228. package/packages/mailx-send/node_modules/@types/node/index.d.ts +0 -97
  229. package/packages/mailx-send/node_modules/@types/node/inspector.d.ts +0 -253
  230. package/packages/mailx-send/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  231. package/packages/mailx-send/node_modules/@types/node/module.d.ts +0 -891
  232. package/packages/mailx-send/node_modules/@types/node/net.d.ts +0 -1057
  233. package/packages/mailx-send/node_modules/@types/node/os.d.ts +0 -506
  234. package/packages/mailx-send/node_modules/@types/node/package.json +0 -145
  235. package/packages/mailx-send/node_modules/@types/node/path.d.ts +0 -200
  236. package/packages/mailx-send/node_modules/@types/node/perf_hooks.d.ts +0 -968
  237. package/packages/mailx-send/node_modules/@types/node/process.d.ts +0 -2084
  238. package/packages/mailx-send/node_modules/@types/node/punycode.d.ts +0 -117
  239. package/packages/mailx-send/node_modules/@types/node/querystring.d.ts +0 -152
  240. package/packages/mailx-send/node_modules/@types/node/readline/promises.d.ts +0 -161
  241. package/packages/mailx-send/node_modules/@types/node/readline.d.ts +0 -594
  242. package/packages/mailx-send/node_modules/@types/node/repl.d.ts +0 -428
  243. package/packages/mailx-send/node_modules/@types/node/sea.d.ts +0 -153
  244. package/packages/mailx-send/node_modules/@types/node/sqlite.d.ts +0 -721
  245. package/packages/mailx-send/node_modules/@types/node/stream/consumers.d.ts +0 -38
  246. package/packages/mailx-send/node_modules/@types/node/stream/promises.d.ts +0 -90
  247. package/packages/mailx-send/node_modules/@types/node/stream/web.d.ts +0 -622
  248. package/packages/mailx-send/node_modules/@types/node/stream.d.ts +0 -1664
  249. package/packages/mailx-send/node_modules/@types/node/string_decoder.d.ts +0 -67
  250. package/packages/mailx-send/node_modules/@types/node/test.d.ts +0 -2163
  251. package/packages/mailx-send/node_modules/@types/node/timers/promises.d.ts +0 -108
  252. package/packages/mailx-send/node_modules/@types/node/timers.d.ts +0 -287
  253. package/packages/mailx-send/node_modules/@types/node/tls.d.ts +0 -1319
  254. package/packages/mailx-send/node_modules/@types/node/trace_events.d.ts +0 -197
  255. package/packages/mailx-send/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  256. package/packages/mailx-send/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  257. package/packages/mailx-send/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  258. package/packages/mailx-send/node_modules/@types/node/tty.d.ts +0 -208
  259. package/packages/mailx-send/node_modules/@types/node/url.d.ts +0 -984
  260. package/packages/mailx-send/node_modules/@types/node/util.d.ts +0 -2606
  261. package/packages/mailx-send/node_modules/@types/node/v8.d.ts +0 -920
  262. package/packages/mailx-send/node_modules/@types/node/vm.d.ts +0 -1000
  263. package/packages/mailx-send/node_modules/@types/node/wasi.d.ts +0 -181
  264. package/packages/mailx-send/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  265. package/packages/mailx-send/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  266. package/packages/mailx-send/node_modules/@types/node/web-globals/events.d.ts +0 -97
  267. package/packages/mailx-send/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  268. package/packages/mailx-send/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  269. package/packages/mailx-send/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  270. package/packages/mailx-send/node_modules/@types/node/worker_threads.d.ts +0 -784
  271. package/packages/mailx-send/node_modules/@types/node/zlib.d.ts +0 -747
  272. package/packages/mailx-send/node_modules/undici-types/LICENSE +0 -21
  273. package/packages/mailx-send/node_modules/undici-types/README.md +0 -6
  274. package/packages/mailx-send/node_modules/undici-types/agent.d.ts +0 -31
  275. package/packages/mailx-send/node_modules/undici-types/api.d.ts +0 -43
  276. package/packages/mailx-send/node_modules/undici-types/balanced-pool.d.ts +0 -29
  277. package/packages/mailx-send/node_modules/undici-types/cache.d.ts +0 -36
  278. package/packages/mailx-send/node_modules/undici-types/client.d.ts +0 -108
  279. package/packages/mailx-send/node_modules/undici-types/connector.d.ts +0 -34
  280. package/packages/mailx-send/node_modules/undici-types/content-type.d.ts +0 -21
  281. package/packages/mailx-send/node_modules/undici-types/cookies.d.ts +0 -28
  282. package/packages/mailx-send/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  283. package/packages/mailx-send/node_modules/undici-types/dispatcher.d.ts +0 -256
  284. package/packages/mailx-send/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  285. package/packages/mailx-send/node_modules/undici-types/errors.d.ts +0 -149
  286. package/packages/mailx-send/node_modules/undici-types/eventsource.d.ts +0 -61
  287. package/packages/mailx-send/node_modules/undici-types/fetch.d.ts +0 -209
  288. package/packages/mailx-send/node_modules/undici-types/file.d.ts +0 -39
  289. package/packages/mailx-send/node_modules/undici-types/filereader.d.ts +0 -54
  290. package/packages/mailx-send/node_modules/undici-types/formdata.d.ts +0 -108
  291. package/packages/mailx-send/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  292. package/packages/mailx-send/node_modules/undici-types/global-origin.d.ts +0 -7
  293. package/packages/mailx-send/node_modules/undici-types/handlers.d.ts +0 -15
  294. package/packages/mailx-send/node_modules/undici-types/header.d.ts +0 -4
  295. package/packages/mailx-send/node_modules/undici-types/index.d.ts +0 -71
  296. package/packages/mailx-send/node_modules/undici-types/interceptors.d.ts +0 -17
  297. package/packages/mailx-send/node_modules/undici-types/mock-agent.d.ts +0 -50
  298. package/packages/mailx-send/node_modules/undici-types/mock-client.d.ts +0 -25
  299. package/packages/mailx-send/node_modules/undici-types/mock-errors.d.ts +0 -12
  300. package/packages/mailx-send/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  301. package/packages/mailx-send/node_modules/undici-types/mock-pool.d.ts +0 -25
  302. package/packages/mailx-send/node_modules/undici-types/package.json +0 -55
  303. package/packages/mailx-send/node_modules/undici-types/patch.d.ts +0 -33
  304. package/packages/mailx-send/node_modules/undici-types/pool-stats.d.ts +0 -19
  305. package/packages/mailx-send/node_modules/undici-types/pool.d.ts +0 -39
  306. package/packages/mailx-send/node_modules/undici-types/proxy-agent.d.ts +0 -28
  307. package/packages/mailx-send/node_modules/undici-types/readable.d.ts +0 -65
  308. package/packages/mailx-send/node_modules/undici-types/retry-agent.d.ts +0 -8
  309. package/packages/mailx-send/node_modules/undici-types/retry-handler.d.ts +0 -116
  310. package/packages/mailx-send/node_modules/undici-types/util.d.ts +0 -18
  311. package/packages/mailx-send/node_modules/undici-types/webidl.d.ts +0 -228
  312. package/packages/mailx-send/node_modules/undici-types/websocket.d.ts +0 -150
@@ -1,283 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { EventEmitter } from "events";
4
- import { Socket } from "net";
5
- import { Readable } from "stream";
6
- import { Url } from "url";
7
-
8
- import { Transport, TransportOptions } from "../..";
9
- import * as shared from "../shared";
10
-
11
- import DKIM = require("../dkim");
12
- import MailMessage = require("./mail-message");
13
- import MimeNode = require("../mime-node");
14
- import SMTPConnection = require("../smtp-connection");
15
- import XOAuth2 = require("../xoauth2");
16
-
17
- declare namespace Mail {
18
- type Headers =
19
- | { [key: string]: string | string[] | { prepared: boolean; value: string } }
20
- | Array<{ key: string; value: string }>;
21
-
22
- type ListHeader = string | { url: string; comment: string };
23
-
24
- interface ListHeaders {
25
- [key: string]: ListHeader | ListHeader[] | ListHeader[][];
26
- }
27
-
28
- type TextEncoding = "quoted-printable" | "base64";
29
-
30
- interface Address {
31
- name: string;
32
- address: string;
33
- }
34
-
35
- interface AttachmentLike {
36
- /** String, Buffer or a Stream contents for the attachment */
37
- content?: string | Buffer | Readable | undefined;
38
- /** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */
39
- path?: string | Url | undefined;
40
- }
41
-
42
- interface Attachment extends AttachmentLike {
43
- /** filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically */
44
- filename?: string | false | undefined;
45
- /** optional content id for using inline images in HTML message source. Using cid sets the default contentDisposition to 'inline' and moves the attachment into a multipart/related mime node, so use it only if you actually want to use this attachment as an embedded image */
46
- cid?: string | undefined;
47
- /** If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, binary etc. Useful if you want to use binary attachments in a JSON formatted e-mail object */
48
- encoding?: string | undefined;
49
- /** optional content type for the attachment, if not set will be derived from the filename property */
50
- contentType?: string | undefined;
51
- /** optional transfer encoding for the attachment, if not set it will be derived from the contentType property. Example values: quoted-printable, base64. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text). */
52
- contentTransferEncoding?: "7bit" | "base64" | "quoted-printable" | false | undefined;
53
- /** optional content disposition type for the attachment, defaults to ‘attachment’ */
54
- contentDisposition?: "attachment" | "inline" | undefined;
55
- /** is an object of additional headers */
56
- headers?: Headers | undefined;
57
- /** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
58
- raw?: string | Buffer | Readable | AttachmentLike | undefined;
59
- }
60
-
61
- interface AmpAttachment extends AttachmentLike {
62
- /** is an alternative for content to load the AMP4EMAIL data from an URL */
63
- href?: string | undefined;
64
- /** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
65
- encoding?: string | undefined;
66
- /** optional content type for the attachment, if not set will be derived from the filename property */
67
- contentType?: string | undefined;
68
- /** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
69
- raw?: string | Buffer | Readable | AttachmentLike | undefined;
70
- }
71
-
72
- interface IcalAttachment extends AttachmentLike {
73
- /** optional method, case insensitive, defaults to ‘publish’. Other possible values would be ‘request’, ‘reply’, ‘cancel’ or any other valid calendar method listed in RFC5546. This should match the METHOD: value in calendar event file. */
74
- method?: string | undefined;
75
- /** optional filename, defaults to ‘invite.ics’ */
76
- filename?: string | false | undefined;
77
- /** is an alternative for content to load the calendar data from an URL */
78
- href?: string | undefined;
79
- /** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
80
- encoding?: string | undefined;
81
- }
82
-
83
- interface Connection {
84
- connection: Socket;
85
- }
86
-
87
- interface Envelope {
88
- /** the first address gets used as MAIL FROM address in SMTP */
89
- from?: string | undefined;
90
- /** addresses from this value get added to RCPT TO list */
91
- to?: string | undefined;
92
- /** addresses from this value get added to RCPT TO list */
93
- cc?: string | undefined;
94
- /** addresses from this value get added to RCPT TO list */
95
- bcc?: string | undefined;
96
- }
97
-
98
- interface Options {
99
- /** The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name <sender@server.com>' */
100
- from?: string | Address | undefined;
101
- /** An e-mail address that will appear on the Sender: field */
102
- sender?: string | Address | undefined;
103
- /** Comma separated list or an array of recipients e-mail addresses that will appear on the To: field */
104
- to?: string | Address | Array<string | Address> | undefined;
105
- /** Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field */
106
- cc?: string | Address | Array<string | Address> | undefined;
107
- /** Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field */
108
- bcc?: string | Address | Array<string | Address> | undefined;
109
- /** Comma separated list or an array of e-mail addresses that will appear on the Reply-To: field */
110
- replyTo?: string | Address | Array<string | Address> | undefined;
111
- /** The message-id this message is replying */
112
- inReplyTo?: string | Address | undefined;
113
- /** Message-id list (an array or space separated string) */
114
- references?: string | string[] | undefined;
115
- /** The subject of the e-mail */
116
- subject?: string | undefined;
117
- /** The plaintext version of the message */
118
- text?: string | Buffer | Readable | AttachmentLike | undefined;
119
- /** The HTML version of the message */
120
- html?: string | Buffer | Readable | AttachmentLike | undefined;
121
- /** Apple Watch specific HTML version of the message, same usage as with text and html */
122
- watchHtml?: string | Buffer | Readable | AttachmentLike | undefined;
123
- /** AMP4EMAIL specific HTML version of the message, same usage as with text and html. Make sure it is a full and valid AMP4EMAIL document, otherwise the displaying email client falls back to html and ignores the amp part */
124
- amp?: string | Buffer | Readable | AmpAttachment | undefined;
125
- /** iCalendar event, same usage as with text and html. Event method attribute defaults to ‘PUBLISH’ or define it yourself: {method: 'REQUEST', content: iCalString}. This value is added as an additional alternative to html or text. Only utf-8 content is allowed */
126
- icalEvent?: string | Buffer | Readable | IcalAttachment | undefined;
127
- /** An object or array of additional header fields */
128
- headers?: Headers | undefined;
129
- /** An object where key names are converted into list headers. List key help becomes List-Help header etc. */
130
- list?: ListHeaders | undefined;
131
- /** An array of attachment objects */
132
- attachments?: Attachment[] | undefined;
133
- /** An array of alternative text contents (in addition to text and html parts) */
134
- alternatives?: Attachment[] | undefined;
135
- /** optional SMTP envelope, if auto generated envelope is not suitable */
136
- envelope?: Envelope | MimeNode.Envelope | undefined;
137
- /** optional Message-Id value, random value will be generated if not set */
138
- messageId?: string | undefined;
139
- /** optional Date value, current UTC string will be used if not set */
140
- date?: Date | string | undefined;
141
- /** optional transfer encoding for the textual parts */
142
- encoding?: string | undefined;
143
- /** if set then overwrites entire message output with this value. The value is not parsed, so you should still set address headers or the envelope value for the message to work */
144
- raw?: string | Buffer | Readable | AttachmentLike | undefined;
145
- /** set explicitly which encoding to use for text parts (quoted-printable or base64). If not set then encoding is detected from text content (mostly ascii means quoted-printable, otherwise base64) */
146
- textEncoding?: TextEncoding | undefined;
147
- /** if set to true then fails with an error when a node tries to load content from URL */
148
- disableUrlAccess?: boolean | undefined;
149
- /** if set to true then fails with an error when a node tries to load content from a file */
150
- disableFileAccess?: boolean | undefined;
151
- /** is an object with DKIM options */
152
- dkim?: DKIM.Options | undefined;
153
- /** method to normalize header keys for custom caseing */
154
- normalizeHeaderKey?(key: string): string;
155
- priority?: "high" | "normal" | "low" | undefined;
156
- /** if set to true then converts data:images in the HTML content of message to embedded attachments */
157
- attachDataUrls?: boolean | undefined;
158
- /**
159
- * if set to false then removes x-mailer header, otherwise replaces the default x-mailer header value
160
- */
161
- xMailer?: false | string;
162
- }
163
-
164
- type PluginFunction<T = any> = (mail: MailMessage<T>, callback: (err?: Error | null) => void) => void;
165
- }
166
-
167
- /** Creates an object for exposing the Mail API */
168
- declare class Mail<T = any, DefaultTransportOptions = TransportOptions> extends EventEmitter {
169
- options: Mail.Options;
170
- meta: Map<string, any>;
171
- dkim: DKIM;
172
- transporter: Transport<T>;
173
- logger: shared.Logger;
174
-
175
- /** Usage: typeof transporter.MailMessage */
176
- MailMessage: MailMessage<T>;
177
-
178
- _defaults: DefaultTransportOptions;
179
-
180
- constructor(transporter: Transport<T>, options?: TransportOptions, defaults?: DefaultTransportOptions);
181
-
182
- /** Closes all connections in the pool. If there is a message being sent, the connection is closed later */
183
- close(): void;
184
-
185
- /** Returns true if there are free slots in the queue */
186
- isIdle(): boolean;
187
-
188
- /** Verifies SMTP configuration */
189
- verify(callback: (err: Error | null, success: true) => void): void;
190
- verify(): Promise<true>;
191
-
192
- use(step: string, plugin: Mail.PluginFunction<T>): this;
193
-
194
- /** Sends an email using the preselected transport object */
195
- sendMail(
196
- mailOptions: Mail.Options & Partial<DefaultTransportOptions>,
197
- callback: (err: Error | null, info: T) => void,
198
- ): void;
199
- sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: T) => void): void;
200
- sendMail(mailOptions: Mail.Options & Partial<DefaultTransportOptions>): Promise<T>;
201
- sendMail(mailOptions: Mail.Options): Promise<T>;
202
-
203
- getVersionString(): string;
204
-
205
- /** Sets up proxy handler for a Nodemailer object */
206
- setupProxy(proxyUrl: string): void;
207
-
208
- set(
209
- key: "oauth2_provision_cb",
210
- value: (
211
- user: string,
212
- renew: boolean,
213
- callback: (err: Error | null, accessToken?: string, expires?: number) => void,
214
- ) => void,
215
- ): Map<string, any>;
216
- set(
217
- key:
218
- | "proxy_handler_http"
219
- | "proxy_handler_https"
220
- | "proxy_handler_socks"
221
- | "proxy_handler_socks5"
222
- | "proxy_handler_socks4"
223
- | "proxy_handler_socks4a",
224
- value: (
225
- proxy: Url,
226
- options: TransportOptions,
227
- callback: (err: Error | null, socketOptions?: { connection: Socket }) => void,
228
- ) => void,
229
- ): Map<string, any>;
230
- set(key: string, value: any): Map<string, any>;
231
-
232
- get(
233
- key: "oauth2_provision_cb",
234
- ): (
235
- user: string,
236
- renew: boolean,
237
- callback: (err: Error | null, accessToken: string, expires: number) => void,
238
- ) => void;
239
- get(
240
- key:
241
- | "proxy_handler_http"
242
- | "proxy_handler_https"
243
- | "proxy_handler_socks"
244
- | "proxy_handler_socks5"
245
- | "proxy_handler_socks4"
246
- | "proxy_handler_socks4a",
247
- ): (
248
- proxy: Url,
249
- options: TransportOptions,
250
- callback: (err: Error | null, socketOptions: { connection: Socket }) => void,
251
- ) => void;
252
- get(key: string): any;
253
-
254
- addListener(event: "error", listener: (err: Error) => void): this;
255
- addListener(event: "idle", listener: () => void): this;
256
- addListener(event: "token", listener: (token: XOAuth2.Token) => void): this;
257
-
258
- emit(event: "error", error: Error): boolean;
259
- emit(event: "idle"): boolean;
260
- emit(event: "token", token: XOAuth2.Token): boolean;
261
-
262
- on(event: "error", listener: (err: Error) => void): this;
263
- on(event: "idle", listener: () => void): this;
264
- on(event: "token", listener: (token: XOAuth2.Token) => void): this;
265
-
266
- once(event: "error", listener: (err: Error) => void): this;
267
- once(event: "idle", listener: () => void): this;
268
- once(event: "token", listener: (token: XOAuth2.Token) => void): this;
269
-
270
- prependListener(event: "error", listener: (err: Error) => void): this;
271
- prependListener(event: "idle", listener: () => void): this;
272
- prependListener(event: "end", listener: (token: XOAuth2.Token) => void): this;
273
-
274
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
275
- prependOnceListener(event: "idle", listener: () => void): this;
276
- prependOnceListener(event: "end", listener: (token: XOAuth2.Token) => void): this;
277
-
278
- listeners(event: "error"): Array<(err: Error) => void>;
279
- listeners(event: "idle"): Array<() => void>;
280
- listeners(event: "end"): Array<(token: XOAuth2.Token) => void>;
281
- }
282
-
283
- export = Mail;
@@ -1,32 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { Readable } from "stream";
4
-
5
- import Mail = require(".");
6
- import MimeNode = require("../mime-node");
7
-
8
- declare class MailMessage<T = any> {
9
- mailer: Mail<T>;
10
- data: Mail.Options;
11
- message: MimeNode;
12
-
13
- constructor(mailer: Mail<T>, data: Mail.Options);
14
-
15
- resolveContent(
16
- data: object | any[],
17
- key: string | number,
18
- callback: (err: Error | null, value?: any) => any,
19
- ): Promise<any>;
20
-
21
- resolveAll(callback: (err?: Error | null, data?: Mail.Options) => void): void;
22
-
23
- normalize(callback: (err?: Error | null, data?: Mail.Options) => void): void;
24
-
25
- setMailerHeader(): void;
26
-
27
- setPriorityHeaders(): void;
28
-
29
- setListHeaders(): void;
30
- }
31
-
32
- export = MailMessage;
@@ -1,87 +0,0 @@
1
- export interface HeaderValue {
2
- value: string;
3
- params?: { [key: string]: string } | undefined;
4
- }
5
-
6
- export interface ParsedHeaderValue extends HeaderValue {
7
- params: { [key: string]: string };
8
- }
9
-
10
- export interface ParsedHeaderParam {
11
- key: string;
12
- value: string;
13
- }
14
-
15
- /** Checks if a value is plaintext string (uses only printable 7bit chars) */
16
- export function isPlainText(value: string): boolean;
17
-
18
- /**
19
- * Checks if a multi line string containes lines longer than the selected value.
20
- *
21
- * Useful when detecting if a mail message needs any processing at all –
22
- * if only plaintext characters are used and lines are short, then there is
23
- * no need to encode the values in any way. If the value is plaintext but has
24
- * longer lines then allowed, then use format=flowed
25
- */
26
- export function hasLongerLines(str: string, lineLength: number): boolean;
27
-
28
- /** Encodes a string or an Buffer to an UTF-8 MIME Word (rfc2047) */
29
- export function encodeWord(data: Buffer | string, mimeWordEncoding?: "Q" | "B", maxLength?: number): string;
30
-
31
- /** Finds word sequences with non ascii text and converts these to mime words */
32
- export function encodeWords(value: string, mimeWordEncoding?: "Q" | "B", maxLength?: number): string;
33
-
34
- /**
35
- * Joins parsed header value together as 'value; param1=value1; param2=value2'
36
- * PS: We are following RFC 822 for the list of special characters that we need to keep in quotes.
37
- * Refer: https://www.w3.org/Protocols/rfc1341/4_Content-Type.html
38
- */
39
- export function buildHeaderValue(structured: HeaderValue): string;
40
-
41
- /**
42
- * Encodes a string or an Buffer to an UTF-8 Parameter Value Continuation encoding (rfc2231)
43
- * Useful for splitting long parameter values.
44
- *
45
- * For example
46
- * ```
47
- * title="unicode string"
48
- * ```
49
- * becomes
50
- * ```
51
- * title*0*=utf-8''unicode
52
- * title*1*=%20string
53
- * ```
54
- */
55
- export function buildHeaderParam(key: string, data: Buffer | string, maxLength?: number): ParsedHeaderParam[];
56
-
57
- /**
58
- * Parses a header value with key=value arguments into a structured
59
- * object.
60
- *
61
- * ```
62
- * parseHeaderValue('content-type: text/plain; CHARSET='UTF-8') ->
63
- * {
64
- * 'value': 'text/plain',
65
- * 'params': {
66
- * 'charset': 'UTF-8'
67
- * }
68
- * }
69
- * ```
70
- */
71
- export function parseHeaderValue(str: string): ParsedHeaderValue;
72
-
73
- /** Returns file extension for a content type string. If no suitable extensions are found, 'bin' is used as the default extension */
74
- export function detectExtension(mimeType: string): string;
75
-
76
- /** Returns content type for a file extension. If no suitable content types are found, 'application/octet-stream' is used as the default content type */
77
- export function detectMimeType(extension: string): string;
78
-
79
- /** Folds long lines, useful for folding header lines (afterSpace=false) and flowed text (afterSpace=true) */
80
- export function foldLines(str: string, lineLength?: number, afterSpace?: boolean): string;
81
-
82
- /** Splits a mime encoded string. Needed for dividing mime words into smaller chunks */
83
- export function splitMimeEncodedString(str: string, maxlen?: number): string[];
84
-
85
- export function encodeURICharComponent(chr: string): string;
86
-
87
- export function safeEncodeURIComponent(str: string): string;
@@ -1,2 +0,0 @@
1
- export function detectMimeType(filename: string | false): string;
2
- export function detectExtension(mimeType: string | false): string;
@@ -1,224 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { Readable, ReadableOptions, Transform } from "stream";
4
-
5
- import Mail = require("../mailer");
6
-
7
- declare namespace MimeNode {
8
- interface Addresses {
9
- from?: string[] | undefined;
10
- sender?: string[] | undefined;
11
- "reply-to"?: string[] | undefined;
12
- to?: string[] | undefined;
13
- cc?: string[] | undefined;
14
- bcc?: string[] | undefined;
15
- }
16
-
17
- interface Envelope {
18
- /** includes an address object or is set to false */
19
- from: string | false;
20
- /** includes an array of address objects */
21
- to: string[];
22
- }
23
-
24
- interface Options {
25
- /** root node for this tree */
26
- rootNode?: MimeNode | undefined;
27
-
28
- /** immediate parent for this node */
29
- parentNode?: MimeNode | undefined;
30
-
31
- /** filename for an attachment node */
32
- filename?: string | undefined;
33
-
34
- /** Hostname for default message-id values */
35
- hostname?: string | undefined;
36
-
37
- /** shared part of the unique multipart boundary */
38
- baseBoundary?: string | undefined;
39
-
40
- /** If true, do not exclude Bcc from the generated headers */
41
- keepBcc?: boolean | undefined;
42
-
43
- /**
44
- * If set to 'win' then uses \r\n,
45
- * if 'linux' then \n.
46
- * If not set (or `raw` is used) then newlines are kept as is.
47
- */
48
- newline?: string | undefined;
49
-
50
- /** either 'Q' (the default) or 'B' */
51
- textEncoding?: "B" | "Q" | undefined;
52
-
53
- /** method to normalize header keys for custom caseing */
54
- normalizeHeaderKey?(key: string): string;
55
-
56
- /** undocumented */
57
- boundaryPrefix?: string | undefined;
58
-
59
- /** Undocumented */
60
- disableFileAccess?: boolean | undefined;
61
-
62
- /** Undocumented */
63
- disableUrlAccess?: boolean | undefined;
64
- }
65
- }
66
-
67
- /**
68
- * Creates a new mime tree node. Assumes 'multipart/*' as the content type
69
- * if it is a branch, anything else counts as leaf. If rootNode is missing from
70
- * the options, assumes this is the root.
71
- */
72
- declare class MimeNode {
73
- constructor(contentType?: string, options?: MimeNode.Options);
74
-
75
- /** Creates and appends a child node.Arguments provided are passed to MimeNode constructor */
76
- createChild(contentType: string, options?: MimeNode.Options): MimeNode;
77
-
78
- /** Appends an existing node to the mime tree. Removes the node from an existing tree if needed */
79
- appendChild(childNode: MimeNode): MimeNode;
80
-
81
- /** Replaces current node with another node */
82
- replace(node: MimeNode): MimeNode;
83
-
84
- /** Removes current node from the mime tree */
85
- remove(): this;
86
-
87
- /**
88
- * Sets a header value. If the value for selected key exists, it is overwritten.
89
- * You can set multiple values as well by using [{key:'', value:''}] or
90
- * {key: 'value'} as the first argument.
91
- */
92
- setHeader(key: string, value: string | string[]): this;
93
- setHeader(headers: { [key: string]: string } | Array<{ key: string; value: string }>): this;
94
-
95
- /**
96
- * Adds a header value. If the value for selected key exists, the value is appended
97
- * as a new field and old one is not touched.
98
- * You can set multiple values as well by using [{key:'', value:''}] or
99
- * {key: 'value'} as the first argument.
100
- */
101
- addHeader(key: string, value: string): this;
102
- addHeader(headers: { [key: string]: string } | Array<{ key: string; value: string }>): this;
103
-
104
- /** Retrieves the first mathcing value of a selected key */
105
- getHeader(key: string): string;
106
-
107
- /**
108
- * Sets body content for current node. If the value is a string, charset is added automatically
109
- * to Content-Type (if it is text/*). If the value is a Buffer, you need to specify
110
- * the charset yourself
111
- */
112
- setContent(content: string | Buffer | Readable): this;
113
-
114
- /** Generate the message and return it with a callback or promise */
115
- build(callback: (err: Error | null, buf: Buffer) => void): void;
116
- build(): Promise<Buffer>;
117
-
118
- getTransferEncoding(): string;
119
-
120
- /** Builds the header block for the mime node. Append \r\n\r\n before writing the content */
121
- buildHeaders(): string;
122
-
123
- /**
124
- * Streams the rfc2822 message from the current node. If this is a root node,
125
- * mandatory header fields are set if missing (Date, Message-Id, MIME-Version)
126
- */
127
- createReadStream(options?: ReadableOptions): Readable;
128
-
129
- /**
130
- * Appends a transform stream object to the transforms list. Final output
131
- * is passed through this stream before exposing
132
- */
133
- transform(transform: Transform): void;
134
-
135
- /**
136
- * Appends a post process function. The functon is run after transforms and
137
- * uses the following syntax
138
- *
139
- * processFunc(input) -> outputStream
140
- */
141
- processFunc(processFunc: (outputStream: Readable) => Readable): void;
142
-
143
- stream(outputStream: Readable, options: ReadableOptions, done: (err?: Error | null) => void): void;
144
-
145
- /** Sets envelope to be used instead of the generated one */
146
- setEnvelope(envelope: Mail.Envelope): this;
147
-
148
- /** Generates and returns an object with parsed address fields */
149
- getAddresses(): MimeNode.Addresses;
150
-
151
- /** Generates and returns SMTP envelope with the sender address and a list of recipients addresses */
152
- getEnvelope(): MimeNode.Envelope;
153
-
154
- /** Returns Message-Id value. If it does not exist, then creates one */
155
- messageId(): string;
156
-
157
- /** Sets pregenerated content that will be used as the output of this node */
158
- setRaw(raw: string | Buffer | Readable): this;
159
-
160
- /** shared part of the unique multipart boundary */
161
- baseBoundary: string;
162
-
163
- /** a multipart boundary value */
164
- boundary?: string | false | undefined;
165
-
166
- /** Undocumented */
167
- boundaryPrefix: string;
168
-
169
- /* An array for possible child nodes */
170
- childNodes: MimeNode[];
171
-
172
- /** body content for current node */
173
- content?: string | Buffer | Readable | undefined;
174
-
175
- /** Undocumented */
176
- contentType?: string | undefined;
177
-
178
- /**
179
- * If date headers is missing and current node is the root, this value is used instead
180
- */
181
- date: Date;
182
-
183
- /** Undocumented */
184
- disableFileAccess: boolean;
185
-
186
- /** Undocumented */
187
- disableUrlAccess: boolean;
188
-
189
- /** filename for an attachment node */
190
- filename?: string | undefined;
191
-
192
- /** Hostname for default message-id values */
193
- hostname?: string | undefined;
194
-
195
- /** If true, do not exclude Bcc from the generated headers */
196
- keepBcc: boolean;
197
-
198
- /** Undocumented */
199
- multipart?: boolean | undefined;
200
-
201
- /**
202
- * If set to 'win' then uses \r\n,
203
- * if 'linux' then \n.
204
- * If not set (or `raw` is used) then newlines are kept as is.
205
- */
206
- newline?: string | undefined;
207
-
208
- /** Undocumented */
209
- nodeCounter: number;
210
-
211
- /** method to normalize header keys for custom caseing */
212
- normalizeHeaderKey?: ((key: string) => string) | undefined;
213
-
214
- /* Immediate parent for this node (or undefined if not set) */
215
- parentNode?: MimeNode | undefined;
216
-
217
- /** root node for this tree */
218
- rootNode: MimeNode;
219
-
220
- /** either 'Q' (the default) or 'B' */
221
- textEncoding: "B" | "Q" | "";
222
- }
223
-
224
- export = MimeNode;
@@ -1,9 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { Transform } from "stream";
4
-
5
- declare class LastNewline extends Transform {
6
- lastByte: boolean;
7
- }
8
-
9
- export = LastNewline;
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { Transform, TransformOptions } from "stream";
4
-
5
- /** Encodes a Buffer into a Quoted-Printable encoded string */
6
- export function encode(buffer: Buffer | string): string;
7
-
8
- /** Adds soft line breaks to a Quoted-Printable string */
9
- export function wrap(str: string, lineLength?: number): string;
10
-
11
- export interface EncoderOptions extends TransformOptions {
12
- lineLength?: number | false | undefined;
13
- }
14
-
15
- /** Creates a transform stream for encoding data to Quoted-Printable encoding */
16
- export class Encoder extends Transform {
17
- options: EncoderOptions;
18
-
19
- inputBytes: number;
20
- outputBytes: number;
21
-
22
- constructor(options?: EncoderOptions);
23
- }