@libp2p/crypto 0.22.0 → 0.22.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/crypto",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Crypto primitives for libp2p",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",
@@ -41,16 +41,14 @@
41
41
  "test": "aegir test -f ./dist/test/**/*.js",
42
42
  "test:browser": "aegir test -t browser -f ./dist/test/**/*.js",
43
43
  "test:node": "aegir test -t node -f ./dist/test/**/*.js",
44
- "test:electron": "aegir test -t electron-main -f ./dist/test/**/*.js",
44
+ "test:electron-main": "aegir test -t electron-main -f ./dist/test/**/*.js",
45
45
  "lint": "aegir ts -p check && aegir lint",
46
- "release": "aegir release --docs",
47
- "release-minor": "aegir release --target node --type minor --docs",
48
- "release-major": "aegir release --type major --docs",
49
46
  "build": "tsc",
50
47
  "build:proto": "npm run build:proto:js && npm run build:proto:types",
51
48
  "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",
52
49
  "build:proto:types": "pbts -o src/keys/keys.d.ts src/keys/keys.js",
53
- "dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js"
50
+ "dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
51
+ "release": "semantic-release"
54
52
  },
55
53
  "browser": {
56
54
  "./dist/src/aes/ciphers.js": "./dist/src/aes/ciphers-browser.js",
@@ -79,7 +77,7 @@
79
77
  },
80
78
  "devDependencies": {
81
79
  "@types/mocha": "^9.0.0",
82
- "aegir": "^36.0.2",
80
+ "aegir": "^36.1.2",
83
81
  "benchmark": "^2.1.4",
84
82
  "sinon": "^12.0.1",
85
83
  "util": "^0.12.3",
@@ -95,32 +93,5 @@
95
93
  "bugs": {
96
94
  "url": "https://github.com/libp2p/js-libp2p-crypto/issues"
97
95
  },
98
- "homepage": "https://github.com/libp2p/js-libp2p-crypto",
99
- "contributors": [
100
- "David Dias <daviddias.p@gmail.com>",
101
- "Friedel Ziegelmayer <dignifiedquire@gmail.com>",
102
- "Jacob Heun <jacobheun@gmail.com>",
103
- "Vasco Santos <vasco.santos@moxy.studio>",
104
- "Maciej Krüger <mkg20001@gmail.com>",
105
- "Alex Potsides <alex@achingbrain.net>",
106
- "dignifiedquire <dignifiedquire@users.noreply.github.com>",
107
- "dryajov <dryajov@gmail.com>",
108
- "Hugo Dias <hugomrdias@gmail.com>",
109
- "Alan Shaw <alan.shaw@protocol.ai>",
110
- "Cayman <caymannava@gmail.com>",
111
- "Yusef Napora <yusef@napora.org>",
112
- "ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>",
113
- "Arve Knudsen <arve.knudsen@gmail.com>",
114
- "Alberto Elias <hi@albertoelias.me>",
115
- "Jack Kleeman <jackkleeman@gmail.com>",
116
- "Nadim Kobeissi <nadim@symbolic.software>",
117
- "Richard Littauer <richard.littauer@gmail.com>",
118
- "Richard Schneider <makaretu@gmail.com>",
119
- "dirkmc <dirkmdev@gmail.com>",
120
- "nikuda <nikuda@gmail.com>",
121
- "Jimmy Wärting <jimmy@warting.se>",
122
- "Carson Farmer <carson.farmer@gmail.com>",
123
- "Tom Swindell <t.swindell@rubyx.co.uk>",
124
- "Joao Santos <jrmsantos15@gmail.com>"
125
- ]
96
+ "homepage": "https://github.com/libp2p/js-libp2p-crypto"
126
97
  }
@@ -29,7 +29,7 @@ export class Ed25519PublicKey {
29
29
  }).finish()
30
30
  }
31
31
 
32
- equals (key: Ed25519PublicKey) {
32
+ equals (key: any) {
33
33
  return uint8ArrayEquals(this.bytes, key.bytes)
34
34
  }
35
35
 
@@ -70,7 +70,7 @@ export class Ed25519PrivateKey {
70
70
  }).finish()
71
71
  }
72
72
 
73
- equals (key: Ed25519PrivateKey) {
73
+ equals (key: any) {
74
74
  return uint8ArrayEquals(this.bytes, key.bytes)
75
75
  }
76
76
 
@@ -36,7 +36,7 @@ export class RsaPublicKey {
36
36
  return crypto.encrypt(this._key, bytes)
37
37
  }
38
38
 
39
- equals (key: RsaPublicKey) {
39
+ equals (key: any) {
40
40
  return uint8ArrayEquals(this.bytes, key.bytes)
41
41
  }
42
42
 
@@ -87,7 +87,7 @@ export class RsaPrivateKey {
87
87
  }).finish()
88
88
  }
89
89
 
90
- equals (key: RsaPrivateKey) {
90
+ equals (key: any) {
91
91
  return uint8ArrayEquals(this.bytes, key.bytes)
92
92
  }
93
93
 
@@ -29,7 +29,7 @@ export class Secp256k1PublicKey {
29
29
  }).finish()
30
30
  }
31
31
 
32
- equals (key: Secp256k1PublicKey) {
32
+ equals (key: any) {
33
33
  return uint8ArrayEquals(this.bytes, key.bytes)
34
34
  }
35
35
 
@@ -70,7 +70,7 @@ export class Secp256k1PrivateKey {
70
70
  }).finish()
71
71
  }
72
72
 
73
- equals (key: Secp256k1PrivateKey) {
73
+ equals (key: any) {
74
74
  return uint8ArrayEquals(this.bytes, key.bytes)
75
75
  }
76
76