@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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @teqfw/di releases
2
2
 
3
+
4
+ ## 0.12.1
5
+
6
+ * Hotfix for Windows delimiters.
7
+
8
+ ## 0.12.0
9
+
10
+ * Standardized comments style for improved code readability and maintenance.
11
+
3
12
  ## 0.11.0
4
13
 
5
14
  * Restructure `/@teqfw/di/replace` node in `teqfw.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teqfw/di",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Dependency Injection container based on logical namespaces for ES6 modules.",
5
5
  "keywords": [
6
6
  "dependency injection",
@@ -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