-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
119 lines (119 loc) · 2.98 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "nestjs-real-ip",
"author": "Alex Kalashnikov",
"version": "3.0.1",
"description": "A concise decorator for retrieving an IP address from http request with Nest.js controller method",
"keywords": [
"nestjs",
"decorator",
"request ip",
"ip",
"address",
"request",
"proxy",
"client",
"header",
"X-Client-IP",
"X-Forwarded-For",
"CF-Connecting-IP",
"Fastly-Client-IP",
"True-Client-IP",
"X-Real-IP",
"X-Cluster-Client-IP",
"X-Forwarded",
"Forwarded-For",
"connection.remoteAddress",
"connection.socket.remoteAddress",
"req.info.remoteAddress",
"ipv4",
"ipv6"
],
"homepage": "https://github.com/p0vidl0/nestjs-real-ip",
"bugs": {
"url": "https://github.com/p0vidl0/nestjs-real-ip/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/p0vidl0/nestjs-real-ip.git"
},
"files": [
"dist"
],
"main": "./dist/src/index.js",
"scripts": {
"build": "tsc",
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix && prettier --write \"{src,__tests__}/**/*.ts\"",
"test": "jest",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
"version": "git add -A src",
"postversion": "git push && git push --tags"
},
"dependencies": {
"@supercharge/request-ip": "^1.2.0"
},
"peerDependencies": {
"@nestjs/common": ">=8"
},
"devDependencies": {
"@jest/types": "^29.5.0",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/platform-fastify": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/jest": "^29.5.2",
"@types/node": "^18.0.4",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.19.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-security": "^1.5.0",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^29.5.0",
"lodash": "^4.17.21",
"prettier": "^2.7.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.6",
"supertest": "^6.2.4",
"ts-jest": "^29.1.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.8.0",
"webpack": "^5.87.0"
},
"license": "MIT",
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"roots": [
"__tests__"
],
"rootDir": ".",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"testEnvironment": "node",
"testTimeout": 30000,
"maxConcurrency": 1,
"maxWorkers": 1,
"coverageDirectory": "../coverage",
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,ts}",
"!**/dist/**",
"!**/vendor/**",
"!**/node_modules/**",
"!**/__tests__/helpers/**"
]
}
}