Comparing version 7.1.0 to 7.2.0
@@ -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 @@ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198385
38
4196