homebridge-flume 2.0.3 → 2.0.6
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/.eslintrc.cjs +6 -3
- package/CHANGELOG.md +19 -0
- package/lib/utils/functions.js +1 -1
- package/package.json +7 -6
package/.eslintrc.cjs
CHANGED
|
@@ -3,21 +3,24 @@ module.exports = {
|
|
|
3
3
|
es2022: true,
|
|
4
4
|
node: true,
|
|
5
5
|
},
|
|
6
|
-
extends: ['airbnb'],
|
|
6
|
+
extends: ['airbnb-base'],
|
|
7
7
|
parserOptions: {
|
|
8
|
-
ecmaVersion:
|
|
8
|
+
ecmaVersion: 13,
|
|
9
9
|
sourceType: 'module',
|
|
10
10
|
},
|
|
11
|
-
plugins: ['import', 'sort-exports'],
|
|
11
|
+
plugins: ['import', 'import-newlines', 'sort-exports'],
|
|
12
12
|
rules: {
|
|
13
13
|
camelcase: 'off',
|
|
14
14
|
'import/extensions': ['error', { js: 'always', json: 'always' }],
|
|
15
15
|
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
|
|
16
|
+
'import-newlines/enforce': ['error', 3],
|
|
17
|
+
indent: ['error', 2, { SwitchCase: 1 }],
|
|
16
18
|
'max-len': 'off',
|
|
17
19
|
'new-cap': 0,
|
|
18
20
|
quotes: ['error', 'single'],
|
|
19
21
|
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 1, maxEOF: 0 }],
|
|
20
22
|
'no-param-reassign': 0,
|
|
21
23
|
'sort-exports/sort-exports': ['warn', { sortDir: 'asc' }],
|
|
24
|
+
'sort-imports': ['warn', { ignoreDeclarationSort: true }],
|
|
22
25
|
},
|
|
23
26
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to homebridge-flume will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 2.0.6 (2022-08-23)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Bump `node` recommended versions to v14.20.0 or v16.17.0
|
|
10
|
+
- Bump `homebridge` recommended version to v1.5.0
|
|
11
|
+
|
|
12
|
+
## 2.0.5 (2022-06-26)
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 2.0.4 (2022-06-21)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Bump `node` recommended versions to v14.19.3 or v16.15.1
|
|
23
|
+
|
|
5
24
|
## 2.0.3 (2022-05-28)
|
|
6
25
|
|
|
7
26
|
### Changed
|
package/lib/utils/functions.js
CHANGED
|
@@ -2,7 +2,7 @@ const hasProperty = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, pro
|
|
|
2
2
|
|
|
3
3
|
const parseError = (err, hideStack = []) => {
|
|
4
4
|
let toReturn = err.message;
|
|
5
|
-
if (err?.stack
|
|
5
|
+
if (err?.stack?.length > 0 && !hideStack.includes(err.message)) {
|
|
6
6
|
const stack = err.stack.split('\n');
|
|
7
7
|
if (stack[1]) {
|
|
8
8
|
toReturn += stack[1].replace(' ', '');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-flume",
|
|
3
3
|
"alias": "Flume",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ben Potter",
|
|
7
7
|
"email": "bwp91@icloud.com"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"rebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"homebridge": "^1.
|
|
32
|
-
"node": "^14.
|
|
31
|
+
"homebridge": "^1.5.0",
|
|
32
|
+
"node": "^14.20.0 || ^16.17.0"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
@@ -62,9 +62,10 @@
|
|
|
62
62
|
"jwt-decode": "^3.1.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"eslint-config-airbnb": "^
|
|
65
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
66
66
|
"eslint-plugin-import": "^2.26.0",
|
|
67
|
-
"eslint-plugin-
|
|
68
|
-
"eslint": "^
|
|
67
|
+
"eslint-plugin-import-newlines": "^1.2.3",
|
|
68
|
+
"eslint-plugin-sort-exports": "^0.7.0",
|
|
69
|
+
"eslint": "^8.22.0"
|
|
69
70
|
}
|
|
70
71
|
}
|