Socket
Socket
Sign inDemoInstall

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.5.2 to 5.0.0

5

lib/parse-human.js

@@ -9,2 +9,3 @@ /**

var coerce = require('./coerce');
var validate = require('./validate');
var parse = require('./parse');

@@ -62,4 +63,4 @@ var hydrate = require('./hydrate');

// Otherwise, we'll assume this was entered as JSON and parse it first...
// ...and if we make it past that, then we'll coerce the final result.
return coerce(expectedTypeSchema, parse(humanString, expectedTypeSchema, unsafeMode));
// ...and if we make it past that, then we'll validate (and potentially lightly coerce) the final result.
return validate(expectedTypeSchema, parse(humanString, expectedTypeSchema, unsafeMode));
};

2

package.json
{
"name": "rttc",
"version": "4.5.2",
"version": "5.0.0",
"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