@node-red/registry 2.2.2 → 3.0.0-beta.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.
- package/lib/util.js +3 -2
- package/package.json +5 -5
package/lib/util.js
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
const path = require("path");
|
|
18
18
|
const semver = require("semver");
|
|
19
|
+
const url = require("url");
|
|
19
20
|
const {events,i18n,log} = require("@node-red/util");
|
|
20
21
|
|
|
21
22
|
var runtime;
|
|
@@ -53,8 +54,8 @@ function requireModule(name) {
|
|
|
53
54
|
function importModule(name) {
|
|
54
55
|
var moduleInfo = require("./index").getModuleInfo(name);
|
|
55
56
|
if (moduleInfo && moduleInfo.path) {
|
|
56
|
-
|
|
57
|
-
return import(
|
|
57
|
+
const moduleFile = url.pathToFileURL(require.resolve(moduleInfo.path));
|
|
58
|
+
return import(moduleFile);
|
|
58
59
|
} else {
|
|
59
60
|
// Require it here to avoid the circular dependency
|
|
60
61
|
return require("./externalModules").import(name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-red/registry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@node-red/util": "
|
|
19
|
+
"@node-red/util": "3.0.0-beta.1",
|
|
20
20
|
"clone": "2.1.2",
|
|
21
|
-
"fs-extra": "10.
|
|
22
|
-
"semver": "7.3.
|
|
21
|
+
"fs-extra": "10.1.0",
|
|
22
|
+
"semver": "7.3.7",
|
|
23
23
|
"tar": "6.1.11",
|
|
24
|
-
"uglify-js": "3.15.
|
|
24
|
+
"uglify-js": "3.15.4"
|
|
25
25
|
}
|
|
26
26
|
}
|