Skip to content

Commit

Permalink
Fix import and build lib
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jun 20, 2018
1 parent a86f950 commit d1c2a10
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/middlewares/dialog-flow-authorization.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ let DialogFlowAuthorizationMiddleware = class DialogFlowAuthorizationMiddleware
}
};
DialogFlowAuthorizationMiddleware = __decorate([
common_1.Middleware()
common_1.Injectable()
], DialogFlowAuthorizationMiddleware);
exports.DialogFlowAuthorizationMiddleware = DialogFlowAuthorizationMiddleware;
2 changes: 1 addition & 1 deletion lib/module/dialog-flow.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let DialogFlowService = class DialogFlowService {
}
};
DialogFlowService = __decorate([
common_1.Component(),
common_1.Injectable(),
__param(0, common_1.Inject('Handlers')),
__metadata("design:paramtypes", [Map])
], DialogFlowService);
Expand Down
4 changes: 2 additions & 2 deletions lib/module/dialog-flow.module.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DynamicModule, MiddlewaresConsumer, NestModule } from '@nestjs/common';
import { DynamicModule, MiddlewareConsumer, NestModule } from '@nestjs/common';
import { WebHookConfig } from '../interfaces/web-hook-config.interface';
export declare class DialogFlowModule implements NestModule {
static forRoot(webHookConfig?: WebHookConfig): DynamicModule;
configure(consumer: MiddlewaresConsumer): MiddlewaresConsumer;
configure(consumer: MiddlewareConsumer): MiddlewareConsumer;
}
2 changes: 1 addition & 1 deletion lib/module/dialog-flow.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let DialogFlowModule = DialogFlowModule_1 = class DialogFlowModule {
};
DialogFlowModule = DialogFlowModule_1 = __decorate([
common_1.Module({
components: [dialog_flow_component_1.DialogFlowService, dialog_flow_provider_1.provider],
providers: [dialog_flow_component_1.DialogFlowService, dialog_flow_provider_1.provider],
})
], DialogFlowModule);
exports.DialogFlowModule = DialogFlowModule;
Expand Down
4 changes: 2 additions & 2 deletions src/module/dialog-flow.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DialogFlowAuthorizationMiddleware } from '../middlewares/dialog-flow-authorization.middleware';
import { DialogFlowController } from './dialog-flow.controller';
import { DialogFlowService } from './dialog-flow.component';
import { DynamicModule, MiddlewaresConsumer, Module, NestModule } from '@nestjs/common';
import { DynamicModule, MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { provider } from './dialog-flow.provider';
import { WebHookConfig } from '../interfaces/web-hook-config.interface';

Expand All @@ -22,7 +22,7 @@ export class DialogFlowModule implements NestModule {
};
}

public configure(consumer: MiddlewaresConsumer) {
public configure(consumer: MiddlewareConsumer) {
return consumer.apply([DialogFlowAuthorizationMiddleware]).forRoutes(DialogFlowController);
}
}

0 comments on commit d1c2a10

Please sign in to comment.