@kosdev-code/kos-codegen-core 0.1.0-next.800 → 0.1.0-next.805
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-codegen-core",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.805",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"kos": {
|
|
27
27
|
"build": {
|
|
28
|
-
"gitHash": "
|
|
28
|
+
"gitHash": "66142cd858d09a346576f17acae86d2e9dc84b5b"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -52,7 +52,7 @@ export class <%= nameProperCase %>ModelImpl implements IKosIdentifiable, IKosDat
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
updateModel(_options: <%= nameProperCase %>Options): void {
|
|
55
|
-
//
|
|
55
|
+
// Copy fields in place (verbatim; derive in computed getters, not here).
|
|
56
56
|
}
|
|
57
57
|
// -------------------LIFECYCLE----------------------------
|
|
58
58
|
|
|
@@ -63,12 +63,14 @@ export class <%= nameProperCase %>ModelImpl implements IKosDataModel, IKosIdent
|
|
|
63
63
|
// Companion decorator automatically provides getCompanionParent() and parent property proxying
|
|
64
64
|
<% } %>
|
|
65
65
|
if (options) {
|
|
66
|
-
//
|
|
66
|
+
// Copy options VERBATIM (this.x = options.x). Derivation belongs in
|
|
67
|
+
// computed getters or the DTO mapper — never transform inputs here.
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
|
|
70
71
|
updateModel(options: <%= nameProperCase %>Options): void {
|
|
71
|
-
//
|
|
72
|
+
// Copy fields in place (same verbatim rule as the constructor).
|
|
73
|
+
// Cross-model reads = @kosDependency + computed getters over container indexes.
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
<% if (hasFutureSupport) { %>
|