Update ipfs-http-client (for node >= 14)

Updates the client library and API usage to work with the latest
version, and more importantly, with current node.js LTS.
This commit is contained in:
2022-04-28 19:19:58 +02:00
parent 16d5704173
commit 53fafc1c78
5 changed files with 19954 additions and 5600 deletions

View File

@@ -14,15 +14,6 @@ class Base {
return this.contract.address;
}
get ipfs () {
if (!this._ipfsAPI) { throw new Error('IPFS API not configured; please set an ipfs instance'); }
return this._ipfsAPI;
}
set ipfs (ipfsAPI) {
this._ipfsAPI = ipfsAPI;
}
on (type, callback) {
return this.contract.on(type, callback);
}