Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
feat: replace protocol-buffers with protons
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 7, 2017
1 parent 5ad6c2b commit e9de15f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ test/test-data/go-ipfs-repo/LOG.old

# while testing npm5
package-lock.json
yarn.lock
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"libp2p-crypto": "~0.10.0",
"multihashing-async": "~0.4.6",
"peer-id": "~0.10.0",
"protocol-buffers": "^3.2.1",
"protons": "^1.0.0",
"pull-defer": "^0.2.2",
"pull-handshake": "^1.1.4",
"pull-length-prefixed": "^1.3.0",
Expand Down Expand Up @@ -72,4 +72,4 @@
"Richard Littauer <richard.littauer@gmail.com>",
"greenkeeperio-bot <support@greenkeeper.io>"
]
}
}
4 changes: 2 additions & 2 deletions src/handshake/crypto.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const protobuf = require('protocol-buffers')
const protons = require('protons')
const PeerId = require('peer-id')
const crypto = require('libp2p-crypto')
const parallel = require('async/parallel')
Expand All @@ -9,7 +9,7 @@ const debug = require('debug')
const log = debug('libp2p:secio')
log.error = debug('libp2p:secio:error')

const pbm = protobuf(require('./secio.proto'))
const pbm = protons(require('./secio.proto'))

const support = require('../support')

Expand Down

0 comments on commit e9de15f

Please sign in to comment.