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

Commit 9029ee5

Browse files
authored
fix: update ipfs repo (#3671)
Align config types
1 parent eccb067 commit 9029ee5

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

examples/custom-ipfs-repo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"datastore-fs": "4.0.0",
1414
"ipfs": "^0.54.4",
15-
"ipfs-repo": "^9.1.4",
15+
"ipfs-repo": "^9.1.6",
1616
"it-all": "^1.0.4"
1717
},
1818
"devDependencies": {

examples/running-multiple-nodes/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ await IPFS.create({
7272
'/ip4/127.0.0.1/tcp/4013/ws'
7373
],
7474
API: '/ip4/127.0.0.1/tcp/5012',
75-
Gateway: '/ip4/127.0.0.1/tcp/9191'
75+
Gateway: '/ip4/127.0.0.1/tcp/9191',
76+
RPC: '/ip4/127.0.0.1/tcp/4839'
7677
}
7778
}
7879
})

examples/running-multiple-nodes/test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async function startCliNode () {
3131
await execa(ipfs, ['config', 'Addresses.Swarm', '--json', JSON.stringify([`/ip4/0.0.0.0/tcp/0`, `/ip4/127.0.0.1/tcp/0/ws`])], opts)
3232
await execa(ipfs, ['config', 'Addresses.API', `/ip4/127.0.0.1/tcp/0`], opts)
3333
await execa(ipfs, ['config', 'Addresses.Gateway', `/ip4/127.0.0.1/tcp/0`], opts)
34+
await execa(ipfs, ['config', 'Addresses.RPC', `/ip4/127.0.0.1/tcp/0`], opts)
3435

3536
return waitForOutput('Daemon is ready', ipfs, ['daemon'], opts)
3637
}
@@ -53,7 +54,8 @@ async function startProgramaticNode () {
5354
`/ip4/127.0.0.1/tcp/0/ws`
5455
],
5556
API: `/ip4/127.0.0.1/tcp/0`,
56-
Gateway: `/ip4/127.0.0.1/tcp/0`
57+
Gateway: `/ip4/127.0.0.1/tcp/0`,
58+
RPC: `/ip4/127.0.0.1/tcp/0`
5759
},
5860
Bootstrap: []
5961
}

packages/ipfs-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ipfs-core-utils": "^0.7.2",
4343
"ipfs-daemon": "^0.5.4",
4444
"ipfs-http-client": "^49.0.4",
45-
"ipfs-repo": "^9.1.4",
45+
"ipfs-repo": "^9.1.6",
4646
"ipfs-utils": "^7.0.0",
4747
"ipld-dag-cbor": "^1.0.0",
4848
"ipld-dag-pb": "^0.22.1",

packages/ipfs-core-types/src/config/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface AddressConfig {
5757
}
5858

5959
export interface APIConfig {
60-
HTTPHeaders?: Record<string, string>
60+
HTTPHeaders?: Record<string, string[]>
6161
}
6262

6363
export interface DiscoveryConfig {

packages/ipfs-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"ipfs-block-service": "^0.19.0",
7575
"ipfs-core-types": "^0.3.1",
7676
"ipfs-core-utils": "^0.7.2",
77-
"ipfs-repo": "^9.1.4",
77+
"ipfs-repo": "^9.1.6",
7878
"ipfs-unixfs": "^4.0.3",
7979
"ipfs-unixfs-exporter": "^5.0.3",
8080
"ipfs-unixfs-importer": "^7.0.3",

0 commit comments

Comments
 (0)