@thisisagile/easy-express 8.41.8 → 8.41.12
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/README.md +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -66,10 +66,10 @@ All classes that inherit from `Record` or `Entity` will have an internal object
|
|
|
66
66
|
An example of an entity is the `Movie` class below. Here the content of the object comes from an external service (called OMDb), and is mapped to the actual properties of the `Movie` class.
|
|
67
67
|
|
|
68
68
|
export class Movie extends Entity {
|
|
69
|
-
@required() readonly id
|
|
70
|
-
@required() readonly title
|
|
71
|
-
@required() readonly year
|
|
72
|
-
readonly poster
|
|
69
|
+
@required() readonly id = this.state.imdbID as Id;
|
|
70
|
+
@required() readonly title = this.state.Title as string;
|
|
71
|
+
@required() readonly year = this.state.Year as number;
|
|
72
|
+
readonly poster = this.state.Poster as string;
|
|
73
73
|
|
|
74
74
|
update = (add?: Json): Movie => new Movie(this.toJSON(add));
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy-express",
|
|
3
|
-
"version": "8.41.
|
|
3
|
+
"version": "8.41.12",
|
|
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.41.
|
|
34
|
+
"@thisisagile/easy-test": "8.41.12",
|
|
35
35
|
"@types/cls-hooked": "^4.3.3",
|
|
36
36
|
"@types/form-urlencoded": "^4.4.0",
|
|
37
37
|
"@types/jsonwebtoken": "^8.5.8",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/validator": "^13.7.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thisisagile/easy": "8.41.
|
|
44
|
+
"@thisisagile/easy": "8.41.12",
|
|
45
45
|
"@types/express": "^4.17.13",
|
|
46
46
|
"cls-hooked": "^4.2.2",
|
|
47
47
|
"express": "^4.17.1",
|