@peerbit/crypto 2.3.2 → 2.3.3-03f5b18
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/dist/src/bytes.d.ts +1 -1
- package/dist/src/bytes.d.ts.map +1 -1
- package/dist/src/random.browser.d.ts +1 -1
- package/dist/src/random.browser.d.ts.map +1 -1
- package/dist/src/random.d.ts +1 -1
- package/dist/src/random.d.ts.map +1 -1
- package/dist/src/utils.d.ts +3 -3
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +77 -77
package/dist/src/bytes.d.ts
CHANGED
package/dist/src/bytes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/bytes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM,MAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/bytes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM,MAAO,GAAG,gCAO5B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const randomBytes: (len: number) => Uint8Array
|
|
1
|
+
export declare const randomBytes: (len: number) => Uint8Array<ArrayBuffer>;
|
|
2
2
|
//# sourceMappingURL=random.browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.browser.d.ts","sourceRoot":"","sources":["../../src/random.browser.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"random.browser.d.ts","sourceRoot":"","sources":["../../src/random.browser.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,MAAM,4BACgB,CAAC"}
|
package/dist/src/random.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const randomBytes: (len: number) => Buffer
|
|
1
|
+
export declare const randomBytes: (len: number) => Buffer<ArrayBufferLike>;
|
|
2
2
|
//# sourceMappingURL=random.d.ts.map
|
package/dist/src/random.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/random.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/random.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAS,MAAM,4BAA4B,CAAC"}
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const fromHexString: (hexString: string) => Uint8Array
|
|
1
|
+
export declare const fromHexString: (hexString: string) => Uint8Array<ArrayBufferLike>;
|
|
2
2
|
export declare const toHexString: (bytes: Uint8Array) => string;
|
|
3
3
|
export declare const toBase64: (arr: Uint8Array) => string;
|
|
4
|
-
export declare const fromBase64: (base64: string) => Uint8Array
|
|
4
|
+
export declare const fromBase64: (base64: string) => Uint8Array<ArrayBufferLike>;
|
|
5
5
|
export declare const toBase64URL: (arr: Uint8Array) => string;
|
|
6
|
-
export declare const fromBase64URL: (base64: string) => Uint8Array
|
|
6
|
+
export declare const fromBase64URL: (base64: string) => Uint8Array<ArrayBufferLike>;
|
|
7
7
|
export declare const toBase58: (arr: Uint8Array) => string;
|
|
8
8
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAe,MAAM,gCAA+B,CAAC;AAE/E,eAAO,MAAM,WAAW,UAAW,UA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
|
-
|
|
78
|
-
|
|
2
|
+
"name": "@peerbit/crypto",
|
|
3
|
+
"version": "2.3.3-03f5b18",
|
|
4
|
+
"description": "Crypto fn",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"*": [
|
|
11
|
+
"*",
|
|
12
|
+
"dist/*",
|
|
13
|
+
"dist/src/*",
|
|
14
|
+
"dist/src/*/index"
|
|
15
|
+
],
|
|
16
|
+
"src/*": [
|
|
17
|
+
"*",
|
|
18
|
+
"dist/*",
|
|
19
|
+
"dist/src/*",
|
|
20
|
+
"dist/src/*/index"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"src",
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/test",
|
|
28
|
+
"!**/*.tsbuildinfo"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/src/index.d.ts",
|
|
33
|
+
"import": "./dist/src/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"eslintConfig": {
|
|
37
|
+
"extends": "peerbit",
|
|
38
|
+
"parserOptions": {
|
|
39
|
+
"project": true,
|
|
40
|
+
"sourceType": "module"
|
|
41
|
+
},
|
|
42
|
+
"ignorePatterns": [
|
|
43
|
+
"!.aegir.js",
|
|
44
|
+
"test/ts-use",
|
|
45
|
+
"*.d.ts"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"browser": {
|
|
52
|
+
"./dist/src/hash.js": "./dist/src/hash.browser.js",
|
|
53
|
+
"./dist/src/random.js": "./dist/src/random.browser.js",
|
|
54
|
+
"./dist/src/ed25519-sign.js": "./dist/src/ed25519-sign.browser.js"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"clean": "aegir clean",
|
|
58
|
+
"build": "aegir build --no-bundle",
|
|
59
|
+
"test": "aegir test",
|
|
60
|
+
"lint": "aegir lint"
|
|
61
|
+
},
|
|
62
|
+
"author": "dao.xyz",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/libsodium-wrappers": "^0.7.14",
|
|
66
|
+
"uint8arrays": "^5.1.0",
|
|
67
|
+
"@types/elliptic": "^6.4.18",
|
|
68
|
+
"multiformats": "^13.1.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@peerbit/cache": "2.1.1-03f5b18",
|
|
72
|
+
"@dao-xyz/borsh": "^5.2.3",
|
|
73
|
+
"@stablelib/sha256": "^2.0.0",
|
|
74
|
+
"@ethersproject/wallet": "^5.7.0",
|
|
75
|
+
"@libp2p/crypto": "^5.0.5",
|
|
76
|
+
"@libp2p/peer-id": "^5.0.5",
|
|
77
|
+
"libsodium-wrappers": "^0.7.15"
|
|
78
|
+
}
|
|
79
79
|
}
|