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

Commit

Permalink
feat: replace protocol-buffers with protons (#48)
Browse files Browse the repository at this point in the history
* feat: replace protocol-buffers with protons

Ref ipfs/js-ipfs#991

* chore: ignore lockfiles
  • Loading branch information
dignifiedquire authored and daviddias committed Sep 7, 2017
1 parent b0ea3ea commit d5b7e23
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ node_modules

dist

docs
docs

package-lock.json
yarn.lock
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,24 @@
"devDependencies": {
"aegir": "^11.0.2",
"benchmark": "^2.1.4",
"chai": "^4.1.0",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
"pre-commit": "^1.2.2",
"libp2p": "~0.12.3",
"libp2p-secio": "~0.8.1",
"libp2p-spdy": "~0.11.0",
"libp2p-tcp": "~0.11.0",
"lodash.times": "^4.3.2",
"libp2p": "~0.11.0",
"libp2p-secio": "~0.7.1",
"libp2p-spdy": "~0.10.6",
"libp2p-tcp": "~0.10.2",
"peer-id": "~0.9.0",
"peer-info": "~0.10.0"
"peer-id": "~0.10.0",
"peer-info": "~0.11.0",
"pre-commit": "^1.2.2"
},
"dependencies": {
"async": "^2.5.0",
"debug": "^2.6.8",
"debug": "^3.0.1",
"length-prefixed-stream": "^1.5.1",
"libp2p-crypto": "~0.9.4",
"libp2p-crypto": "~0.10.3",
"lodash.values": "^4.3.0",
"protons": "^1.0.0",
"pull-pushable": "^2.1.1",
"time-cache": "~0.3.0"
},
Expand All @@ -74,4 +75,4 @@
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"wanderer <mjbecze@gmail.com>"
]
}
}
6 changes: 3 additions & 3 deletions src/message/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict'

const protobuf = require('protocol-buffers')
const protons = require('protons')

const rpcProto = protobuf(require('./rpc.proto.js'))
const topicDescriptorProto = protobuf(require('./topic-descriptor.proto.js'))
const rpcProto = protons(require('./rpc.proto.js'))
const topicDescriptorProto = protons(require('./topic-descriptor.proto.js'))

exports = module.exports
exports.rpc = rpcProto
Expand Down

0 comments on commit d5b7e23

Please sign in to comment.