Socket
Socket
Sign inDemoInstall

readable-stream

Package Overview
Dependencies
6
Maintainers
4
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

.zuul.yml

14

lib/_stream_duplex.js

@@ -8,10 +8,3 @@ // a duplex stream is just a stream that is both readable and writable.

module.exports = Duplex;
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
/*<replacement>*/
var objectKeys = Object.keys || function (obj) {

@@ -25,4 +18,11 @@ var keys = [];

module.exports = Duplex;
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
/*<replacement>*/
var util = require('core-util-is');

@@ -29,0 +29,0 @@ util.inherits = require('inherits');

@@ -38,2 +38,3 @@ 'use strict';

var Buffer = require('buffer').Buffer;

@@ -40,0 +41,0 @@ /*<replacement>*/

@@ -35,2 +35,3 @@ // A bit simpler than readable streams.

var Buffer = require('buffer').Buffer;

@@ -147,2 +148,3 @@ util.inherits(Writable, Stream);

(function (){try {
Object.defineProperty(WritableState.prototype, 'buffer', {

@@ -154,3 +156,5 @@ get: require('util-deprecate')(function() {

});
}catch(_){}}());
function Writable(options) {

@@ -223,3 +227,3 @@ var Duplex = require('./_stream_duplex');

if (chunk instanceof Buffer)
if (Buffer.isBuffer(chunk))
encoding = 'buffer';

@@ -289,3 +293,3 @@ else if (!encoding)

if (chunk instanceof Buffer)
if (Buffer.isBuffer(chunk))
encoding = 'buffer';

@@ -292,0 +296,0 @@ var len = state.objectMode ? 1 : chunk.length;

{
"name": "readable-stream",
"version": "2.0.0",
"version": "2.0.1",
"description": "Streams3, a user-land copy of the stream library from iojs v2.x",

@@ -8,5 +8,5 @@ "main": "readable.js",

"core-util-is": "~1.0.0",
"process-nextick-args": "~1.0.0",
"inherits": "~2.0.1",
"isarray": "0.0.1",
"process-nextick-args": "~1.0.0",
"string_decoder": "~0.10.x",

@@ -16,6 +16,9 @@ "util-deprecate": "~1.0.1"

"devDependencies": {
"tap": "~0.2.6"
"tap": "~0.2.6",
"tape": "~4.0.0",
"zuul": "~3.0.0"
},
"scripts": {
"test": "tap test/parallel/*.js"
"test": "tap test/parallel/*.js",
"browser": "zuul --browser-name $BROWSER_NAME --browser-version $BROWSER_VERSION -- test/browser.js"
},

@@ -22,0 +25,0 @@ "repository": {

@@ -1,7 +0,8 @@

(function (){
var Stream = (function (){
try {
exports.Stream = require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
} catch(_){}
}());
exports = module.exports = require('./lib/_stream_readable.js');
exports.Stream = Stream || exports;
exports.Readable = exports;

@@ -8,0 +9,0 @@ exports.Writable = require('./lib/_stream_writable.js');

# readable-stream
***Node-core streams for userland***
***Node-core streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
[![Build Status](https://travis-ci.org/nodejs/readable-stream.svg)](https://travis-ci.org/nodejs/readable-stream)
[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)
[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream)
```bash

@@ -17,8 +19,8 @@ npm install --save readable-stream

This package is a mirror of the Streams2 and Streams3 implementations in
Node-core.
Node-core, including [documentation](doc/stream.markdown).
If you want to guarantee a stable streams base, regardless of what version of
Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core.
Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).
As of version 2.0.0 **readable-stream** uses semantic versioning.
As of version 2.0.0 **readable-stream** uses semantic versioning.

@@ -29,3 +31,3 @@ # Streams WG Team Members

- Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B
* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) $lt;calvin.metcalf@gmail.com@gt;
* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) &lt;calvin.metcalf@gmail.com&gt;
- Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242

@@ -32,0 +34,0 @@ * **Rod Vagg** ([@rvagg](https://github.com/rvagg)) &lt;rod@vagg.org&gt;

Sorry, the diff of this file is not supported yet

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