From c6e8b6af80bcaf41c313e7d6d7904ab89be4ef38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Fri, 18 Oct 2024 00:44:02 +0800 Subject: [PATCH] chore: update ver --- lib/ip-filter.guard.ts | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ip-filter.guard.ts b/lib/ip-filter.guard.ts index 38a1115..eba2f7d 100644 --- a/lib/ip-filter.guard.ts +++ b/lib/ip-filter.guard.ts @@ -26,7 +26,10 @@ export class IpFilterGuard implements CanActivate { context: ExecutionContext, ): Promise | Observable | boolean { // get guard - const guard = this.reflector.getAllAndOverride('ipFilter', [context.getHandler(), context.getClass()]); + const guard = this.reflector.getAllAndOverride('ipFilter', [ + context.getHandler(), + context.getClass(), + ]); // if not global and guard is not defined, then skip ip filter if (!this.ipFilterService.isGlobal && guard === undefined) { diff --git a/package.json b/package.json index 0ad1784..960dc9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@timi137/nestjs-ipfilter", - "version": "0.1.4", + "version": "0.1.5", "description": "IP filter module for Nest framework (node.js) 🌎", "author": "悠静 ", "license": "MIT",