-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 3.07 KB
/
package.json
File metadata and controls
103 lines (103 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "@de-otio/crypto-envelope",
"version": "0.3.0",
"description": "Opinionated authenticated-encryption envelopes for TypeScript. XChaCha20-Poly1305 + AES-256-GCM AEAD + AAD binding + HMAC-SHA256 key commitment + RFC 8785 canonical JSON + Argon2id/PBKDF2 passphrase-KDF + SecureBuffer. Safe defaults that can't be turned off. Runs on Node, browsers (MV3), Deno, Bun, Cloudflare Workers.",
"license": "MIT",
"author": {
"name": "De Otio",
"email": "security@de-otio.org",
"url": "https://github.com/de-otio"
},
"repository": {
"type": "git",
"url": "https://github.com/de-otio/crypto-envelope.git"
},
"homepage": "https://github.com/de-otio/crypto-envelope#readme",
"bugs": {
"url": "https://github.com/de-otio/crypto-envelope/issues"
},
"keywords": [
"crypto",
"encryption",
"aead",
"envelope",
"e2e",
"end-to-end-encryption",
"xchacha20poly1305",
"argon2id",
"hkdf",
"key-commitment",
"zero-knowledge",
"typescript"
],
"type": "module",
"main": "./dist-cjs/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist-cjs/index.js"
},
"./primitives": {
"types": "./dist/primitives/index.d.ts",
"import": "./dist/primitives/index.js",
"require": "./dist-cjs/primitives/index.js"
},
"./test-vectors": {
"import": "./test/vectors/index.js",
"require": "./test/vectors/index.cjs",
"default": "./test/vectors/index.js"
}
},
"browser": {
"./dist/secure-buffer.js": "./dist/secure-buffer.browser.js",
"./dist-cjs/secure-buffer.js": "./dist/secure-buffer.browser.js",
"./dist/internal/constant-time.js": "./dist/internal/constant-time.browser.js",
"./dist-cjs/internal/constant-time.js": "./dist/internal/constant-time.browser.js",
"sodium-native": false
},
"files": [
"dist/",
"dist-cjs/",
"test/vectors/",
"LICENSE",
"README.md",
"SECURITY.md",
"CHANGELOG.md"
],
"scripts": {
"build": "tsc && tsc -p tsconfig.cjs.json",
"test": "vitest run --exclude '**/slow/**'",
"test:slow": "vitest run test/slow",
"test:all": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "biome check . && tsc --noEmit",
"lint:fix": "biome check --write .",
"prepublishOnly": "npm run build && npm run test:all",
"regen-vectors": "esbuild --bundle --platform=node --format=esm tools/regen-vectors.ts --outfile=tmp/regen-vectors.mjs && node tmp/regen-vectors.mjs"
},
"engines": {
"node": ">=22.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"dependencies": {
"@noble/ciphers": "^2.2.0",
"@noble/hashes": "^2.2.0",
"cborg": "^5.1.0",
"sodium-native": "^5.1.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/node": "^25.6.0",
"@vitest/coverage-v8": "^4.1.4",
"esbuild": "^0.28.0",
"typescript": "~6.0.0",
"vitest": "^4.1.4"
}
}