drapcode-utility 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -14,34 +14,32 @@
14
14
  "keywords": [
15
15
  "drapcode",
16
16
  "constant",
17
- "logger",
18
- "redis"
17
+ "logger"
19
18
  ],
20
19
  "author": "Drapcode",
21
20
  "license": "ISC",
22
21
  "devDependencies": {
23
22
  "@types/lodash": "^4.14.179",
23
+ "@types/mime-types": "^2.1.4",
24
24
  "del-cli": "^5.0.0",
25
25
  "typescript": "^4.0.2"
26
26
  },
27
27
  "dependencies": {
28
+ "@aws-sdk/client-kms": "^3.540.0",
29
+ "@aws-sdk/client-s3": "^3.499.0",
30
+ "@aws-sdk/lib-storage": "^3.499.0",
28
31
  "@types/cookie-session": "^2.0.41",
29
32
  "@types/express": "^4.17.7",
30
- "@types/redis": "^2.8.27",
31
33
  "@types/voca": "^1.4.2",
32
- "aws-sdk": "^2.1324.0",
33
34
  "axios": "^1.1.2",
34
35
  "drapcode-constant": "^1.2.4",
35
36
  "drapcode-logger": "^1.0.4",
36
37
  "drapcode-redis": "^1.0.4",
37
38
  "express": "^4.17.1",
38
- "express-rate-limit": "^5.1.3",
39
- "express-validator": "^6.6.1",
40
39
  "lodash": "^4.17.21",
40
+ "mime-types": "^2.1.35",
41
41
  "moment": "^2.29.0",
42
- "redis": "^3.0.2",
43
42
  "stringify-object": "^3.3.0",
44
- "voca": "^1.4.0",
45
- "winston": "^3.8.2"
43
+ "voca": "^1.4.0"
46
44
  }
47
45
  }
@@ -1 +0,0 @@
1
- export declare const apiLimiter: any;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.apiLimiter = void 0;
4
- var rateLimit = require("express-rate-limit");
5
- exports.apiLimiter = rateLimit({
6
- windowMs: 1 * 60 * 1000,
7
- max: 5,
8
- message: "You have crossed your limit. please try after some time",
9
- headers: true,
10
- keyGenerator: function (req, res) {
11
- var subdomains = req.subdomains;
12
- var ip = req.headers["x-forwarded-for"] ||
13
- req.connection.remoteAddress ||
14
- req.socket.remoteAddress ||
15
- (req.connection.socket ? req.connection.socket.remoteAddress : null);
16
- var key = Array.isArray(subdomains) && subdomains.length
17
- ? ip + "-" + subdomains[1]
18
- : ip;
19
- return key;
20
- },
21
- });