Comparing version 2.1.0 to 2.2.0
@@ -502,2 +502,10 @@ const { EventEmitter } = require('events') | ||
get readable () { | ||
return this._readableState !== null | ||
} | ||
get writable () { | ||
return this._writableState !== null | ||
} | ||
get destroyed () { | ||
@@ -504,0 +512,0 @@ return (this._duplexState & DESTROYED) !== 0 |
{ | ||
"name": "streamx", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "An iteration of the Node.js core streams with a series of improvements", | ||
@@ -11,4 +11,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"standard": "^12.0.1", | ||
"tape": "^4.10.1" | ||
"end-of-stream": "^1.4.1", | ||
"standard": "^14.3.1", | ||
"tape": "^4.11.0" | ||
}, | ||
@@ -15,0 +16,0 @@ "scripts": { |
@@ -57,3 +57,3 @@ # streamx | ||
``` js | ||
const { Readable } = require('@mafintosh/streamx') | ||
const { Readable } = require('streamx') | ||
@@ -60,0 +60,0 @@ const rs = new Readable({ |
@@ -5,3 +5,3 @@ const tape = require('tape') | ||
tape('streams are async iterators', async function (t) { | ||
const data = [ 'a', 'b', 'c', null ] | ||
const data = ['a', 'b', 'c', null] | ||
const expected = data.slice(0) | ||
@@ -20,4 +20,4 @@ | ||
t.same(expected, [ null ]) | ||
t.same(expected, [null]) | ||
t.end() | ||
}) |
@@ -101,3 +101,3 @@ const tape = require('tape') | ||
t.pass('final called') | ||
t.same(buffered, [ 'hello', 'world' ]) | ||
t.same(buffered, ['hello', 'world']) | ||
t.end() | ||
@@ -128,3 +128,3 @@ } | ||
t.same(err, null) | ||
t.same(buffered, [ 'hello', 'world' ]) | ||
t.same(buffered, ['hello', 'world']) | ||
t.end() | ||
@@ -131,0 +131,0 @@ }) |
@@ -17,3 +17,3 @@ const tape = require('tape') | ||
t.pass('closed') | ||
t.same(buffered, [ 'hello', 'world' ]) | ||
t.same(buffered, ['hello', 'world']) | ||
t.same(ended, 1) | ||
@@ -20,0 +20,0 @@ t.ok(r.destroyed) |
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
46446
12
1136
3