koatty_cli
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -5,5 +5,5 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2020-03-05 11:45:45 | ||
* @ version: 2020-05-18 11:36:51 | ||
*/ | ||
import { Middleware, Helper } from "koatty"; | ||
import { Middleware, IMiddleware, Helper } from "koatty"; | ||
import { App } from '<Path>/App'; | ||
@@ -18,3 +18,3 @@ | ||
@Middleware() | ||
export class <Middleware> { | ||
export class <Middleware> implements IMiddleware { | ||
run(options: any, app: App) { | ||
@@ -21,0 +21,0 @@ options = Helper.extend(defaultOpt, options); |
@@ -5,9 +5,9 @@ /** | ||
* @ license: MIT | ||
* @ version: 2020-05-11 15:16:59 | ||
* @ version: 2020-05-18 11:36:23 | ||
*/ | ||
import { Middleware, Koatty, Helper } from "koatty"; | ||
import { Middleware, IMiddleware, Koatty, Helper } from "koatty"; | ||
const statics = require("think_static"); | ||
@Middleware() | ||
export class StaticMiddleware { | ||
export class StaticMiddleware implements IMiddleware { | ||
run(options: any, app: Koatty) { | ||
@@ -14,0 +14,0 @@ return statics(options, app); |
@@ -5,5 +5,5 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2020-05-11 15:17:13 | ||
* @ version: 2020-05-18 11:36:36 | ||
*/ | ||
import { Middleware, Helper } from "koatty"; | ||
import { Middleware, IMiddleware, Helper } from "koatty"; | ||
import { createConnection, Connection } from "typeorm"; | ||
@@ -27,3 +27,3 @@ import { App } from '<Path>/App'; | ||
@Middleware() | ||
export class TypeormMiddleware { | ||
export class TypeormMiddleware implements IMiddleware { | ||
run(options: any, app: App) { | ||
@@ -30,0 +30,0 @@ options = Helper.extend(defaultOpt, options); |
@@ -5,9 +5,9 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-12-18 09:48:19 | ||
* @ version: 2020-05-18 11:37:14 | ||
*/ | ||
import { Service, Base } from "koatty"; | ||
import { Service, BaseService } from "koatty"; | ||
import { App } from '<Path>/App'; | ||
@Service() | ||
export class <Service> extends Base { | ||
export class <Service> extends BaseService { | ||
app: App; | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "koatty_cli", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Koatty command line tool.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50039