bare-stream
Advanced tools
Comparing version 2.2.1 to 2.3.0
10
index.js
const stream = require('streamx') | ||
const b4a = require('b4a') | ||
const getStreamError = stream.getStreamError | ||
const defaultEncoding = 'utf8' | ||
@@ -11,3 +9,7 @@ | ||
exports.isStream = stream.isStream | ||
exports.isEnded = stream.isEnded | ||
exports.isFinished = stream.isFinished | ||
exports.getStreamError = stream.getStreamError | ||
exports.Readable = class Readable extends stream.Readable { | ||
@@ -275,3 +277,3 @@ constructor (opts = {}) { | ||
const done = () => { | ||
cb(getStreamError(stream, { all: true })) | ||
cb(exports.getStreamError(stream, { all: true })) | ||
@@ -311,3 +313,3 @@ if (cleanup) detach() | ||
function destroy (destroy, cb) { | ||
destroy.call(this, stream.getStreamError(this), cb) | ||
destroy.call(this, exports.getStreamError(this), cb) | ||
} | ||
@@ -314,0 +316,0 @@ |
{ | ||
"name": "bare-stream", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Streaming data for JavaScript", | ||
@@ -29,3 +29,3 @@ "exports": { | ||
"b4a": "^1.6.6", | ||
"streamx": "^2.18.0" | ||
"streamx": "^2.20.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19346
246
Updatedstreamx@^2.20.0