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

eslint-plugin-n

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-n - npm Package Compare versions

Comparing version 15.2.3 to 15.2.4

11

lib/rules/no-unsupported-features/es-syntax.js

@@ -10,2 +10,3 @@ /**

const { Range } = require("semver")
const rangeSubset = require("semver/ranges/subset")
const getConfiguredNodeVersion = require("../../util/get-configured-node-version")

@@ -461,7 +462,7 @@ const getSemverRange = require("../../util/get-semver-range")

if (aCase.supported instanceof Range) {
return !options.version.intersects(aCase.supported)
}
return options.version.intersects(getSemverRange(`<${aCase.supported}`))
const supported =
typeof aCase.supported === "string"
? getSemverRange(`>=${aCase.supported}`)
: aCase.supported
return !rangeSubset(options.version, supported)
}

@@ -468,0 +469,0 @@

{
"name": "eslint-plugin-n",
"version": "15.2.3",
"version": "15.2.4",
"description": "Additional ESLint's rules for Node.js",

@@ -5,0 +5,0 @@ "engines": {

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