Skip to content
This repository has been archived by the owner on Jul 21, 2023. 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 71bfe60 commit fbb71f4
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 @@ -52,11 +52,11 @@
"multihashes": "~0.4.9",
"multihashing-async": "~0.4.6",
"peer-id": "~0.10.0",
"protocol-buffers": "^3.2.1",
"protons": "^1.0.0",
"safe-buffer": "^5.1.1"
},
"contributors": [
"David Dias <daviddias.p@gmail.com>",
"Friedel Ziegelmayer <dignifiedquire@gmail.com>"
]
}
}
4 changes: 2 additions & 2 deletions src/record.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict'

const protobuf = require('protocol-buffers')
const protons = require('protons')
const Buffer = require('safe-buffer').Buffer
const assert = require('assert')
const PeerId = require('peer-id')

const pb = protobuf(require('./record.proto')).Record
const pb = protons(require('./record.proto')).Record
const utils = require('./utils')

class Record {
Expand Down

0 comments on commit fbb71f4

Please sign in to comment.