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

Commit 830fef2

Browse files
author
Alan Shaw
committed
feat: add addFromStream method
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent a4da38d commit 830fef2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = self => require('./add')(self)

src/core/components/files-regular/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = self => ({
44
add: require('./add')(self),
5+
addFromStream: require('./add-from-stream')(self),
56
addFromURL: require('./add-from-url')(self),
67
addPullStream: require('./add-pull-stream')(self),
78
addReadableStream: require('./add-readable-stream')(self),

test/core/interface.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ describe('interface-ipfs-core tests', () => {
7979
})
8080

8181
tests.filesRegular(defaultCommonFactory, {
82-
only: ['addFromUrl'],
8382
skip: isNode ? [{
84-
name: 'addFromStream',
85-
reason: 'TODO: not implemented yet'
86-
}, {
8783
name: 'addFromFs',
8884
reason: 'TODO: not implemented yet'
8985
}] : [{

0 commit comments

Comments
 (0)