eslint-plugin-factorial
Advanced tools
+1
-1
| { | ||
| "name": "eslint-plugin-factorial", | ||
| "version": "2.0.19", | ||
| "version": "2.0.20", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -6,7 +6,8 @@ module.exports = { | ||
| const allEqual = node.members.reduce((memo, item) => { | ||
| if (!item.initializer) return true | ||
| if (!item.initializer.type.includes('Literal')) return false | ||
| if (!item.initializer) return memo | ||
| if (item.initializer.type !== 'Literal' && item.initializer.type !== 'StringLiteral') return false | ||
| if (item.id.type !== 'Identifier') return false | ||
| return memo && item.id.name.toLowerCase() === item.initializer.value.toLowerCase() | ||
| return memo && item.id.name.toLowerCase() === item.initializer.value.toString().toLowerCase() | ||
| }, true) | ||
@@ -13,0 +14,0 @@ |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
14452
0.35%