@thisisagile/easy 8.42.2 → 8.42.3
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/dist/domain/Child.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Child.js","sourceRoot":"","sources":["../../src/domain/Child.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkC;AAClC,oCAAgD;AAChD,8CAAyC;AAEzC,MAAsB,KAAM,SAAQ,eAAM;IAA1C;;QACuB,OAAE,GAAO,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,IAAA,YAAI,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Child.js","sourceRoot":"","sources":["../../src/domain/Child.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkC;AAClC,oCAAgD;AAChD,8CAAyC;AAEzC,MAAsB,KAAM,SAAQ,eAAM;IAA1C;;QACuB,OAAE,GAAO,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,IAAA,YAAI,GAAE,CAAC;QAE5C,UAAK,GAAG,CAAC,CAAU,EAAQ,EAAE,CAAC,YAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;CAAA;AAHa;IAAX,IAAA,qBAAQ,GAAE;;iCAA2C;AADxD,sBAIC"}
|
package/dist/domain/Entity.js
CHANGED
|
@@ -20,7 +20,11 @@ class Entity extends Struct_1.Struct {
|
|
|
20
20
|
this.id = this.state.id ?? (0, types_1.toId)();
|
|
21
21
|
this.created = new Audit_1.Audit(this.state.created);
|
|
22
22
|
this.lastModified = new Audit_1.Audit(this.state.lastModified);
|
|
23
|
-
this.merge = (a) => types_1.json.merge(this, a, {
|
|
23
|
+
this.merge = (a) => types_1.json.merge(this, a, {
|
|
24
|
+
id: this.id,
|
|
25
|
+
created: this.created,
|
|
26
|
+
lastModified: new Audit_1.Audit(),
|
|
27
|
+
});
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../src/domain/Entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkC;AAClC,oCAAgD;AAChD,8CAAyC;AACzC,mCAAgC;AAEhC,MAAsB,MAAO,SAAQ,eAAM;IAA3C;;QACuB,OAAE,GAAO,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,IAAA,YAAI,GAAE,CAAC;QACjC,YAAO,GAAU,IAAI,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/C,iBAAY,GAAU,IAAI,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAEpE,UAAK,GAAG,CAAC,CAAU,EAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../src/domain/Entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkC;AAClC,oCAAgD;AAChD,8CAAyC;AACzC,mCAAgC;AAEhC,MAAsB,MAAO,SAAQ,eAAM;IAA3C;;QACuB,OAAE,GAAO,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,IAAA,YAAI,GAAE,CAAC;QACjC,YAAO,GAAU,IAAI,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/C,iBAAY,GAAU,IAAI,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAEpE,UAAK,GAAG,CAAC,CAAU,EAAQ,EAAE,CAAC,YAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE;YAC1D,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,YAAY,EAAE,IAAI,aAAK,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CAAA;AATa;IAAX,IAAA,qBAAQ,GAAE;;kCAA2C;AAC1C;IAAX,IAAA,qBAAQ,GAAE;8BAAmB,aAAK;uCAAiC;AACxD;IAAX,IAAA,qBAAQ,GAAE;8BAAwB,aAAK;4CAAsC;AAHhF,wBAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy",
|
|
3
|
-
"version": "8.42.
|
|
3
|
+
"version": "8.42.3",
|
|
4
4
|
"description": "Straightforward library for building domain-driven microservice architectures",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@thisisagile/easy-test": "8.42.
|
|
34
|
+
"@thisisagile/easy-test": "8.42.3",
|
|
35
35
|
"@types/form-urlencoded": "^4.4.0",
|
|
36
36
|
"@types/jsonwebtoken": "^8.5.8",
|
|
37
37
|
"@types/validator": "^13.7.1"
|
package/src/domain/Child.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { required } from '../validation';
|
|
|
4
4
|
|
|
5
5
|
export abstract class Child extends Struct {
|
|
6
6
|
@required() readonly id: Id = this.state.id ?? toId();
|
|
7
|
+
|
|
7
8
|
protected merge = (a: unknown): Json => json.merge(this, a, { id: this.id });
|
|
8
|
-
// protected merge = (a: unknown): Json => json.parse({ ...this, ...{ a as any }, id: this.id });
|
|
9
9
|
}
|
package/src/domain/Entity.ts
CHANGED
|
@@ -8,7 +8,9 @@ export abstract class Entity extends Struct {
|
|
|
8
8
|
@required() readonly created: Audit = new Audit(this.state.created);
|
|
9
9
|
@required() readonly lastModified: Audit = new Audit(this.state.lastModified);
|
|
10
10
|
|
|
11
|
-
protected merge = (a: unknown): Json =>
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
protected merge = (a: unknown): Json => json.merge(this, a, {
|
|
12
|
+
id: this.id,
|
|
13
|
+
created: this.created,
|
|
14
|
+
lastModified: new Audit(),
|
|
15
|
+
});
|
|
14
16
|
}
|