mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-16 02:10:52 +00:00
feat: replace protocol-buffers with protons (#93)
Ref https://github.com/ipfs/js-ipfs/issues/991
This commit is contained in:
parent
5ad6c2b136
commit
a3e69e8b43
1
.gitignore
vendored
1
.gitignore
vendored
@ -40,3 +40,4 @@ test/test-data/go-ipfs-repo/LOG.old
|
|||||||
|
|
||||||
# while testing npm5
|
# while testing npm5
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
yarn.lock
|
@ -31,7 +31,7 @@
|
|||||||
"libp2p-crypto": "~0.10.0",
|
"libp2p-crypto": "~0.10.0",
|
||||||
"multihashing-async": "~0.4.6",
|
"multihashing-async": "~0.4.6",
|
||||||
"peer-id": "~0.10.0",
|
"peer-id": "~0.10.0",
|
||||||
"protocol-buffers": "^3.2.1",
|
"protons": "^1.0.0",
|
||||||
"pull-defer": "^0.2.2",
|
"pull-defer": "^0.2.2",
|
||||||
"pull-handshake": "^1.1.4",
|
"pull-handshake": "^1.1.4",
|
||||||
"pull-length-prefixed": "^1.3.0",
|
"pull-length-prefixed": "^1.3.0",
|
||||||
@ -72,4 +72,4 @@
|
|||||||
"Richard Littauer <richard.littauer@gmail.com>",
|
"Richard Littauer <richard.littauer@gmail.com>",
|
||||||
"greenkeeperio-bot <support@greenkeeper.io>"
|
"greenkeeperio-bot <support@greenkeeper.io>"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const protobuf = require('protocol-buffers')
|
const protons = require('protons')
|
||||||
const PeerId = require('peer-id')
|
const PeerId = require('peer-id')
|
||||||
const crypto = require('libp2p-crypto')
|
const crypto = require('libp2p-crypto')
|
||||||
const parallel = require('async/parallel')
|
const parallel = require('async/parallel')
|
||||||
@ -9,7 +9,7 @@ const debug = require('debug')
|
|||||||
const log = debug('libp2p:secio')
|
const log = debug('libp2p:secio')
|
||||||
log.error = debug('libp2p:secio:error')
|
log.error = debug('libp2p:secio:error')
|
||||||
|
|
||||||
const pbm = protobuf(require('./secio.proto'))
|
const pbm = protons(require('./secio.proto'))
|
||||||
|
|
||||||
const support = require('../support')
|
const support = require('../support')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user