@sincpro/client-framework 2.9.0 → 2.10.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.
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* | infrastructure | its own components |
|
|
15
15
|
* | components | composer, a router |
|
|
16
16
|
* | common | any bounded context |
|
|
17
|
-
* |
|
|
17
|
+
* | domain, services | another bounded context — it is injected (`infrastructure/dependencies`)|
|
|
18
|
+
* | any layer | another bounded context's insides — only its doors, where they are used |
|
|
18
19
|
* | entrypoints/ root | a bounded context's insides — only its doors (and `common`) |
|
|
19
20
|
* | entrypoints/<face>| another face's door: `index.ts` or its own (`sales/admin.ts`) |
|
|
20
21
|
*
|
|
@@ -136,12 +136,17 @@ how = {}) {
|
|
|
136
136
|
? `${from.layer}/ never imports its own ${to.layer}/`
|
|
137
137
|
: undefined;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
// Another context by its doors, where it is used: a file that only re-exports it says nothing.
|
|
140
|
+
if (!to.index && to.door !== "react")
|
|
141
|
+
return `a bounded context never imports another's insides («${to.context}»): only its doors, index.ts or react.ts`;
|
|
142
|
+
if (from.layer === null)
|
|
143
|
+
return `a door never re-exports another bounded context («${to.context}»): it publishes its own`;
|
|
144
|
+
if (INJECTED.includes(from.layer))
|
|
145
|
+
return `${from.layer}/ never names another bounded context («${to.context}»): it is injected (infrastructure/dependencies.ts)`;
|
|
146
|
+
return undefined;
|
|
144
147
|
}
|
|
148
|
+
/** What a context is and does: another context reaches it injected, never imported. */
|
|
149
|
+
const INJECTED = ["generated", "domain", "adapters", "services"];
|
|
145
150
|
function sources(root) {
|
|
146
151
|
const found = [];
|
|
147
152
|
for (const entry of readdirSync(root, { withFileTypes: true })) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sincpro/client-framework",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "The client side of sincpro_framework, for every platform: Feature and ApplicationService traced and reported by default, applications made of domains, and the typed client generated from a service's contract. No React, no DOM.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|