| 
									
										
										
										
											2025-10-24 08:09:29 +00:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Plugin dependencies for the mailer package | 
					
						
							|  |  |  |  * Imports both Deno standard library and Node.js compatibility | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Deno standard library
 | 
					
						
							|  |  |  | export * as path from '@std/path'; | 
					
						
							|  |  |  | export * as colors from '@std/fmt/colors'; | 
					
						
							|  |  |  | export * as cli from '@std/cli'; | 
					
						
							|  |  |  | export { serveDir } from '@std/http/file-server'; | 
					
						
							|  |  |  | export * as crypto from '@std/crypto'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-24 10:00:25 +00:00
										 |  |  | // Node.js built-in modules (needed for SMTP and email processing)
 | 
					
						
							| 
									
										
										
										
											2025-10-24 08:09:29 +00:00
										 |  |  | import { EventEmitter } from 'node:events'; | 
					
						
							|  |  |  | import * as net from 'node:net'; | 
					
						
							|  |  |  | import * as tls from 'node:tls'; | 
					
						
							|  |  |  | import * as dns from 'node:dns'; | 
					
						
							|  |  |  | import * as fs from 'node:fs'; | 
					
						
							|  |  |  | import * as os from 'node:os'; | 
					
						
							|  |  |  | import * as process from 'node:process'; | 
					
						
							|  |  |  | import * as buffer from 'node:buffer'; | 
					
						
							| 
									
										
										
										
											2025-10-24 10:00:25 +00:00
										 |  |  | import * as util from 'node:util'; | 
					
						
							| 
									
										
										
										
											2025-10-24 08:09:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-24 10:00:25 +00:00
										 |  |  | export { EventEmitter, net, tls, dns, fs, os, process, buffer, util }; | 
					
						
							| 
									
										
										
										
											2025-10-24 08:09:29 +00:00
										 |  |  | export const Buffer = buffer.Buffer; | 
					
						
							| 
									
										
										
										
											2025-10-24 10:00:25 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Cloudflare API client
 | 
					
						
							|  |  |  | import * as cloudflareImport from '@apiclient.xyz/cloudflare'; | 
					
						
							|  |  |  | export const cloudflare = cloudflareImport; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // @push.rocks packages
 | 
					
						
							|  |  |  | import * as smartfile from '@push.rocks/smartfile'; | 
					
						
							|  |  |  | import * as smartdns from '@push.rocks/smartdns'; | 
					
						
							|  |  |  | import * as smartmail from '@push.rocks/smartmail'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export { smartfile, smartdns, smartmail }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // @tsclass packages
 | 
					
						
							|  |  |  | import * as tsclass from '@tsclass/tsclass'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export { tsclass }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Third-party libraries
 | 
					
						
							|  |  |  | import * as mailauth from 'mailauth'; | 
					
						
							|  |  |  | import { dkimSign } from 'mailauth/lib/dkim/sign.js'; | 
					
						
							|  |  |  | import * as uuid from 'uuid'; | 
					
						
							|  |  |  | import * as ip from 'ip'; | 
					
						
							|  |  |  | import { LRUCache } from 'lru-cache'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export { mailauth, dkimSign, uuid, ip, LRUCache }; |