@suprsend/web-sdk 4.0.0 → 4.0.1
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/es/index.js +88 -66
- package/dist/es/index.js.map +1 -1
- package/dist/types/utils.d.ts +1 -0
- package/dist/types/webpush.d.ts +2 -0
- package/package.json +1 -1
package/dist/types/utils.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export declare function windowSupport(): boolean;
|
|
|
12
12
|
export declare function setLocalStorageData(key: string, value: string): void;
|
|
13
13
|
export declare function getLocalStorageData(key: string): any;
|
|
14
14
|
export declare function removeLocalStorageData(key: string): void;
|
|
15
|
+
export declare function sha256Hash(input: string): Promise<string>;
|
package/dist/types/webpush.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SuprSend } from './index';
|
|
2
2
|
|
|
3
|
+
export declare const SUPRSEND_ENDPOINT_KEY = "ss_wp_hash";
|
|
3
4
|
export default class WebPush {
|
|
4
5
|
private config;
|
|
5
6
|
constructor(config: SuprSend);
|
|
6
7
|
private getPushSubscription;
|
|
8
|
+
private checkAndUpdateOnServer;
|
|
7
9
|
private handleRegisterPush;
|
|
8
10
|
/**
|
|
9
11
|
* Used to register push service. This method will
|