Comparing version 3.2.7 to 3.2.8
@@ -15,2 +15,7 @@ # Changelog | ||
# 3.2.8 | ||
- **Bug Fix** | ||
- mixing types and classes in a union throws, fix #232 (@gcanti) | ||
# 3.2.7 | ||
@@ -17,0 +22,0 @@ |
@@ -10,3 +10,2 @@ var assert = require('./assert'); | ||
var forbidNewOperator = require('./forbidNewOperator'); | ||
var isType = require('./isType'); | ||
var isUnion = require('./isUnion'); | ||
@@ -47,3 +46,3 @@ var isNil = require('./isNil'); | ||
path = path || [displayName]; | ||
assert(isType(type), function () { return 'Invalid value ' + assert.stringify(value) + ' supplied to ' + path.join('/') + ' (no constructor returned by dispatch)'; }); | ||
assert(isFunction(type), function () { return 'Invalid value ' + assert.stringify(value) + ' supplied to ' + path.join('/') + ' (no constructor returned by dispatch)'; }); | ||
path[path.length - 1] += '(' + getTypeName(type) + ')'; | ||
@@ -50,0 +49,0 @@ } |
{ | ||
"name": "tcomb", | ||
"version": "3.2.7", | ||
"version": "3.2.8", | ||
"description": "Type checking and DDD for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
88033
1919