Skip to content

Commit 6596126

Browse files
committed
Removed unused dev dependencies. Updated readme.
1 parent 1ae82ca commit 6596126

File tree

3 files changed

+9
-65
lines changed

3 files changed

+9
-65
lines changed

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@ export class AppModule {
3636

3737
**Configuration options**
3838

39-
| Property | Type | Description |
40-
|-------------------|--------------------------------------------------------|-------------|
41-
| `secretKey` | string | **Required.** Google recaptcha secret key |
42-
| `response` | (request) => string | **Required.** Function that returns response (recaptcha token) by request |
43-
| `skipIf` | boolean \| (request) => boolean \| Promise\<boolean\> | Optional. 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 |
44-
| `useRecaptchaNet` | boolean | Optional. If your server has trouble connecting to https://www.google.com. You can use https://recaptcha.net instead, just set true |
45-
| `agent` | https.Agent | Optional. If you need to use an agent |
46-
39+
| Property | Description |
40+
|-------------------|-------------|
41+
| `secretKey` | **Required.**<br> Type: `string`<br> Google recaptcha secret key |
42+
| `response` | **Required.**<br> Type: `(request) => string`<br> Function that returns response (recaptcha token) by request |
43+
| `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 |
44+
| `useRecaptchaNet` | Optional.<br> Type: `boolean`<br> If your server has trouble connecting to https://www.google.com. You can use https://recaptcha.net instead, just set true |
45+
| `agent` | Optional.<br> Type: `https.Agent`<br> If you need to use an agent |
4746

4847
If you want import configs from your [ConfigService](https://docs.nestjs.com/techniques/configuration#getting-started) via [custom getter function](https://docs.nestjs.com/techniques/configuration#custom-getter-functions) that will return `GoogleRecaptchaModuleOptions` object.
4948

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestlab/google-recaptcha",
3-
"version": "1.1.10",
3+
"version": "1.1.11",
44
"description": "Google recaptcha module for NestJS.",
55
"keywords": [
66
"nest",
@@ -41,17 +41,13 @@
4141
"@nestjs/testing": "^6.11.11",
4242
"@types/jest": "^24.9.1",
4343
"@types/node": "^12.12.14",
44-
"dts-bundle-webpack": "^1.0.2",
4544
"jest": "^24.9.0",
4645
"reflect-metadata": "^0.1.13",
4746
"rxjs": "^6.5.4",
4847
"ts-jest": "^24.2.0",
4948
"ts-loader": "^8.0.0",
5049
"ts-node": "^8.5.2",
51-
"typescript": "^3.7.2",
52-
"webpack": "^4.43.0",
53-
"webpack-cli": "^3.3.12",
54-
"webpack-node-externals": "^1.7.2"
50+
"typescript": "^3.7.2"
5551
},
5652
"jest": {
5753
"moduleFileExtensions": [

webpack.config.js

-51
This file was deleted.

0 commit comments

Comments
 (0)