This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move to pull-streams internally
Closes #403
- Loading branch information
1 parent
fa2c807
commit 4c03017
Showing
68 changed files
with
299 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use strict' | ||
|
||
const idb = require('idb-plus-blob-store') | ||
const Store = require('idb-pull-blob-store') | ||
const IPFSRepo = require('ipfs-repo') | ||
|
||
module.exports = (dir) => { | ||
const repoPath = dir || 'ipfs' | ||
return new IPFSRepo(repoPath, {stores: idb}) | ||
return new IPFSRepo(repoPath, {stores: Store}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict' | ||
|
||
const os = require('os') | ||
const fs = require('fs-blob-store') | ||
const Store = require('fs-pull-blob-store') | ||
const IPFSRepo = require('ipfs-repo') | ||
const path = require('path') | ||
|
||
module.exports = (dir) => { | ||
const repoPath = dir || path.join(os.homedir(), '.ipfs') | ||
return new IPFSRepo(repoPath, {stores: fs}) | ||
return new IPFSRepo(repoPath, {stores: Store}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.