Socket
Socket
Sign inDemoInstall

io-ts

Package Overview
Dependencies
1
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.1.0

5

CHANGELOG.md

@@ -17,2 +17,7 @@ # Changelog

# 2.1.0
- **New Feature**
- add `bigint` codec (@mixedCase)
# 2.0.6

@@ -19,0 +24,0 @@

@@ -256,2 +256,18 @@ /**

/**
* @since 2.1.0
*/
export declare class BigIntType extends Type<bigint> {
readonly _tag: 'BigIntType';
constructor();
}
/**
* @since 2.1.0
*/
export interface BigIntC extends BigIntType {
}
/**
* @since 2.1.0
*/
export declare const bigint: BigIntC;
/**
* @since 1.0.0

@@ -258,0 +274,0 @@ */

@@ -234,2 +234,21 @@ var __extends = (this && this.__extends) || (function () {

/**
* @since 2.1.0
*/
var BigIntType = /** @class */ (function (_super) {
__extends(BigIntType, _super);
function BigIntType() {
var _this = _super.call(this, 'bigint',
// tslint:disable-next-line: valid-typeof
function (u) { return typeof u === 'bigint'; }, function (u, c) { return (_this.is(u) ? success(u) : failure(u, c)); }, identity) || this;
_this._tag = 'BigIntType';
return _this;
}
return BigIntType;
}(Type));
export { BigIntType };
/**
* @since 2.1.0
*/
export var bigint = new BigIntType();
/**
* @since 1.0.0

@@ -236,0 +255,0 @@ */

@@ -256,2 +256,18 @@ /**

/**
* @since 2.1.0
*/
export declare class BigIntType extends Type<bigint> {
readonly _tag: 'BigIntType';
constructor();
}
/**
* @since 2.1.0
*/
export interface BigIntC extends BigIntType {
}
/**
* @since 2.1.0
*/
export declare const bigint: BigIntC;
/**
* @since 1.0.0

@@ -258,0 +274,0 @@ */

@@ -239,2 +239,21 @@ "use strict";

/**
* @since 2.1.0
*/
var BigIntType = /** @class */ (function (_super) {
__extends(BigIntType, _super);
function BigIntType() {
var _this = _super.call(this, 'bigint',
// tslint:disable-next-line: valid-typeof
function (u) { return typeof u === 'bigint'; }, function (u, c) { return (_this.is(u) ? exports.success(u) : exports.failure(u, c)); }, exports.identity) || this;
_this._tag = 'BigIntType';
return _this;
}
return BigIntType;
}(Type));
exports.BigIntType = BigIntType;
/**
* @since 2.1.0
*/
exports.bigint = new BigIntType();
/**
* @since 1.0.0

@@ -241,0 +260,0 @@ */

4

package.json
{
"name": "io-ts",
"version": "2.0.6",
"version": "2.1.0",
"description": "TypeScript compatible runtime type system for IO validation",

@@ -49,3 +49,3 @@ "files": [

"benchmark": "2.1.4",
"docs-ts": "^0.3.0",
"docs-ts": "^0.3.4",
"doctoc": "^1.4.0",

@@ -52,0 +52,0 @@ "dtslint": "github:gcanti/dtslint",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc