Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

purify-ts

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purify-ts - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

4

Codec.js

@@ -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",

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