jcc-express-mvc 1.2.7 → 1.2.8

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const inflection = require("inflection");
4
4
  const createMigration = (table) => {
5
5
  return `
6
- import {Schema} from "";
6
+ import {Schema} from "jcc-express-mvc";
7
7
  class Migration {
8
8
  up() {
9
9
  return Schema.create("${inflection.pluralize(table)}", (table) => {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  */
8
8
  const createRequest = (fileName) => {
9
9
  return `
10
- import { getModel, FormRequest,Request } = from "jcc-express-mvc";
10
+ import { FormRequest } = from "jcc-express-mvc";
11
11
 
12
12
  export class ${fileName} extends FormRequest {
13
13
  constructor(req:Request) {
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  * @returns string
7
7
  */
8
8
  const resourceController = (controller, model) => {
9
- return `const {getModel }= require("jcc-express-mvc")
10
- const ${model} = getModel('${model}')
11
- export class ${controller} {
9
+ return `import {Model}= from "jcc-express-mvc"
10
+ export class ${controller} extends Model {
12
11
 
13
12
  /**
14
13
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcc-express-mvc",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "express mvc structure",
5
5
  "main": "index.js",
6
6
  "scripts": {