Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

checkit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkit - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

.travis.yml

39

package.json
{
"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

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