This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-19
lines changed Expand file tree Collapse file tree 2 files changed +12
-19
lines changed Original file line number Diff line number Diff line change 7272 "eslint-plugin-react" : " ^7.7.0" ,
7373 "go-ipfs-dep" : " ^0.4.13" ,
7474 "gulp" : " ^3.9.1" ,
75- "hapi" : " ^17.2.2 " ,
76- "interface-ipfs-core" : " ~0.56.0 " ,
75+ "hapi" : " ^17.2.3 " ,
76+ "interface-ipfs-core" : " ~0.56.5 " ,
7777 "ipfs" : " ~0.28.2" ,
7878 "ipfsd-ctl" : " ~0.30.1" ,
7979 "pre-commit" : " ^1.2.2" ,
Original file line number Diff line number Diff line change 22
33const promisify = require ( 'promisify-es6' )
44const _ = require ( 'lodash' )
5- const streamToValue = require ( '../utils/stream-to-value' )
65
7- const transform = function ( res , callback ) {
8- return streamToValue ( res , ( err , data ) => {
9- if ( err ) {
10- return callback ( err )
11- }
12-
13- callback ( null , {
14- type : data [ 0 ] . Type ,
15- blocks : data [ 0 ] . Blocks ,
16- size : data [ 0 ] . Size ,
17- hash : data [ 0 ] . Hash ,
18- cumulativeSize : data [ 0 ] . CumulativeSize ,
19- withLocality : data [ 0 ] . WithLocality || false ,
20- local : data [ 0 ] . Local || null ,
21- sizeLocal : data [ 0 ] . SizeLocal || null
22- } )
6+ const transform = function ( data , callback ) {
7+ callback ( null , {
8+ type : data . Type ,
9+ blocks : data . Blocks ,
10+ size : data . Size ,
11+ hash : data . Hash ,
12+ cumulativeSize : data . CumulativeSize ,
13+ withLocality : data . WithLocality || false ,
14+ local : data . Local || undefined ,
15+ sizeLocal : data . SizeLocal || undefined
2316 } )
2417}
2518
You can’t perform that action at this time.
0 commit comments