bufferedstream
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -0,1 +1,5 @@ | ||
= 3.0.8 / 2015-01-13 | ||
* Update bodec to 1.0.0 | ||
= 3.0.5 / 2014-12-22 | ||
@@ -2,0 +6,0 @@ |
@@ -18,8 +18,8 @@ /* jshint -W084 */ | ||
var BaseClass, async; | ||
if (typeof window === 'undefined') { | ||
if (typeof window === 'object') { | ||
BaseClass = EventEmitter; | ||
async = window.setTimeout; | ||
} else { | ||
BaseClass = require('stream').Stream; | ||
async = process.nextTick; | ||
} else { | ||
BaseClass = EventEmitter; | ||
async = window.setTimeout; | ||
} | ||
@@ -294,5 +294,8 @@ | ||
if (!isBinary(chunk)) | ||
if (typeof chunk === 'string') | ||
chunk = binaryFrom(chunk, arguments[1]); | ||
if (!isBinary(chunk)) | ||
throw new Error('BufferedStream only accepts binary data'); | ||
this._chunks.push(chunk); | ||
@@ -299,0 +302,0 @@ this.size += chunk.length; |
@@ -5,3 +5,3 @@ { | ||
"author": "Michael Jackson", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"repository": { | ||
@@ -21,3 +21,3 @@ "type": "git", | ||
"dependencies": { | ||
"bodec": "git://github.com/mjackson/bodec#browser", | ||
"bodec": "^1.0.0", | ||
"describe-property": "^1.0.0", | ||
@@ -24,0 +24,0 @@ "events": "~1.0.1" |
@@ -46,3 +46,3 @@ [![npm package](https://img.shields.io/npm/v/bufferedstream.svg?style=flat-square)](https://www.npmjs.org/package/bufferedstream) | ||
Or, include `dist/BufferedStream.min.js` in a `<script>` tag: | ||
Or, include [`dist/BufferedStream.min.js`](https://github.com/mjackson/bufferedstream/blob/master/dist/BufferedStream.min.js) in a `<script>` tag: | ||
@@ -49,0 +49,0 @@ ```html |
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
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
16378
293
0
+ Addedbodec@1.1.0(transitive)
Updatedbodec@^1.0.0