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

Commit

Permalink
deps: bump protons-runtime from 4.0.2 to 5.0.0 (#297)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* chore: regen proto file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain authored Mar 10, 2023
1 parent 5a3b5f6 commit 7e61930
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,15 @@
"@noble/secp256k1": "^1.5.4",
"multiformats": "^11.0.0",
"node-forge": "^1.1.0",
"protons-runtime": "^4.0.1",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"aegir": "^38.1.2",
"benchmark": "^2.1.4",
"protons": "^7.0.2",
"util": "^0.12.5"
},
"browser": {
Expand Down
7 changes: 4 additions & 3 deletions src/keys/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
/* eslint-disable complexity */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-unnecessary-boolean-literal-compare */
/* eslint-disable @typescript-eslint/no-empty-interface */

import { enumeration, encodeMessage, decodeMessage, message } from 'protons-runtime'
import type { Uint8ArrayList } from 'uint8arraylist'
import type { Codec } from 'protons-runtime'
import type { Uint8ArrayList } from 'uint8arraylist'

export enum KeyType {
RSA = 'RSA',
Expand Down Expand Up @@ -80,7 +81,7 @@ export namespace PublicKey {
return _codec
}

export const encode = (obj: PublicKey): Uint8Array => {
export const encode = (obj: Partial<PublicKey>): Uint8Array => {
return encodeMessage(obj, PublicKey.codec())
}

Expand Down Expand Up @@ -145,7 +146,7 @@ export namespace PrivateKey {
return _codec
}

export const encode = (obj: PrivateKey): Uint8Array => {
export const encode = (obj: Partial<PrivateKey>): Uint8Array => {
return encodeMessage(obj, PrivateKey.codec())
}

Expand Down

0 comments on commit 7e61930

Please sign in to comment.