the-thing-is
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "the-thing-is", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Configuration drivin validation", | ||
@@ -11,3 +11,3 @@ "main": "the-thing-is.js", | ||
"type": "git", | ||
"url": "git://github.com/mrDarcyMurphy/the-thing-is.git" | ||
"url": "git://github.com/LoudBit/the-thing-is.git" | ||
}, | ||
@@ -23,4 +23,4 @@ "keywords": [ | ||
"dependencies": { | ||
"is-it": "~1.1.0" | ||
"is-too": "^2.0.0" | ||
} | ||
} |
@@ -66,5 +66,5 @@ var assert = require('assert') | ||
}) | ||
describe("the('0').is(['string', 'aNumber', 'aInteger'])", function() { | ||
describe("the('0').is(['string', 'numberString', 'integerString'])", function() { | ||
it('returns true', function() { | ||
assert.equal(the('0').is(['string', 'aNumber', 'aInteger']), true) | ||
assert.equal(the('0').is(['string', 'numberString', 'integerString']), true) | ||
}) | ||
@@ -105,3 +105,3 @@ }) | ||
var whatIExpect = [ | ||
'string', 'aInteger', | ||
'string', 'integerString', | ||
{ | ||
@@ -111,3 +111,3 @@ // this is a trick - `number:false` is true | ||
number: false, | ||
aInteger: true, | ||
integerString: true, | ||
gte: 0, | ||
@@ -123,3 +123,3 @@ lte: 100 | ||
it("doesn't meet the expectations", function(){ | ||
the('0').is(['string', 'aInteger', {gte:0, lte:100}]) | ||
the('0').is(['string', 'integerString', {gte:0, lte:100}]) | ||
assert( the.last.error.length ) | ||
@@ -126,0 +126,0 @@ }) |
@@ -22,3 +22,3 @@ // The Thing Is | ||
// Dependencies | ||
var is = require('is-it') | ||
var is = require('is-too') | ||
@@ -25,0 +25,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9080
1
+ Addedis-too@^2.0.0
+ Addedis-too@2.5.1(transitive)
- Removedis-it@~1.1.0
- Removedis-it@1.1.0(transitive)