Socket
Socket
Sign inDemoInstall

through2

Package Overview
Dependencies
5
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

.nyc_output/28dcebf0-9c4a-47bb-900e-93fcef37bbe2.json

5

package.json
{
"name": "through2",
"version": "3.0.0",
"version": "3.0.1",
"description": "A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise",

@@ -22,4 +22,3 @@ "main": "through2.js",

"dependencies": {
"readable-stream": "2 || 3",
"xtend": "~4.0.1"
"readable-stream": "2 || 3"
},

@@ -26,0 +25,0 @@ "devDependencies": {

4

README.md

@@ -9,3 +9,3 @@ # through2

***Note: Users of Node.js 0.10 and 0.12 should install `through2@2.x`. As of through2@3.x, readable-stream@3 is being used and is not compatible with older versions of Node.js.***
***Note: Users of Node.js 0.10 and 0.12 should install `through2@2.x`. As of through2@3.x, readable-stream@3 is being used and is not compatible with older versions of Node.js.*** _v2.x support is being maintained on the [v2.x](https://github.com/rvagg/through2/tree/v2.x) branch._

@@ -135,2 +135,2 @@ ```js

**through2** is Copyright (c) Rod Vagg [@rvagg](https://twitter.com/rvagg) and additional contributors and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
**through2** is Copyright (c) Rod Vagg and additional contributors and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
var Transform = require('readable-stream').Transform
, inherits = require('util').inherits
, xtend = require('xtend')

@@ -71,3 +70,3 @@ function DestroyableTransform(opts) {

this.options = xtend(options, override)
this.options = Object.assign({}, options, override)

@@ -89,3 +88,3 @@ DestroyableTransform.call(this, this.options)

module.exports.obj = through2(function (options, transform, flush) {
var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))
var t2 = new DestroyableTransform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))

@@ -92,0 +91,0 @@ t2._transform = transform

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc