ipfs-utils
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -0,1 +1,11 @@ | ||
<a name="1.2.4"></a> | ||
## [1.2.4](https://github.com/ipfs/js-ipfs-utils/compare/v1.2.3...v1.2.4) (2020-04-08) | ||
### Bug Fixes | ||
* detect node stream with hasOwnProperty ([#33](https://github.com/ipfs/js-ipfs-utils/issues/33)) ([1c1d894](https://github.com/ipfs/js-ipfs-utils/commit/1c1d894)) | ||
<a name="1.2.3"></a> | ||
@@ -2,0 +12,0 @@ ## [1.2.3](https://github.com/ipfs/js-ipfs-utils/compare/v1.2.2...v1.2.3) (2020-04-07) |
{ | ||
"name": "ipfs-utils", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Package to aggregate shared logic and dependencies for the IPFS ecosystem", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -266,3 +266,3 @@ /* eslint-disable no-undef */ | ||
// Workaround for https://github.com/node-fetch/node-fetch/issues/766 | ||
if (source.writable && source.readable) { | ||
if (Object.prototype.hasOwnProperty.call(source, 'readable') && Object.prototype.hasOwnProperty.call(source, 'writable')) { | ||
const iter = source[Symbol.asyncIterator]() | ||
@@ -273,5 +273,3 @@ | ||
return: () => { | ||
if (source.writableEnded) { | ||
source.destroy() | ||
} | ||
source.destroy() | ||
@@ -278,0 +276,0 @@ return iter.return() |
54633
946