Skip to content

Commit

Permalink
Merge pull request #152 from chvarkov/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
chvarkov authored Aug 16, 2024
2 parents 2f4198b + a32fe02 commit 1a810f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v3.8.0
- Updated `GoogleRecaptchaModuleAsyncOptions` interface

## v3.7.0
- Added `RecaptchaConfigRef` for dynamic configuration

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestlab/google-recaptcha",
"version": "3.7.0",
"version": "3.8.0",
"description": "Google recaptcha module for NestJS.",
"keywords": [
"nestjs",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/google-recaptcha-module-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface GoogleRecaptchaOptionsFactory {
}

export interface GoogleRecaptchaModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
// eslint-disable-next-line
inject?: Array<string | symbol | Type | Abstract<any> | Function>;
useClass?: Type<GoogleRecaptchaOptionsFactory>;
useExisting?: Type<GoogleRecaptchaOptionsFactory>;
Expand Down
2 changes: 1 addition & 1 deletion test/google-recaptcha-validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 1a810f6

Please sign in to comment.