Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,9 @@ | ||
### [1.3.1](https://github.com/twada/unassert/releases/tag/v1.3.1) (2015-12-08) | ||
#### Bug Fixes | ||
* remove assertion if and only if its parent is an ExpressionStatement ([6515857a](https://github.com/twada/unassert/commit/6515857a28f96ac6de9a92eeeb97629210c239eb), closes [#4](https://github.com/twada/unassert/issues/4)) | ||
## [1.3.0](https://github.com/twada/unassert/releases/tag/v1.3.0) (2015-10-06) | ||
@@ -2,0 +10,0 @@ |
/** | ||
* unassert | ||
* Encourage Design by Contract (DbC) by writing assertions in production code, and compiling them away from release | ||
* Encourage reliable programming by writing assertions in production code, and compiling them away from release | ||
* | ||
@@ -113,3 +113,3 @@ * https://github.com/twada/unassert | ||
case syntax.CallExpression: | ||
if (matchers.some(matches(currentNode))) { | ||
if (parentNode.type === syntax.ExpressionStatement && matchers.some(matches(currentNode))) { | ||
// remove parent ExpressionStatement | ||
@@ -116,0 +116,0 @@ // body/1/body/body/0/expression -> body/1/body/body/0 |
{ | ||
"name": "unassert", | ||
"description": "Encourage Design by Contract (DbC) by writing assertions in production code, and compiling them away from release", | ||
"version": "1.3.0", | ||
"description": "Encourage reliable programming by writing assertions in production code, and compiling them away from release", | ||
"version": "1.3.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Takuto Wada", |
unassert | ||
================================ | ||
Encourage Design by Contract (DbC) by writing assertions in production code, and compiling them away from release. | ||
Encourage reliable programming by writing assertions in production code, and compiling them away from release. | ||
@@ -11,8 +11,11 @@ [![Build Status][travis-image]][travis-url] | ||
See: "[unassert - encourage reliable programming by writing assertions in production](http://www.slideshare.net/t_wada/unassert)" -- talk at NodeFest 2015. | ||
#### RELATED MODULES | ||
- [unassertify](https://github.com/twada/unassertify): Browserify transform to remove assertions on build | ||
- [babel-plugin-unassert](https://github.com/twada/babel-plugin-unassert): Babel plugin to remove assertions on build | ||
- [webpack-unassert-loader](https://github.com/zoncoen/webpack-unassert-loader): A webpack loader to remove assertions on production build | ||
- [unassertify](https://github.com/twada/unassertify): Browserify transform for unassert | ||
- [babel-plugin-unassert](https://github.com/twada/babel-plugin-unassert): Babel plugin for unassert | ||
- [webpack-unassert-loader](https://github.com/zoncoen/webpack-unassert-loader): Webpack loader for unassert | ||
- [gulp-unassert](https://github.com/twada/gulp-unassert): Gulp plugin for unassert | ||
@@ -19,0 +22,0 @@ |
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
11214
132