Comparing version 1.6.1 to 1.6.2
@@ -17,2 +17,7 @@ # Changelog | ||
# 1.6.2 | ||
- **Polish** | ||
- make `isIndexableCodec` more strict (@gcanti) | ||
# 1.6.1 | ||
@@ -19,0 +24,0 @@ |
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98205
2161