Commit ea491b58 authored by nanahira's avatar nanahira

optimize

parent 70ce1fca
Pipeline #6109 failed with stages
in 9 seconds
{ {
"name": "koishi-nestjs", "name": "koishi-nestjs",
"version": "1.0.20", "version": "1.0.21",
"description": "Koishi.js as Nest.js Module", "description": "Koishi.js as Nest.js Module",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
......
import { App } from 'koishi'; import { App } from 'koishi';
import { import {
ConsoleLogger, ConsoleLogger,
Inject,
Injectable, Injectable,
OnApplicationBootstrap, OnApplicationBootstrap,
OnModuleDestroy, OnModuleDestroy,
OnModuleInit, OnModuleInit,
} from '@nestjs/common'; } from '@nestjs/common';
import { KOISHI_MODULE_OPTIONS } from './koishi.constants';
import { KoishiModuleOptions } from './koishi.interfaces'; import { KoishiModuleOptions } from './koishi.interfaces';
import { Server } from 'http'; import { Server } from 'http';
import Koa from 'koa'; import Koa from 'koa';
import KoaRouter from '@koa/router'; import KoaRouter from '@koa/router';
import KoaBodyParser from 'koa-bodyparser'; import KoaBodyParser from 'koa-bodyparser';
import { KoishiLoggerService } from './koishi-logger.service';
const nestLogger = new ConsoleLogger('koishi');
@Injectable() @Injectable()
export class KoishiService export class KoishiService
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment