From 911aa634d398cd2c0dacf7ee9b9d048969ca47ee Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 30 Jul 2019 21:17:24 +0200 Subject: [PATCH] chore: lead maintainer update (#98) --- .travis.yml | 1 - README.md | 2 +- package.json | 4 ++-- src/index.js | 8 ++++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78bd310..9550f44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,6 @@ jobs: - stage: check script: - - npx aegir commitlint --travis - npx aegir dep-check - npm run lint diff --git a/README.md b/README.md index c29e78e..fdade42 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ## Lead Maintainer -[Pedro Teixeira](https://github.com/pgte) +[Vasco Santos](https://github.com/vasco-santos) ## Table of Contents diff --git a/package.json b/package.json index 4aa5875..adeffd3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "peer-id", "version": "0.13.2", "description": "IPFS Peer Id implementation in Node.js", - "leadMaintainer": "Pedro Teixeira ", + "leadMaintainer": "Vasco Santos ", "main": "src/index.js", "bin": "src/bin.js", "scripts": { @@ -34,7 +34,7 @@ }, "homepage": "https://github.com/libp2p/js-peer-id", "devDependencies": { - "aegir": "^19.0.5", + "aegir": "^20.0.0", "bundlesize": "~0.18.0", "chai": "^4.2.0", "dirty-chai": "^2.0.1" diff --git a/src/index.js b/src/index.js index 0c106f8..1e08220 100644 --- a/src/index.js +++ b/src/index.js @@ -213,10 +213,10 @@ exports.createFromPrivKey = async (key) => { } exports.createFromJSON = async (obj) => { - let id = mh.fromB58String(obj.id) - let rawPrivKey = obj.privKey && Buffer.from(obj.privKey, 'base64') - let rawPubKey = obj.pubKey && Buffer.from(obj.pubKey, 'base64') - let pub = rawPubKey && await cryptoKeys.unmarshalPublicKey(rawPubKey) + const id = mh.fromB58String(obj.id) + const rawPrivKey = obj.privKey && Buffer.from(obj.privKey, 'base64') + const rawPubKey = obj.pubKey && Buffer.from(obj.pubKey, 'base64') + const pub = rawPubKey && await cryptoKeys.unmarshalPublicKey(rawPubKey) if (!rawPrivKey) { return new PeerIdWithIs(id, null, pub)