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 7.1.0 to 7.2.0

lib/exemplar.js

2

index.js

@@ -15,2 +15,3 @@ module.exports = {

sample: require('./lib/sample'),
exemplar: require('./lib/exemplar'),
getDisplayType: require('./lib/get-display-type'),

@@ -22,2 +23,3 @@ isStrictType: require('./lib/is-strict-type'),

union: require('./lib/union'),
getPathInfo: require('./lib/get-path-info'),
};

@@ -24,0 +26,0 @@

2

lib/helpers/build-schema-iterator.js

@@ -10,3 +10,3 @@ /**

/**
* Build an iterator/reducer function for a type schema that builds up and returns a new value.
* Build an iterator/reducer function for a schema that builds up and returns a new value.
*

@@ -13,0 +13,0 @@ * @param {Function} onFacetDict

@@ -89,2 +89,5 @@ /**

},
getExemplar: function() {
return 'a string';
},
isExemplar: function (eg){

@@ -168,2 +171,5 @@ return TYPES.str.is(eg) && !TYPES.lamda.isExemplar(eg) && !TYPES.json.isExemplar(eg) && !TYPES.ref.isExemplar(eg);

},
getExemplar: function() {
return 123;
},
isExemplar: function (eg){

@@ -215,2 +221,5 @@ return TYPES.number.is(eg);

},
getExemplar: function() {
return true;
},
isExemplar: function (eg){

@@ -293,2 +302,5 @@ return TYPES.boolean.is(eg);

},
getExemplar: function() {
return {};
},
isExemplar: function (eg){

@@ -330,2 +342,5 @@ return TYPES.dictionary.is(eg);

},
getExemplar: function() {
return [];
},
isExemplar: function (eg){

@@ -377,2 +392,5 @@ return TYPES.array.is(eg);

},
getExemplar: function() {
return '===';
},
isExemplar: function (eg){

@@ -453,2 +471,5 @@ return eg === '===' || eg === undefined;

},
getExemplar: function() {
return '*';
},
isExemplar: function (eg){

@@ -499,2 +520,5 @@ return eg === '*';

},
getExemplar: function() {
return '->';
},
isExemplar: function (eg){

@@ -501,0 +525,0 @@ return _.isString(eg) && eg.match(/(^-+>$)|(^=+>$)|(^<=+$)|(^<-+$)/);

{
"name": "rttc",
"version": "7.1.0",
"version": "7.2.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