ipfs-api renamed ipfs-http-client

This commit is contained in:
Mitra Ardron 2019-02-12 16:22:06 +11:00
parent b369c1face
commit ca303fdb06
3 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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",

View File

@ -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