pushy-electron 1.0.17 → 1.0.18

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/.DS_Store ADDED
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushy-electron",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -1164,9 +1164,9 @@
1164
1164
  "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
1165
1165
  },
1166
1166
  "ws": {
1167
- "version": "7.5.8",
1168
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.8.tgz",
1169
- "integrity": "sha512-ri1Id1WinAX5Jqn9HejiGb8crfRio0Qgu8+MtL36rlTA6RLsMdWt1Az/19A2Qij6uSHUMphEFaTKa4WG+UNHNw=="
1167
+ "version": "7.5.10",
1168
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
1169
+ "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="
1170
1170
  },
1171
1171
  "xtend": {
1172
1172
  "version": "4.0.2",
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.17",
9
+ "version": "1.0.18",
10
10
  "scripts": {
11
11
  "dev": "electron electron.js"
12
12
  },
package/ssl/.DS_Store ADDED
Binary file
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) {