Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "checkit", | ||
"version": "0.0.1", | ||
"description": "A simple validation lib for node and the browser", | ||
"main": "index.js", | ||
"version": "0.1.0", | ||
"description": "Simple validations for node and the browser.", | ||
"main": "checkit.js", | ||
"scripts": { | ||
"pretest" : "jshint ./lib/checkit.js", | ||
"test": "mocha -R spec --compilers coffee:coffee-script" | ||
"test": "mocha -R spec test/index.js" | ||
}, | ||
"dependencies" : { | ||
"underscore" : ">=1.3.1" | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"devDependencies" : { | ||
"jshint" : ">=0.7.2", | ||
"should" : ">=0.6.0", | ||
"mocha": "1.0.x", | ||
"chai": "1.1.x" | ||
"dependencies": { | ||
"underscore-contrib": "0.1.x", | ||
"when": ">=2.1.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "1.9.x", | ||
"objectdump": ">=0.3.0", | ||
"underscore": "~1.5.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tgriesser/checkit.git" | ||
}, | ||
"keywords": [ | ||
"validation", | ||
"valid", | ||
"json" | ||
"validation" | ||
], | ||
"author": "Tim Griesser", | ||
"author": { | ||
"name": "Tim Griesser", | ||
"web": "https://github.com/tgriesser" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -1,64 +0,61 @@ | ||
(function(a, b, c){ | ||
(function() { | ||
module.exports = { | ||
email : 'tgriesser10@gmail.com' | ||
, emailFail : 'tgriesser(at)gmail(dot)com' | ||
, emailListString : 'tgriesser10@gmail.com,test@example.com' | ||
, emailListArray : ['tgriesser10@gmail.com','test@example.com'] | ||
, emailListStringFail : 'test@example.com,test' | ||
, emailListArrayFail : ['test@example.com', 'test'] | ||
, integer : 12 | ||
, negativeInteger : -12 | ||
, stringInteger : '12' | ||
, negativeStringInteger : '-12' | ||
, lessThan4 : '123' | ||
, greaterThan4 : '12345' | ||
, isEmptyArray : [] | ||
, isEmptyString : '' | ||
, isEmptyObject : {} | ||
, isEmptyNull : null | ||
, isEqual : ["tim", "tim"] | ||
, isElement : {element : true} | ||
, isArguments : arguments | ||
, ipv4 : '192.168.0.1' | ||
, ipv6 : '2001:0db8:85a3:0000:0000:8a2e:0370:7334' | ||
email: 'tgriesser10@gmail.com', | ||
emailFail: 'tgriesser(at)gmail(dot)com', | ||
, isFunction : function(){ | ||
integer: 12, | ||
negativeInteger: -12, | ||
stringInteger: '12', | ||
negativeStringInteger: '-12', | ||
lessThan4: '123', | ||
greaterThan4: '12345', | ||
isEmptyArray: [], | ||
isEmptyString: '', | ||
isEmptyObject: {}, | ||
isEmptyNull: null, | ||
isEqual: ["tim", "tim"], | ||
isElement: { | ||
element: true | ||
}, | ||
isArguments: arguments, | ||
ipv4: '192.168.0.1', | ||
ipv6: '2001:0db8:85a3:0000:0000:8a2e:0370:7334', | ||
isFunction: function() { | ||
return true; | ||
} | ||
// isString | ||
, isString : 'tim' | ||
}, | ||
// isString | ||
isString: 'tim', | ||
// isNumber | ||
, isNumber : '123' | ||
, isNumberInt : 123 | ||
, isNumberFail : 'abc' | ||
isNumber: '123', | ||
isNumberInt: 123, | ||
isNumberFail: 'abc', | ||
// isBool | ||
, isBooleanFalse : false | ||
, isBooleanTrue : true | ||
isBooleanFalse: false, | ||
isBooleanTrue: true, | ||
// isBool (fail) | ||
, trueString : "true" | ||
, falseString : "false" | ||
, zero : 0 | ||
, one : 1 | ||
trueString: "true", | ||
falseString: "false", | ||
zero: 0, | ||
one: 1, | ||
, isFinite : '' | ||
, isFiniteFail : Infinity | ||
isFinite: '', | ||
isFiniteFail: Infinity, | ||
, isDate : new Date() | ||
, isRegExp : /^[0-9]$/g | ||
, isNaN : NaN | ||
, isNull : null | ||
, base64 : 'TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlzI\ | ||
isDate: new Date(), | ||
isRegExp: /^[0-9]$/g, | ||
isNaN: NaN, | ||
isNull: null, | ||
base64: 'TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlzI\ | ||
HNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRo\ | ||
@@ -68,5 +65,5 @@ YXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdl\ | ||
// , isUndefined : | ||
} | ||
// , isUndefined : | ||
}; | ||
})(1, 2, 3); | ||
})(); |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
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
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
61035
3
11
1496
0
0
2
108
2
+ Addedunderscore-contrib@0.1.x
+ Addedwhen@>=2.1.0
+ Addedunderscore-contrib@0.1.4(transitive)
+ Addedwhen@3.7.8(transitive)
- Removedunderscore@>=1.3.1