Comparing version 2.2.18 to 2.2.19
@@ -17,2 +17,7 @@ # Changelog | ||
# 2.2.19 | ||
- **Bug Fix** | ||
- allow `Error` to be decoded with `UnknownRecord`, #664 (@mlegenhausen) | ||
# 2.2.18 | ||
@@ -19,0 +24,0 @@ |
@@ -728,6 +728,3 @@ var __extends = (this && this.__extends) || (function () { | ||
function AnyDictionaryType() { | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { | ||
var s = Object.prototype.toString.call(u); | ||
return s === '[object Object]' || s === '[object Window]'; | ||
}, function (u, c) { return (_this.is(u) ? success(u) : failure(u, c)); }, identity) || this; | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { return u !== null && typeof u === 'object' && !Array.isArray(u); }, function (u, c) { return (_this.is(u) ? success(u) : failure(u, c)); }, identity) || this; | ||
/** | ||
@@ -734,0 +731,0 @@ * @since 1.0.0 |
@@ -745,6 +745,3 @@ "use strict"; | ||
function AnyDictionaryType() { | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { | ||
var s = Object.prototype.toString.call(u); | ||
return s === '[object Object]' || s === '[object Window]'; | ||
}, function (u, c) { return (_this.is(u) ? (0, exports.success)(u) : (0, exports.failure)(u, c)); }, exports.identity) || this; | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { return u !== null && typeof u === 'object' && !Array.isArray(u); }, function (u, c) { return (_this.is(u) ? (0, exports.success)(u) : (0, exports.failure)(u, c)); }, exports.identity) || this; | ||
/** | ||
@@ -751,0 +748,0 @@ * @since 1.0.0 |
{ | ||
"name": "io-ts", | ||
"version": "2.2.18", | ||
"version": "2.2.19", | ||
"description": "TypeScript runtime type system for IO decoding/encoding", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
[![build status](https://img.shields.io/travis/gcanti/io-ts/master.svg?style=flat-square)](https://travis-ci.org/gcanti/io-ts) | ||
[![dependency status](https://img.shields.io/david/gcanti/io-ts.svg?style=flat-square)](https://david-dm.org/gcanti/io-ts) | ||
![npm downloads](https://img.shields.io/npm/dm/io-ts.svg) | ||
@@ -4,0 +3,0 @@ |
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
461777
16424
43