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

unassert

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unassert - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

8

CHANGELOG.md

@@ -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 @@

4

index.js
/**
* 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 @@

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