buffered-xhr-stream
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -11,3 +11,3 @@ var stream = require('stream') | ||
this.paused = false | ||
this.chunkSize = options.chunkSize || 1024 | ||
this.chunkSize = options.chunkSize || 65536 | ||
this.readable = true | ||
@@ -52,3 +52,3 @@ this.writeable = true | ||
} | ||
while (stream.xhr.responseText.length - stream.offset > stream.chunkSize && stream._state === 'flowing') { | ||
while (stream.xhr.responseText.length - stream.offset >= stream.chunkSize && stream._state === 'flowing') { | ||
var chunk = stream.xhr.responseText.substr(stream.offset, stream.chunkSize) | ||
@@ -55,0 +55,0 @@ stream.emit('data', chunk) |
{ | ||
"name": "buffered-xhr-stream", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A pausable/resumable xhr stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
2285
5
63