This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 47
47
"is-ipfs" : " ~0.4.7" ,
48
48
"is-pull-stream" : " 0.0.0" ,
49
49
"is-stream" : " ^1.1.0" ,
50
+ "just-kebab-case" : " ^1.1.0" ,
51
+ "just-map-keys" : " ^1.1.0" ,
50
52
"libp2p-crypto" : " ~0.14.0" ,
51
- "lodash" : " ^4.17.11" ,
52
- "lru-cache" : " ^5.1.1" ,
53
53
"multiaddr" : " ^6.0.0" ,
54
+ "lru-cache" : " ^4.1.3" ,
54
55
"multibase" : " ~0.6.0" ,
55
56
"multihashes" : " ~0.4.14" ,
56
57
"ndjson" : " ^1.5.0" ,
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const promisify = require ( 'promisify-es6' )
4
- const mapKeys = require ( 'lodash/mapKeys ' )
5
- const kebabCase = require ( 'lodash/kebabCase ' )
4
+ const mapKeys = require ( 'just-map-keys ' )
5
+ const kebabCase = require ( 'just-kebab-case ' )
6
6
7
7
const transform = function ( data , callback ) {
8
8
callback ( null , {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ const promisify = require('promisify-es6')
4
4
const ConcatStream = require ( 'concat-stream' )
5
5
const once = require ( 'once' )
6
6
const isStream = require ( 'is-stream' )
7
- const isString = require ( 'lodash/isString' )
8
7
const isSource = require ( 'is-pull-stream' ) . isSource
9
8
const FileResultStreamConverter = require ( '../utils/file-result-stream-converter' )
10
9
const SendFilesStream = require ( '../utils/send-files-stream' )
@@ -33,7 +32,7 @@ module.exports = (send) => {
33
32
// path is optional if content is present
34
33
if ( obj . content ) return isBufferOrStream ( obj . content )
35
34
// path must be a non-empty string if no content
36
- return Boolean ( obj . path ) && isString ( obj . path )
35
+ return Boolean ( obj . path ) && typeof obj . path === 'string'
37
36
}
38
37
// An input atom: a buffer, stream or content object
39
38
const isInput = obj => isBufferOrStream ( obj ) || isContentObject ( obj )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const promisify = require ( 'promisify-es6' )
4
- const keys = require ( 'lodash/keys' )
5
4
6
5
module . exports = ( send ) => {
7
6
return promisify ( ( hash , opts , callback ) => {
@@ -26,7 +25,7 @@ module.exports = (send) => {
26
25
if ( err ) {
27
26
return callback ( err )
28
27
}
29
- callback ( null , keys ( res . Keys ) . map ( hash => (
28
+ callback ( null , Object . keys ( res . Keys ) . map ( hash => (
30
29
{ hash, type : res . Keys [ hash ] . Type }
31
30
) ) )
32
31
} )
You can’t perform that action at this time.
0 commit comments