Socket
Socket
Sign inDemoInstall

hapi-recaptcha

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.2.0

8

lib/index.js

@@ -8,4 +8,2 @@ var path = require('path');

var __root = path.resolve('.');
var internals = {

@@ -36,2 +34,3 @@ defaults: {

if (!content || content instanceof Stream) {
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 403: No content.' });
return reply(Boom.forbidden());

@@ -43,4 +42,6 @@ }

if (err || !status.success) {
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 403: recaptcha .', err: err, status: status });
return reply(Boom.forbidden());
} else {
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 200.' });
return reply.continue();

@@ -50,2 +51,3 @@ }

} else {
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 200.' });
return reply.continue();

@@ -91,2 +93,2 @@ }

});
}
}
{
"name": "hapi-recaptcha",
"version": "0.1.1",
"version": "0.2.0",
"description": "Google's reCaptcha for hapi",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc