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

feat: use kubo-rpc-client #517

Merged
merged 3 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/browser-ipns-publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@libp2p/websockets": "^3.0.3",
"ipfs-core": "^0.16.0",
"ipfs-http-client": "^58.0.0",
"kubo-rpc-client": "^1.0.1",
"ipfs-utils": "^9.0.6",
"ipns": "^2.0.3",
"it-last": "^1.0.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/browser-ipns-publish/tests/test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { test, expect } from '@playwright/test'
import { playwright } from 'test-util-ipfs-example'
import * as goIpfsModule from 'go-ipfs'
import * as ipfsHttpModule from 'ipfs-http-client'
import * as kuboRpcModule from 'kubo-rpc-client'

// Setup
const play = test.extend({
...playwright.servers(),
...playwright.daemons(
{
ipfsHttpModule,
kuboRpcModule,
ipfsBin: goIpfsModule.path(),
args: [
"--enable-pubsub-experiment",
Expand Down
3 changes: 2 additions & 1 deletion examples/http-client-browser-pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"browserslist": "last 1 Chrome version",
"dependencies": {
"ipfs-http-client": "^58.0.0"
"ipfs-http-client": "^58.0.0",
"kubo-rpc-client": "^1.0.1"
},
"devDependencies": {
"@babel/core": "^7.14.8",
Expand Down
4 changes: 3 additions & 1 deletion examples/http-client-browser-pubsub/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ import { test } from '@playwright/test';
import { playwright } from 'test-util-ipfs-example'
import * as ipfsModule from 'ipfs'
import * as ipfsHttpModule from 'ipfs-http-client'
SgtPooki marked this conversation as resolved.
Show resolved Hide resolved
import * as kuboRpcModule from 'kubo-rpc-client'
import * as goIpfsModule from 'go-ipfs'

// Setup
const play = test.extend({
...playwright.servers(),
...playwright.daemons(
{
ipfsHttpModule,
},
{
js: {
ipfsHttpModule,
2color marked this conversation as resolved.
Show resolved Hide resolved
ipfsBin: ipfsModule.path()
},
go: {
ipfsBin: goIpfsModule.path(),
kuboRpcModule,
args: ['--enable-pubsub-experiment']
}
},
Expand Down
3 changes: 2 additions & 1 deletion examples/http-client-name-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"browserslist": "last 1 Chrome version",
"dependencies": {
"ipfs-http-client": "^58.0.0"
"ipfs-http-client": "^58.0.0",
"kubo-rpc-client": "^1.0.1"
},
"devDependencies": {
"@babel/core": "^7.14.8",
Expand Down
4 changes: 2 additions & 2 deletions examples/http-client-name-api/tests/test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { test, expect } from '@playwright/test';
import { playwright } from 'test-util-ipfs-example';
import * as ipfsHttpModule from 'ipfs-http-client'
import * as kuboRpcModule from 'kubo-rpc-client'
import * as goIpfsModule from 'go-ipfs'

// Setup
const play = test.extend({
...playwright.servers(),
...playwright.daemons(
{
ipfsHttpModule,
kuboRpcModule,
ipfsBin: goIpfsModule.path(),
args: ['--enable-pubsub-experiment']
},
Expand Down