@graphql-eslint/eslint-plugin 3.13.1-alpha-20221105010933-2b1e7ee → 3.13.1-alpha-20221105230632-80b7067

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +2 -1
  2. package/index.mjs +2 -1
  3. 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.hrtime(lastSeen)[0] < settings.lifetime) {
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.hrtime(lastSeen)[0] < settings.lifetime) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "3.13.1-alpha-20221105010933-2b1e7ee",
3
+ "version": "3.13.1-alpha-20221105230632-80b7067",
4
4
  "description": "GraphQL plugin for ESLint",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {