eslint-module-utils
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -8,2 +8,7 @@ # Change Log | ||
## v2.10.0 - 2024-09-05 | ||
### New | ||
- add context compatibility helpers ([#3049], thanks [@michaelfaith]) | ||
## v2.9.0 - 2024-09-02 | ||
@@ -159,2 +164,3 @@ | ||
[#3049]: https://github.com/import-js/eslint-plugin-import/pull/3049 | ||
[#3039]: https://github.com/import-js/eslint-plugin-import/pull/3039 | ||
@@ -161,0 +167,0 @@ [#3018]: https://github.com/import-js/eslint-plugin-import/pull/3018 |
{ | ||
"name": "eslint-module-utils", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.", | ||
@@ -10,2 +10,3 @@ "engines": { | ||
"exports": { | ||
"./contextCompat": "./contextCompat.js", | ||
"./ModuleCache": "./ModuleCache.js", | ||
@@ -12,0 +13,0 @@ "./ModuleCache.js": "./ModuleCache.js", |
@@ -8,2 +8,3 @@ 'use strict'; | ||
const path = require('path'); | ||
const { getPhysicalFilename } = require('./contextCompat'); | ||
@@ -233,3 +234,3 @@ const hashObject = require('./hash').hashObject; | ||
try { | ||
return relative(p, context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(), context.settings); | ||
return relative(p, getPhysicalFilename(context), context.settings); | ||
} catch (err) { | ||
@@ -236,0 +237,0 @@ if (!erroredContexts.has(context)) { |
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
52486
34
1062