@jolibox/ads 1.4.15 → 1.4.16

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 +2 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -575,7 +575,8 @@ class Qn {
575
575
  }), this.context = e, this.contextInfo = e.getContextInfo();
576
576
  }
577
577
  notifyIframeAdsEvent(e, i) {
578
- window.parent && window.parent.postMessage({
578
+ const n = window.parent;
579
+ n && n !== window && typeof n.postMessage == "function" && n.postMessage({
579
580
  type: e,
580
581
  data: i
581
582
  }, "*"), window.dispatchEvent(new CustomEvent(e, {
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.4.15",
4
+ "version": "1.4.16",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "type": "module",
@@ -12,12 +12,12 @@
12
12
  ],
13
13
  "types": "./dist/index.d.ts",
14
14
  "dependencies": {
15
- "@jolibox/common": "1.4.15",
15
+ "@jolibox/common": "1.4.16",
16
16
  "@emotion/css": "11.13.5",
17
- "@jolibox/types": "1.4.15",
17
+ "@jolibox/types": "1.4.16",
18
18
  "preact": "10.26.4",
19
19
  "@preact/signals": "2.0.4",
20
- "@jolibox/native-bridge": "1.4.15"
20
+ "@jolibox/native-bridge": "1.4.16"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/core": "7.23.3",