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

stream-compare

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-compare - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

20

CHANGELOG.md
# Change Log
## [v0.2.0](https://github.com/kevinoid/stream-compare/tree/v0.2.0) (2016-04-22)
## [1.0.0](https://github.com/kevinoid/stream-compare/tree/1.0.0) (2017-02-24)
[Full Changelog](https://github.com/kevinoid/stream-compare/compare/v0.2.0...1.0.0)
### Breaking Changes
- **No API Changes** Bump to 1.0 is declaration of stability rather than an
indication of changes.
- Code style updates.
- Add AppVeyor CI.
- Test dependency updates.
- Remove callback argument and return Promise unconditionally. Consider using
[promise-nodeify](https://github.com/kevinoid/promise-nodeify) to migrate.
## [v0.2.0](https://github.com/kevinoid/stream-compare/tree/v0.2.0) (2016-04-22)
[Full Changelog](https://github.com/kevinoid/stream-compare/compare/v0.1.0...v0.2.0)
### New Features
- `endEvents` option for controlling comparison on stream end.
- `.checkpoint()` method on returned Promise allows caller to trigger compare.
- `.end()` method on returned Promise allows caller to end comparison.
## [v0.1.0](https://github.com/kevinoid/stream-compare/tree/v0.1.0) (2016-04-02)

@@ -18,0 +16,0 @@

@@ -5,2 +5,3 @@ /**

*/
'use strict';

@@ -197,3 +198,3 @@

typeof options.endEvents !== 'object' ||
options.endEvents.length !== options.endEvents.length | 0) {
options.endEvents.length !== Math.floor(options.endEvents.length)) {
throw new TypeError('options.endEvents must be Array-like');

@@ -204,3 +205,3 @@ }

typeof options.events !== 'object' ||
options.events.length !== options.events.length | 0) {
options.events.length !== Math.floor(options.events.length)) {
throw new TypeError('options.events must be Array-like');

@@ -215,3 +216,3 @@ }

}
if (!ReadPolicy.hasOwnProperty(options.readPolicy)) {
if (!hasOwnProperty.call(ReadPolicy, options.readPolicy)) {
throw new RangeError('Invalid options.readPolicy \'' +

@@ -386,3 +387,3 @@ options.readPolicy + '\'');

state.ended = true;
++ended;
ended += 1;

@@ -448,3 +449,3 @@ debug(streamName(this) + ' has ended.');

}
++this.totalDataLen;
this.totalDataLen += 1;
} else if (typeof data !== 'string' && !(data instanceof Buffer)) {

@@ -451,0 +452,0 @@ throw new TypeError('expected string or Buffer, got ' +

@@ -5,2 +5,3 @@ /**

*/
'use strict';

@@ -7,0 +8,0 @@

{
"name": "stream-compare",
"version": "0.2.0",
"version": "1.0.0",
"description": "Compare the behavior of readable streams.",

@@ -28,7 +28,7 @@ "keywords": [

"lint": "npm run lint-js && npm run lint-doc",
"lint-doc": "jsdoc -c jsdoc-lint.conf.json . && echo JSDoc passed.",
"lint-js": "eslint . && echo ESLint passed.",
"lint-doc": "jsdoc -t templates/silent -c jsdoc-lint.conf.json . && echo JSDoc passed.",
"lint-js": "node-version-gte-4 && eslint . && echo ESLint passed. || node-version-lt-4",
"postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md && echo until skywinder/github-changelog-generator#56 is fixed.",
"postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"",
"preversion": "git-branch-is master && travis-status -b -c -qwx && depcheck --ignores bluebird && david",
"preversion": "depcheck --ignores bluebird,eslint-plugin-import --ignore-dirs doc && david && git-branch-is master && travis-status -b master -c -wx && appveyor-status -b master -c -w -p kevinoid/stream-compare && istanbul check-coverage --statements 95 coverage/coverage.json",
"test": "npm run lint && npm run test-unit",

@@ -52,11 +52,11 @@ "test-cov": "npm run lint && npm run test-unit-cov",

"coveralls": "^2.11.6",
"eslint": "^2.3.0",
"eslint-config-airbnb-base": "^1.0.3",
"eslint-plugin-import": "^1.5.0",
"eslint": "^3.0.0",
"eslint-config-airbnb-base": "^11.0.0",
"eslint-plugin-import": "^2.2.0",
"istanbul": "^0.4.1",
"jsdoc": "^3.4.0",
"mocha": "^2.3.4",
"nodecat": "^0.1.0",
"rimraf": "^2.2.0",
"should": "^8.0.2"
"jsdoc": "^3.4.1",
"mocha": "^3.2.0",
"node-version-check": "^2.1.1",
"nodecat": "^1.0.0",
"rimraf": "^2.2.0"
},

@@ -63,0 +63,0 @@ "engines": {

stream-compare
==============
[![Build status](https://img.shields.io/travis/kevinoid/stream-compare.svg?style=flat)](https://travis-ci.org/kevinoid/stream-compare)
[![Build Status: Linux](https://img.shields.io/travis/kevinoid/stream-compare/master.svg?style=flat&label=build+on+linux)](https://travis-ci.org/kevinoid/stream-compare)
[![Build Status: Windows](https://img.shields.io/appveyor/ci/kevinoid/stream-compare/master.svg?style=flat&label=build+on+windows)](https://ci.appveyor.com/project/kevinoid/stream-compare)
[![Coverage](https://img.shields.io/codecov/c/github/kevinoid/stream-compare.svg?style=flat)](https://codecov.io/github/kevinoid/stream-compare?branch=master)

@@ -152,5 +153,4 @@ [![Dependency Status](https://img.shields.io/david/kevinoid/stream-compare.svg?style=flat)](https://david-dm.org/kevinoid/stream-compare)

More examples can be found in the [test
specifications](https://kevinoid.github.io/stream-compare/specs).
specifications](https://kevinoid.github.io/stream-compare/spec).
## API Docs

@@ -157,0 +157,0 @@

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