bare-stream
Advanced tools
Comparing version 2.6.1 to 2.6.2
48
index.js
@@ -20,3 +20,9 @@ const stream = require('streamx') | ||
constructor(opts = {}) { | ||
super(opts) | ||
super({ | ||
...opts, | ||
byteLength: null, | ||
byteLengthReadable: null, | ||
map: null, | ||
mapReadable: null | ||
}) | ||
@@ -53,3 +59,9 @@ if (this._construct) this._open = this._construct | ||
constructor(opts = {}) { | ||
super({ ...opts, byteLengthWritable }) | ||
super({ | ||
...opts, | ||
byteLength: null, | ||
byteLengthWritable, | ||
map: null, | ||
mapWritable: null | ||
}) | ||
@@ -82,3 +94,3 @@ if (this._construct) this._open = this._construct | ||
if (cb) stream.Writable.drained(this).then(cb, cb) | ||
if (cb) stream.Writable.drained(this).then(() => cb(null), cb) | ||
@@ -109,3 +121,3 @@ return result | ||
if (cb) this.once('end', cb) | ||
if (cb) this.once('end', () => cb(null)) | ||
@@ -118,3 +130,11 @@ return result | ||
constructor(opts = {}) { | ||
super({ ...opts, byteLengthWritable }) | ||
super({ | ||
...opts, | ||
byteLength: null, | ||
byteLengthReadable: null, | ||
byteLengthWritable, | ||
map: null, | ||
mapReadable: null, | ||
mapWritable: null | ||
}) | ||
@@ -167,3 +187,3 @@ if (this._construct) this._open = this._construct | ||
if (cb) stream.Writable.drained(this).then(cb, cb) | ||
if (cb) stream.Writable.drained(this).then(() => cb(null), cb) | ||
@@ -194,3 +214,3 @@ return result | ||
if (cb) this.once('end', cb) | ||
if (cb) this.once('end', () => cb(null)) | ||
@@ -203,3 +223,11 @@ return result | ||
constructor(opts = {}) { | ||
super({ ...opts, byteLengthWritable }) | ||
super({ | ||
...opts, | ||
byteLength: null, | ||
byteLengthReadable: null, | ||
byteLengthWritable, | ||
map: null, | ||
mapReadable: null, | ||
mapWritable: null | ||
}) | ||
@@ -244,3 +272,3 @@ if (this._transform !== stream.Transform.prototype._transform) { | ||
if (cb) stream.Writable.drained(this).then(cb, cb) | ||
if (cb) stream.Writable.drained(this).then(() => cb(null), cb) | ||
@@ -271,3 +299,3 @@ return result | ||
if (cb) this.once('end', cb) | ||
if (cb) this.once('end', () => cb(null)) | ||
@@ -274,0 +302,0 @@ return result |
{ | ||
"name": "bare-stream", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Streaming data for JavaScript", | ||
"exports": { | ||
".": "./index.js", | ||
".": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"./package": "./package.json", | ||
@@ -14,2 +17,3 @@ "./promises": "./promises.js", | ||
"index.js", | ||
"index.d.ts", | ||
"promises.js", | ||
@@ -20,3 +24,3 @@ "web.js", | ||
"scripts": { | ||
"test": "prettier . --check && bare test/all.js" | ||
"test": "prettier . --check && bare test.js" | ||
}, | ||
@@ -37,6 +41,12 @@ "repository": { | ||
"devDependencies": { | ||
"bare-buffer": "^3.0.0", | ||
"bare-events": "^2.5.4", | ||
"brittle": "^3.5.2", | ||
"prettier": "^3.3.3", | ||
"prettier-config-standard": "^7.0.0" | ||
}, | ||
"peerDependencies": { | ||
"bare-buffer": "*", | ||
"bare-events": "*" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30761
8
627
3
5
1