- 10 source files: types, aes-gcm, 3 key providers (memory/env/akv), envelope, key-cache, dek-store, guards, migration, factory - 42 Vitest tests: AES-GCM roundtrips, tamper detection, unicode, 100KB payloads, key providers, DEK cache TTL/LRU, envelope lifecycle, migration (dry-run + idempotent), config validation - AKV MEK creation script (scripts/create-encryption-keys.sh) for 10 product MEKs - .env.example updated with FIELD_ENCRYPT_* vars
41 lines
751 B
JSON
41 lines
751 B
JSON
{
|
|
"name": "@bytelyst/field-encrypt",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/errors": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"@azure/keyvault-keys": ">=4.8.0",
|
|
"@azure/identity": ">=4.0.0",
|
|
"zod": ">=3.22.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@azure/keyvault-keys": {
|
|
"optional": true
|
|
},
|
|
"@azure/identity": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^3.0.0",
|
|
"zod": "^3.24.0"
|
|
}
|
|
}
|