Socket
Socket
Sign inDemoInstall

io-ts

Package Overview
Dependencies
1
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

5

CHANGELOG.md

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

# 2.1.2
- **Polish**
- remove useless `hasOwnProperty` calls, closes #423 (@gcanti)
# 2.1.1

@@ -19,0 +24,0 @@

10

es6/index.js

@@ -526,3 +526,3 @@ var __extends = (this && this.__extends) || (function () {

var k = keys[i];
if (!hasOwnProperty.call(u, k) || !types[i].is(u[k])) {
if (!types[i].is(u[k])) {
return false;

@@ -540,8 +540,2 @@ }

var k = keys[i];
if (!hasOwnProperty.call(a, k)) {
if (a === o) {
a = __assign({}, o);
}
a[k] = a[k];
}
var ak = a[k];

@@ -555,3 +549,3 @@ var type_1 = types[i];

var vak = result.right;
if (vak !== ak) {
if (vak !== ak || (vak === undefined && !hasOwnProperty.call(a, k))) {
/* istanbul ignore next */

@@ -558,0 +552,0 @@ if (a === o) {

@@ -532,3 +532,3 @@ "use strict";

var k = keys[i];
if (!hasOwnProperty.call(u, k) || !types[i].is(u[k])) {
if (!types[i].is(u[k])) {
return false;

@@ -546,8 +546,2 @@ }

var k = keys[i];
if (!hasOwnProperty.call(a, k)) {
if (a === o) {
a = __assign({}, o);
}
a[k] = a[k];
}
var ak = a[k];

@@ -561,3 +555,3 @@ var type_1 = types[i];

var vak = result.right;
if (vak !== ak) {
if (vak !== ak || (vak === undefined && !hasOwnProperty.call(a, k))) {
/* istanbul ignore next */

@@ -564,0 +558,0 @@ if (a === o) {

2

package.json
{
"name": "io-ts",
"version": "2.1.1",
"version": "2.1.2",
"description": "TypeScript compatible runtime type system for IO validation",

@@ -5,0 +5,0 @@ "files": [

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