matterbridge 1.3.10 → 1.3.12

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": "matterbridge",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -59,6 +59,10 @@
59
59
  "import": "./dist/cluster/*.js",
60
60
  "types": "./dist/cluster/*.d.ts"
61
61
  },
62
+ "./history": {
63
+ "import": "./dist/history/export.js",
64
+ "types": "./dist/history/export.d.ts"
65
+ },
62
66
  "./logger": {
63
67
  "import": "./dist/logger/export.js",
64
68
  "types": "./dist/logger/export.d.ts"
@@ -78,6 +82,9 @@
78
82
  "start:help": "node ./dist/cli.js -help",
79
83
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
80
84
  "test:matterbridge": "node --experimental-vm-modules node_modules/jest/bin/jest.js matterbridge.test.ts",
85
+ "test:device": "node --experimental-vm-modules node_modules/jest/bin/jest.js matterbridgeDevice.test.ts",
86
+ "test:platform": "node --experimental-vm-modules node_modules/jest/bin/jest.js matterbridgePlatform.test.ts matterbridgeAccessoryPlatform.test.ts matterbridgeDynamicPlatform.test.ts",
87
+ "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
81
88
  "test:verbose": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose",
82
89
  "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
83
90
  "lint": "eslint --max-warnings=0 .",
@@ -100,7 +107,7 @@
100
107
  "version:patch": "npm version patch",
101
108
  "version:minor": "npm version minor",
102
109
  "version:major": "npm version major",
103
- "install:dependencies": "npm install @project-chip/matter-node.js body-parser express https matter-history node-ansi-logger node-persist-manager ws && npm install --save-dev rimraf",
110
+ "install:dependencies": "npm install @project-chip/matter-node.js express https matter-history node-ansi-logger node-persist-manager ws && npm install --save-dev rimraf",
104
111
  "install:typescript": "npm install --save-dev @types/express @types/node @types/ws typescript && npm run build",
105
112
  "install:eslint": "npm install --save-dev @eslint/js @types/eslint__js typescript-eslint",
106
113
  "install:prettier": "npm install --save-dev prettier eslint-config-prettier eslint-plugin-prettier",
@@ -111,10 +118,9 @@
111
118
  },
112
119
  "dependencies": {
113
120
  "@project-chip/matter-node.js": "^0.9.3",
114
- "body-parser": "^1.20.2",
115
121
  "express": "^4.19.2",
116
122
  "https": "^1.0.0",
117
- "matter-history": "^1.1.2",
123
+ "matter-history": "^1.1.4",
118
124
  "node-ansi-logger": "^1.9.5",
119
125
  "node-persist-manager": "^1.0.7",
120
126
  "ws": "^8.18.0"
@@ -124,16 +130,16 @@
124
130
  "@types/eslint__js": "^8.42.3",
125
131
  "@types/express": "^4.17.21",
126
132
  "@types/jest": "^29.5.12",
127
- "@types/node": "^20.14.9",
133
+ "@types/node": "^20.14.10",
128
134
  "@types/ws": "^8.5.10",
129
135
  "eslint-config-prettier": "^9.1.0",
130
136
  "eslint-plugin-jest": "^28.6.0",
131
137
  "eslint-plugin-prettier": "^5.1.3",
132
138
  "jest": "^29.7.0",
133
139
  "prettier": "^3.3.2",
134
- "rimraf": "^5.0.7",
135
- "ts-jest": "^29.1.5",
140
+ "rimraf": "^6.0.0",
141
+ "ts-jest": "^29.2.0",
136
142
  "typescript": "^5.5.3",
137
- "typescript-eslint": "^7.15.0"
143
+ "typescript-eslint": "^7.16.0"
138
144
  }
139
145
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/css/main.8e9f022b.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCTA,mBAEE,oBAAqB,CADrB,iBAEF,CAKA,cAEE,qBAAsB,CAItB,iBAAkB,CAIlB,wBAAyB,CAPzB,UAAW,CAaX,cAAe,CALf,QAAS,CACT,iBAAkB,CAElB,SAAU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hB,iBAEF,CAGA,GACE,QACF,CAeA,cAKE,wBAAyB,CADzB,qBAAsB,CADtB,4BAGF,CAGA,iCARE,YAAa,CACb,qBAeF,CARA,mBAGE,aAAc,CAGd,KAAM,CAFN,WAAY,CAGZ,aAAc,CAFd,SAGF,CAGA,iBAME,wBAAyB,CADzB,4BAA6B,CAI7B,qBAAsB,CADtB,SAAY,CALZ,UAOF,CAGA,kCAXE,kBAAmB,CADnB,cAAe,CAMf,QAeF,CATA,iBAKE,UAAY,CADZ,WAAY,CADZ,sBAAuB,CAKvB,mBACF,CAGA,qBACE,UAAY,CACZ,eAAiB,CACjB,QAAW,CAGX,gBACF,CAIA,qBAGE,aAAc,CADd,qBAAsB,CAEtB,UAKF,CAGA,uCAXE,YAAa,CAMb,KAAQ,CAFR,QAAW,CAGX,aAAc,CAFd,SAeF,CATA,kBAGE,aAAc,CADd,kBAAmB,CAEnB,WAKF","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","/* App.css */\r\n\r\n/* Tooltip style */\r\n.tooltip-container {\r\n position: relative;\r\n display: inline-block;\r\n}\r\n\r\n/*\r\nwidth: 120px;\r\n*/\r\n.tooltip-text {\r\n visibility: hidden;\r\n background-color: #555;\r\n color: #fff;\r\n text-align: center;\r\n padding: 5px 5px;\r\n border-radius: 6px;\r\n\r\n position: absolute;\r\n z-index: 1;\r\n bottom: calc(100% + 10px);\r\n left: 50%;\r\n margin-left: -60px;\r\n\r\n opacity: 0;\r\n transition: opacity 0.3s;\r\n font-size: 12px;\r\n}\r\n\r\n.tooltip-container:hover {\r\n cursor: pointer;\r\n}\r\n\r\n.tooltip-container:hover .tooltip-text {\r\n visibility: visible;\r\n opacity: 1;\r\n}\r\n\r\n/* StatusIndicator style */\r\n.status-enabled {\r\n background-color: green;\r\n color: white;\r\n padding: 0.2rem;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.status-disabled {\r\n background-color: red;\r\n color: white;\r\n padding: 0.2rem;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.status-information {\r\n background-color: #9e9e9e;\r\n color: white;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 2px;\r\n padding-top: 2px;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.status-warning {\r\n background-color: #e9db18;\r\n color: black;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 2px;\r\n padding-top: 2px;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.status-sponsor {\r\n background-color: #b6409c;\r\n color: white;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 2px;\r\n padding-top: 2px;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.status-blue {\r\n background-color: #5f8c9e;\r\n color: white;\r\n padding: 0.2rem;\r\n border-radius: 0.25rem;\r\n text-align: center;\r\n font-size: 12px;\r\n cursor: pointer;\r\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n/* Home page style */\r\n\r\n.PluginsIconButton {\r\n color: #000000;\r\n padding: 0;\r\n gap: 0;\r\n}\r\n\r\n.HeaderButton {\r\n color: #4CAF50;\r\n}\r\n\r\n/* Table header style */\r\n.main-background {\r\n background-color: #c4c2c2;\r\n}\r\n\r\n/* Header style */\r\n.header {\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\r\n /* Distribute items evenly */\r\n gap: 20px;\r\n margin: 0;\r\n padding: 0;\r\n /* 20px */\r\n height: 40px;\r\n /* Increase height for a more modern look */\r\n}\r\n\r\n/* Navigation style */\r\nnav {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n/* Navigation in Header.js style */\r\n.nav-link {\r\n margin: 0 10px;\r\n font-size: 20px;\r\n text-decoration: none;\r\n /* Remove underline from links */\r\n color: #333;\r\n /* Dark gray color for the links */\r\n transition: color 0.3s ease;\r\n /* Smooth color transition */\r\n}\r\n\r\n.nav-link:hover {\r\n color: #007BFF;\r\n /* Change color to blue when hovering */\r\n}\r\n\r\n/* Table style */\r\ntable {\r\n border-collapse: collapse;\r\n width: 100%;\r\n box-shadow: 5px 5px 10px #888;\r\n}\r\n\r\n/* Table header style */\r\n.table-header {\r\n border: 1px solid #ddd;\r\n padding: 5px;\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n background-color: #4CAF50;\r\n color: white;\r\n text-align: left;\r\n}\r\n\r\n.table-body {\r\n max-height: 100px;\r\n /* Replace with your desired maximum height */\r\n overflow-y: auto;\r\n}\r\n\r\n/* Table footer style */\r\n.table-footer {\r\n border: 1px solid #ddd;\r\n padding: 5px;\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n background-color: #7dac7f;\r\n color: white;\r\n text-align: left;\r\n}\r\n\r\n/* Table content style */\r\n.table-content {\r\n border: 1px solid #ddd;\r\n padding: 5px;\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n text-align: left;\r\n font-size: 14px;\r\n}\r\n\r\n/* Table content style */\r\n.table-content-even {\r\n background-color: #bdbdbd;\r\n}\r\n\r\n/* Table content style */\r\n.table-content-odd {\r\n background-color: #9e9e9e;\r\n}\r\n\r\n/* Table content style for selected rows*/\r\n.table-content-selected {\r\n background-color: #5f8c9e;\r\n}\r\n\r\n/* Color for selected text */\r\n.text-color-selected {\r\n color: #09516d;\r\n}\r\n\r\n/* Color for field text */\r\n.label-color-selected {\r\n color: #000000;\r\n}\r\n\r\n/* Color for field text */\r\n.field-color-selected {\r\n color: #000000;\r\n font-size: 16px;\r\n margin: 0;\r\n margin-top: 5px;\r\n margin-bottom: 20px;\r\n font-weight: 400;\r\n}\r\n\r\n/* H3 style */\r\nh3 {\r\n margin: 0;\r\n}\r\n\r\n/* Mbf table content style \r\n.MbfWindowDiv table,\r\n.MbfWindowDiv table thead,\r\n.MbfWindowDiv table tbody,\r\n.MbfWindowDiv table tr,\r\n.MbfWindowDiv table th,\r\n.MbfWindowDiv table td {\r\n border: none;\r\n box-shadow: none;\r\n}\r\n*/\r\n\r\n/* Define the style for the main div element */\r\n.MbfWindowDiv {\r\n display: flex;\r\n flex-direction: column;\r\n box-shadow: 5px 5px 10px #888;\r\n border: 1px solid #ddd;\r\n background-color: #9e9e9e;\r\n}\r\n\r\n/* Define the style for the main div element */\r\n.MbfWindowDivTable {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1 1 auto;\r\n margin: -1px;\r\n padding: 0;\r\n gap: 0;\r\n overflow: auto;\r\n}\r\n\r\n/* Define the style for the header element */\r\n.MbfWindowHeader {\r\n display: 'flex';\r\n align-items: center;\r\n width: 100%;\r\n /* height: 34px */\r\n border-bottom: 1px solid #ddd;\r\n background-color: #4CAF50;\r\n margin: 0px;\r\n padding: 0px;\r\n box-sizing: border-box;\r\n}\r\n\r\n/* Define the style for the header element */\r\n.MbfWindowFooter {\r\n display: 'flex';\r\n align-items: center;\r\n justify-content: center;\r\n height: 40px;\r\n color: black;\r\n margin: 0px;\r\n padding: 10px;\r\n padding-top: 0px;\r\n}\r\n\r\n/* Define the style for the header text element */\r\n.MbfWindowHeaderText {\r\n color: white;\r\n font-weight: bold;\r\n margin: 0px;\r\n padding: 5px;\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n}\r\n\r\n/* Define the style for the body element */\r\n/* display: 'flex', flexDirection: 'column', flex: '1 1 auto', width: '100%', margin: '0px', padding: '0px', gap: '0px', overflow: 'auto'*/\r\n.MbfWindowBodyColumn {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1 1 auto;\r\n width: 100%;\r\n margin: 0px;\r\n padding: 0px;\r\n gap: 0px;\r\n overflow: auto;\r\n}\r\n\r\n/* Define the style for the body element */\r\n.MbfWindowBodyRow {\r\n display: flex;\r\n flex-direction: row;\r\n flex: 1 1 auto;\r\n height: 100%;\r\n margin: 0px;\r\n padding: 0px;\r\n gap: 0px;\r\n overflow: auto;\r\n}\r\n\r\n/*\r\n@media (max-width: 600px) {\r\n .header {\r\n flex-direction: column;\r\n }\r\n\r\n nav {\r\n margin-top: 20px;\r\n }\r\n}\r\n*/"],"names":[],"sourceRoot":""}