bufferedstream
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -0,1 +1,5 @@ | ||
= HEAD | ||
* Use utf-8 encoding by default, instead of binary | ||
= 3.0.8 / 2015-01-13 | ||
@@ -2,0 +6,0 @@ |
@@ -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" |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
15732
5
266
1
- Removedbodec@1.1.0(transitive)