check-type
Advanced tools
Comparing version
{ | ||
"name": "check-type", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"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.9 - 2014-05-26 */ | ||
/*! check-type@v0.4.10 - 2014-06-12 */ | ||
!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,e;return _.isUndefined(a)?(a=_,e=_.without(_.functions(a),"isEqual")):e=_.functions(a),d=_.reduce(e,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.9", | ||
"version": "0.4.10", | ||
"author": "Alistair Brown <github@alistairjcbrown.com>", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/alistairjcbrown/check-type/issues", |
@@ -145,3 +145,2 @@ /* | ||
"contributors", | ||
// "dependencies", | ||
"homepage", | ||
@@ -151,3 +150,2 @@ "keywords", | ||
"main" | ||
// "repository" | ||
] | ||
@@ -212,2 +210,13 @@ } | ||
grunt.registerTask("keybase-sign-dir", "Run keybase directory sign", function() { | ||
var shell = require("shelljs"), | ||
command = "keybase dir sign", response; | ||
response = shell.exec(command); | ||
if (response.code !== 0) { | ||
grunt.warn("Code signing failed"); | ||
return; | ||
} | ||
}); | ||
// Define tasks | ||
@@ -217,3 +226,3 @@ grunt.registerTask("lint", [ "jshint" ]); | ||
grunt.registerTask("go", [ "lint", "test" ]); | ||
grunt.registerTask("build", [ "lint", "nice-package", "update_json", "uglify", "test", "toc" ]); | ||
grunt.registerTask("build", [ "lint", "nice-package", "update_json", "uglify", "test", "toc", "keybase-sign-dir" ]); | ||
grunt.registerTask("default", [ "go" ]); | ||
@@ -220,0 +229,0 @@ |
{ | ||
"name": "check-type", | ||
"description": "Library to check variable type and properties in object.", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"author": "Alistair Brown <github@alistairjcbrown.com>", | ||
@@ -12,16 +12,15 @@ "bugs": "https://github.com/alistairjcbrown/check-type/issues", | ||
"devDependencies": { | ||
"bower": "1.3.3", | ||
"chai": "1.9.1", | ||
"grunt": "0.4.5", | ||
"grunt-cli": "0.1.13", | ||
"grunt-contrib-jshint": "0.10.0", | ||
"grunt-contrib-uglify": "0.4.0", | ||
"grunt-mocha": "0.4.10", | ||
"grunt-mocha-test": "0.10.2", | ||
"grunt-contrib-uglify": "0.5.0", | ||
"grunt-mocha": "0.4.11", | ||
"grunt-mocha-test": "0.11.0", | ||
"grunt-nice-package": "0.5.2", | ||
"grunt-toc": "0.1.0", | ||
"grunt-update-json": "0.1.3", | ||
"load-grunt-tasks": "0.4.0", | ||
"mocha": "1.19.0", | ||
"sinon": "1.10.0", | ||
"load-grunt-tasks": "0.5.0", | ||
"mocha": "1.20.1", | ||
"shelljs": "0.3.0", | ||
"sinon": "1.10.2", | ||
"sinon-chai": "2.5.0" | ||
@@ -47,6 +46,5 @@ }, | ||
"scripts": { | ||
"postinstall": "[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install; exit 0;", | ||
"test": "./node_modules/grunt-cli/bin/grunt test" | ||
"test": "grunt go" | ||
} | ||
} | ||
@@ -6,9 +6,9 @@ ##### Signed by https://keybase.io/alistairjcbrown | ||
iQEcBAABAgAGBQJTg4dkAAoJEJEOHi8Q7zzzvEoIAJfPmfEt7i+UaoRf/KutSIPT | ||
4o7ELA8gL4AdFAnv+RvNBfw1ZQmx0W7/ek3pQ4WFsUD3tvZ2JAqfXNIG/VLNFiny | ||
VczsfFaX7494QYg5N0O5fGlF+g2o++dWE/Q2WLlvAPGHkZL26sOHYZh4kMTseLd6 | ||
+BssBOd1yTPXzqjhSkii3OYIhZY/FzuZr9VKPnYf2ma6kBq+oR27yCUii6iVaACG | ||
4udOA1vp69qsm3eW0KUVEiO7pC3XcQufzd/yadIFaLxtN7NrDP1kMihu05UydCde | ||
+Dw3UQb7Dvm5rBviZV/NEetp3Dp/Am966DBwJk+BWKRLEM31/ehF9CJkb45qvyo= | ||
=g2to | ||
iQEcBAABAgAGBQJTmistAAoJEJEOHi8Q7zzz23kH/2VZ85vINQICUx5jAb8FQ2Dt | ||
maxzSUwdckXSlyGTkCANpLKGKuiMwBBp6hHGLwQZbmuUWh4y1LVWZac+EjJQo63q | ||
ZM/IuhXcuy+y2XUPSG+wnMrTwlREOaGWjZcQdCQeVmCoA2/SLBamLcN9I/3dZv7S | ||
L2DDJxedeVimoT2oa1nux79IAhSqO+qfX5HlYzscGG6UI7wqdlEwZ0a+bE+JfMlm | ||
z9ngDe35qUoeXHJ5gklAqMWJeF/QqSWKtVa67T8VE/nuDhHZ/7wFiTSxQ2rVo7Ae | ||
b98nP5QZ9F1/Kq3O/Q/kGluNBMVR10wgjxOjUENquH2ROA8par+L0Q1/04U8FKQ= | ||
=OKBo | ||
-----END PGP SIGNATURE----- | ||
@@ -28,11 +28,11 @@ | ||
50 .gitignore 15518c53e314172f50549b4a29fde9086008f784effc1a2e65b38f09fb1a1403 | ||
69 .travis.yml ab6c157084e6355fc20a86603565ee5fcb9bd8de7cc93dd477ca7e33b60204a1 | ||
5963 x Gruntfile.js e169c6f0df65b040c607725260286a6091ece528f499828a2b9afbe28f320f14 | ||
156 .travis.yml 2a87273f7b9ada9912539b7bf585aa135c065d5042a64077d9cff9194e9060d8 | ||
6256 x Gruntfile.js b80b421ec6496375d35ef6d806769df57455a99e5ba02e5fbcfc950493bd7568 | ||
1080 LICENSE cfec6a6c39832bb228b8f4622aefb14f08d3c0f02823238c7143c668c3acd898 | ||
8992 README.md 89b890ea6dc9e5655fc6d3c4c2cf27a26d0861a8cbcd6e6d21757cc8c6d78452 | ||
795 bower.json 3ce71f717a4a6b0c57e2ce5b385ed5e778df2de5c41c7cb5ad242b4e3a6b4806 | ||
1359 check-type.min.js 6ad21c4fada573234a2998949346e230d8837ec545997c44b61d8bf6ca80df51 | ||
585 component.json f5364e5db529f39451bbaad549dd76a9f122d7b04905477219f611626c7d6178 | ||
9120 README.md 5d6eb26cf43165f6a24259d324320ab8ca3e779ff15d95a566c0860b15813789 | ||
795 bower.json 51b8b0524f552a9bf651c8fdcc9d8a03caac87b1449ef876a1ba1e5bed94ca64 | ||
1403 check-type.min.js baffb2a95409af6105df0a09a1d5df777f9b9145507dfd57a5b5ea65ce85ff19 | ||
586 component.json 7eeb8bc1c541ef1f699ebc0c5159d34b0d7fb558b03f1b5a13e98d9bdfca80c6 | ||
lib/ | ||
6442 check-type.js 5bca13f3a97c41a0857f464e40e04e6b4a3b8d2b13fe0c6d0001757447acafb1 | ||
6687 check-type.js eb4217c6a5116d024b43248b2fd679ff973eb8272ec827c274a6ec81c4b0ba84 | ||
examples/ | ||
@@ -56,3 +56,3 @@ browser/ | ||
1497 check-type.test.html fb9f189c429c186c04aa96e2b756b75f6440c5866f42e443e544fb97ebff28cc | ||
13040 x check-type.test.js 638365fdd7bbb78381ffc58b0cf1d589d93cf876c14bdb0cf41cfc71d571f2d3 | ||
13588 x check-type.test.js 22ff4e7fa33c4afe50bca129589cf9080602d2e4a582f0e2a8d62c5a162751ec | ||
fixtures/ | ||
@@ -62,3 +62,3 @@ 325 has_attribute_fixture.js b75e70ef3d253e230c176b193ea44f8eac06ffe41f788b93243fe3fb6fa503f0 | ||
267 matches_structure_fixture.js 181053a1ce4d5b3947b7a18008313a815e9deeae9e05a5a31dce106bae788e10 | ||
1329 package.json 9c4a46c6cac6406d655e0d43374c50d0d6516e87938ab3fe1ac26eed10cca832 | ||
1148 package.json 83618e1958e50e5e13dacb9d694c1461a3e17ac4acf244c3fde45bcda79139b2 | ||
``` | ||
@@ -65,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
53884
0.4%14
-6.67%853
0.83%0
-100%