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

111 lines
3.5 KiB
JSON

{
"name": "@suaveplan/crypto-hash",
"version": "0.1.0",
"type": "module",
"sideEffects": false,
"description": "Pure-TypeScript hashing substrate — SHA-2 digests, HMAC, HKDF, PBKDF2, Argon2id, hex/Base64 encoding. Zero WASM, zero browser deps.",
"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"
}
},
"./hash": {
"types": "./dist/hash/sha2/sha2.d.ts",
"default": "./dist/hash/sha2/sha2.js"
},
"./mac": {
"types": "./dist/mac/hmac/hmac.d.ts",
"default": "./dist/mac/hmac/hmac.js"
},
"./kdf": {
"types": "./dist/kdf/index.d.ts",
"default": "./dist/kdf/index.js"
},
"./encoding": {
"types": "./dist/encoding/index.d.ts",
"default": "./dist/encoding/index.js"
},
"./errors": {
"types": "./dist/errors/index.d.ts",
"default": "./dist/errors/index.js"
},
"./scrypt": {
"types": "./dist/primitives/scrypt/scrypt.d.ts",
"default": "./dist/primitives/scrypt/scrypt.js"
},
"./primitives/scrypt/scrypt": {
"types": "./dist/primitives/scrypt/scrypt.d.ts",
"default": "./dist/primitives/scrypt/scrypt.js"
},
"./blake2b": {
"types": "./dist/primitives/blake2b/blake2b.d.ts",
"default": "./dist/primitives/blake2b/blake2b.js"
},
"./primitives/blake2b/blake2b": {
"types": "./dist/primitives/blake2b/blake2b.d.ts",
"default": "./dist/primitives/blake2b/blake2b.js"
},
"./mac/blake2b-password/blake2b-password": {
"types": "./dist/mac/blake2b-password/blake2b-password.d.ts",
"default": "./dist/mac/blake2b-password/blake2b-password.js"
},
"./mac/argon2id-password/argon2id-password": {
"types": "./dist/mac/argon2id-password/argon2id-password.d.ts",
"default": "./dist/mac/argon2id-password/argon2id-password.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/hashes": "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",
"fast-check": "catalog:testing",
"mitata": "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"
]
}