dt-common-device 13.0.22 → 13.0.25

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.
@@ -19,5 +19,6 @@ export declare const CONNECTION_PROVIDERS: {
19
19
  readonly DORMAKABA: "Dormakaba";
20
20
  readonly DUSAW: "Dusaw";
21
21
  readonly LOCKLY: "Lockly";
22
+ readonly SIFELY: "Sifely";
22
23
  readonly CHECKFRONT: "Checkfront";
23
24
  };
@@ -25,5 +25,6 @@ exports.CONNECTION_PROVIDERS = {
25
25
  DORMAKABA: "Dormakaba",
26
26
  DUSAW: "Dusaw",
27
27
  LOCKLY: "Lockly",
28
+ SIFELY: "Sifely",
28
29
  CHECKFRONT: "Checkfront",
29
30
  };
@@ -27,5 +27,6 @@ export declare enum ConnectionProvider {
27
27
  Devicethread = "Devicethread",
28
28
  Dormakaba = "Dormakaba",
29
29
  Dusaw = "Dusaw",
30
- Lockly = "Lockly"
30
+ Lockly = "Lockly",
31
+ Sifely = "Sifely"
31
32
  }
@@ -18,4 +18,5 @@ var ConnectionProvider;
18
18
  ConnectionProvider["Dormakaba"] = "Dormakaba";
19
19
  ConnectionProvider["Dusaw"] = "Dusaw";
20
20
  ConnectionProvider["Lockly"] = "Lockly";
21
+ ConnectionProvider["Sifely"] = "Sifely";
21
22
  })(ConnectionProvider || (exports.ConnectionProvider = ConnectionProvider = {}));
@@ -106,7 +106,7 @@ class RateLimitUtils {
106
106
  maxTimeoutWindowMs: 120000,
107
107
  });
108
108
  configs.set(constants_1.CONNECTION_PROVIDERS.VERDANT, {
109
- maxRequests: 5,
109
+ maxRequests: 60,
110
110
  windowMs: 60000,
111
111
  provider: constants_1.CONNECTION_PROVIDERS.VERDANT,
112
112
  maxTimeoutWindowMs: 120000,
@@ -135,6 +135,12 @@ class RateLimitUtils {
135
135
  provider: constants_1.CONNECTION_PROVIDERS.MEWS,
136
136
  maxTimeoutWindowMs: 120000,
137
137
  });
138
+ configs.set(constants_1.CONNECTION_PROVIDERS.SIFELY, {
139
+ maxRequests: 15,
140
+ windowMs: 60000, // 1 minute
141
+ provider: constants_1.CONNECTION_PROVIDERS.SIFELY,
142
+ maxTimeoutWindowMs: 120000,
143
+ });
138
144
  return configs;
139
145
  }
140
146
  static async isRateLimitAllowed(connectionId, provider, rateLimitConfigs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.0.22",
3
+ "version": "13.0.25",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -10,9 +10,9 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "build": "tsc",
13
- "patch": "npm version patch && npm run build && npm publish && git push",
14
- "minor": "npm version minor && npm run build && npm publish && git push",
15
- "major": "npm version major && npm run build && npm publish && git push",
13
+ "patch": "npm login && npm version patch && npm run build && npm publish && git push",
14
+ "minor": "npm login && npm version minor && npm run build && npm publish && git push",
15
+ "major": "npm login && npm version major && npm run build && npm publish && git push",
16
16
  "security:audit": "npm audit --audit-level=moderate",
17
17
  "security:fix": "npm audit fix",
18
18
  "security:check": "npm audit && npm outdated",