Skip to content

Commit

Permalink
fix: library rebuilded with merged changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanguns committed May 10, 2020
1 parent c5e4f36 commit bf454f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/access-control.module.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DynamicModule, Type, ForwardReference, Abstract } from '@nestjs/common';
import { DynamicModule, Abstract, Type, ForwardReference } from '@nestjs/common';
import { RolesBuilder } from './roles-builder.class';
import { ACOptions } from './ac-options.interface';
export declare class AccessControlModule {
Expand All @@ -13,5 +13,6 @@ export declare class AccessControlModule {
imports?: Array<Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference>;
inject?: Array<Type<any> | string | symbol | Abstract<any> | Function>;
useFactory: (...args: any) => RolesBuilder | Promise<RolesBuilder>;
grantsEndpoint?: string;
}): DynamicModule;
}
5 changes: 4 additions & 1 deletion lib/access-control.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var AccessControlModule_1;
Object.defineProperty(exports, "__esModule", { value: true });
var AccessControlModule_1;
const common_1 = require("@nestjs/common");
const constants_1 = require("@nestjs/common/constants");
const constants_2 = require("./constants");
Expand Down Expand Up @@ -56,6 +56,9 @@ let AccessControlModule = AccessControlModule_1 = class AccessControlModule {
}
return {
imports: [...(options.imports || [])],
controllers: [
...controllers,
],
module: AccessControlModule_1,
providers: [provider],
exports: [provider],
Expand Down

0 comments on commit bf454f1

Please sign in to comment.