Comparing version 12.0.0 to 12.1.0
@@ -12,2 +12,14 @@ 'use strict'; | ||
} catch (e) { | ||
let useOnlyLocal; | ||
try { | ||
useOnlyLocal = JSON.parse(process.env.ESLINT_D_LOCAL_ESLINT_ONLY); | ||
} catch (parseError) { | ||
useOnlyLocal = false; | ||
} | ||
if (useOnlyLocal) { | ||
return undefined; | ||
} | ||
// module not found | ||
@@ -14,0 +26,0 @@ return resolver.resolve(eslint_path); |
@@ -89,2 +89,7 @@ /* eslint-disable no-sync */ | ||
const absolute_eslint_path = eslint_path.resolve(cwd, eslint_path_arg); | ||
if (!absolute_eslint_path) { | ||
return false; | ||
} | ||
return eslintCache.set(cwd, { | ||
@@ -303,2 +308,6 @@ eslint: require(absolute_eslint_path), | ||
} | ||
if (!cache) { | ||
callback(null); | ||
return; | ||
} | ||
cache.hash = hash; | ||
@@ -305,0 +314,0 @@ |
{ | ||
"name": "eslint_d", | ||
"version": "12.0.0", | ||
"version": "12.1.0", | ||
"description": "Makes eslint the fastest linter on the planet", | ||
@@ -33,3 +33,4 @@ "bin": "bin/eslint_d.js", | ||
"Shannon Moeller <me@shannonmoeller.com>", | ||
"Dara Dermody <daradermody@gmail.com>" | ||
"Dara Dermody <daradermody@gmail.com>", | ||
"Oskar Grunning <oskargrunning@gmail.com>" | ||
], | ||
@@ -36,0 +37,0 @@ "homepage": "https://github.com/mantoni/eslint_d.js", |
@@ -48,2 +48,5 @@ # eslint\_d | ||
It's possible to force `eslint_d` to only resolve local `eslint` by setting the | ||
`ESLINT_D_LOCAL_ESLINT_ONLY` environment variable to a truthy value (ie. `true` or `1`). | ||
To keep the memory footprint low, `eslint_d` keeps only the last 10 used | ||
@@ -50,0 +53,0 @@ instances in the internal [nanolru][] cache. |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
36489
946
230
9