Socket
Socket
Sign inDemoInstall

io-ts

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-ts - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

5

CHANGELOG.md

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

# 1.6.2
- **Polish**
- make `isIndexableCodec` more strict (@gcanti)
# 1.6.1

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

11

lib/index.js

@@ -1071,8 +1071,7 @@ "use strict";

var isIndexableCodec = function (codec) {
return (isInterfaceCodec(codec) ||
isExactCodec(codec) ||
isIntersectionCodec(codec) ||
isUnionCodec(codec) ||
isStrictCodec(codec) ||
isRefinementCodec(codec) ||
return (((isInterfaceCodec(codec) || isStrictCodec(codec)) &&
Object.keys(codec.props).some(function (key) { return isLiteralCodec(codec.props[key]); })) ||
((isExactCodec(codec) || isRefinementCodec(codec)) && isIndexableCodec(codec.type)) ||
(isIntersectionCodec(codec) && codec.types.some(isIndexableCodec)) ||
(isUnionCodec(codec) && codec.types.every(isIndexableCodec)) ||
isRecursiveCodec(codec));

@@ -1079,0 +1078,0 @@ };

{
"name": "io-ts",
"version": "1.6.1",
"version": "1.6.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc