@suprsend/web-sdk 4.2.0 → 4.3.0
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 +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/types/api.d.ts +0 -1
- package/dist/types/feed.d.ts +0 -1
- package/dist/types/main.d.ts +0 -1
- package/dist/types/preferences.d.ts +0 -1
- package/dist/types/user.d.ts +0 -1
- package/dist/types/utils.d.ts +1 -2
- package/dist/types/webpush.d.ts +0 -1
- package/package.json +6 -6
package/dist/types/api.d.ts
CHANGED
package/dist/types/feed.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Emitter } from 'mitt';
|
|
2
2
|
import { default as SuprSend } from './main';
|
|
3
3
|
import { IFeedOptions, IInboxFetchOptions, InboxEmitterEvents, ApiResponse, IFeedData } from './interface';
|
|
4
|
-
|
|
5
4
|
export default class FeedsFactory {
|
|
6
5
|
private config;
|
|
7
6
|
feedInstances: Feed[];
|
package/dist/types/main.d.ts
CHANGED
package/dist/types/user.d.ts
CHANGED
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ApiResponse, AppInfo, ClientUserAgentConfig, Dictionary, ResponseOptions } from './interface';
|
|
2
|
-
|
|
3
2
|
export declare function uuid(): string;
|
|
4
3
|
export declare function epochMs(): number;
|
|
5
4
|
export declare function isObjectEmpty(objectName: Dictionary): boolean;
|
|
6
5
|
export declare function isArrayEmpty(arrayName: unknown[]): boolean;
|
|
7
|
-
export declare function urlB64ToUint8Array(base64String: string): Uint8Array
|
|
6
|
+
export declare function urlB64ToUint8Array(base64String: string): Uint8Array<ArrayBuffer>;
|
|
8
7
|
export declare function debounce<T extends unknown[], U>(callback: (...args: T) => PromiseLike<U> | U, wait: number): (...args: T) => Promise<U>;
|
|
9
8
|
export declare function debounceByType(func: any, wait: any): (...args: any[]) => any;
|
|
10
9
|
export declare function getResponsePayload(options: ResponseOptions): ApiResponse;
|
package/dist/types/webpush.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suprsend/web-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "The client side javascript library for interacting with SuprSend",
|
|
5
5
|
"author": "SuprSend Developers",
|
|
6
6
|
"type": "module",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"typings": "./dist/types/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
15
|
"import": "./dist/es/index.js",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"require": "./dist/cjs/index.cjs",
|
|
17
|
+
"default": "./dist/es/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"rimraf": "4.4.1",
|
|
49
49
|
"typescript": "^5.5.3",
|
|
50
50
|
"typescript-eslint": "^7.16.1",
|
|
51
|
-
"vite": "^
|
|
52
|
-
"vite-plugin-dts": "^
|
|
51
|
+
"vite": "^6.4.2",
|
|
52
|
+
"vite-plugin-dts": "^4.5.4"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"jwt-decode": "3.1.2",
|