eslint-module-utils
Advanced tools
Comparing version 2.5.2 to 2.6.0
@@ -8,2 +8,7 @@ # Change Log | ||
## v2.6.0 - 2020-03-28 | ||
### Added | ||
[New] Print more helpful info if parsing fails ([#1671], thanks [@kaiyoma]) | ||
## v2.5.2 - 2020-01-12 | ||
@@ -74,2 +79,3 @@ | ||
[#1671]: https://github.com/benmosher/eslint-plugin-import/pull/1671 | ||
[#1606]: https://github.com/benmosher/eslint-plugin-import/pull/1606 | ||
@@ -99,1 +105,2 @@ [#1602]: https://github.com/benmosher/eslint-plugin-import/pull/1602 | ||
[@iamnapo]: https://github.com/iamnapo | ||
[@kaiyoma]: https://github.com/kaiyoma |
@@ -25,3 +25,3 @@ 'use strict' | ||
const f = this.map.get(cacheKey) | ||
// check fresness | ||
// check freshness | ||
if (process.hrtime(f.lastSeen)[0] < settings.lifetime) return f.result | ||
@@ -28,0 +28,0 @@ } else log('cache miss for', cacheKey) |
{ | ||
"name": "eslint-module-utils", | ||
"version": "2.5.2", | ||
"version": "2.6.0", | ||
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -50,3 +50,5 @@ 'use strict' | ||
} catch (e) { | ||
// | ||
console.warn() | ||
console.warn('Error while parsing ' + parserOptions.filePath) | ||
console.warn('Line ' + e.lineNumber + ', column ' + e.column + ': ' + e.message) | ||
} | ||
@@ -53,0 +55,0 @@ if (!ast || typeof ast !== 'object') { |
24985
579
0