tcomb
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -10,5 +10,11 @@ # Changelog | ||
> - [Polish] | ||
> - [Experimental] | ||
**Note**: Gaps between patch versions are faulty/broken releases. | ||
## v2.0.1 | ||
- **Experimental** | ||
- added `options.verbose` (default `true`) to handle messages (set `options.verbose = false` to improve performances in development) | ||
## v2.0.0 | ||
@@ -28,3 +34,3 @@ | ||
- remove useless exports #104 | ||
- drop bower support #101 | ||
- drop bower support #101 | ||
- remove useless exports | ||
@@ -31,0 +37,0 @@ * Type |
'use strict'; | ||
exports.options = { | ||
verbose: true | ||
}; | ||
function stringify(x) { | ||
// set options.verbose = false to improve performances in development | ||
if (!exports.options.verbose) { | ||
return String(x); | ||
} | ||
try { // handle "Converting circular structure to JSON" error | ||
@@ -5,0 +13,0 @@ return JSON.stringify(x, null, 2); |
{ | ||
"name": "tcomb", | ||
"version": "2.0.0", | ||
"description": "Type checking for JavaScript", | ||
"version": "2.0.1", | ||
"description": "Type checking and DDD for JavaScript", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
42929
674