unassertify
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,9 @@ | ||
### [2.0.3](https://github.com/twada/unassertify/releases/tag/v2.0.3) (2015-12-16) | ||
#### Bug Fixes | ||
* copy sourceRoot even if it is an empty string ([d687a4bc](https://github.com/twada/unassertify/commit/d687a4bcc1514d030abd9170db04660dd861267e)) | ||
### [2.0.2](https://github.com/twada/unassertify/releases/tag/v2.0.2) (2015-09-27) | ||
@@ -2,0 +10,0 @@ |
12
index.js
/** | ||
* unassertify | ||
* Browserify transform to remove assertions from code to encourage Design by Contract (DbC) | ||
* Browserify transform to encourage reliable programming by writing assertions in production code, and compiling them away from release | ||
* | ||
@@ -31,4 +31,4 @@ * https://github.com/twada/unassertify | ||
function copyPropertyIfExists (name, from, to) { | ||
if (from[name]) { | ||
function overwritePropertyIfExists (name, from, to) { | ||
if (from.hasOwnProperty(name)) { | ||
to.setProperty(name, from[name]); | ||
@@ -41,5 +41,5 @@ } | ||
var reMap = convert.fromObject(mergedRawMap); | ||
copyPropertyIfExists('sources', inMap, reMap); | ||
copyPropertyIfExists('sourceRoot', inMap, reMap); | ||
copyPropertyIfExists('sourcesContent', inMap, reMap); | ||
overwritePropertyIfExists('sources', inMap, reMap); | ||
overwritePropertyIfExists('sourceRoot', inMap, reMap); | ||
overwritePropertyIfExists('sourcesContent', inMap, reMap); | ||
return reMap; | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "unassertify", | ||
"description": "Browserify transform to remove assertions from code to encourage Design by Contract (DbC)", | ||
"version": "2.0.2", | ||
"description": "Browserify transform to encourage reliable programming by writing assertions in production code, and compiling them away from release", | ||
"version": "2.0.3", | ||
"author": { | ||
@@ -17,6 +17,6 @@ "name": "Takuto Wada", | ||
"through": "^2.3.7", | ||
"unassert": "^1.2.0" | ||
"unassert": "^1.3.1" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^11.2.0", | ||
"browserify": "^12.0.1", | ||
"coffeeify": "^1.1.0", | ||
@@ -39,2 +39,3 @@ "espower-loader": "^1.0.0", | ||
"DbC", | ||
"unassert", | ||
"assert", | ||
@@ -41,0 +42,0 @@ "assertion", |
unassertify | ||
================================ | ||
[Browserify](http://browserify.org/) transform to remove assertions from code. Encourages Design by Contract (DbC). | ||
[Browserify](http://browserify.org/) transform to encourage reliable programming by writing assertions in production code, and compiling them away from release. | ||
@@ -14,5 +14,6 @@ [![Build Status][travis-image]][travis-url] | ||
- [unassert](https://github.com/twada/unassert): Remove assertions from AST | ||
- [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 | ||
- [unassert](https://github.com/twada/unassert): Encourage reliable programming by writing assertions in production code, and compiling them away from release. | ||
- [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 +20,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
10216
144
Updatedunassert@^1.3.1