homebridge-securitysystem 7.5.0 → 7.5.1-beta.2

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.
@@ -1,4 +1,4 @@
1
- name: Create version
1
+ name: Bump version
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
@@ -18,8 +18,8 @@ on:
18
18
  description: New build for prerelease
19
19
 
20
20
  jobs:
21
- create-version:
22
- name: Create version
21
+ bump-version:
22
+ name: Bump version
23
23
  runs-on: ubuntu-latest
24
24
  permissions:
25
25
  contents: write
@@ -46,7 +46,7 @@ jobs:
46
46
  branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
47
47
  commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
48
48
  title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
49
- body: Automated pull request triggered by a new version update.
49
+ body: Automated pull request triggered by a new release.
50
50
  labels: new-release,ignore-for-release
51
51
  reviewers: MiguelRipoll23
52
52
  draft: true
@@ -1,4 +1,4 @@
1
- name: Create release
1
+ name: Publish release
2
2
 
3
3
  on:
4
4
  pull_request:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-securitysystem",
3
3
  "displayName": "Homebridge Security System",
4
- "version": "7.5.0",
4
+ "version": "7.5.1-beta.2",
5
5
  "description": "Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -42,7 +42,6 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "express": "^4.17.1",
45
- "express-rate-limit": "^6.2.1",
46
45
  "node-fetch": "^2.6.7",
47
46
  "node-persist": "^3.0.5"
48
47
  },
package/src/index.js CHANGED
@@ -4,7 +4,6 @@ const storage = require("node-persist");
4
4
  const { spawn } = require("child_process");
5
5
  const fetch = require("node-fetch");
6
6
  const express = require("express");
7
- const rateLimit = require("express-rate-limit");
8
7
 
9
8
  const packageJson = require("../package.json");
10
9
  const options = require("./utils/options.js");
@@ -1401,15 +1400,6 @@ SecuritySystem.prototype.sendResultResponse = function (res, success) {
1401
1400
  };
1402
1401
 
1403
1402
  SecuritySystem.prototype.startServer = async function () {
1404
- const apiLimiter = rateLimit({
1405
- windowMs: 1 * 60 * 1000,
1406
- max: 100,
1407
- standardHeaders: true,
1408
- legacyHeaders: false,
1409
- });
1410
-
1411
- app.use(apiLimiter);
1412
-
1413
1403
  app.get("/", (req, res) => {
1414
1404
  res.redirect(
1415
1405
  "https://github.com/MiguelRipoll23/homebridge-securitysystem/wiki/Server"
@@ -1952,7 +1942,7 @@ SecuritySystem.prototype.triggerIfModeSet = function (
1952
1942
  ) {
1953
1943
  this.updateTripSwitch(value, originTypes.REGULAR_SWITCH, false, callback);
1954
1944
  } else {
1955
- this.log.warn("Security System (Trip mode not set)");
1945
+ this.log.debug("Security System (Trip mode not set)");
1956
1946
  callback(HK_NOT_ALLOWED_IN_CURRENT_STATE, false);
1957
1947
  }
1958
1948
  } else {