@lenne.tech/cli 0.0.94 → 0.0.95
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.
|
@@ -114,7 +114,7 @@ export class <%= props.namePascal %>Resolver {
|
|
|
114
114
|
@Args('input') input: <%= props.namePascal %>Input
|
|
115
115
|
): Promise<<%= props.namePascal %>> {
|
|
116
116
|
return await this.<%= props.nameCamel %>Service.update(id, input, {
|
|
117
|
-
serviceOptions,
|
|
117
|
+
...serviceOptions,
|
|
118
118
|
inputType: <%= props.namePascal %>Input,
|
|
119
119
|
roles: [RoleEnum.ADMIN, RoleEnum.S_CREATOR]
|
|
120
120
|
});
|
|
@@ -61,7 +61,7 @@ export class <%= props.namePascal %>Service extends CrudService<<%= props.namePa
|
|
|
61
61
|
* Example method
|
|
62
62
|
* Extends the CrudService
|
|
63
63
|
*/
|
|
64
|
-
async
|
|
64
|
+
async exampleMethod(id: string, input: Record<string, any>, serviceOptions?: ServiceOptions): Promise<<%= props.namePascal %>> {
|
|
65
65
|
|
|
66
66
|
// Get and check <%= props.namePascal %>
|
|
67
67
|
const <%= props.nameCamel %> = await this.mainDbModel.findById(id).exec();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"description": "lenne.Tech CLI: lt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lenne.Tech",
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@lenne.tech/cli-plugin-helper": "0.0.11",
|
|
53
53
|
"find-file-up": "2.0.1",
|
|
54
|
-
"gluegun": "5.1.
|
|
54
|
+
"gluegun": "5.1.6",
|
|
55
55
|
"open": "8.4.2",
|
|
56
56
|
"standard-version": "9.5.0",
|
|
57
57
|
"ts-node": "10.9.1",
|
|
58
|
-
"typescript": "5.
|
|
58
|
+
"typescript": "5.2.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@lenne.tech/npm-package-helper": "0.0.12",
|
|
62
|
-
"@types/jest": "29.5.
|
|
63
|
-
"@types/node": "
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
65
|
-
"@typescript-eslint/parser": "6.
|
|
62
|
+
"@types/jest": "29.5.6",
|
|
63
|
+
"@types/node": "20.8.7",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "6.8.0",
|
|
65
|
+
"@typescript-eslint/parser": "6.8.0",
|
|
66
66
|
"cpy-cli": "5.0.0",
|
|
67
|
-
"eslint": "8.
|
|
67
|
+
"eslint": "8.51.0",
|
|
68
68
|
"eslint-config-prettier": "9.0.0",
|
|
69
69
|
"husky": "8.0.3",
|
|
70
|
-
"jest": "29.
|
|
70
|
+
"jest": "29.7.0",
|
|
71
71
|
"path-exists-cli": "2.0.0",
|
|
72
|
-
"prettier": "3.0.
|
|
72
|
+
"prettier": "3.0.3",
|
|
73
73
|
"pretty-quick": "3.1.3",
|
|
74
|
-
"rimraf": "5.0.
|
|
74
|
+
"rimraf": "5.0.5",
|
|
75
75
|
"ts-jest": "29.1.1"
|
|
76
76
|
},
|
|
77
77
|
"overrides": {
|