99 lines
3.5 KiB
JSON
99 lines
3.5 KiB
JSON
{
|
|
"name": "@suaveplan/srp",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "SRP-6a zero-knowledge password proof (RFC 5054 / RFC 2945) — universal client+server roles, bundled 2048-bit safe-prime group, optional 1024/1536/3072/4096/6144/8192 groups under subpaths, augmented PAKE bridge for future OPAQUE drop-in.",
|
|
"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" }
|
|
},
|
|
"./groups": {
|
|
"import": { "types": "./dist/groups/index.d.ts", "default": "./dist/groups/index.js" }
|
|
},
|
|
"./groups/1024": {
|
|
"import": { "types": "./dist/groups/1024/index.d.ts", "default": "./dist/groups/1024/index.js" }
|
|
},
|
|
"./groups/1536": {
|
|
"import": { "types": "./dist/groups/1536/index.d.ts", "default": "./dist/groups/1536/index.js" }
|
|
},
|
|
"./groups/3072": {
|
|
"import": { "types": "./dist/groups/3072/index.d.ts", "default": "./dist/groups/3072/index.js" }
|
|
},
|
|
"./groups/4096": {
|
|
"import": { "types": "./dist/groups/4096/index.d.ts", "default": "./dist/groups/4096/index.js" }
|
|
},
|
|
"./groups/6144": {
|
|
"import": { "types": "./dist/groups/6144/index.d.ts", "default": "./dist/groups/6144/index.js" }
|
|
},
|
|
"./groups/8192": {
|
|
"import": { "types": "./dist/groups/8192/index.d.ts", "default": "./dist/groups/8192/index.js" }
|
|
},
|
|
"./params": {
|
|
"import": { "types": "./dist/params/index.d.ts", "default": "./dist/params/index.js" }
|
|
},
|
|
"./client": {
|
|
"import": { "types": "./dist/client/index.d.ts", "default": "./dist/client/index.js" }
|
|
},
|
|
"./server": {
|
|
"import": { "types": "./dist/server/index.d.ts", "default": "./dist/server/index.js" }
|
|
},
|
|
"./verifier": {
|
|
"import": { "types": "./dist/verifier/index.d.ts", "default": "./dist/verifier/index.js" }
|
|
},
|
|
"./pake": {
|
|
"import": { "types": "./dist/pake/index.d.ts", "default": "./dist/pake/index.js" }
|
|
},
|
|
"./hash": {
|
|
"import": { "types": "./dist/hash/index.d.ts", "default": "./dist/hash/index.js" }
|
|
},
|
|
"./errors": {
|
|
"import": { "types": "./dist/errors/index.d.ts", "default": "./dist/errors/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/crypto-hash": "workspace:^",
|
|
"@suaveplan/crypto-utils": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"@noble/curves": "catalog:crypto",
|
|
"@noble/hashes": "catalog:crypto",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms",
|
|
"@opentelemetry/api": "catalog:observability"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "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"]
|
|
}
|