This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree 6 files changed +12
-8
lines changed
http-client-browser-pubsub
6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 25
25
"dependencies" : {
26
26
"@libp2p/websockets" : " ^3.0.3" ,
27
27
"ipfs-core" : " ^0.16.0" ,
28
- "ipfs-http -client" : " ^58 .0.0 " ,
28
+ "kubo-rpc -client" : " ^1 .0.1 " ,
29
29
"ipfs-utils" : " ^9.0.6" ,
30
30
"ipns" : " ^2.0.3" ,
31
31
"it-last" : " ^1.0.4" ,
Original file line number Diff line number Diff line change 1
1
import { test , expect } from '@playwright/test'
2
2
import { playwright } from 'test-util-ipfs-example'
3
3
import * as goIpfsModule from 'go-ipfs'
4
- import * as ipfsHttpModule from 'ipfs-http -client'
4
+ import * as kuboRpcModule from 'kubo-rpc -client'
5
5
6
6
// Setup
7
7
const play = test . extend ( {
8
8
...playwright . servers ( ) ,
9
9
...playwright . daemons (
10
10
{
11
- ipfsHttpModule ,
11
+ kuboRpcModule ,
12
12
ipfsBin : goIpfsModule . path ( ) ,
13
13
args : [
14
14
"--enable-pubsub-experiment" ,
Original file line number Diff line number Diff line change 15
15
},
16
16
"browserslist" : " last 1 Chrome version" ,
17
17
"dependencies" : {
18
- "ipfs-http-client" : " ^58.0.0"
18
+ "ipfs-http-client" : " ^58.0.0" ,
19
+ "kubo-rpc-client" : " ^1.0.1"
19
20
},
20
21
"devDependencies" : {
21
22
"@babel/core" : " ^7.14.8" ,
Original file line number Diff line number Diff line change @@ -2,21 +2,23 @@ import { test } from '@playwright/test';
2
2
import { playwright } from 'test-util-ipfs-example'
3
3
import * as ipfsModule from 'ipfs'
4
4
import * as ipfsHttpModule from 'ipfs-http-client'
5
+ import * as kuboRpcModule from 'kubo-rpc-client'
5
6
import * as goIpfsModule from 'go-ipfs'
6
7
7
8
// Setup
8
9
const play = test . extend ( {
9
10
...playwright . servers ( ) ,
10
11
...playwright . daemons (
11
12
{
12
- ipfsHttpModule,
13
13
} ,
14
14
{
15
15
js : {
16
+ ipfsHttpModule,
16
17
ipfsBin : ipfsModule . path ( )
17
18
} ,
18
19
go : {
19
20
ipfsBin : goIpfsModule . path ( ) ,
21
+ kuboRpcModule,
20
22
args : [ '--enable-pubsub-experiment' ]
21
23
}
22
24
} ,
Original file line number Diff line number Diff line change 15
15
},
16
16
"browserslist" : " last 1 Chrome version" ,
17
17
"dependencies" : {
18
- "ipfs-http-client" : " ^58.0.0"
18
+ "ipfs-http-client" : " ^58.0.0" ,
19
+ "kubo-rpc-client" : " ^1.0.1"
19
20
},
20
21
"devDependencies" : {
21
22
"@babel/core" : " ^7.14.8" ,
Original file line number Diff line number Diff line change 1
1
import { test , expect } from '@playwright/test' ;
2
2
import { playwright } from 'test-util-ipfs-example' ;
3
- import * as ipfsHttpModule from 'ipfs-http -client'
3
+ import * as kuboRpcModule from 'kubo-rpc -client'
4
4
import * as goIpfsModule from 'go-ipfs'
5
5
6
6
// Setup
7
7
const play = test . extend ( {
8
8
...playwright . servers ( ) ,
9
9
...playwright . daemons (
10
10
{
11
- ipfsHttpModule ,
11
+ kuboRpcModule ,
12
12
ipfsBin : goIpfsModule . path ( ) ,
13
13
args : [ '--enable-pubsub-experiment' ]
14
14
} ,
You can’t perform that action at this time.
0 commit comments