Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 7e61930

Browse files
deps: bump protons-runtime from 4.0.2 to 5.0.0 (#297)
* deps: bump protons-runtime from 4.0.2 to 5.0.0 Bumps [protons-runtime](https://github.com/ipfs/protons) from 4.0.2 to 5.0.0. - [Release notes](https://github.com/ipfs/protons/releases) - [Commits](ipfs/protons@protons-runtime-v4.0.2...protons-runtime-v5.0.0) --- updated-dependencies: - dependency-name: protons-runtime dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: regen proto file --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <[email protected]>
1 parent 5a3b5f6 commit 7e61930

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,15 @@
185185
"@noble/secp256k1": "^1.5.4",
186186
"multiformats": "^11.0.0",
187187
"node-forge": "^1.1.0",
188-
"protons-runtime": "^4.0.1",
188+
"protons-runtime": "^5.0.0",
189189
"uint8arraylist": "^2.4.3",
190190
"uint8arrays": "^4.0.2"
191191
},
192192
"devDependencies": {
193193
"@types/mocha": "^10.0.0",
194194
"aegir": "^38.1.2",
195195
"benchmark": "^2.1.4",
196+
"protons": "^7.0.2",
196197
"util": "^0.12.5"
197198
},
198199
"browser": {

src/keys/keys.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
/* eslint-disable complexity */
33
/* eslint-disable @typescript-eslint/no-namespace */
44
/* eslint-disable @typescript-eslint/no-unnecessary-boolean-literal-compare */
5+
/* eslint-disable @typescript-eslint/no-empty-interface */
56

67
import { enumeration, encodeMessage, decodeMessage, message } from 'protons-runtime'
7-
import type { Uint8ArrayList } from 'uint8arraylist'
88
import type { Codec } from 'protons-runtime'
9+
import type { Uint8ArrayList } from 'uint8arraylist'
910

1011
export enum KeyType {
1112
RSA = 'RSA',
@@ -80,7 +81,7 @@ export namespace PublicKey {
8081
return _codec
8182
}
8283

83-
export const encode = (obj: PublicKey): Uint8Array => {
84+
export const encode = (obj: Partial<PublicKey>): Uint8Array => {
8485
return encodeMessage(obj, PublicKey.codec())
8586
}
8687

@@ -145,7 +146,7 @@ export namespace PrivateKey {
145146
return _codec
146147
}
147148

148-
export const encode = (obj: PrivateKey): Uint8Array => {
149+
export const encode = (obj: Partial<PrivateKey>): Uint8Array => {
149150
return encodeMessage(obj, PrivateKey.codec())
150151
}
151152

0 commit comments

Comments
 (0)