Socket
Socket
Sign inDemoInstall

eslint-plugin-node

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-node - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

17

lib/rules/no-deprecated-api.js

@@ -277,4 +277,7 @@ /**

const ignored = info.global ? ignoredGlobalItems : ignoredModuleItems
const name = `${path.join(".")}.${key}`
path.push(key)
const name = path.join(".")
path.pop()
if (ignored.indexOf(name) === -1) {

@@ -409,5 +412,13 @@ report(node, `'${name}'`, info)

for (const reference of variable.references.filter(r => r.isRead())) {
checkProperties(reference.identifier, path, infoMap)
if (infoMap.$deprecated) {
const key = path.pop()
for (const reference of variable.references.filter(r => r.isRead())) {
reportProperty(reference.identifier, path, key, infoMap)
}
}
else {
for (const reference of variable.references.filter(r => r.isRead())) {
checkProperties(reference.identifier, path, infoMap)
}
}

@@ -414,0 +425,0 @@ varStack.pop()

2

lib/rules/no-unsupported-features.js

@@ -689,3 +689,3 @@ /**

"SpreadElement"(node) {
report(node, "spreadOperators", 5)
report(node, "spreadOperators")
},

@@ -692,0 +692,0 @@

@@ -340,2 +340,8 @@ /**

},
GLOBAL: {
$deprecated: true,
global: true,
since: 6,
replacedBy: "'global'",
},
Intl: {

@@ -357,2 +363,8 @@ v8BreakIterator: {

},
root: {
$deprecated: true,
global: true,
since: 6,
replacedBy: "'global'",
},
process: {

@@ -359,0 +371,0 @@ EventEmitter: {

{
"name": "eslint-plugin-node",
"version": "5.1.1",
"version": "5.2.0",
"description": "Additional ESLint's rules for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/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