Skip to content

Commit c6e8b6a

Browse files
committed
chore: update ver
1 parent 419a4c7 commit c6e8b6a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/ip-filter.guard.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export class IpFilterGuard implements CanActivate {
2626
context: ExecutionContext,
2727
): Promise<boolean> | Observable<boolean> | boolean {
2828
// get guard
29-
const guard = this.reflector.getAllAndOverride<boolean>('ipFilter', [context.getHandler(), context.getClass()]);
29+
const guard = this.reflector.getAllAndOverride<boolean>('ipFilter', [
30+
context.getHandler(),
31+
context.getClass(),
32+
]);
3033

3134
// if not global and guard is not defined, then skip ip filter
3235
if (!this.ipFilterService.isGlobal && guard === undefined) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@timi137/nestjs-ipfilter",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "IP filter module for Nest framework (node.js) 🌎",
55
"author": "悠静 <i@mikuhl.cn>",
66
"license": "MIT",

0 commit comments

Comments
 (0)