homebridge-flume 1.2.8-beta.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,21 @@
2
2
 
3
3
  All notable changes to homebridge-flume will be documented in this file.
4
4
 
5
- ## BETA
5
+ ## 2.0.2 (2022-05-28)
6
+
7
+ ### Changed
8
+
9
+ - Bump `node` recommended versions to v14.19.3 or v16.15.0
10
+ - Updated dependencies
11
+
12
+ ## 2.0.1 (2022-04-30)
13
+
14
+ ### Changed
15
+
16
+ - Bump `axios` to v0.27.2
17
+ - Bump `node` recommended versions to v14.19.1 or v16.15.0
18
+
19
+ ## 2.0.0 (2022-04-23)
6
20
 
7
21
  ### Potentially Breaking Changes
8
22
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Darrin Thomas & Ben Potter
3
+ Copyright (c) 2022 Darrin Thomas & Ben Potter
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/platform.js CHANGED
@@ -26,8 +26,8 @@ export default class {
26
26
  // Configuration objects for accessories
27
27
  this.devicesInHB = new Map();
28
28
 
29
- // Make sure user is running Homebridge v1.3 or above
30
- if (!api?.versionGreaterOrEqual?.('1.4.0')) {
29
+ // Make sure user is running Homebridge v1.4 or above
30
+ if (!api?.versionGreaterOrEqual('1.4.0')) {
31
31
  throw new Error(platformLang.hbVersionFail);
32
32
  }
33
33
 
@@ -38,7 +38,7 @@ export default class {
38
38
 
39
39
  // Log some environment info for debugging
40
40
  this.log(
41
- '%s v%s | System %s | Node %s | HB v%s | HAPNodeJS v%s%s...',
41
+ '%s v%s | System %s | Node %s | HB v%s | HAPNodeJS v%s...',
42
42
  platformLang.initialising,
43
43
  plugin.version,
44
44
  process.platform,
@@ -104,7 +104,6 @@ export default class {
104
104
  break;
105
105
  case 'name':
106
106
  case 'platform':
107
- case 'plugin_map':
108
107
  break;
109
108
  case 'refreshInterval': {
110
109
  if (typeof val === 'string') {
@@ -132,15 +131,15 @@ export default class {
132
131
  async pluginSetup() {
133
132
  // Plugin has finished initialising so now onto setup
134
133
  try {
134
+ // Log that the plugin initialisation has been successful
135
+ this.log('%s.', platformLang.initialised);
136
+
135
137
  // If the user has disabled the plugin then remove all accessories
136
138
  if (this.config.disablePlugin) {
137
139
  this.devicesInHB.forEach((accessory) => this.removeAccessory(accessory));
138
140
  throw new Error(platformLang.disabled);
139
141
  }
140
142
 
141
- // Log that the plugin initialisation has been successful
142
- this.log('%s.', platformLang.initialised);
143
-
144
143
  // Ensure username and password have been provided
145
144
  if (
146
145
  !this.config.username
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-flume",
3
3
  "alias": "Flume",
4
- "version": "1.2.8-beta.0",
4
+ "version": "2.0.2",
5
5
  "author": {
6
6
  "name": "Ben Potter",
7
7
  "email": "bwp91@icloud.com"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "engines": {
31
31
  "homebridge": "^1.4.0",
32
- "node": "^14.19.0 || ^16.14.0"
32
+ "node": "^14.19.3 || ^16.15.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -58,13 +58,13 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "@homebridge/plugin-ui-utils": "^0.0.19",
61
- "axios": "^0.26.1",
61
+ "axios": "^0.27.2",
62
62
  "jwt-decode": "^3.1.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "eslint-config-airbnb": "^19.0.4",
66
66
  "eslint-plugin-import": "^2.26.0",
67
67
  "eslint-plugin-sort-exports": "^0.6.0",
68
- "eslint": "^8.14.0"
68
+ "eslint": "^8.16.0"
69
69
  }
70
70
  }