io-ts
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -17,2 +17,7 @@ # Changelog | ||
# 2.0.6 | ||
- **Bug Fix** | ||
- whitelist `window` in `UnknownRecord`, fix #413 (@gcanti) | ||
# 2.0.5 | ||
@@ -19,0 +24,0 @@ |
@@ -273,3 +273,6 @@ var __extends = (this && this.__extends) || (function () { | ||
function AnyDictionaryType() { | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { return Object.prototype.toString.call(u) === '[object Object]'; }, function (u, c) { return (_this.is(u) ? success(u) : failure(u, c)); }, identity) || this; | ||
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; | ||
_this._tag = 'AnyDictionaryType'; | ||
@@ -276,0 +279,0 @@ return _this; |
@@ -279,3 +279,6 @@ "use strict"; | ||
function AnyDictionaryType() { | ||
var _this = _super.call(this, 'UnknownRecord', function (u) { return Object.prototype.toString.call(u) === '[object Object]'; }, function (u, c) { return (_this.is(u) ? exports.success(u) : exports.failure(u, c)); }, exports.identity) || this; | ||
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) ? exports.success(u) : exports.failure(u, c)); }, exports.identity) || this; | ||
_this._tag = 'AnyDictionaryType'; | ||
@@ -282,0 +285,0 @@ return _this; |
{ | ||
"name": "io-ts", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "TypeScript compatible runtime type system for IO validation", | ||
@@ -5,0 +5,0 @@ "files": [ |
182313
4969