bufferedstream
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -0,1 +1,5 @@ | ||
= 3.0.3 / 2014-12-18 | ||
* Better browser tests using karma | ||
= 3.0.2 / 2014-11-10 | ||
@@ -2,0 +6,0 @@ |
@@ -0,1 +1,2 @@ | ||
/* jshint -W084 */ | ||
var d = require('d'); | ||
@@ -13,8 +14,8 @@ var EventEmitter = require('events').EventEmitter; | ||
var BaseClass, async; | ||
if (typeof window !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
BaseClass = require('stream').Stream; | ||
async = process.nextTick; | ||
} else { | ||
BaseClass = EventEmitter; | ||
async = window.setTimeout; | ||
} else { | ||
BaseClass = require('stream' + '').Stream; // Stop Browserify. | ||
async = process.nextTick; | ||
} | ||
@@ -21,0 +22,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Michael Jackson", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"repository": { | ||
@@ -13,5 +13,5 @@ "type": "git", | ||
"scripts": { | ||
"test": "mocha \"modules/**/__tests__/**/*-test.js\"", | ||
"bundle-tests": "browserify modules/__tests__/browser/tests.js --detect-globals false --debug > modules/__tests__/browser/tests-bundle.js", | ||
"serve-tests": "http-server modules/__tests__/browser" | ||
"dist": "webpack modules/BufferedStream.js dist/BufferedStream.min.js", | ||
"test": "jshint . && mocha modules/**/__tests__/*-test.js", | ||
"test-browser": "karma start" | ||
}, | ||
@@ -27,10 +27,19 @@ "engines": { | ||
"devDependencies": { | ||
"browserify": "~4.1.9", | ||
"expect": "~0.1.1", | ||
"http-server": "~0.6.1", | ||
"mocha": "~1.20.1" | ||
"expect": "^1.1.0", | ||
"jshint": "^2.5.10", | ||
"karma": "^0.12.28", | ||
"karma-chrome-launcher": "^0.1.7", | ||
"karma-cli": "0.0.4", | ||
"karma-mocha": "^0.1.10", | ||
"karma-sourcemap-loader": "^0.3.2", | ||
"karma-webpack": "^1.3.1", | ||
"mocha": "^2.0.1", | ||
"webpack": "^1.4.13" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/mjackson/bufferedstream/issues" | ||
}, | ||
"browser": { | ||
"stream": false | ||
} | ||
} |
@@ -1,2 +0,5 @@ | ||
[![build status](https://secure.travis-ci.org/mjackson/bufferedstream.png)](http://travis-ci.org/mjackson/bufferedstream) | ||
[![npm package](https://img.shields.io/npm/v/bufferedstream.svg?style=flat-square)](https://www.npmjs.org/package/bufferedstream) | ||
[![build status](https://img.shields.io/travis/mjackson/bufferedstream.svg?style=flat-square)](https://travis-ci.org/mjackson/bufferedstream) | ||
[![dependency status](https://img.shields.io/david/mjackson/bufferedstream.svg?style=flat-square)](https://david-dm.org/mjackson/bufferedstream) | ||
[![code climate](https://img.shields.io/codeclimate/github/mjackson/bufferedstream.svg?style=flat-square)](https://codeclimate.com/github/mjackson/bufferedstream) | ||
@@ -43,2 +46,12 @@ [BufferedStream](https://github.com/mjackson/bufferedstream) is a robust stream implementation for node.js and the browser based on the initial version of the stream API in Node.js. All data that is written to a BufferedStream is buffered until the next turn of the event loop. This greatly enhances the usability of streams by making it easy to setup listeners in the same turn of the event loop before data is emitted. | ||
Or, include `dist/BufferedStream.min.js` in a `<script>` tag: | ||
```html | ||
<script src="BufferedStream.min.js"></script> | ||
``` | ||
### Issues | ||
Please file issues on the [issue tracker on GitHub](https://github.com/mjackson/bufferedstream/issues). | ||
### Tests | ||
@@ -51,12 +64,9 @@ | ||
To run the tests in a browser, first run: | ||
To run the tests in Chrome: | ||
$ npm install | ||
$ npm run bundle-tests | ||
$ npm run serve-tests | ||
$ npm run test-browser | ||
Then open [http://localhost:8080/](http://localhost:8080/) in a browser. | ||
### License | ||
[MIT](http://opensource.org/licenses/MIT) |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
16498
10
322
71
0
0
10