@markuplint/file-resolver 4.4.0 → 4.5.0

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.
@@ -22,7 +22,7 @@ export async function forceImportJsonInModule(modPath) {
22
22
  .replace(/^file:\/\//, '')
23
23
  .replaceAll('/', path.sep)
24
24
  // Windows
25
- .replace(/^[/\\][a-z]:/i, '');
25
+ .replace(/^[/\\](?=[a-z]:)/i, ''); // only remove a leading slash
26
26
  fLog('Find JSON file path: %s', normalizePath);
27
27
  const fileContent = await readFile(normalizePath, { encoding: 'utf8' });
28
28
  return JSON.parse(fileContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/file-resolver",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "The file resolver of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -24,23 +24,23 @@
24
24
  "clean": "tsc --build --clean"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "20.11.30"
27
+ "@types/node": "20.12.0"
28
28
  },
29
29
  "dependencies": {
30
- "@markuplint/html-parser": "4.3.0",
31
- "@markuplint/ml-ast": "4.1.0",
32
- "@markuplint/ml-config": "4.3.0",
33
- "@markuplint/ml-core": "4.4.0",
34
- "@markuplint/ml-spec": "4.2.0",
35
- "@markuplint/parser-utils": "4.3.0",
36
- "@markuplint/selector": "4.3.0",
37
- "@markuplint/shared": "4.1.0",
30
+ "@markuplint/html-parser": "4.4.0",
31
+ "@markuplint/ml-ast": "4.2.0",
32
+ "@markuplint/ml-config": "4.4.0",
33
+ "@markuplint/ml-core": "4.5.0",
34
+ "@markuplint/ml-spec": "4.3.0",
35
+ "@markuplint/parser-utils": "4.4.0",
36
+ "@markuplint/selector": "4.4.0",
37
+ "@markuplint/shared": "4.2.0",
38
38
  "cosmiconfig": "9.0.0",
39
39
  "debug": "4.3.4",
40
- "glob": "10.3.9",
40
+ "glob": "10.3.12",
41
41
  "ignore": "5.3.1",
42
42
  "jsonc": "2.0.0",
43
- "minimatch": "9.0.3"
43
+ "minimatch": "9.0.4"
44
44
  },
45
- "gitHead": "fe251a0257345255ee887dd2302b889ac32a22a5"
45
+ "gitHead": "ad3db077e96bea0666c9105b250f895263907a87"
46
46
  }