@nestlab/google-recaptcha
Advanced tools
Comparing version 2.1.2 to 3.0.0
{ | ||
"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. | |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
78536
80
3
16
739
278
2