Socket
Socket
Sign inDemoInstall

@lanetix/type-visitor

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 3.0.0

.test.js.swo

10

lib/index.js

@@ -250,6 +250,10 @@ /* eslint-disable no-new-wrappers */

if (!(exp !== null && typeof exp === 'object' && Array.isArray(exp) && exp.length === 2)) {
if (!(exp !== null && typeof exp === 'object' && !Array.isArray(exp))) {
return false;
}
var label = exp[0];
var labels = Object.keys(exp);
if (labels.length !== 1) {
return false;
}
var label = labels[0];
var ty = args[label];

@@ -259,3 +263,3 @@ if (!ty) {

}
return down(exp[1], function (valids) {
return down(exp[label], function (valids) {
return valids[label];

@@ -262,0 +266,0 @@ });

{
"name": "@lanetix/type-visitor",
"version": "2.2.0",
"version": "3.0.0",
"description": "visit your types",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc