New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@elfinct/eslint-plugin-elfin

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elfinct/eslint-plugin-elfin - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

9

dist/rules/invalid-console.js

@@ -64,7 +64,3 @@ "use strict";

// 身份标明为console
var isNameConsole = reference.identifier.name === 'console';
if (!isNameConsole)
return false;
// 是否允许使用
return !isAllowed(reference);
return reference.identifier.name === 'console';
}

@@ -81,3 +77,4 @@ /**

var isTryCatch = isTryCatchBlock(node);
return isMemberExpression && isCommonNode && !isTryCatch;
// isAllowed 是否允许使用
return isMemberExpression && isCommonNode && !isAllowed(reference) && !isTryCatch;
}

@@ -84,0 +81,0 @@ /**

{
"name": "@elfinct/eslint-plugin-elfin",
"version": "0.0.8",
"version": "0.0.9",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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