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

runtypes

Package Overview
Dependencies
Maintainers
2
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 6.3.1 to 6.3.2

2

lib/types/dictionary.js

@@ -34,3 +34,3 @@ "use strict";

var isNumberLikeKey = typeof key === 'string' && numberString.test(key);
var keyInterop = isNumberLikeKey ? global.Number(key) : key;
var keyInterop = isNumberLikeKey ? globalThis.Number(key) : key;
if (isNumberLikeKey

@@ -37,0 +37,0 @@ ? !keyRuntype.guard(keyInterop) && !keyRuntype.guard(key)

@@ -12,3 +12,3 @@ "use strict";

else {
var keyForValue = global.Symbol.keyFor(value);
var keyForValue = globalThis.Symbol.keyFor(value);
if (keyForValue !== key)

@@ -15,0 +15,0 @@ return util_1.FAILURE.VALUE_INCORRECT('symbol key', quoteIfPresent(key), quoteIfPresent(keyForValue));

{
"name": "runtypes",
"version": "6.3.1",
"version": "6.3.2",
"description": "Runtime validation for static types",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -469,1 +469,2 @@ # Runtypes [![Build Status](https://travis-ci.org/pelotom/runtypes.svg?branch=master)](https://travis-ci.org/pelotom/runtypes) [![Coverage Status](https://coveralls.io/repos/github/pelotom/runtypes/badge.svg?branch=master)](https://coveralls.io/github/pelotom/runtypes?branch=master)

- [runtypes-generate](https://github.com/typeetfunc/runtypes-generate) Generates random data by `Runtype` for property-based testing
- [runtyping](https://github.com/johngeorgewright/runtyping) Generate runtypes from static types & JSON schema
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