@libp2p/crypto 0.22.3 → 0.22.7
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 +3 -1
- package/package.json +85 -68
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/crypto",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.7",
|
|
4
4
|
"description": "Crypto primitives for libp2p",
|
|
5
|
+
"license": "Apache-2.0 OR MIT",
|
|
6
|
+
"homepage": "https://github.com/libp2p/js-libp2p-crypto#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/libp2p/js-libp2p-crypto.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/libp2p/js-libp2p-crypto/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"IPFS",
|
|
16
|
+
"crypto",
|
|
17
|
+
"libp2p",
|
|
18
|
+
"rsa",
|
|
19
|
+
"secp256k1"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=16.0.0",
|
|
23
|
+
"npm": ">=7.0.0"
|
|
24
|
+
},
|
|
5
25
|
"type": "module",
|
|
6
26
|
"types": "./dist/src/index.d.ts",
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
"*": {
|
|
29
|
+
"*": [
|
|
30
|
+
"*",
|
|
31
|
+
"dist/*",
|
|
32
|
+
"dist/src/*",
|
|
33
|
+
"dist/src/*/index"
|
|
34
|
+
],
|
|
35
|
+
"src/*": [
|
|
36
|
+
"*",
|
|
37
|
+
"dist/*",
|
|
38
|
+
"dist/src/*",
|
|
39
|
+
"dist/src/*/index"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"src",
|
|
45
|
+
"dist/src",
|
|
46
|
+
"!dist/test",
|
|
47
|
+
"!**/*.tsbuildinfo"
|
|
48
|
+
],
|
|
7
49
|
"exports": {
|
|
8
50
|
".": {
|
|
9
51
|
"import": "./dist/src/index.js"
|
|
@@ -21,12 +63,6 @@
|
|
|
21
63
|
"import": "./dist/src/keys/index.js"
|
|
22
64
|
}
|
|
23
65
|
},
|
|
24
|
-
"files": [
|
|
25
|
-
"src",
|
|
26
|
-
"dist/src",
|
|
27
|
-
"!dist/test",
|
|
28
|
-
"!**/*.tsbuildinfo"
|
|
29
|
-
],
|
|
30
66
|
"eslintConfig": {
|
|
31
67
|
"extends": "ipfs",
|
|
32
68
|
"parserOptions": {
|
|
@@ -36,67 +72,6 @@
|
|
|
36
72
|
"src/*.d.ts"
|
|
37
73
|
]
|
|
38
74
|
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"lint": "aegir lint",
|
|
41
|
-
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
|
|
42
|
-
"build": "tsc",
|
|
43
|
-
"pretest": "npm run build",
|
|
44
|
-
"test": "aegir test -f ./dist/test/**/*.js",
|
|
45
|
-
"test:chrome": "npm run test -- -t browser",
|
|
46
|
-
"test:chrome-webworker": "npm run test -- -t webworker",
|
|
47
|
-
"test:firefox": "npm run test -- -t browser -- --browser firefox",
|
|
48
|
-
"test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
|
|
49
|
-
"test:node": "npm run test -- -t node --cov",
|
|
50
|
-
"test:electron-main": "npm run test -- -t electron-main",
|
|
51
|
-
"release": "semantic-release",
|
|
52
|
-
"build:proto": "npm run build:proto:js && npm run build:proto:types",
|
|
53
|
-
"build:proto:js": "pbjs -t static-module -w es6 --es6 -r libp2p-crypto-keys --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto",
|
|
54
|
-
"build:proto:types": "pbts -o src/keys/keys.d.ts src/keys/keys.js"
|
|
55
|
-
},
|
|
56
|
-
"browser": {
|
|
57
|
-
"./dist/src/aes/ciphers.js": "./dist/src/aes/ciphers-browser.js",
|
|
58
|
-
"./dist/src/ciphers/aes-gcm.js": "./dist/src/ciphers/aes-gcm.browser.js",
|
|
59
|
-
"./dist/src/hmac/index.js": "./dist/src/hmac/index-browser.js",
|
|
60
|
-
"./dist/src/keys/ecdh.js": "./dist/src/keys/ecdh-browser.js",
|
|
61
|
-
"./dist/src/keys/rsa.js": "./dist/src/keys/rsa-browser.js"
|
|
62
|
-
},
|
|
63
|
-
"keywords": [
|
|
64
|
-
"IPFS",
|
|
65
|
-
"libp2p",
|
|
66
|
-
"crypto",
|
|
67
|
-
"rsa",
|
|
68
|
-
"secp256k1"
|
|
69
|
-
],
|
|
70
|
-
"license": "Apache-2.0 OR MIT",
|
|
71
|
-
"dependencies": {
|
|
72
|
-
"@noble/ed25519": "^1.3.3",
|
|
73
|
-
"@noble/secp256k1": "^1.3.4",
|
|
74
|
-
"err-code": "^3.0.1",
|
|
75
|
-
"iso-random-stream": "^2.0.0",
|
|
76
|
-
"multiformats": "^9.4.5",
|
|
77
|
-
"node-forge": "^0.10.0",
|
|
78
|
-
"protobufjs": "^6.11.2",
|
|
79
|
-
"uint8arrays": "^3.0.0"
|
|
80
|
-
},
|
|
81
|
-
"devDependencies": {
|
|
82
|
-
"@types/mocha": "^9.0.0",
|
|
83
|
-
"aegir": "^36.1.2",
|
|
84
|
-
"benchmark": "^2.1.4",
|
|
85
|
-
"sinon": "^12.0.1",
|
|
86
|
-
"util": "^0.12.3",
|
|
87
|
-
"wherearewe": "^1.0.0"
|
|
88
|
-
},
|
|
89
|
-
"engines": {
|
|
90
|
-
"node": ">=15.0.0"
|
|
91
|
-
},
|
|
92
|
-
"repository": {
|
|
93
|
-
"type": "git",
|
|
94
|
-
"url": "https://github.com/libp2p/js-libp2p-crypto.git"
|
|
95
|
-
},
|
|
96
|
-
"bugs": {
|
|
97
|
-
"url": "https://github.com/libp2p/js-libp2p-crypto/issues"
|
|
98
|
-
},
|
|
99
|
-
"homepage": "https://github.com/libp2p/js-libp2p-crypto",
|
|
100
75
|
"release": {
|
|
101
76
|
"branches": [
|
|
102
77
|
"master"
|
|
@@ -177,5 +152,47 @@
|
|
|
177
152
|
"@semantic-release/github",
|
|
178
153
|
"@semantic-release/git"
|
|
179
154
|
]
|
|
155
|
+
},
|
|
156
|
+
"scripts": {
|
|
157
|
+
"lint": "aegir lint",
|
|
158
|
+
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
|
|
159
|
+
"build": "tsc",
|
|
160
|
+
"pretest": "npm run build",
|
|
161
|
+
"test": "aegir test -f ./dist/test/**/*.js",
|
|
162
|
+
"test:chrome": "npm run test -- -t browser",
|
|
163
|
+
"test:chrome-webworker": "npm run test -- -t webworker",
|
|
164
|
+
"test:firefox": "npm run test -- -t browser -- --browser firefox",
|
|
165
|
+
"test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
|
|
166
|
+
"test:node": "npm run test -- -t node --cov",
|
|
167
|
+
"test:electron-main": "npm run test -- -t electron-main",
|
|
168
|
+
"release": "semantic-release",
|
|
169
|
+
"build:proto": "npm run build:proto:js && npm run build:proto:types",
|
|
170
|
+
"build:proto:js": "pbjs -t static-module -w es6 --es6 -r libp2p-crypto-keys --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto",
|
|
171
|
+
"build:proto:types": "pbts -o src/keys/keys.d.ts src/keys/keys.js"
|
|
172
|
+
},
|
|
173
|
+
"dependencies": {
|
|
174
|
+
"@noble/ed25519": "^1.3.3",
|
|
175
|
+
"@noble/secp256k1": "^1.3.4",
|
|
176
|
+
"err-code": "^3.0.1",
|
|
177
|
+
"iso-random-stream": "^2.0.0",
|
|
178
|
+
"multiformats": "^9.4.5",
|
|
179
|
+
"node-forge": "^1.1.0",
|
|
180
|
+
"protobufjs": "^6.11.2",
|
|
181
|
+
"uint8arrays": "^3.0.0"
|
|
182
|
+
},
|
|
183
|
+
"devDependencies": {
|
|
184
|
+
"@types/mocha": "^9.0.0",
|
|
185
|
+
"aegir": "^36.1.2",
|
|
186
|
+
"benchmark": "^2.1.4",
|
|
187
|
+
"sinon": "^13.0.1",
|
|
188
|
+
"util": "^0.12.3",
|
|
189
|
+
"wherearewe": "^1.0.0"
|
|
190
|
+
},
|
|
191
|
+
"browser": {
|
|
192
|
+
"./dist/src/aes/ciphers.js": "./dist/src/aes/ciphers-browser.js",
|
|
193
|
+
"./dist/src/ciphers/aes-gcm.js": "./dist/src/ciphers/aes-gcm.browser.js",
|
|
194
|
+
"./dist/src/hmac/index.js": "./dist/src/hmac/index-browser.js",
|
|
195
|
+
"./dist/src/keys/ecdh.js": "./dist/src/keys/ecdh-browser.js",
|
|
196
|
+
"./dist/src/keys/rsa.js": "./dist/src/keys/rsa-browser.js"
|
|
180
197
|
}
|
|
181
198
|
}
|