Commit c6fff467 authored by nanahira's avatar nanahira

fix

parent b5ee6c96
Pipeline #6047 passed with stages
in 40 seconds
{ {
"name": "koishi-nestjs", "name": "koishi-nestjs",
"version": "1.0.0", "version": "1.0.1",
"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",
......
...@@ -17,13 +17,6 @@ import { ...@@ -17,13 +17,6 @@ import {
KOISHI_CONTEXT_PRIVATE, KOISHI_CONTEXT_PRIVATE,
KOISHI_MODULE_OPTIONS, KOISHI_MODULE_OPTIONS,
} from './koishi.constants'; } from './koishi.constants';
import { Context } from 'koishi';
const koishiContextProvider: Provider = {
provide: Context,
useFactory: (koishiApp: KoishiService) => koishiApp.any(),
};
const koishiContextProviderAny: Provider = { const koishiContextProviderAny: Provider = {
provide: KOISHI_CONTEXT, provide: KOISHI_CONTEXT,
useFactory: (koishiApp: KoishiService) => koishiApp.any(), useFactory: (koishiApp: KoishiService) => koishiApp.any(),
...@@ -42,14 +35,12 @@ const koishiContextProviderPrivate: Provider = { ...@@ -42,14 +35,12 @@ const koishiContextProviderPrivate: Provider = {
@Module({ @Module({
providers: [ providers: [
KoishiService, KoishiService,
koishiContextProvider,
koishiContextProviderAny, koishiContextProviderAny,
koishiContextProviderChannel, koishiContextProviderChannel,
koishiContextProviderPrivate, koishiContextProviderPrivate,
], ],
exports: [ exports: [
KoishiService, KoishiService,
koishiContextProvider,
koishiContextProviderAny, koishiContextProviderAny,
koishiContextProviderChannel, koishiContextProviderChannel,
koishiContextProviderPrivate, koishiContextProviderPrivate,
......
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