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

runtypes

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runtypes - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

lib/reflect.d.ts

@@ -47,3 +47,3 @@ import { Runtype } from './runtype';

components: Reflect[];
} & Runtype<[always]> | {
} & Runtype<always[]> | {
tag: 'union';

@@ -50,0 +50,0 @@ alternatives: Reflect[];

import { Runtype, Static } from '../runtype';
export interface Part<O extends {
[_ in string]: Runtype;
[_: string]: Runtype;
}> extends Runtype<{

@@ -5,0 +5,0 @@ [K in keyof O]?: Static<O[K]>;

import { Runtype, Static } from '../runtype';
export interface Record<O extends {
[_ in string]: Runtype;
[_: string]: Runtype;
}> extends Runtype<{

@@ -5,0 +5,0 @@ [K in keyof O]: Static<O[K]>;

{
"name": "runtypes",
"version": "2.0.3",
"version": "2.0.4",
"description": "Runtime validation for static types",

@@ -17,8 +17,8 @@ "main": "./lib/index.js",

"devDependencies": {
"@types/jest": "21.1.5",
"@types/jest": "22.2.2",
"coveralls": "^3.0.0",
"jest": "21.2.1",
"prettier": "^1.10.2",
"ts-jest": "^21.1.4",
"typescript": "^2.6.2"
"jest": "22.4.3",
"prettier": "^1.11.1",
"ts-jest": "^22.4.2",
"typescript": "2.8.1"
},

@@ -45,3 +45,2 @@ "keywords:": [

},
"mapCoverage": true,
"testEnvironment": "node"

@@ -48,0 +47,0 @@ },

@@ -91,3 +91,3 @@ import {

class Foo {
x: 'blah';
x!: 'blah';
} // Should not be recognized as a Dictionary

@@ -94,0 +94,0 @@

@@ -21,3 +21,3 @@ import { Runtype } from './runtype';

}>
| { tag: 'tuple'; components: Reflect[] } & Runtype<[always]>
| { tag: 'tuple'; components: Reflect[] } & Runtype<always[]>
| { tag: 'union'; alternatives: Reflect[] } & Runtype<always>

@@ -24,0 +24,0 @@ | { tag: 'intersect'; intersectees: Reflect[] } & Runtype<always>

@@ -6,3 +6,3 @@ import { Runtype, Static, create, validationError } from '../runtype';

export interface Part<O extends { [_ in string]: Runtype }>
export interface Part<O extends { [_: string]: Runtype }>
extends Runtype<{ [K in keyof O]?: Static<O[K]> }> {

@@ -9,0 +9,0 @@ tag: 'partial';

import { Runtype, Static, create, validationError } from '../runtype';
import { hasKey } from '../util';
export interface Record<O extends { [_ in string]: Runtype }>
export interface Record<O extends { [_: string]: Runtype }>
extends Runtype<{ [K in keyof O]: Static<O[K]> }> {

@@ -6,0 +6,0 @@ tag: 'record';

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