feat: replace protocol-buffers with protons (#93)

Ref https://github.com/ipfs/js-ipfs/issues/991
This commit is contained in:
Friedel Ziegelmayer 2017-09-07 11:43:50 +02:00 committed by David Dias
parent 5ad6c2b136
commit a3e69e8b43
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ test/test-data/go-ipfs-repo/LOG.old
# while testing npm5
package-lock.json
yarn.lock

View File

@ -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",
@ -72,4 +72,4 @@
"Richard Littauer <richard.littauer@gmail.com>",
"greenkeeperio-bot <support@greenkeeper.io>"
]
}
}

View File

@ -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')
@ -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')