readable-stream
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
78468
1355
0
1
+ Addedstring_decoder@~0.10.x
+ Addedstring_decoder@0.10.31(transitive)