@jolibox/ads 1.3.5-beta.2 → 1.3.5-beta.3
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/afg/index.d.ts +1 -1
- package/dist/type/base.d.ts +3 -3
- package/package.json +4 -4
package/dist/afg/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class JoliboxAdsForGame {
|
|
|
15
15
|
private adsIsShowing;
|
|
16
16
|
private lastAdBreak?;
|
|
17
17
|
private initializedTimeStamp;
|
|
18
|
-
constructor(context?: IAdsContext<'GAME'>);
|
|
18
|
+
constructor(context?: IAdsContext<'GAME' | 'TASK'>);
|
|
19
19
|
init(_config?: IAdsInitParams): Promise<void>;
|
|
20
20
|
adConfig(params: IAdConfigParams): void;
|
|
21
21
|
adBreak(params: IAdBreakParams): Promise<void>;
|
package/dist/type/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EPlatform, EventEmitter } from '@jolibox/common';
|
|
2
2
|
import type { TrackEvent } from '@jolibox/types';
|
|
3
|
-
export interface IGeneralError<T
|
|
3
|
+
export interface IGeneralError<T> {
|
|
4
4
|
code?: string;
|
|
5
5
|
errMsg: string;
|
|
6
6
|
data?: T;
|
|
@@ -27,7 +27,7 @@ export interface IHttpClient {
|
|
|
27
27
|
headers?: Record<string, string>;
|
|
28
28
|
timeout?: number;
|
|
29
29
|
}): Promise<T>;
|
|
30
|
-
post<T
|
|
30
|
+
post<T>(path: string, { data, query, headers, timeout }: {
|
|
31
31
|
data?: any;
|
|
32
32
|
query?: Record<string, string>;
|
|
33
33
|
headers?: Record<string, string>;
|
|
@@ -38,7 +38,7 @@ export interface Track {
|
|
|
38
38
|
(tag: TrackEvent, info: Record<string, unknown> | null): void;
|
|
39
39
|
debounce: (tag: TrackEvent, info: Record<string, unknown>) => void;
|
|
40
40
|
}
|
|
41
|
-
export interface IAdsContext<T extends 'DRAMA' | 'GAME' = any> {
|
|
41
|
+
export interface IAdsContext<T extends 'DRAMA' | 'GAME' | 'TASK' = any> {
|
|
42
42
|
httpClient: IHttpClient;
|
|
43
43
|
checkNetwork: () => boolean;
|
|
44
44
|
track: Track;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jolibox/ads",
|
|
3
3
|
"description": "This project is for integrating Jolibox ads providers",
|
|
4
|
-
"version": "1.3.5-beta.
|
|
4
|
+
"version": "1.3.5-beta.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
],
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jolibox/common": "1.3.5-beta.
|
|
15
|
+
"@jolibox/common": "1.3.5-beta.3",
|
|
16
16
|
"@emotion/css": "11.13.5",
|
|
17
|
-
"@jolibox/types": "1.3.5-beta.
|
|
17
|
+
"@jolibox/types": "1.3.5-beta.3",
|
|
18
18
|
"preact": "10.26.4",
|
|
19
19
|
"@preact/signals": "2.0.4",
|
|
20
|
-
"@jolibox/native-bridge": "1.3.5-beta.
|
|
20
|
+
"@jolibox/native-bridge": "1.3.5-beta.3"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/core": "7.23.3",
|