@graphql-eslint/eslint-plugin 3.13.1-alpha-20221104221546-bfa4eb6 → 3.13.1-alpha-20221105230632-80b7067
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -1
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4274,7 +4274,8 @@ class ModuleCache {
|
|
4274
4274
|
}
|
4275
4275
|
const { lastSeen, result } = this.map.get(cacheKey);
|
4276
4276
|
// check freshness
|
4277
|
-
if (process.
|
4277
|
+
if (process.env.NODE /* don't check for ESLint CLI */ ||
|
4278
|
+
process.hrtime(lastSeen)[0] < settings.lifetime) {
|
4278
4279
|
return result;
|
4279
4280
|
}
|
4280
4281
|
}
|
package/index.mjs
CHANGED
@@ -4268,7 +4268,8 @@ class ModuleCache {
|
|
4268
4268
|
}
|
4269
4269
|
const { lastSeen, result } = this.map.get(cacheKey);
|
4270
4270
|
// check freshness
|
4271
|
-
if (process.
|
4271
|
+
if (process.env.NODE /* don't check for ESLint CLI */ ||
|
4272
|
+
process.hrtime(lastSeen)[0] < settings.lifetime) {
|
4272
4273
|
return result;
|
4273
4274
|
}
|
4274
4275
|
}
|
package/package.json
CHANGED