Skip to content

Commit beacc2d

Browse files
committed
feat(lib): add hpp
1 parent 9b8e16f commit beacc2d

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"googleapis": "^67.0.0",
5252
"handlebars": "^4.7.6",
5353
"helmet": "^4.4.1",
54+
"hpp": "^0.2.3",
5455
"http-errors": "^1.8.0",
5556
"jsonwebtoken": "^8.5.1",
5657
"lodash": "^4.17.20",
@@ -66,6 +67,7 @@
6667
"pg-hstore": "^2.3.3",
6768
"pug": "^3.0.0",
6869
"redis": "^3.0.2",
70+
"request-ip": "^2.1.3",
6971
"sequelize": "^6.5.0",
7072
"sequelize-cli": "^6.2.0",
7173
"slugify": "^1.4.6",
@@ -95,6 +97,7 @@
9597
"@types/exceljs": "^1.3.0",
9698
"@types/express": "^4.17.11",
9799
"@types/helmet": "^4.0.0",
100+
"@types/hpp": "^0.2.1",
98101
"@types/http-errors": "^1.8.0",
99102
"@types/jest": "^26.0.20",
100103
"@types/jsonwebtoken": "^8.5.0",
@@ -107,6 +110,7 @@
107110
"@types/nodemailer": "^6.4.0",
108111
"@types/nodemailer-mailgun-transport": "^1.4.2",
109112
"@types/redis": "^2.8.28",
113+
"@types/request-ip": "^0.0.35",
110114
"@types/sequelize": "^4.28.9",
111115
"@types/supertest": "^2.0.10",
112116
"@types/swagger-jsdoc": "^6.0.0",

yarn.lock

+36-2
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,13 @@
13941394
dependencies:
13951395
helmet "*"
13961396

1397+
"@types/hpp@^0.2.1":
1398+
version "0.2.1"
1399+
resolved "https://registry.yarnpkg.com/@types/hpp/-/hpp-0.2.1.tgz#76b270089b0995d5a4e950b75213247e724d8c8e"
1400+
integrity sha512-+46c8i+nXpoJn8GJnZTvZUfggz4bKOlTtEXIxWTFb7xZI9onahMUnZ+xNdjc4vzSM/zUaUYtuEsY8ysgv68rXQ==
1401+
dependencies:
1402+
"@types/express" "*"
1403+
13971404
"@types/http-errors@^1.8.0":
13981405
version "1.8.0"
13991406
resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-1.8.0.tgz#682477dbbbd07cd032731cb3b0e7eaee3d026b69"
@@ -1535,6 +1542,13 @@
15351542
dependencies:
15361543
"@types/node" "*"
15371544

1545+
"@types/request-ip@^0.0.35":
1546+
version "0.0.35"
1547+
resolved "https://registry.yarnpkg.com/@types/request-ip/-/request-ip-0.0.35.tgz#c30e832533296151c221532c48c10591b7edd468"
1548+
integrity sha512-FtI7lv1EDaZnWmaCU7ZTwfOpW76EioocaWyiSeWdfW1cDPZYzzij781A5O/UeHQUN9yjtjEcD3StTzZjKG0XEA==
1549+
dependencies:
1550+
"@types/node" "*"
1551+
15381552
"@types/sequelize@^4.28.9":
15391553
version "4.28.9"
15401554
resolved "https://registry.yarnpkg.com/@types/sequelize/-/sequelize-4.28.9.tgz#64d0fad07de2f30ef11003a8c2ef5ac0321de115"
@@ -4878,6 +4892,14 @@ hosted-git-info@^3.0.6:
48784892
dependencies:
48794893
lru-cache "^6.0.0"
48804894

4895+
hpp@^0.2.3:
4896+
version "0.2.3"
4897+
resolved "https://registry.yarnpkg.com/hpp/-/hpp-0.2.3.tgz#33bcc5fda713d2a962173c84f79a915a739b57bc"
4898+
integrity sha512-4zDZypjQcxK/8pfFNR7jaON7zEUpXZxz4viyFmqjb3kWNWAHsLEUmWXcdn25c5l76ISvnD6hbOGO97cXUI3Ryw==
4899+
dependencies:
4900+
lodash "^4.17.12"
4901+
type-is "^1.6.12"
4902+
48814903
html-encoding-sniffer@^2.0.1:
48824904
version "2.0.1"
48834905
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3"
@@ -5476,6 +5498,11 @@ is@^3.2.1:
54765498
resolved "https://registry.yarnpkg.com/is/-/is-3.3.0.tgz#61cff6dd3c4193db94a3d62582072b44e5645d79"
54775499
integrity sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==
54785500

5501+
is_js@^0.9.0:
5502+
version "0.9.0"
5503+
resolved "https://registry.yarnpkg.com/is_js/-/is_js-0.9.0.tgz#0ab94540502ba7afa24c856aa985561669e9c52d"
5504+
integrity sha1-CrlFQFArp6+iTIVqqYVWFmnpxS0=
5505+
54795506
54805507
version "0.0.1"
54815508
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
@@ -6438,7 +6465,7 @@ lodash.uniq@^4.5.0:
64386465
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
64396466
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
64406467

6441-
lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5:
6468+
lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5:
64426469
version "4.17.20"
64436470
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
64446471
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
@@ -8408,6 +8435,13 @@ repeating@^2.0.0:
84088435
dependencies:
84098436
is-finite "^1.0.0"
84108437

8438+
request-ip@^2.1.3:
8439+
version "2.1.3"
8440+
resolved "https://registry.yarnpkg.com/request-ip/-/request-ip-2.1.3.tgz#99ab2bafdeaf2002626e28083cb10597511d9e14"
8441+
integrity sha512-J3qdE/IhVM3BXkwMIVO4yFrvhJlU3H7JH16+6yHucadT4fePnR8dyh+vEs6FIx0S2x5TCt2ptiPfHcn0sqhbYQ==
8442+
dependencies:
8443+
is_js "^0.9.0"
8444+
84118445
84128446
version "1.1.4"
84138447
resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f"
@@ -9665,7 +9699,7 @@ type-fest@^0.8.1:
96659699
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
96669700
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
96679701

9668-
type-is@^1.6.4, type-is@~1.6.17, type-is@~1.6.18:
9702+
type-is@^1.6.12, type-is@^1.6.4, type-is@~1.6.17, type-is@~1.6.18:
96699703
version "1.6.18"
96709704
resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
96719705
integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==

0 commit comments

Comments
 (0)