@givefreely/adunit 1.11.0-rc.0 → 1.12.0-dev.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@givefreely/adunit",
3
- "version": "1.11.0-rc.0",
3
+ "version": "1.12.0-dev.0",
4
4
  "description": "AdUnit module",
5
5
  "main": "./GiveFreely-content.cjs",
6
6
  "module": "./GiveFreely-content.esm",
@@ -5,6 +5,7 @@ export { default as browser } from 'webextension-polyfill';
5
5
  * Should return false in case the popup should not be shown for a specific domain
6
6
  */
7
7
  type DomainAdUnitFilter = (domain: string) => Promise<boolean>;
8
+
8
9
  /**
9
10
  * Main service for GiveFreely functionality
10
11
  *
@@ -24,10 +25,10 @@ type DomainAdUnitFilter = (domain: string) => Promise<boolean>;
24
25
  */
25
26
  declare class GiveFreelyService {
26
27
  readonly partnerApiKey: string;
28
+ private readonly _adUnitService;
27
29
  constructor(partnerApiKey: string);
28
- initialize(partnerFilter?: DomainAdUnitFilter): Promise<void>;
29
- isCustomStandownMatch(urls: (string | undefined)[]): boolean;
30
- destroy(): Promise<void>;
30
+ initialize: (partnerFilter?: DomainAdUnitFilter) => Promise<void>;
31
+ destroy: () => Promise<void>;
31
32
  }
32
33
 
33
34
  declare const isAdUnitMessage: (message: unknown) => boolean;