@bmstravel/nvp-plop-templates 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { IBaseAction, IBaseAdapter, I{{pascalCase serviceName}}Service, UsersAuthMeta } from "@src/types";
1
+ import { IBaseAction, IBaseAdapter, I{{pascalCase serviceName}}Service, UserAuthMeta } from "@src/types";
2
2
  import { Context } from "moleculer";
3
3
  import { VISIBILITY, ERR_SYSTEM } from "@src/common";
4
4
  import { MoleculerRegularError } from "@src/errors";
@@ -89,7 +89,7 @@ const {{pascalCase actionName}}Action: IBaseAction = {
89
89
  {{/eq}}
90
90
  params: {
91
91
  },
92
- async handler(ctx: Context<{{pascalCase actionName}}Params, UsersAuthMeta>) {
92
+ async handler(ctx: Context<{{pascalCase actionName}}Params, UserAuthMeta>) {
93
93
  const $this: I{{pascalCase serviceName}}Service = this;
94
94
  const $adapter: IBaseAdapter = $this.adapter;
95
95
  const i18next = ctx.broker.i18next
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import moleculer, { Errors } from "moleculer";
4
- import { Service, Action, Method, ActionService, MethodService, HookService, EventService } from "@bmstravel/nvp-mixins";
4
+ import { Service, Action, Method, ActionService, MethodService, HookService, EventService } from "@bmstravel/nvp-decorator";
5
5
  import { VERSION, Config, VISIBILITY } from "@src/common";
6
6
 
7
7
  const serviceName = "{{camelCase serviceName}}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bmstravel/nvp-plop-templates",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "🏆 Using for plop templates",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -8,6 +8,9 @@
8
8
  "/lib"
9
9
  ],
10
10
  "scripts": {},
11
+ "dependencies": {
12
+ "sequelize": "6.21.0"
13
+ },
11
14
  "publishConfig": {
12
15
  "access": "public"
13
16
  },
@@ -15,5 +18,5 @@
15
18
  "phongnv86 <phongnguyenvan86@gmail.com>",
16
19
  "phongnv86 <phongnv@media-one.vn>"
17
20
  ],
18
- "gitHead": "3082145323bed4a31356a5525c9cff87dc16bafc"
21
+ "gitHead": "754eeaf826bbf3d3cfaa05629cf3672ab0e29aff"
19
22
  }