Socket
Socket
Sign inDemoInstall

buffered-xhr-stream

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

4

index.js

@@ -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",

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