rev-dep 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
71
71
  };
72
72
  const shouldPathBeAnalyzed = (path) => {
73
73
  const aliasRegexIdx = aliasesRegexes.findIndex((aliasRegex) => aliasRegex.test(path));
74
- const isRelative = path.startsWith('./') || path.startsWith('../');
74
+ const isRelative = path.startsWith('.');
75
75
  const isAbsolute = path.startsWith('/');
76
76
  const isBaseUrlPath = baseUrlDirs.some((dir) => path.startsWith(dir));
77
77
  return aliasRegexIdx > -1 || isRelative || isAbsolute || isBaseUrlPath;
@@ -233,7 +233,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
233
233
  };
234
234
  const getImportKind = (sourcePath) => {
235
235
  const aliasRegexIdx = aliasesRegexes.findIndex((aliasRegex) => aliasRegex.test(sourcePath));
236
- const isRelative = sourcePath.startsWith('./') || sourcePath.startsWith('../');
236
+ const isRelative = sourcePath.startsWith('.');
237
237
  const isBaseUrlPath = baseUrlDirs.some((dir) => sourcePath.startsWith(dir));
238
238
  if (aliasRegexIdx > -1) {
239
239
  return 'aliased';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rev-dep",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Dependency debugging tool for JavaScript and TypeScript projects",
5
5
  "main": "dist/module.js",
6
6
  "bin": "bin.js",