* fix(email): make team org invites more transactional Use org-branded sender and subject instead of the default "Best from ClassroomIO" marketing identity. Include the inviter name in the body, remove promotional emojis, and thread optional subject overrides through the email job pipeline. Co-authored-by: Rotimi Best <[email protected]> * fix(email): escape invite fields and sanitize email headers Address Greptile review: escape inviter/org/role values in the team invite template, sanitize display names in buildEmailFromName, and strip control characters from dynamic subjects. Co-authored-by: Rotimi Best <[email protected]> * fix(email): use RFC 5322 backslash escaping in display names Co-authored-by: Rotimi Best <[email protected]> * test(email): add vitest coverage for email header helpers Cover escapeHtml, sanitizeEmailDisplayName, sanitizeEmailSubject, and buildEmailFromName. Collapse repeated whitespace when stripping control characters from header values. Co-authored-by: Rotimi Best <[email protected]> * fix(email): strip all ASCII control chars from email headers Co-authored-by: Rotimi Best <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Rotimi Best <[email protected]>
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"name": "@cio/email",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc && tsc-alias",
|
|
"dev": "tsc --watch",
|
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./send": {
|
|
"types": "./dist/send.d.ts",
|
|
"default": "./dist/send.js"
|
|
},
|
|
"./templates": {
|
|
"types": "./dist/templates/index.d.ts",
|
|
"default": "./dist/templates/index.js"
|
|
}
|
|
},
|
|
"peerDependencies": {
|
|
"zod": "^4.1.8"
|
|
},
|
|
"dependencies": {
|
|
"@cio/tsconfig": "workspace:*",
|
|
"@cio/utils": "workspace:*",
|
|
"nodemailer": "^6.9.5",
|
|
"zeptomail": "^6.0.0",
|
|
"zod": "^4.1.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"@types/nodemailer": "^6.4.21",
|
|
"prettier": "^3.2.5",
|
|
"tsc-alias": "^1.8.16",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.5.2",
|
|
"vitest": "^1.2.2"
|
|
}
|
|
}
|