@singcl/ad-execute-manager 2.1.0 → 2.1.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.
|
@@ -165,11 +165,13 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
165
165
|
* @param {string} args.scene 广告执行场景 必填
|
|
166
166
|
* @param {number} [args.timeout] 广告超时时间 单位ms
|
|
167
167
|
* @param {Function} args.end 结束当前广告任务的回调函数 必填
|
|
168
|
+
* @param {boolean} [args.preserved] 是否在超时情况下保留广告实例 - 自用参数,非tt API要求的参数
|
|
168
169
|
*/
|
|
169
170
|
_setAdTimeout(args: {
|
|
170
171
|
scene: string;
|
|
171
172
|
timeout?: number;
|
|
172
173
|
end: Function;
|
|
174
|
+
preserved?: boolean;
|
|
173
175
|
}): void;
|
|
174
176
|
/**
|
|
175
177
|
* 子类可以选择覆盖此方法
|
|
@@ -310,6 +312,7 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
310
312
|
recovered?: import("./typings/ad.js").RecoveredInfo;
|
|
311
313
|
}, next?: Function): Promise<object | undefined>;
|
|
312
314
|
_recovered: import("./typings/ad.js").RecoveredInfo;
|
|
315
|
+
_preservedOnTimeout: boolean;
|
|
313
316
|
/**
|
|
314
317
|
* @param {object} [ctx] 广告执行上下文
|
|
315
318
|
* @param {object} [ctx.options] 广告执行选项
|
|
@@ -122,6 +122,10 @@ export type IAdOptionsOther = {
|
|
|
122
122
|
* 重试次数 - 自用参数 ,非tt API要求的参数
|
|
123
123
|
*/
|
|
124
124
|
retry: number;
|
|
125
|
+
/**
|
|
126
|
+
* 是否在超时情况下保留广告实例 - 自用参数,非tt API要求的参数
|
|
127
|
+
*/
|
|
128
|
+
preservedOnTimeout: boolean;
|
|
125
129
|
};
|
|
126
130
|
export type IAdOptions = IRewordAdConfig & IRewordAdOther & IAdOptionsOther;
|
|
127
131
|
export type RecoveredInfo = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singcl/ad-execute-manager",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A powerful and flexible ad execution management library for handling reward-based ads, interstitial ads, and other advertising formats in JavaScript applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@ad-execute-manager/core": "^2.0.6",
|
|
88
88
|
"@ad-execute-manager/logger": "^2.0.5",
|
|
89
|
-
"@ad-execute-manager/ad-reward": "^2.1.
|
|
89
|
+
"@ad-execute-manager/ad-reward": "^2.1.1",
|
|
90
90
|
"@ad-execute-manager/ad-interstitial": "^2.0.6",
|
|
91
91
|
"@ad-execute-manager/count-recorder": "^2.0.5",
|
|
92
92
|
"@ad-execute-manager/serializable-error": "^2.0.5",
|