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

readable-stream

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readable-stream - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

6

lib/_stream_readable.js

@@ -97,3 +97,3 @@ // Copyright Joyent, Inc. and other Node contributors.

if (!StringDecoder)
StringDecoder = require('string_decoder').StringDecoder;
StringDecoder = require('string_decoder/').StringDecoder;
this.decoder = new StringDecoder(options.encoding);

@@ -199,3 +199,3 @@ this.encoding = options.encoding;

if (!StringDecoder)
StringDecoder = require('string_decoder').StringDecoder;
StringDecoder = require('string_decoder/').StringDecoder;
this._readableState.decoder = new StringDecoder(enc);

@@ -377,3 +377,3 @@ this._readableState.encoding = enc;

function onEofChunk(stream, state) {
if (state.decoder && !state.ended && state.decoder.end) {
if (state.decoder && !state.ended) {
var chunk = state.decoder.end();

@@ -380,0 +380,0 @@ if (chunk && chunk.length) {

@@ -206,3 +206,5 @@ // Copyright Joyent, Inc. and other Node contributors.

var ret = state.length < state.highWaterMark;
state.needDrain = !ret;
// we must ensure that previous needDrain will not be reset to false.
if (!ret)
state.needDrain = true;

@@ -209,0 +211,0 @@ if (state.writing)

{
"name": "readable-stream",
"version": "1.0.24",
"version": "1.0.25",
"description": "An exploration of a new kind of readable streams for Node.js",
"main": "readable.js",
"dependencies": {},
"dependencies": {
"string_decoder": "~0.10.x"
},
"devDependencies": {

@@ -8,0 +10,0 @@ "tap": "~0.2.6"

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