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

from2

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

from2 - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

.travis.yml

4

index.js

@@ -23,7 +23,5 @@ var Readable = require('readable-stream').Readable

}
if (Array.isArray(read)) read = toFunction(read)
var rs = new Proto(opts)
rs._from = read
rs._from = Array.isArray(read) ? toFunction(read) : read
return rs

@@ -30,0 +28,0 @@ }

{
"name": "from2",
"description": "Convenience wrapper for ReadableStream, with an API lifted from \"from\" and \"through2\"",
"version": "1.3.0",
"version": "2.0.0",
"main": "index.js",

@@ -10,7 +10,7 @@ "scripts": {

"dependencies": {
"inherits": "~2.0.1",
"readable-stream": "~1.1.10"
"inherits": "^2.0.1",
"readable-stream": "^2.0.0"
},
"devDependencies": {
"tape": "~2.4.2"
"tape": "^4.0.0"
},

@@ -17,0 +17,0 @@ "author": "Hugh Kennedy <hughskennedy@gmail.com> (http://hughsk.io/)",

@@ -35,3 +35,3 @@ # from2 [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/from2&title=from2&description=hughsk/from2%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

// left in the string, close the stream.
if (string.length <= 0) return this.push(null)
if (string.length <= 0) return cb(null, null)

@@ -38,0 +38,0 @@ // Pull in a new chunk of text,

@@ -12,3 +12,3 @@ var test = require('tape')

return from(function(size, next) {
if (string.length <= 0) return next()
if (string.length <= 0) return next(null, null)
var chunk = string.slice(0, size)

@@ -15,0 +15,0 @@ string = string.slice(size)

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