Socket
Socket
Sign inDemoInstall

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 2.5.1 to 2.5.2

5

CHANGELOG.md

@@ -15,2 +15,7 @@ # Changelog

# v2.5.2
- **Bug Fix**
- remove the assert checking if the type returned by a union dispatch function is correct (was causing issues with unions of unions or unions of intersections)
## v2.5.1

@@ -17,0 +22,0 @@

3

index.js

@@ -433,4 +433,3 @@ /*! @preserve

path = path || [displayName];
assert(isType(type), function () { return 'Invalid value ' + exports.stringify(value) + ' supplied to ' + path.join('/') + ' (no constructor found)'; });
assert(types.some(function (t) { return t === type; }), function () { return 'Invalid constructor ' + getTypeName(type) + ' returned by ' + path.join('/') + '.dispatch(x) function'; });
assert(isType(type), function () { return 'Invalid value ' + exports.stringify(value) + ' supplied to ' + path.join('/') + ' (no constructor returned by dispatch)'; });
path[path.length - 1] += '(' + getTypeName(type) + ')';

@@ -437,0 +436,0 @@ }

{
"name": "tcomb",
"version": "2.5.1",
"version": "2.5.2",
"description": "Type checking and DDD for JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ [![build status](https://img.shields.io/travis/gcanti/tcomb/master.svg?style=flat-square)](https://travis-ci.org/gcanti/tcomb)

# Code example
# Usage

@@ -41,2 +41,6 @@ ```js

# Babel plugin
[babel-plugin-tcomb](https://github.com/gcanti/babel-plugin-tcomb)
# Features

@@ -181,2 +185,3 @@

* [immutable-store](https://github.com/christianalfoni/immutable-store)
* [ObjectModel](https://github.com/sylvainpolletvillard/ObjectModel)

@@ -183,0 +188,0 @@ # License

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