@givefreely/adunit 1.11.0-rc.0 → 1.12.0-dev.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/GiveFreely-background.cjs.js +1 -1
- package/GiveFreely-background.cjs.js.map +1 -1
- package/GiveFreely-background.esm.js +1 -1
- package/GiveFreely-background.esm.js.map +1 -1
- package/GiveFreely-content.cjs.js +1 -1
- package/GiveFreely-content.cjs.js.map +1 -1
- package/GiveFreely-content.esm.js +1 -1
- package/GiveFreely-content.esm.js.map +1 -1
- package/package.json +1 -1
- package/types/GiveFreely-types.d.ts +4 -3
package/package.json
CHANGED
|
@@ -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)
|
|
29
|
-
|
|
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;
|