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 8.1.5 to 8.1.6

4

lib/coerce-exemplar.js

@@ -68,6 +68,6 @@ /**

var pattern = _.reduce(valuePart.slice(1), function (patternSoFar, item) {
patternSoFar = union(patternSoFar, _recursivelyCoerceExemplar(item), true, false); // <= recursive step
patternSoFar = union(patternSoFar, _recursivelyCoerceExemplar(item), true, true); // <= recursive step
// meaning of `union` flags, in order:
// • `true` (yes these are exemplars)
// • `false` (no, don't use strict validation rules)
// • `true` (yes, use strict validation rules to prevent confusion)
return patternSoFar;

@@ -74,0 +74,0 @@ }, _recursivelyCoerceExemplar(valuePart[0]) /* <= recursive step */);

@@ -277,3 +277,3 @@ /**

if (!isStrict){
if ( thisSchema(schema1).is('number, boolean') ) {
if ( thisSchema(schema1).is('number', 'boolean') ) {
return schema0;

@@ -280,0 +280,0 @@ }

{
"name": "rttc",
"version": "8.1.5",
"version": "8.1.6",
"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