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

check-more-types

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-more-types - npm Package Compare versions

Comparing version 2.23.0 to 2.24.0

dist/check-more-types.d.ts

4

dist/check-more-types.js

@@ -236,3 +236,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

check.VERSION = '2.23.0'
check.VERSION = '2.24.0'

@@ -590,3 +590,3 @@ module.exports = check

function type (expectedType, x) {
return typeof x === expectedType
return typeof x === expectedType // eslint-disable-line valid-typeof
}

@@ -593,0 +593,0 @@

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

/*! check-more-types - v2.23.0
/*! check-more-types - v2.24.0
homepage: https://github.com/kensho/check-more-types

@@ -7,3 +7,3 @@ Copyright @ 2014 Kensho license: MIT */

var i="Argument "+(e+1)+": "+c[e]+" does not pass predicate";throw f.unemptyString(b[d+1])&&(i+=": "+b[d+1]),new Error(i)}e+=1}}return a.apply(null,c)};m.defend=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return n(a,b,arguments)}}}m.mixin||(m.mixin=function(a,b){function d(a,b,c){if(!f.object(a))throw new Error("missing object "+a);if(!f.unemptyString(b))throw new Error("missing name");if(!f.fn(c))throw new Error("missing function");a[b]||(a[b]=c)}function e(a){return function(){return!(m.defined(arguments[0])&&!m.nulled(arguments[0]))||a.apply(null,arguments)}}if(f.string(a)&&f.fn(b)){var g=a;a=b,b=g}if(!f.fn(a))throw new Error("expected predicate function for name "+b);if(f.unemptyString(b)||(b=a.name),!f.unemptyString(b))throw new Error("predicate function missing name\n"+a.toString());var h=c(4);d(m,b,a),d(m.maybe,b,e(a)),d(m.not,b,i.notModifier(a)),d(m.verify,b,h(a,b+" failed"))}),m.then||(m.then=function(a,b){return function(){var c="function"==typeof a?a.apply(null,arguments):a;
if(c)return b.apply(null,arguments)}});var o={then:f.fn};o["catch"]=f.fn;var p=l.schema.bind(null,o),q={array:Array.isArray,promise:d};[f,g,q,j,k,h,i,l].forEach(e),m.VERSION="2.23.0",a.exports=m},function(a,b,c){"use strict";function d(a){return"function"==typeof a}function e(a){return"string"==typeof a}function f(a){return e(a)&&Boolean(a)}function g(a){return e(a)&&a.toUpperCase()===a}function h(a){return e(a)&&a.toLowerCase()===a}function i(a){return"object"==typeof a&&!I(a)&&!n(a)&&!q(a)}function j(a){return i(a)&&0===Object.keys(a).length}function k(a){return"number"==typeof a&&!isNaN(a)&&a!==1/0&&a!==-(1/0)}function l(a){return k(a)&&a%1===0}function m(a){return k(a)&&a%1!==0}function n(a){return null===a}function o(a){return k(a)&&a>0}function p(a){return k(a)&&a<0}function q(a){return a instanceof Date}function r(a){return a instanceof RegExp}function s(a){return a instanceof Error}function t(a,b){return a instanceof b}function u(a,b){return"number"==typeof a&&"number"!=typeof b?u(b,a):(I(a)||e(a))&&a.length===b;
if(c)return b.apply(null,arguments)}});var o={then:f.fn};o["catch"]=f.fn;var p=l.schema.bind(null,o),q={array:Array.isArray,promise:d};[f,g,q,j,k,h,i,l].forEach(e),m.VERSION="2.24.0",a.exports=m},function(a,b,c){"use strict";function d(a){return"function"==typeof a}function e(a){return"string"==typeof a}function f(a){return e(a)&&Boolean(a)}function g(a){return e(a)&&a.toUpperCase()===a}function h(a){return e(a)&&a.toLowerCase()===a}function i(a){return"object"==typeof a&&!I(a)&&!n(a)&&!q(a)}function j(a){return i(a)&&0===Object.keys(a).length}function k(a){return"number"==typeof a&&!isNaN(a)&&a!==1/0&&a!==-(1/0)}function l(a){return k(a)&&a%1===0}function m(a){return k(a)&&a%1!==0}function n(a){return null===a}function o(a){return k(a)&&a>0}function p(a){return k(a)&&a<0}function q(a){return a instanceof Date}function r(a){return a instanceof RegExp}function s(a){return a instanceof Error}function t(a,b){return a instanceof b}function u(a,b){return"number"==typeof a&&"number"!=typeof b?u(b,a):(I(a)||e(a))&&a.length===b;
}function v(a){return"undefined"!=typeof a}function w(a){return q(a)&&k(Number(a))}function x(a){var b=typeof a;return"number"===b||"boolean"===b||"string"===b||"symbol"===b}function y(a){return"number"==typeof a&&0===a}function z(a,b){return a===b}function A(a){return 0===a||1===a}function B(a){return"boolean"==typeof a}function C(a,b){if(2!==arguments.length)throw new Error("Expected two arguments to check.has, got only "+arguments.length);return Boolean(a&&b&&"string"==typeof b&&"undefined"!=typeof a[b])}function D(a){return""===a}function E(a){var b="string"==typeof a||Array.isArray(a);return b?!a.length:a instanceof Object&&!Object.keys(a).length}function F(a){var b="string"==typeof a||Array.isArray(a);return b?a.length:!(a instanceof Object)||Object.keys(a).length}function G(a,b){return a===b}var H=c(2).curry2,I=Array.isArray;a.exports={bit:A,bool:B,date:q,defined:v,empty:E,emptyObject:j,emptyString:D,equal:H(G),error:s,floatNumber:m,fn:d,has:C,instance:t,intNumber:l,isArray:I,length:H(u),

@@ -10,0 +10,0 @@ negative:p,negativeNumber:p,nulled:n,number:k,object:i,positive:o,positiveNumber:o,primitive:x,regexp:r,same:z,string:e,unempty:F,unemptyString:f,upperCase:g,lowerCase:h,validDate:w,zero:y}},function(a,b){"use strict";function c(a,b){return function(c){if(b&&arguments.length>2)throw new Error("Curry2 function "+a.name+" called with too many arguments "+arguments.length);return 2===arguments.length?a(arguments[0],arguments[1]):function(b){return a(c,b)}}}a.exports={curry2:c}},function(a,b,c){"use strict";function d(a){return a>=0}function e(a,b){return r.string(a)&&r.string(b)&&0===b.indexOf(a)}function f(a){return a%2===0}function g(a){return a%2===1}function h(a,b){if(Array.isArray(a))return a.indexOf(b)!==-1;if("string"==typeof a){if("string"!=typeof b)throw new Error("Contains in string should search for string also "+b);return a.indexOf(b)!==-1}return!1}function i(a,b){return typeof b===a}function j(a,b){return r.defined(a)&&r.has(a,"length")&&b>=0&&b<a.length}function k(a,b){return typeof a==typeof b&&a&&b&&a.length===b.length;

{
"name": "check-more-types",
"description": "Large collection of predicates.",
"version": "2.23.0",
"author": {
"name": "Gleb Bahmutov",
"email": "gleb.bahmutov@gmail.com"
},
"version": "2.24.0",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
"bugs": {

@@ -40,4 +37,4 @@ "url": "https://github.com/kensho/check-more-types/issues"

"devDependencies": {
"@semantic-release/condition-travis": "4.1.4",
"condition-node-version": "1.2.0",
"@semantic-release/condition-travis": "5.0.2",
"condition-node-version": "1.3.0",
"coveralls": "2.11.8",

@@ -53,3 +50,3 @@ "git-issues": "1.2.0",

"grunt-mocha-test": "0.12.7",
"grunt-nice-package": "0.10.2",
"grunt-nice-package": "0.10.3",
"grunt-npm2bower-sync": "0.9.1",

@@ -70,9 +67,8 @@ "grunt-readme": "0.4.5",

"matchdep": "1.0.1",
"mocha": "2.4.5",
"mocha": "3.2.0",
"phantomjs-prebuilt": "2.1.7",
"pkgfiles": "2.3.0",
"pre-git": "3.4.1",
"semantic-release": "6.2.0",
"standard": "6.0.8",
"standard-format": "2.1.1",
"semantic-release": "6.3.6",
"standard": "9.0.2",
"webpack": "1.12.14"

@@ -85,2 +81,3 @@ },

"bower.json",
"dist/check-more-types.d.ts",
"dist/check-more-types.js",

@@ -112,3 +109,3 @@ "dist/check-more-types.min.js"

"type": "git",
"url": "git+https://github.com/kensho/check-more-types.git"
"url": "https://github.com/kensho/check-more-types.git"
},

@@ -119,6 +116,5 @@ "scripts": {

"coveralls": "lcov-filter cover/lcov.info test | ./node_modules/coveralls/bin/coveralls.js",
"format": "standard-format -w src/*.js test/*.js",
"issues": "git-issues",
"karma": "karma start test/karma.conf.js",
"lint": "standard --verbose src/*.js test/*.js",
"lint": "standard --verbose --fix src/*.js test/*.js",
"mocha": "mocha src/*-spec.js test/check-more-types-spec.js",

@@ -128,3 +124,3 @@ "node-test": "node test/load-under-node-test.js",

"pkgfiles": "pkgfiles",
"pretest": "npm run format && npm run lint && npm run build",
"pretest": "npm run lint && npm run build",
"semantic-release": "semantic-release pre && include-version && npm publish && semantic-release post",

@@ -136,4 +132,3 @@ "size": "tarball=\"$(npm pack .)\"; wc -c \"${tarball}\"; tar tvf \"${tarball}\"; rm \"${tarball}\";",

},
"readme": "ERROR: No README data found!",
"_id": "check-more-types@0.0.0"
"types": "dist/check-more-types.d.ts"
}
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