pushy-electron 1.0.17 → 1.0.19
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/npm-shrinkwrap.json +1560 -8
- package/package.json +2 -2
- package/util/mqtt.js +3 -3
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"main": "lib/Pushy.js",
|
|
7
7
|
"typings": "lib/Pushy.d.ts",
|
|
8
8
|
"//": "Also update version in config.js",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.19",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "electron electron.js"
|
|
12
12
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"packpath": "^0.1.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"electron": "^
|
|
20
|
+
"electron": "^28.3.2"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
23
|
"url": "https://github.com/pushy/pushy-electron/issues"
|
package/util/mqtt.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = {
|
|
|
36
36
|
console.log('[Pushy] MQTT Error\n', err);
|
|
37
37
|
|
|
38
38
|
// Invoke connectivity listener (in renderer process)
|
|
39
|
-
this.Pushy.onConnectivityChanged(this.client.connected, err);
|
|
39
|
+
this.Pushy.onConnectivityChanged((this.client ? this.client.connected : false), err);
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
onClose() {
|
|
@@ -44,7 +44,7 @@ module.exports = {
|
|
|
44
44
|
console.log(`[Pushy] Disconnected from server`);
|
|
45
45
|
|
|
46
46
|
// Invoke connectivity listener (in renderer process)
|
|
47
|
-
this.Pushy.onConnectivityChanged(this.client.connected);
|
|
47
|
+
this.Pushy.onConnectivityChanged((this.client ? this.client.connected : false));
|
|
48
48
|
},
|
|
49
49
|
|
|
50
50
|
onConnect() {
|
|
@@ -52,7 +52,7 @@ module.exports = {
|
|
|
52
52
|
console.log(`[Pushy] Connected successfully (device token ${localStorage.get(config.storageKeys.token)})`);
|
|
53
53
|
|
|
54
54
|
// Invoke connectivity listener (in renderer process)
|
|
55
|
-
this.Pushy.onConnectivityChanged(this.client.connected);
|
|
55
|
+
this.Pushy.onConnectivityChanged((this.client ? this.client.connected : false));
|
|
56
56
|
},
|
|
57
57
|
|
|
58
58
|
onMessage(topic, message) {
|