Files
suaveplan/packages/security-stack/crypto/crypto-cipher/package.json
2026-05-27 23:47:53 +01:00

125 lines
4.3 KiB
JSON

{
"name": "@suaveplan/crypto-cipher",
"version": "0.1.0",
"type": "module",
"sideEffects": false,
"description": "AEAD cipher primitives with per-primitive selector layout: aes-256-gcm, chacha20-poly1305, xchacha20-poly1305. Noble + native impls selected at build time via crypto.config.ts. Nonces are caller-supplied; primitives never generate them internally.",
"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"
}
},
"./aes-256-gcm": {
"import": {
"types": "./dist/primitives/aes-256-gcm/aes-256-gcm.d.ts",
"default": "./dist/primitives/aes-256-gcm/aes-256-gcm.js"
},
"require": {
"types": "./dist/primitives/aes-256-gcm/aes-256-gcm.d.ts",
"default": "./dist/primitives/aes-256-gcm/aes-256-gcm.js"
}
},
"./chacha20-poly1305": {
"import": {
"types": "./dist/primitives/chacha20-poly1305/chacha20-poly1305.d.ts",
"default": "./dist/primitives/chacha20-poly1305/chacha20-poly1305.js"
},
"require": {
"types": "./dist/primitives/chacha20-poly1305/chacha20-poly1305.d.ts",
"default": "./dist/primitives/chacha20-poly1305/chacha20-poly1305.js"
}
},
"./xchacha20-poly1305": {
"import": {
"types": "./dist/primitives/xchacha20-poly1305/xchacha20-poly1305.d.ts",
"default": "./dist/primitives/xchacha20-poly1305/xchacha20-poly1305.js"
},
"require": {
"types": "./dist/primitives/xchacha20-poly1305/xchacha20-poly1305.d.ts",
"default": "./dist/primitives/xchacha20-poly1305/xchacha20-poly1305.js"
}
},
"./streaming/streaming-aead": {
"import": {
"types": "./dist/streaming/streaming-aead/index.d.ts",
"default": "./dist/streaming/streaming-aead/index.js"
},
"require": {
"types": "./dist/streaming/streaming-aead/index.d.ts",
"default": "./dist/streaming/streaming-aead/index.js"
}
},
"./streaming/streaming-aead-aes-gcm": {
"import": {
"types": "./dist/streaming/streaming-aead-aes-gcm/index.d.ts",
"default": "./dist/streaming/streaming-aead-aes-gcm/index.js"
},
"require": {
"types": "./dist/streaming/streaming-aead-aes-gcm/index.d.ts",
"default": "./dist/streaming/streaming-aead-aes-gcm/index.js"
}
},
"./streaming/streaming-aead-xchacha20": {
"import": {
"types": "./dist/streaming/streaming-aead-xchacha20/index.d.ts",
"default": "./dist/streaming/streaming-aead-xchacha20/index.js"
},
"require": {
"types": "./dist/streaming/streaming-aead-xchacha20/index.d.ts",
"default": "./dist/streaming/streaming-aead-xchacha20/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",
"crypto:kat": "vitest run --passWithNoTests -t 'RFC|NIST|Wycheproof|vector|KAT'",
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
},
"dependencies": {
"@noble/ciphers": "catalog:crypto",
"@suaveplan/crypto-utils": "workspace:^",
"@suaveplan/error": "workspace:^",
"@suaveplan/types": "workspace:^",
"tslib": "catalog:build",
"zod": "catalog:forms"
},
"devDependencies": {
"@suaveplan/testing": "workspace:^",
"@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"
]
}