@jolibox/ads 1.4.7 → 1.4.8

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.
@@ -10,10 +10,14 @@ export declare class JoliboxAdsForVideo {
10
10
  private requestContext;
11
11
  private adsRequest;
12
12
  private initialized;
13
+ private static STORAGE_KEY_INIT;
14
+ private static STORAGE_KEY_INFO;
13
15
  /** Preloaded ads info for the next requestAd() call */
14
16
  private preloadedAd;
17
+ /** Whether to cache init/info data to sessionStorage */
18
+ private shouldCache;
15
19
  constructor(context?: IAdsContext<'DRAMA'>);
16
- init(): Promise<void>;
20
+ init(cache?: boolean): Promise<void>;
17
21
  /**
18
22
  * Preload ads info and resolve provider options in advance.
19
23
  * If preload fails, requestAd() will fall back to the normal flow.