-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
140 lines (140 loc) · 4.64 KB
/
package.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "@deliberative/crypto",
"description": "Libsodium, Merkle trees, Shamir secret sharing wasm module for nodejs and the browser.",
"version": "1.0.8",
"repository": {
"type": "git",
"url": "https://github.com/deliberative/crypto.git"
},
"author": {
"name": "Deliberative Technologies P.C.",
"email": "security@deliberative.io",
"url": "https://github.com/deliberative"
},
"contributors": [
{
"name": "Dimitris Karoukis",
"email": "dim@deliberative.io",
"url": "https://deliberative.io"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/deliberative/crypto/issues"
},
"keywords": [
"deliberative",
"ledger",
"deliberative ledger",
"libsodium",
"curve25519",
"public key cryptography",
"shamir secret sharing",
"bip39",
"cryptography",
"emscripten",
"typescript"
],
"homepage": "https://github.com/deliberative/crypto#readme",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"browser": "lib/index.min.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"node": {
"module": "./lib/index.node.mjs",
"require": "./lib/index.node.cjs",
"import": "./lib/index.node.mjs"
},
"browser": {
"module": "./lib/index.mjs",
"require": "./lib/index.cjs",
"import": "./lib/index.mjs"
},
"default": "./lib/index.min.js"
},
"./package.json": "./package.json"
},
"files": [
"lib/**/*"
],
"scripts": {
"start": "cross-env NODE_ENV=development rollup --config rollup.config.ts --configPlugin typescript",
"wasm": "cross-env NODE_ENV=production node scripts/compileMethods.js",
"wasm:debug": "cross-env NODE_ENV=development node scripts/compileMethods.js",
"valgrind": "node scripts/testWithValgrind.js",
"postvalgrind": "./examples/c/dcrypto_methods.o && rm -rf examples/c/dcrypto_methods.o",
"code": "cross-env NODE_ENV=production rollup --config rollup.config.ts --configPlugin typescript",
"code:debug": "cross-env NODE_ENV=development rollup --config rollup.config.ts --configPlugin typescript",
"build:browser": "cross-env NODE_OR_BROWSER=browser npm-run-all -s wasm code",
"build:node": "cross-env NODE_OR_BROWSER=node npm-run-all -s wasm code",
"build": "npm-run-all -s build:node build:browser",
"postbuild": "node scripts/post.js",
"build:browser:debug": "cross-env NODE_OR_BROWSER=browser npm-run-all -s wasm:debug code:debug postbuild",
"build:node:debug": "cross-env NODE_OR_BROWSER=node npm-run-all -s wasm:debug code:debug postbuild",
"jest": "jest --config jest.config.json",
"test": "cross-env NODE_OR_BROWSER=node npm-run-all -s wasm jest",
"bench1": "node benchmarks/symmetric/index.js",
"bench2": "node benchmarks/asymmetric/index.js",
"bench3": "node benchmarks/hash/index.js",
"prebench": "npm run build",
"bench": "npm-run-all -s bench3 bench2 bench1",
"preformat": "clang-format-all src/",
"format": "prettier --write rollup.config.ts src examples/js __tests__",
"postformat": "clang-format-all examples/",
"lint": "eslint --ext .js,.ts src __tests__",
"prepublishOnly": "npm-run-all -s lint test build",
"preversion": "npm-run-all -s lint format",
"docs": "typedoc --out docs --excludeInternal src/index.ts"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-replace": "^5.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@rollup/plugin-url": "^8.0.0",
"@types/emscripten": "^1.39.6",
"@types/jest": "^29.0.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.6.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-jsdoc": "^46.4.3",
"eslint-plugin-prefer-arrow": "^1.2.3",
"jest": "^29.0.1",
"jest-badges": "^0.1.3",
"jest-environment-jsdom": "^29.0.0",
"nanobench": "^3.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rollup": "^4.0.1",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"terser": "^5.15.1",
"ts-jest": "^29.0.0-next.1",
"tslib": "^2.3.1",
"tweetnacl": "^1.0.3",
"typedoc": "^0.25.1",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=16",
"npm": ">=8"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}