@nestlab/google-recaptcha
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -6,7 +6,7 @@ "use strict"; | ||
const google_recaptcha_guard_1 = require("../guards/google-recaptcha.guard"); | ||
const provider_declarations_1 = require("../provider.declarations"); | ||
const set_recaptcha_options_1 = require("./set-recaptcha-options"); | ||
function Recaptcha(options) { | ||
return common_1.applyDecorators(common_1.SetMetadata(provider_declarations_1.RECAPTCHA_VALIDATION_OPTIONS, options), common_1.UseGuards(google_recaptcha_guard_1.GoogleRecaptchaGuard)); | ||
return common_1.applyDecorators(set_recaptcha_options_1.SetRecaptchaOptions(options), common_1.UseGuards(google_recaptcha_guard_1.GoogleRecaptchaGuard)); | ||
} | ||
exports.Recaptcha = Recaptcha; | ||
//# sourceMappingURL=recaptcha.js.map |
{ | ||
"name": "@nestlab/google-recaptcha", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Google recaptcha module for NestJS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -197,2 +197,3 @@ # Google recaptcha module | ||
export class FeedbackController { | ||
@SetRecaptchaOptions({action: 'Send', score: 0.8}) | ||
@UseGuards(Guard1, GoogleRecaptchaGuard, Guard2) | ||
@@ -199,0 +200,0 @@ @Post('send') |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52664
61
556
280