@jolibox/ads 1.1.53-beta.0 → 1.1.54

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.
Files changed (2) hide show
  1. package/dist/index.js +40 -40
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -314,43 +314,43 @@ var x = dt, fn = class {
314
314
  constructor() {
315
315
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
316
316
  }
317
- on(t, e) {
318
- let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
319
- var n;
320
- let r = (n = this.listeners.get(t)) != null ? n : new ke(), o = (d) => e(...d.args), s = r.event(o);
321
- this.listerHandlerMap.set(e, {
322
- handler: o,
323
- dispose: s
324
- }), this.listeners.set(t, r);
325
- let a = this.cachedEventQueue.get(t);
326
- if (a && i)
327
- for (let d of a)
328
- e(...d.args);
329
- }
330
- flushCachedEvent(t) {
331
- t ? this.cachedEventQueue.delete(t) : this.cachedEventQueue.clear();
332
- }
333
- off(t, e) {
334
- let i = this.listerHandlerMap.get(e);
335
- i && (i.dispose(), this.listerHandlerMap.delete(e));
336
- }
337
- emit(t) {
338
- let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
339
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
340
- r[o - 1] = arguments[o];
341
- i || (i = new fn(), this.cachedEventQueue.set(t, i)), i.push({
342
- args: r
343
- }), e && e.fire({
344
- event: t,
345
- args: r
317
+ on(e, i) {
318
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
319
+ var r;
320
+ let o = (r = this.listeners.get(e)) != null ? r : new ke(), s = (l) => i(...l.args), a = o.event(s);
321
+ this.listerHandlerMap.set(i, {
322
+ handler: s,
323
+ dispose: a
324
+ }), this.listeners.set(e, o);
325
+ let d = this.cachedEventQueue.get(e);
326
+ if (d && n)
327
+ for (let l of d)
328
+ i(...l.args);
329
+ }
330
+ flushCachedEvent(e) {
331
+ e ? this.cachedEventQueue.delete(e) : this.cachedEventQueue.clear();
332
+ }
333
+ off(e, i) {
334
+ let n = this.listerHandlerMap.get(i);
335
+ n && (n.dispose(), this.listerHandlerMap.delete(i));
336
+ }
337
+ emit(e) {
338
+ let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
339
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
340
+ o[s - 1] = arguments[s];
341
+ n || (n = new fn(), this.cachedEventQueue.set(e, n)), n.push({
342
+ args: o
343
+ }), i && i.fire({
344
+ event: e,
345
+ args: o
346
346
  });
347
347
  }
348
- once(t, e) {
349
- var i = this;
350
- let n = function() {
351
- e(...arguments), i.off(t, n);
348
+ once(e, i) {
349
+ var n = this;
350
+ let r = function() {
351
+ i(...arguments), n.off(e, r);
352
352
  };
353
- this.on(t, n, !1);
353
+ this.on(e, r, !1);
354
354
  }
355
355
  }, ut = {};
356
356
  Yi(ut, {
@@ -3376,7 +3376,7 @@ function ao(t, e) {
3376
3376
  }
3377
3377
  return (e === "string" ? String : Number)(t);
3378
3378
  }
3379
- class Vo {
3379
+ class Go {
3380
3380
  constructor(e) {
3381
3381
  if (z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "providers", {}), z(this, "channelPolicy", void 0), z(this, "adsActionDetection", void 0), z(this, "requestContext", void 0), z(this, "adsRequest", void 0), z(this, "initialized", !1), z(this, "adsIsShowing", !1), z(this, "lastAdBreak", void 0), z(this, "initializedTimeStamp", Date.now()), e)
3382
3382
  this.context = e, this.channelPolicy = new Tn(this.context), this.adsActionDetection = new Rn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Li(e), this.requestContext = new St(e);
@@ -4175,7 +4175,7 @@ function Lo(t, e) {
4175
4175
  }
4176
4176
  return (e === "string" ? String : Number)(t);
4177
4177
  }
4178
- class Go {
4178
+ class qo {
4179
4179
  constructor(e) {
4180
4180
  if (le(this, "context", void 0), le(this, "contextInfo", void 0), le(this, "providers", {}), le(this, "requestContext", void 0), le(this, "adsRequest", void 0), le(this, "initialized", !1), e)
4181
4181
  this.context = e, this.requestContext = new St(e), this.adsRequest = new Li(e, {
@@ -4296,7 +4296,7 @@ function No(t, e) {
4296
4296
  }
4297
4297
  return (e === "string" ? String : Number)(t);
4298
4298
  }
4299
- class qo extends Error {
4299
+ class Ko extends Error {
4300
4300
  constructor(e) {
4301
4301
  super(e), ue(this, "name", void 0), ue(this, "message", void 0), ue(this, "errMsg", void 0), ue(this, "code", void 0), ue(this, "data", void 0), ue(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4302
4302
  }
@@ -4306,11 +4306,11 @@ export {
4306
4306
  Ln as GoogleAdSenseProvider,
4307
4307
  mo as GoogleIMAProvider,
4308
4308
  Xr as InterstitialAdManager,
4309
- Vo as JoliboxAdsForGame,
4310
- Go as JoliboxAdsForVideo,
4309
+ Go as JoliboxAdsForGame,
4310
+ qo as JoliboxAdsForVideo,
4311
4311
  Vr as OKSpinForGameProvider,
4312
4312
  ko as OKSpinForVideoProvider,
4313
- qo as ResponseError,
4313
+ Ko as ResponseError,
4314
4314
  Di as RewardAdManager,
4315
4315
  Ci as initGPTServices
4316
4316
  };
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.1.53-beta.0",
4
+ "version": "1.1.54",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "type": "module",
@@ -12,9 +12,9 @@
12
12
  ],
13
13
  "types": "./dist/index.d.ts",
14
14
  "dependencies": {
15
- "@jolibox/common": "1.1.53-beta.0",
15
+ "@jolibox/common": "1.1.54",
16
16
  "@emotion/css": "11.13.5",
17
- "@jolibox/types": "1.1.53-beta.0",
17
+ "@jolibox/types": "1.1.54",
18
18
  "preact": "10.26.4",
19
19
  "@preact/signals": "2.0.4"
20
20
  },
@@ -25,7 +25,7 @@
25
25
  "@babel/runtime": "7.22.10",
26
26
  "@babel/runtime-corejs3": "7.22.10",
27
27
  "@babel/plugin-transform-react-jsx": "7.25.9",
28
- "@jolibox/eslint-config": "1.0.1-beta.8",
28
+ "@jolibox/eslint-config": "1.0.0",
29
29
  "@preact/preset-vite": "2.8.1",
30
30
  "@rollup/plugin-replace": "6.0.2",
31
31
  "@types/google-publisher-tag": "1.20250428.0",