Skip to content

Commit 42a16f8

Browse files
committed
fix: update breaking dep (protocol-buffers)
1 parent 0c9a56b commit 42a16f8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@
3131
"url": "https://github.com/ipfs/js-ipfs-unixfs/issues"
3232
},
3333
"engines": {
34-
"node": ">=4.0.0"
34+
"node": ">=4.0.0",
35+
"npm": ">=3.0.0"
3536
},
3637
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
3738
"devDependencies": {
38-
"aegir": "^9.1.0",
39+
"aegir": "^9.1.2",
3940
"chai": "^3.5.0",
4041
"pre-commit": "^1.1.3"
4142
},
4243
"dependencies": {
43-
"protocol-buffers": "^3.1.6"
44+
"protocol-buffers": "^3.2.0"
4445
},
4546
"pre-commit": [
4647
"lint",
@@ -53,4 +54,4 @@
5354
"Mithgol <getgit@mithgol.ru>",
5455
"Richard Littauer <richard.littauer@gmail.com>"
5556
]
56-
}
57+
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Data (type, data) {
6666
}
6767

6868
return unixfsData.encode({
69-
Type: type,
69+
Type: type.value,
7070
Data: this.data,
7171
filesize: fileSize,
7272
blocksizes: this.blockSizes.length > 0 ? this.blockSizes : undefined

0 commit comments

Comments
 (0)