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

bufferedstream

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bufferedstream - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

4

CHANGES.md

@@ -0,1 +1,5 @@

= HEAD
* Use utf-8 encoding by default, instead of binary
= 3.0.8 / 2015-01-13

@@ -2,0 +6,0 @@

10

modules/BufferedStream.js

@@ -6,7 +6,5 @@ /* jshint -W084 */

*/
var bodec = require('bodec');
var d = require('describe-property');
var EventEmitter = require('events').EventEmitter;
var isBinary = require('./utils/isBinary');
var binaryFrom = require('./utils/binaryFrom');
var binaryTo = require('./utils/binaryTo');

@@ -76,3 +74,3 @@ /**

if (stream.encoding) {
stream.emit('data', binaryTo(chunk, stream.encoding));
stream.emit('data', bodec.toString(chunk, stream.encoding));
} else {

@@ -296,5 +294,5 @@ stream.emit('data', chunk);

if (typeof chunk === 'string')
chunk = binaryFrom(chunk, arguments[1]);
chunk = bodec.fromString(chunk, arguments[1]);
if (!isBinary(chunk))
if (!bodec.isBinary(chunk))
throw new Error('BufferedStream only accepts binary data');

@@ -301,0 +299,0 @@

@@ -5,3 +5,3 @@ {

"author": "Michael Jackson",
"version": "3.0.8",
"version": "3.0.9",
"repository": {

@@ -21,3 +21,3 @@ "type": "git",

"dependencies": {
"bodec": "^1.0.0",
"bodec": "git://github.com/mjackson/bodec#to-from-string",
"describe-property": "^1.0.0",

@@ -24,0 +24,0 @@ "events": "~1.0.1"

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