Some required dependency updates #194

Merged
bumi merged 8 commits from updates into master 2020-05-07 08:08:27 +00:00
Showing only changes of commit 6be06b2e57 - Show all commits

View File

@ -36,7 +36,7 @@ class IPFS {
cat (hashData) {
let ipfsHash = hashData; // default - if it is a string
if (hashData.hasOwnProperty('hashSize')) {
if (Object.prototype.hasOwnProperty.call(hashData, 'hashSize')) {
ipfsHash = this.encodeHash(hashData);
}
if (this._config['gatewayUrl']) {
@ -48,7 +48,7 @@ class IPFS {
pin (hashData) {
let ipfsHash = hashData; // default - if it is a string
if (hashData.hasOwnProperty('hashSize')) {
if (Object.prototype.hasOwnProperty.call(hashData, 'hashSize')) {
ipfsHash = this.encodeHash(hashData);
}
return this._ipfsAPI.pin.add(multihashes.toB58String(ipfsHash));