Initial Commit
This commit is contained in:
152
packages/communication/emails/email-processing/package.json
Normal file
152
packages/communication/emails/email-processing/package.json
Normal file
@@ -0,0 +1,152 @@
|
||||
{
|
||||
"name": "@suaveplan/email-processing",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Universal MIME parsing and email processing: postal-mime + libmime wrappers, attachment processing with SHA-256 hashing + MIME-type allowlists, Content-ID resolution, structured data extraction (iCalendar, delivery tracking, receipts), DKIM/SPF/DMARC verification, spam scoring with pluggable rule sets, conversation threading, hook pipeline + OTel instrumentation",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./parser": {
|
||||
"import": {
|
||||
"types": "./dist/parser/index.d.ts",
|
||||
"default": "./dist/parser/index.js"
|
||||
}
|
||||
},
|
||||
"./mime-utils": {
|
||||
"import": {
|
||||
"types": "./dist/mime-utils/index.d.ts",
|
||||
"default": "./dist/mime-utils/index.js"
|
||||
}
|
||||
},
|
||||
"./hooks": {
|
||||
"import": {
|
||||
"types": "./dist/hooks/index.d.ts",
|
||||
"default": "./dist/hooks/index.js"
|
||||
}
|
||||
},
|
||||
"./attachments": {
|
||||
"import": {
|
||||
"types": "./dist/attachment-processor/index.d.ts",
|
||||
"default": "./dist/attachment-processor/index.js"
|
||||
}
|
||||
},
|
||||
"./cid-resolver": {
|
||||
"import": {
|
||||
"types": "./dist/cid-resolver/index.d.ts",
|
||||
"default": "./dist/cid-resolver/index.js"
|
||||
}
|
||||
},
|
||||
"./extraction": {
|
||||
"import": {
|
||||
"types": "./dist/data-extractor/index.d.ts",
|
||||
"default": "./dist/data-extractor/index.js"
|
||||
}
|
||||
},
|
||||
"./calendar": {
|
||||
"import": {
|
||||
"types": "./dist/calendar-parser/index.d.ts",
|
||||
"default": "./dist/calendar-parser/index.js"
|
||||
}
|
||||
},
|
||||
"./dkim": {
|
||||
"import": {
|
||||
"types": "./dist/dkim-verifier/index.d.ts",
|
||||
"default": "./dist/dkim-verifier/index.js"
|
||||
}
|
||||
},
|
||||
"./dmarc": {
|
||||
"import": {
|
||||
"types": "./dist/dmarc-checker/index.d.ts",
|
||||
"default": "./dist/dmarc-checker/index.js"
|
||||
}
|
||||
},
|
||||
"./spf": {
|
||||
"import": {
|
||||
"types": "./dist/spf-checker/index.d.ts",
|
||||
"default": "./dist/spf-checker/index.js"
|
||||
}
|
||||
},
|
||||
"./spam": {
|
||||
"import": {
|
||||
"types": "./dist/spam-scorer/index.d.ts",
|
||||
"default": "./dist/spam-scorer/index.js"
|
||||
}
|
||||
},
|
||||
"./threading": {
|
||||
"import": {
|
||||
"types": "./dist/thread-grouper/index.d.ts",
|
||||
"default": "./dist/thread-grouper/index.js"
|
||||
}
|
||||
},
|
||||
"./errors": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/index.d.ts",
|
||||
"default": "./dist/error-codes/index.js"
|
||||
}
|
||||
},
|
||||
"./otel": {
|
||||
"import": {
|
||||
"types": "./dist/telemetry/index.d.ts",
|
||||
"default": "./dist/telemetry/index.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/events": "workspace:^",
|
||||
"@suaveplan/logger": "workspace:^",
|
||||
"@suaveplan/opentelemetry": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"postal-mime": "catalog:parsing",
|
||||
"libmime": "catalog:parsing",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@opentelemetry/sdk-metrics": "1.30.0",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user