🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

check-type

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-type - npm Package Compare versions

Comparing version

to
0.4.6

2

bower.json
{
"name": "check-type",
"version": "0.4.5",
"version": "0.4.6",
"main": "check-type.min.js",

@@ -5,0 +5,0 @@ "description": "Library to check variable type and properties in object.",

@@ -1,2 +0,2 @@

/*! check-type@v0.4.5 - 2014-04-02 */
/*! check-type@v0.4.6 - 2014-04-02 */
!function(){"use strict";var a,b,c;a=function(_){var a,b={};return a=function(c){var d={};return d.is=function(a){var d;if(!_.isString(a))throw new Error("Provided type is not a string");if(d=b["is"+a.toLowerCase()],!_.isFunction(d))throw new Error("Unsupported type",a);return d(c)},d.is.not=function(a){return!this(a)},d.has=function(a){var b,d,e=!0;if(!_.isString(a))throw new Error("Provided path is not a string");return b=a.split("."),d=c,b.forEach(function(a){e&&_.isObject(d)&&!_.isUndefined(d[a])?d=d[a]:e=!1}),e},d.matches=function(b){var d=!0;if(!_.isObject(b))throw new Error("Provided stucture is not an object");return _.isObject(c)?(_.each(b,function(b,e){a(c[e]).is.not(b)&&(d=!1)}),d):!1},d},a.init=function(a,c){var d;return _.isUndefined(a)&&(a=_),d=_.reduce(_.functions(a),function(b,c){return b[c]=a[c],b},{}),Object.keys(d).forEach(function(a){a.match(/^is[A-Z]/)&&(_.isUndefined(b[a.toLowerCase()])||c)&&(b[a.toLowerCase()]=d[a])}),this},a.clear=function(){return b={},this},a},"undefined"!=typeof module&&(module.exports=a(require("underscore"))),"undefined"!=typeof define?define(["underscore"],function(_){return a(_)}):"undefined"!=typeof window&&(b=a(window._),c=function(){var a=window.check;return function(){return b===window.check&&(window.check=a),b}}(),b.noConflict=c,window.check=b)}();
{
"name": "check-type",
"description": "Library to check variable type and properties in object.",
"version": "0.4.5",
"version": "0.4.6",
"author": "Alistair Brown <github@alistairjcbrown.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/alistairjcbrown/check-type/issues",

{
"name": "check-type",
"description": "Library to check variable type and properties in object.",
"version": "0.4.5",
"version": "0.4.6",
"author": "Alistair Brown <github@alistairjcbrown.com>",

@@ -46,3 +46,3 @@ "bugs": "https://github.com/alistairjcbrown/check-type/issues",

"scripts": {
"postinstall": "./node_modules/bower/bin/bower install",
"postinstall": "[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install",
"test": "./node_modules/grunt-cli/bin/grunt test"

@@ -49,0 +49,0 @@ }

@@ -92,3 +92,3 @@ # Check Type

# Grab the file
wget https://raw.githubusercontent.com/alistairjcbrown/check-type/master/lib/check-type.js
wget https://raw.githubusercontent.com/alistairjcbrown/check-type/master/check-type.min.js

@@ -115,3 +115,3 @@ # Clone the repo

<script src="/path/to/underscore"></script>
<script src="/path/to/check-type/lib/check-type.js"></script>
<script src="/path/to/check-type/check-type.min.js"></script>
<script>

@@ -118,0 +118,0 @@ check.init();