Comparing version 1.3.0 to 1.3.1
@@ -136,3 +136,5 @@ "use strict"; | ||
!properties[key]._isOptional) { | ||
return (0, Either_1.Left)("Problem with property \"".concat(key, "\": it does not exist in received object ").concat(JSON.stringify(input))); | ||
return (0, Either_1.Left)("Problem with property \"".concat(key, "\": it does not exist in received object ").concat(JSON.stringify(input, function (_, value) { | ||
return typeof value === 'bigint' ? value.toString() : value; | ||
}))); | ||
} | ||
@@ -139,0 +141,0 @@ var decodedProperty = properties[key].decode(input[key]); |
@@ -81,3 +81,5 @@ "use strict"; | ||
!properties[key]._isOptional) { | ||
return (0, Either_1.Left)(`Problem with property "${key}": it does not exist in received object ${JSON.stringify(input)}`); | ||
return (0, Either_1.Left)(`Problem with property "${key}": it does not exist in received object ${JSON.stringify(input, (_, value) => { | ||
return typeof value === 'bigint' ? value.toString() : value; | ||
})}`); | ||
} | ||
@@ -84,0 +86,0 @@ const decodedProperty = properties[key].decode(input[key]); |
@@ -104,3 +104,4 @@ "use strict"; | ||
toJSON() { | ||
return this.__value; | ||
const value = this.__value; | ||
return value instanceof Date ? value.toJSON() : value; | ||
} | ||
@@ -107,0 +108,0 @@ equals(other) { |
@@ -77,3 +77,5 @@ import { Either, Right, Left } from "./Either.js"; | ||
!properties[key]._isOptional) { | ||
return Left(`Problem with property "${key}": it does not exist in received object ${JSON.stringify(input)}`); | ||
return Left(`Problem with property "${key}": it does not exist in received object ${JSON.stringify(input, (_, value) => { | ||
return typeof value === 'bigint' ? value.toString() : value; | ||
})}`); | ||
} | ||
@@ -80,0 +82,0 @@ const decodedProperty = properties[key].decode(input[key]); |
@@ -101,3 +101,4 @@ import { Left, Right } from "./Either.js"; | ||
toJSON() { | ||
return this.__value; | ||
const value = this.__value; | ||
return value instanceof Date ? value.toJSON() : value; | ||
} | ||
@@ -104,0 +105,0 @@ equals(other) { |
@@ -137,3 +137,4 @@ "use strict"; | ||
Just.prototype.toJSON = function () { | ||
return this.__value; | ||
var value = this.__value; | ||
return value instanceof Date ? value.toJSON() : value; | ||
}; | ||
@@ -140,0 +141,0 @@ Just.prototype.equals = function (other) { |
{ | ||
"name": "purify-ts", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Functional programming standard library for TypeScript ", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/gigobyte/purify.git", |
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
339404
7571