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

Commit 405a0a2

Browse files
committedJan 25, 2016
check
1 parent c722d3f commit 405a0a2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"raw-loader": "^0.5.1",
5656
"rimraf": "^2.4.4",
5757
"standard": "^5.4.1",
58-
"webpack": "^1.12.11"
58+
"webpack": "diasdavid/webpack#81f5994"
5959
},
6060
"dependencies": {
6161
"bl": "^1.0.0",

‎src/ipfs-core/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ function IPFS (repo) {
145145
if (err) {
146146
return callback(err)
147147
}
148+
console.log('->', block.data.length)
149+
console.log('->', block.data)
148150
callback(null, {
149151
Key: multihash,
150152
Size: block.data.length

‎tests/test-core/test-block.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const fileA = isNode
1414
? fs.readFileSync(process.cwd() + '/tests/repo-example/blocks/12207028/122070286b9afa6620a66f715c7020d68af3d10e1a497971629c07606bfdb812303d.data')
1515
: new Buffer(require('raw!./../repo-example/blocks/12207028/122070286b9afa6620a66f715c7020d68af3d10e1a497971629c07606bfdb812303d.data'))
1616

17+
console.log('=>', fileA)
18+
1719
describe('block', () => {
1820
var ipfs
1921

@@ -59,9 +61,6 @@ describe('block', () => {
5961
})
6062

6163
it('stat', done => {
62-
if (!isNode) {
63-
return done()
64-
}
6564
const mh = new Buffer(base58
6665
.decode('QmVtU7ths96fMgZ8YSZAbKghyieq7AjxNdcqyVzxTt3qVe'))
6766
ipfs.block.stat(mh, (err, stats) => {

0 commit comments

Comments
 (0)
This repository has been archived.