simple-hpke 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +99 -0
- package/README.md +312 -0
- package/dist/index.cjs +1754 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +194 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1737 -0
- package/dist/index.js.map +7 -0
- package/dist/index.min.cjs +2 -0
- package/dist/index.min.cjs.map +7 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +7 -0
- package/dist/meta.json +818 -0
- package/package.json +80 -0
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "simple-hpke",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "Hybrid Public Key Encryption",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"./dist/*"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"import": [
|
|
16
|
+
"./dist/*.js",
|
|
17
|
+
"./dist/*"
|
|
18
|
+
],
|
|
19
|
+
"require": [
|
|
20
|
+
"./dist/*.cjs",
|
|
21
|
+
"./dist/*"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"lint": "eslint \"./**/*.{ts,js}\"",
|
|
27
|
+
"test": "npm run build && esbuild ./test/index.ts --bundle | tapout",
|
|
28
|
+
"test:node": "esbuild ./test/node.ts --bundle --platform=node --format=esm --external:tweetnacl --outfile=./test/node.mjs && node ./test/node.mjs",
|
|
29
|
+
"build-cjs": "esbuild src/*.ts --bundle --format=cjs --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.cjs --sourcemap",
|
|
30
|
+
"build-cjs:min": "esbuild src/*.ts --bundle --format=cjs --minify --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.min.cjs --sourcemap",
|
|
31
|
+
"build-esm": "esbuild src/*.ts --bundle --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
|
|
32
|
+
"build-esm:min": "esbuild ./src/*.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --out-extension:.js=.min.js --outdir=./dist --sourcemap",
|
|
33
|
+
"build-docs": "typedoc ./src/index.ts",
|
|
34
|
+
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-cjs:min",
|
|
35
|
+
"toc": "markdown-toc --maxdepth 5 -i README.md",
|
|
36
|
+
"preversion": "npm run lint",
|
|
37
|
+
"version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
|
|
38
|
+
"postversion": "git push --follow-tags && npm publish",
|
|
39
|
+
"prepublishOnly": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"uint8arrays": "^5.1.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@substrate-system/debug": "^0.9.64",
|
|
46
|
+
"@substrate-system/keys": "^0.2.41",
|
|
47
|
+
"@substrate-system/tapout": "^0.0.38",
|
|
48
|
+
"@substrate-system/tapzero": "^0.10.15",
|
|
49
|
+
"auto-changelog": "^2.4.0",
|
|
50
|
+
"esbuild": "^0.28.1",
|
|
51
|
+
"eslint": "^10.6.0",
|
|
52
|
+
"markdown-toc": "^1.2.0",
|
|
53
|
+
"newneostandard": "^0.14.1",
|
|
54
|
+
"typedoc": "^0.28.9",
|
|
55
|
+
"typescript": "^6.0.3",
|
|
56
|
+
"typescript-eslint": "^8.62.0"
|
|
57
|
+
},
|
|
58
|
+
"main": "dist/index.js",
|
|
59
|
+
"types": "./dist/index.d.ts",
|
|
60
|
+
"directories": {
|
|
61
|
+
"doc": "docs",
|
|
62
|
+
"example": "example",
|
|
63
|
+
"test": "test"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"HPKE",
|
|
67
|
+
"crypto",
|
|
68
|
+
"browser"
|
|
69
|
+
],
|
|
70
|
+
"homepage": "https://github.com/nichoth/simple-hpke#readme",
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/nichoth/simple-hpke/issues"
|
|
73
|
+
},
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "git+https://github.com/nichoth/simple-hpke.git"
|
|
77
|
+
},
|
|
78
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
79
|
+
"author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)"
|
|
80
|
+
}
|