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

tcomb

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcomb - npm Package Compare versions

Comparing version 3.2.7 to 3.2.8

5

CHANGELOG.md

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

3

lib/union.js

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

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