From c6348a60ee20d2fa9809479969015fc39d08147f Mon Sep 17 00:00:00 2001 From: chvarkov Date: Fri, 16 Aug 2024 15:54:53 +0000 Subject: [PATCH 1/3] fix: tests --- test/google-recaptcha-validator.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/google-recaptcha-validator.spec.ts b/test/google-recaptcha-validator.spec.ts index 932d5b0..0614572 100644 --- a/test/google-recaptcha-validator.spec.ts +++ b/test/google-recaptcha-validator.spec.ts @@ -26,7 +26,7 @@ describe('Google recaptcha validator', () => { expect(result.success).toBeFalsy(); expect(result.errors).toBeInstanceOf(Array); expect(result.errors.length).toBe(1); - expect(result.errors[0]).toBe(ErrorCode.InvalidInputSecret); + expect(result.errors[0]).toBe(ErrorCode.InvalidInputResponse); }); test('Network error', async () => { From aff76e123c95302d8a187ee07397d020275673fa Mon Sep 17 00:00:00 2001 From: chvarkov Date: Fri, 16 Aug 2024 17:06:57 +0000 Subject: [PATCH 2/3] release: v3.8.0. --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4a0575..5dd08e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v3.8.0 +- Updated `GoogleRecaptchaModuleAsyncOptions` interface + ## v3.7.0 - Added `RecaptchaConfigRef` for dynamic configuration diff --git a/package.json b/package.json index f47cec2..4bd023b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nestlab/google-recaptcha", - "version": "3.7.0", + "version": "3.8.0", "description": "Google recaptcha module for NestJS.", "keywords": [ "nestjs", From a32fe0250329df791221650d0c0b722c1798ea21 Mon Sep 17 00:00:00 2001 From: chvarkov Date: Fri, 16 Aug 2024 17:15:38 +0000 Subject: [PATCH 3/3] fix: lint --- src/interfaces/google-recaptcha-module-options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/google-recaptcha-module-options.ts b/src/interfaces/google-recaptcha-module-options.ts index fe01bf8..e5ec3b7 100644 --- a/src/interfaces/google-recaptcha-module-options.ts +++ b/src/interfaces/google-recaptcha-module-options.ts @@ -15,6 +15,7 @@ export interface GoogleRecaptchaOptionsFactory { } export interface GoogleRecaptchaModuleAsyncOptions extends Pick { + // eslint-disable-next-line inject?: Array | Function>; useClass?: Type; useExisting?: Type;