diff --git a/TransportIPFS.js b/TransportIPFS.js index b9a2cde..407f433 100644 --- a/TransportIPFS.js +++ b/TransportIPFS.js @@ -10,7 +10,7 @@ const debug = require('debug')('dweb-transports:ipfs'); // IPFS components const IPFS = require('ipfs'); -const ipfsAPI = require('ipfs-api'); +const ipfsAPI = require('ipfs-http-client'); const CID = require('cids'); //Removed next two as not needed if use "Kludge" flagged below. //const dagPB = require('ipld-dag-pb'); diff --git a/package.json b/package.json index e0ccabd..f81863d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "cids": "^0.5.7", "gun": "^0.9.999995", "ipfs": "^0.31.7", - "ipfs-api": "^24.0.2", + "ipfs-http-client": "^29.1.0", "ipfs-unixfs": "^0.1.15", "node-fetch": "^2.2.0", "readable-stream": "^2.3.6", diff --git a/test_ipfs.js b/test_ipfs.js index a161fe7..2d42de3 100644 --- a/test_ipfs.js +++ b/test_ipfs.js @@ -6,7 +6,7 @@ const CID = require('cids'); const unixFs = require('ipfs-unixfs'); const multihashes = require('multihashes'); let tryexpectedfailures = true; // Set to false if want to check the things we expect to fail. -const ipfsAPI = require('ipfs-api') +const ipfsAPI = require('ipfs-http-client') // connect to ipfs daemon API server const usehttpapi=false; // True uses local ipfs instance on machine where doing test, otherwise uses Javascript library