Comparing version
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.3.7](https://github.com/unjs/unev/compare/v0.3.6...v0.3.7) (2021-09-20) | ||
### Bug Fixes | ||
* **duplex:** avoid cycling reference ([3cd4797](https://github.com/unjs/unev/commit/3cd4797510693c177026d597b691a1ca45beaaa8)) | ||
### [0.3.6](https://github.com/unjs/unev/compare/v0.3.5...v0.3.6) (2021-09-20) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "unenv", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/unev", |
@@ -8,6 +8,8 @@ "use strict"; | ||
var _ = require("."); | ||
var _readable = require("./readable"); | ||
var _writable = require("./writable"); | ||
const Duplex = class { | ||
constructor(readable = new _.Readable(), writable = new _.Writable()) { | ||
constructor(readable = new _readable.Readable(), writable = new _writable.Writable()) { | ||
this.allowHalfOpen = true; | ||
@@ -21,3 +23,3 @@ Object.assign(this, readable); | ||
exports.Duplex = Duplex; | ||
Object.assign(Duplex.prototype, _.Readable.prototype); | ||
Object.assign(Duplex.prototype, _.Writable.prototype); | ||
Object.assign(Duplex.prototype, _readable.Readable.prototype); | ||
Object.assign(Duplex.prototype, _writable.Writable.prototype); |
Sorry, the diff of this file is not supported yet
78068
-19.27%88
-3.3%2265
-19.57%