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

rttc

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rttc - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

lib/decode.js

@@ -28,3 +28,3 @@ /**

}
if (unsafeMode && !_.isUndefined(typeSchema)) {
if (unsafeMode && _.isUndefined(typeSchema)) {
throw new Error('rttc.decode() cannot enable `unsafeMode` without also providing a `typeSchema`.');

@@ -31,0 +31,0 @@ }

@@ -19,2 +19,8 @@ /**

// Never allows `undefined` at the top level (or inside- but that check is below in stringifySafe)
if (_.isUndefined(val)) {
if (allowNull) return null;
else return undefined;
}
// First, prevent against endless circular recursion:

@@ -21,0 +27,0 @@ // (this should never throw, but if it does, it needs to be handled

{
"name": "rttc",
"version": "4.0.0",
"version": "4.0.1",
"description": "Runtime type-checking for JavaScript.",

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

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