eslint-plugin-n
Advanced tools
Comparing version 15.2.3 to 15.2.4
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
312538
8779