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 1.0.0 to 1.0.1

6

index.js

@@ -16,8 +16,8 @@ module.exports = function(a,o,c){

r = false;
var a = typeName(a[x]);
var act = typeName(a[x]);
var exp = t.split('|').map((i)=>i[0].toUpperCase()+i.slice(1).toLowerCase()).join('|');
if(clb){
c(`[${a}]`,`[${exp}]`);
c(`[${act}]`,`[${exp}]`);
} else {
console.log(new TypeError(`\x1b[31mInvalid argument. The [${a}] argument has been passed, while the [${exp}] one is expected.\x1b[0m`));
console.log(new TypeError(`\x1b[31mInvalid argument. The [${act}] argument has been passed, while the [${exp}] one is expected.\x1b[0m`));
}

@@ -24,0 +24,0 @@ }

{
"name": "typeof-arguments",
"version": "1.0.0",
"version": "1.0.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