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

object-stream-tools

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-stream-tools - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

11

index.js

@@ -10,3 +10,3 @@ 'use strict'

objectMode: true,
transform: (obj, enc, cb) => transform(obj, cb),
transform: function(obj, enc, cb) { transform.call(this, obj, cb) },
flush

@@ -17,3 +17,3 @@ })

function thruParallel(maxConcurrency, transform, flush) {
return through2Concurrent.obj({maxConcurrency},
return through2Concurrent.obj({ maxConcurrency },
(obj, enc, cb) => transform(obj, cb), flush

@@ -24,3 +24,3 @@ )

function arrayToStream(data) {
const newStream = new stream.Readable({objectMode: true})
const newStream = new stream.Readable({ objectMode: true })
data.forEach(item => newStream.push(item))

@@ -42,5 +42,4 @@ newStream.push(null)

function newReadable() {
const rs = new stream.Readable({objectMode: true})
rs._read = () => {
}
const rs = new stream.Readable({ objectMode: true })
rs._read = () => {}
return rs

@@ -47,0 +46,0 @@ }

{
"name": "object-stream-tools",
"version": "1.2.1",
"version": "1.2.2",
"description": "Useful tools for manipulating object streams. Will be especially helpful to developers used to map - filter - reduce approach of nodejs arrays.",

@@ -5,0 +5,0 @@ "main": "index.js",

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