Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nestlab/google-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestlab/google-recaptcha - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

.github/ISSUE_TEMPLATE/bug_report.md

36

package.json
{
"name": "@nestlab/google-recaptcha",
"version": "2.1.2",
"version": "3.0.0",
"description": "Google recaptcha module for NestJS.",

@@ -36,21 +36,23 @@ "keywords": [

"peerDependencies": {
"@nestjs/core": ">=6.0.0 <9.0.0",
"@nestjs/common": ">=6.0.0 <9.0.0"
"@nestjs/axios": ">=0.0.1 <1.0.0",
"@nestjs/common": ">=8.0.0 <10.0.0",
"@nestjs/core": ">=8.0.0 <10.0.0"
},
"devDependencies": {
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0",
"@nestjs/graphql": "^7.9.8",
"@nestjs/platform-express": "^6.11.11",
"@nestjs/testing": "^6.11.11",
"@types/express": "^4.17.11",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.14",
"jest": "^24.9.0",
"@nestjs/axios": "^0.1.0",
"@nestjs/common": "^9.0.5",
"@nestjs/core": "^9.0.5",
"@nestjs/graphql": "^10.0.21",
"@nestjs/platform-express": "^9.0.5",
"@nestjs/testing": "^9.0.5",
"@types/express": "^4.17.13",
"@types/jest": "^28.1.6",
"@types/node": "^18.0.6",
"jest": "^28.1.3",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.5.4",
"ts-jest": "^24.2.0",
"ts-loader": "^8.0.0",
"ts-node": "^8.5.2",
"typescript": "^3.7.2"
"rxjs": "^7.5.6",
"ts-jest": "^28.0.7",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},

@@ -57,0 +59,0 @@ "jest": {

@@ -72,5 +72,3 @@ # Google recaptcha module

| `skipIf` | Optional.<br> Type: `boolean` \| `(request) => boolean \| Promise<boolean>` <br> Function that returns true if you allow the request to skip the recaptcha verification. Useful for involing other check methods (e.g. custom privileged API key) or for development or testing |
| `network` | Optional.<br> Type: `GoogleRecaptchaNetwork` \| `boolean`<br> Default: `GoogleRecaptchaNetwork.Google` <br> If your server has trouble connecting to https://google.com then you can set networks:<br> `GoogleRecaptchaNetwork.Google` = 'https://www.google.com/recaptcha/api/siteverify'<br>`GoogleRecaptchaNetwork.Recaptcha` = 'https://recaptcha.net/recaptcha/api/siteverify'<br> or set any api url |
| `applicationType` | **Deprecated.** Module detects it automatically from execution context. Optional.<br> Type: `ApplicationType` <br> Application type affect on type of request argument on `response` provider function <br> Context types:<br> `http` - `(req: express.Request \| fastify.Request) => string \| Promise<string>` <br> `graphql` - `(req: http.IncommingMessage) => string \| Promise<string>` |
| `agent` | **Deprecated.** Use `axiosConfig` option <br> Optional.<br> Type: `https.Agent`<br> If you need to use an agent |
| `network` | Optional.<br> Type: `GoogleRecaptchaNetwork` \| `string`<br> Default: `GoogleRecaptchaNetwork.Google` <br> If your server has trouble connecting to https://google.com then you can set networks:<br> `GoogleRecaptchaNetwork.Google` = 'https://www.google.com/recaptcha/api/siteverify'<br>`GoogleRecaptchaNetwork.Recaptcha` = 'https://recaptcha.net/recaptcha/api/siteverify'<br> or set any api url |
| `score` | Optional.<br> Type: `number` \| `(score: number) => boolean`<br> Score validator for reCAPTCHA v3. <br> `number` - minimum available score. <br> `(score: number) => boolean` - function with custom validation rules. |

@@ -77,0 +75,0 @@ | `actions` | Optional.<br> Type: `string[]`<br> Available action list for reCAPTCHA v3. <br> You can make this check stricter by passing the action property parameter to `@Recaptcha(...)` decorator. |

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc