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

Commit 1c91feb

Browse files
committed
refactor: make ipfs.add only work on single items
1 parent c6cd95c commit 1c91feb

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

packages/ipfs-http-client/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const urlSource = require('ipfs-utils/src/files/url-source')
2020
*/
2121
function ipfsClient (options = {}) {
2222
return {
23-
add: require('./add')(options),
23+
addAll: require('./add-all')(options),
2424
bitswap: require('./bitswap')(options),
2525
block: require('./block')(options),
2626
bootstrap: require('./bootstrap')(options),

packages/ipfs/src/core/components/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
exports.add = require('./add')
3+
exports.addAll = require('./add-all')
44
exports.block = {
55
get: require('./block/get'),
66
put: require('./block/put'),

0 commit comments

Comments
 (0)