Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 7ad4396

Browse files
committed
update unixfs-engine dep and fix cat print
1 parent 0e852ac commit 7ad4396

File tree

5 files changed

+6
-27
lines changed

5 files changed

+6
-27
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"ipfs-merkle-dag": "^0.6.0",
7272
"ipfs-multipart": "^0.1.0",
7373
"ipfs-repo": "^0.8.0",
74-
"ipfs-unixfs-engine": "^0.6.1",
74+
"ipfs-unixfs-engine": "^0.8.0",
7575
"joi": "^8.0.5",
7676
"libp2p-ipfs": "^0.3.8",
7777
"libp2p-swarm": "^0.12.11",
@@ -122,4 +122,4 @@
122122
"kumavis <[email protected]>",
123123
"nginnever <[email protected]>"
124124
]
125-
}
125+
}

src/cli/commands/cat.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/cli/commands/files/cat.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ module.exports = Command.extend({
3535
if (err) {
3636
throw (err)
3737
}
38-
console.log(res)
39-
if (res) {
40-
res.on('data', (data) => {
41-
data.stream.pipe(process.stdout)
42-
})
43-
}
38+
res.on('data', (data) => {
39+
data.stream.pipe(process.stdout)
40+
})
4441
})
4542
})
4643
}

src/cli/commands/get.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/cli-tests/test-commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('commands', () => {
1010
.run((err, stdout, exitcode) => {
1111
expect(err).to.not.exist
1212
expect(exitcode).to.equal(0)
13-
expect(stdout.length).to.equal(50)
13+
expect(stdout.length).to.equal(48)
1414
done()
1515
})
1616
})

0 commit comments

Comments
 (0)