Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamx

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamx - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

test/compat.js

8

index.js

@@ -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

7

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc