@teqfw/di 0.12.0 → 0.12.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/RELEASE.md +9 -0
- package/package.json +1 -1
- package/src/Shared/Resolver.mjs +9 -2
package/RELEASE.md
CHANGED
package/package.json
CHANGED
package/src/Shared/Resolver.mjs
CHANGED
|
@@ -12,9 +12,12 @@ const LOGICAL_NS = /^((([A-Z])[A-Za-z0-9_]*)?)$/;
|
|
|
12
12
|
*/
|
|
13
13
|
export default class TeqFw_Di_Shared_Resolver {
|
|
14
14
|
/** @type {TeqFw_Di_Shared_Resolver_LogicalNs} */
|
|
15
|
-
logicalNs = new LogicalNs()
|
|
15
|
+
logicalNs = new LogicalNs();
|
|
16
16
|
/** @type {TeqFw_Di_Shared_Resolver_FilepathNs} */
|
|
17
|
-
filepathNs = new FilepathNs()
|
|
17
|
+
filepathNs = new FilepathNs();
|
|
18
|
+
// TODO: this is a hotfix
|
|
19
|
+
/** @type {boolean} */
|
|
20
|
+
isWindows = false;
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
23
|
* Registry sources path mapping details for namespace.
|
|
@@ -50,6 +53,10 @@ export default class TeqFw_Di_Shared_Resolver {
|
|
|
50
53
|
// this is file path based namespace
|
|
51
54
|
result = this.filepathNs.resolveModuleId(moduleId);
|
|
52
55
|
}
|
|
56
|
+
// TODO: tmp fix for windows
|
|
57
|
+
if (this.isWindows) {
|
|
58
|
+
result = 'file://' + result.replace(/\//g, '\\');
|
|
59
|
+
}
|
|
53
60
|
return result;
|
|
54
61
|
}
|
|
55
62
|
|