feat: Refactor SMTP client to support session-based email processing, enhancing queue management and error handling

This commit is contained in:
Siwat Sirichai 2025-08-19 13:53:20 +07:00
parent c2aa9b6cf6
commit 069540e310
7 changed files with 951 additions and 480 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@siwats/mxrelay-consumer",
"version": "1.0.0",
"version": "1.1.0",
"description": "An internal TypeScript client library for transporting SMTP messages",
"main": "lib/index.js",
"module": "lib/index.esm.js",
@ -27,9 +27,9 @@
"postinstall": "npm run build",
"build": "bun run build:cjs && bun run build:esm && bun run build:types",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "echo 'ESM build disabled - use CommonJS for now'",
"build:esm": "tsc -p tsconfig.esm.json && cp lib-esm/index.js lib/index.esm.js && cp lib-esm/types.js lib/types.esm.js",
"build:types": "tsc -p tsconfig.types.json",
"clean": "rimraf lib",
"clean": "rimraf lib lib-esm",
"prepublishOnly": "npm run clean && npm run build",
"lint": "eslint src/**/*.ts && tsc --noEmit",
"lint:tsc": "tsc --noEmit",
@ -61,12 +61,12 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/siwats/smtp-ws-relay-client.git"
"url": "git+https://git.siwatsystem.com/siwatsystem-public/mxrelay-consumer.git"
},
"bugs": {
"url": "https://github.com/siwats/smtp-ws-relay-client/issues"
"url": "https://git.siwatsystem.com/siwatsystem-public/mxrelay-consumer/issues"
},
"homepage": "https://github.com/siwats/smtp-ws-relay-client#readme",
"homepage": "https://git.siwatsystem.com/siwatsystem-public/mxrelay-consumer#readme",
"engines": {
"node": ">=16.0.0"
},