@cspell/dynamic-import 8.7.0 → 8.8.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { statSync } from 'node:fs';
|
|
2
|
+
import { sep as pathSep } from 'node:path';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
2
4
|
import { resolve } from 'import-meta-resolve';
|
|
3
|
-
import { sep as pathSep } from 'path';
|
|
4
|
-
import { pathToFileURL } from 'url';
|
|
5
5
|
const isWindowsPath = /^[a-z]:\\/i;
|
|
6
6
|
/**
|
|
7
7
|
* Dynamically import a module using `import`.
|
|
@@ -49,7 +49,7 @@ export function importResolveModuleName(moduleName, paths) {
|
|
|
49
49
|
return resolvedURL;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
catch
|
|
52
|
+
catch {
|
|
53
53
|
const error = new Error(`Cannot find module ${moduleName}`);
|
|
54
54
|
error.code = 'ERR_MODULE_NOT_FOUND';
|
|
55
55
|
lastError = error;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "8.
|
|
6
|
+
"version": "8.8.1",
|
|
7
7
|
"description": "Dynamic Module Loader",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"module",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"!**/*.map"
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "tsc -b .",
|
|
40
|
+
"build": "tsc -b . -f",
|
|
41
41
|
"build:clean": "pnpm clean && pnpm build",
|
|
42
42
|
"clean": "shx rm -rf dist coverage",
|
|
43
43
|
"clean-build": "pnpm build:clean",
|
|
44
44
|
"coverage": "vitest run --coverage",
|
|
45
45
|
"test-watch": "vitest",
|
|
46
46
|
"test": "vitest run",
|
|
47
|
-
"watch": "tsc -b . --watch"
|
|
47
|
+
"watch": "tsc -b . --watch -f"
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"node": ">=18.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"import-meta-resolve": "^4.
|
|
61
|
+
"import-meta-resolve": "^4.1.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "6381846ffce8b9a349bfda03262297aa8e301ef5"
|
|
64
64
|
}
|