koatty_cli
Advanced tools
Comparing version 1.6.2 to 1.6.12
@@ -5,5 +5,5 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-30 15:28:37 | ||
* @ version: 2019-11-14 17:26:12 | ||
*/ | ||
import { Middleware, helper } from "koatty"; | ||
import { Middleware, Helper } from "koatty"; | ||
import { App } from '<Path>/App'; | ||
@@ -20,3 +20,3 @@ | ||
run(options: any, app: App) { | ||
options = helper.extend(defaultOpt, options); | ||
options = Helper.extend(defaultOpt, options); | ||
//应用启动执行一次 | ||
@@ -23,0 +23,0 @@ // app.once('appReady', () => { }); |
@@ -5,5 +5,5 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-18 19:40:23 | ||
* @ version: 2019-11-14 17:26:48 | ||
*/ | ||
import { Middleware, helper, logger } from "koatty"; | ||
import { Middleware, Helper } from "koatty"; | ||
import { createConnection, Connection, BaseApp } from "typeorm"; | ||
@@ -28,8 +28,8 @@ | ||
run(options: any, app: BaseApp) { | ||
options = helper.extend(defaultOpt, options); | ||
options = Helper.extend(defaultOpt, options); | ||
const conn = function () { | ||
createConnection(options).then((connection: Connection) => { | ||
helper.define(app, 'connection', connection); | ||
Helper.define(app, 'connection', connection); | ||
}).catch((err) => { | ||
logger.error(err); | ||
Helper.error(err); | ||
}); | ||
@@ -36,0 +36,0 @@ }; |
{ | ||
"name": "koatty_cli", | ||
"version": "1.6.2", | ||
"version": "1.6.12", | ||
"description": "Koatty command line tool.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
43028