@peerbit/crypto 2.3.2 → 2.3.3-2ec6eb5

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.
@@ -2,5 +2,5 @@
2
2
  * @param {ArrayBufferView|ArrayBuffer|Uint8Array} o
3
3
  * @returns {Uint8Array}
4
4
  */
5
- export declare const coerce: (o: any) => Uint8Array;
5
+ export declare const coerce: (o: any) => Uint8Array<ArrayBufferLike>;
6
6
  //# sourceMappingURL=bytes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/bytes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM,MAAO,GAAG,eAO5B,CAAC"}
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,eACgB,CAAC"}
1
+ {"version":3,"file":"random.browser.d.ts","sourceRoot":"","sources":["../../src/random.browser.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,MAAM,4BACgB,CAAC"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/random.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAS,MAAM,WAA4B,CAAC"}
1
+ {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/random.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAS,MAAM,4BAA4B,CAAC"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAe,MAAM,eAA+B,CAAC;AAE/E,eAAO,MAAM,WAAW,UAAW,UAAU,WAAyB,CAAC;AAEvE,eAAO,MAAM,QAAQ,QAAS,UAAU,WAEvC,CAAC;AACF,eAAO,MAAM,UAAU,WAAY,MAAM,eAExC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,UAAU,WAE1C,CAAC;AACF,eAAO,MAAM,aAAa,WAAY,MAAM,eAE3C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,UAAU,WAEvC,CAAC"}
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,UAAU,WAAyB,CAAC;AAEvE,eAAO,MAAM,QAAQ,QAAS,UAAU,WAEvC,CAAC;AACF,eAAO,MAAM,UAAU,WAAY,MAAM,gCAExC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,UAAU,WAE1C,CAAC;AACF,eAAO,MAAM,aAAa,WAAY,MAAM,gCAE3C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,UAAU,WAEvC,CAAC"}
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
1
  {
2
- "name": "@peerbit/crypto",
3
- "version": "2.3.2",
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.0",
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
- }
2
+ "name": "@peerbit/crypto",
3
+ "version": "2.3.3-2ec6eb5",
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-2ec6eb5",
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
  }