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

eslint-plugin-uilib

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-uilib - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

lib/utils/generalUtils.js

@@ -24,7 +24,7 @@ const _ = require('lodash');

if (valueNode === false || _.isNil(valueNode) || valueNode.value !== undefined) {
if (scope.block.body.length > 0) {
if (scope && scope.block && scope.block.body && scope.block.body.length > 0) {
scope.block.body.forEach(scopeNode => {
if (scopeNode.type === 'ExpressionStatement') {
if (scopeNode && scopeNode.type === 'ExpressionStatement') {
const variableName = _.get(scopeNode, 'expression.left.name');
if (variableName === identifierName) {
if (variableName === identifierName && scopeNode.expression && scopeNode.expression.right) {
valueNode = scopeNode.expression.right;

@@ -31,0 +31,0 @@ }

{
"name": "eslint-plugin-uilib",
"version": "2.1.1",
"version": "2.1.2",
"description": "uilib set of eslint rules",

@@ -5,0 +5,0 @@ "keywords": [

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