Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 2dfedf7

Browse files
authored
fix: update ipfs versions (#365)
Updates all examples to use ESM versions of IPFS, swaps parcel for vite everywhere and removes old browserify example because it only understands CJS.
1 parent b3fb115 commit 2dfedf7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "example-running-multiple-nodes",
33
"version": "2.0.1",
44
"private": true,
5+
"type": "module",
56
"description": "How to run multiple IPFS nodes at the same time",
67
"keywords": [],
78
"license": "MIT",
@@ -13,7 +14,7 @@
1314
"test": "node tests/test.js"
1415
},
1516
"dependencies": {
16-
"ipfs": "^0.62.0"
17+
"ipfs": "^0.63.3"
1718
},
1819
"devDependencies": {
1920
"nanoid": "^3.1.23",

tests/test.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
'use strict'
2-
3-
const IPFS = require('ipfs')
4-
const os = require('os')
5-
const path = require('path')
6-
const { nanoid } = require('nanoid')
7-
const { node } = require('test-util-ipfs-example');
1+
import * as IPFS from 'ipfs'
2+
import os from 'os'
3+
import path from 'path'
4+
import { nanoid } from 'nanoid'
5+
import { node } from 'test-util-ipfs-example'
86

97
async function startCliNode () {
108
const repoDir = path.join(os.tmpdir(), `repo-${nanoid()}`)

0 commit comments

Comments
 (0)