pushy-electron 1.0.13 → 1.0.15

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/lib/Pushy.d.ts CHANGED
@@ -6,9 +6,13 @@ declare namespace Pushy {
6
6
 
7
7
  type Listener<T> = (data: T) => void
8
8
 
9
+ type ConnectivityListener<T> = (connected: boolean, error: T) => void
10
+
9
11
  function listen(): void
10
12
 
11
13
  function setNotificationListener<T>(l: Listener<T>): void
14
+
15
+ function setConnectivityListener<T>(l: ConnectivityListener<T>): void
12
16
 
13
17
  function register(opts: { appId: string }): Promise<DeviceToken>
14
18
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushy-electron",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
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.13",
9
+ "version": "1.0.15",
10
10
  "scripts": {
11
11
  "dev": "electron electron.js"
12
12
  },
package/util/storage.js CHANGED
@@ -12,6 +12,9 @@ module.exports = {
12
12
  },
13
13
  set(key, value) {
14
14
  return getLocalStorage().set(key, value);
15
+ },
16
+ delete(key) {
17
+ return getLocalStorage().delete(key);
15
18
  }
16
19
  };
17
20