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

typeof-arguments

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeof-arguments - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

12

index.js

@@ -10,3 +10,3 @@ /* global Function */

validateArguments(getArgumentsObject,getExpectedArray);
for(let item in getExpectedArray){
Object.keys(getExpectedArray).forEach((item)=>{
if(!ofType(getArgumentsObject[item],getExpectedArray[item])){

@@ -24,3 +24,3 @@ var actual = getActualType(getArgumentsObject[item]);

}
}
});
return true;

@@ -53,4 +53,4 @@ };

var types = [whenString,whenRegExp,whenObject,whenArray];
for(var i in types){
var check = types[i](expectedType);
for(var type of types){
var check = type(expectedType);
if(check) return check;

@@ -98,4 +98,4 @@ }

var types = {};
for(var i in arrayTypes){
var exp = whenObject(arrayTypes[i]);
for(var type of arrayTypes){
var exp = whenObject(type);
if(ofType(exp,null)) return null;

@@ -102,0 +102,0 @@ types[exp.expected] = exp.expected;

{
"name": "typeof-arguments",
"version": "3.1.0",
"version": "3.1.1",
"description": "Validate the types of arguments passed to the function.",

@@ -5,0 +5,0 @@ "main": "index.js",

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