Socket
Socket
Sign inDemoInstall

tcomb

Package Overview
Dependencies
0
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.11 to 3.2.12

lib/assign.js

15

CHANGELOG.md

@@ -15,8 +15,13 @@ # Changelog

# 3.2.11
# v3.2.12
- **Bug Fix**
- now `interface` doesn't filter additional props when props contain a struct, fix #245 (@gcanti)
# v3.2.11
- **Bug Fix**
- allow declare'd unions with custom dispatch, fix #242 (@gcanti)
# 3.2.10
# v3.2.10

@@ -26,3 +31,3 @@ - **Bug Fix**

# 3.2.9
# v3.2.9

@@ -34,3 +39,3 @@ - **New Feature**

# 3.2.8
# v3.2.8

@@ -40,3 +45,3 @@ - **Bug Fix**

# 3.2.7
# v3.2.7

@@ -43,0 +48,0 @@ - **Bug Fix**

@@ -15,2 +15,3 @@ var assert = require('./assert');

var extend = require('./extend');
var assign = require('./assign');

@@ -66,3 +67,3 @@ function extendInterface(mixins, name) {

var idempotent = true;
var ret = {};
var ret = identity ? {} : assign({}, value);
for (var prop in props) {

@@ -69,0 +70,0 @@ var expected = props[prop];

@@ -6,2 +6,3 @@ var assert = require('./assert');

var isNumber = require('./isNumber');
var assign = require('./assign');

@@ -13,7 +14,3 @@ function getShallowCopy(x) {

}
var ret = {};
for (var k in x) {
ret[k] = x[k];
}
return ret;
return assign({}, x);
}

@@ -20,0 +17,0 @@ if (isArray(x)) {

{
"name": "tcomb",
"version": "3.2.11",
"version": "3.2.12",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc