File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " merkling" ,
3
- "version" : " 2.0.0-alpha.6 " ,
3
+ "version" : " 2.0.0-alpha.7 " ,
4
4
"description" : " JS Object to IPLD mapping layer" ,
5
5
"homepage" : " https://github.com/kanej/merkling" ,
6
6
"bugs" : {
19
19
"test:integration" : " jest --detectOpenHandles --runInBand --config=jest.integration.json" ,
20
20
"lint" : " eslint --fix ./{src,test}/**/*.ts" ,
21
21
"build" : " tsc" ,
22
+ "prepublish" : " tsc" ,
22
23
"dev" : " webpack-dev-server --open" ,
23
24
"docs-readme" : " documentation readme --config documentation.yml --document-exported --section=API src/merkling.ts src/merklingSession.ts" ,
24
25
"docs" : " documentation build --format html --theme node_modules/clean-documentation-theme --o docs" ,
Original file line number Diff line number Diff line change 1
- import ipfsClient from 'ipfs-http-client '
1
+ import Ipfs from 'ipfs'
2
2
3
- export const setupIpfsNode = ( ) => {
4
- return new Promise ( ( resolve : Function ) => {
5
- const ipfs = ipfsClient ( '/ip4/127.0.0.1/tcp/5001' )
6
- return resolve ( ipfs )
3
+ export const setupIpfsNode = async ( ) => {
4
+ return Ipfs . create ( {
5
+ repo : './.test-ipfs' ,
6
+ silent : true ,
7
+ config : {
8
+ Bootstrap : [ ]
9
+ }
7
10
} )
8
11
}
9
12
10
13
// eslint-disable-next-line
11
14
export const shutdownIpfsNode = ( node : any ) => {
12
- return new Promise ( ( resolve : Function ) => {
13
- resolve ( )
14
- } )
15
+ return node . stop ( )
15
16
}
You can’t perform that action at this time.
0 commit comments