@smoud/playable-sdk 1.1.1 → 1.1.2
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/dist/esm/index.js +3 -2
- package/dist/iife/index.js +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -476,6 +476,7 @@ var _sdk = class _sdk {
|
|
|
476
476
|
* @fires finish When the playable ad is marked as finished
|
|
477
477
|
*/
|
|
478
478
|
static finish() {
|
|
479
|
+
if ("vungle" === AD_NETWORK && _sdk.isFinished) return;
|
|
479
480
|
_sdk.isFinished = true;
|
|
480
481
|
if ("tapjoy" === AD_NETWORK && isTapjoy()) {
|
|
481
482
|
finishTapjoy();
|
|
@@ -515,7 +516,7 @@ var _sdk = class _sdk {
|
|
|
515
516
|
* @fires install When the install action is triggered
|
|
516
517
|
*/
|
|
517
518
|
static install() {
|
|
518
|
-
if (!_sdk.isFinished) {
|
|
519
|
+
if (!_sdk.isFinished && "vungle" !== AD_NETWORK) {
|
|
519
520
|
let timeout = 0;
|
|
520
521
|
if ("tapjoy" === AD_NETWORK) timeout = 300;
|
|
521
522
|
_sdk.finish();
|
|
@@ -656,7 +657,7 @@ var _sdk = class _sdk {
|
|
|
656
657
|
}
|
|
657
658
|
};
|
|
658
659
|
/** Current version of the SDK */
|
|
659
|
-
_sdk.version = "1.1.
|
|
660
|
+
_sdk.version = "1.1.2";
|
|
660
661
|
/** Current maximum width of the playable ad container in pixels */
|
|
661
662
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
662
663
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/iife/index.js
CHANGED
|
@@ -478,6 +478,7 @@
|
|
|
478
478
|
* @fires finish When the playable ad is marked as finished
|
|
479
479
|
*/
|
|
480
480
|
static finish() {
|
|
481
|
+
if ("vungle" === AD_NETWORK && _sdk.isFinished) return;
|
|
481
482
|
_sdk.isFinished = true;
|
|
482
483
|
if ("tapjoy" === AD_NETWORK && isTapjoy()) {
|
|
483
484
|
finishTapjoy();
|
|
@@ -517,7 +518,7 @@
|
|
|
517
518
|
* @fires install When the install action is triggered
|
|
518
519
|
*/
|
|
519
520
|
static install() {
|
|
520
|
-
if (!_sdk.isFinished) {
|
|
521
|
+
if (!_sdk.isFinished && "vungle" !== AD_NETWORK) {
|
|
521
522
|
let timeout = 0;
|
|
522
523
|
if ("tapjoy" === AD_NETWORK) timeout = 300;
|
|
523
524
|
_sdk.finish();
|
|
@@ -658,7 +659,7 @@
|
|
|
658
659
|
}
|
|
659
660
|
};
|
|
660
661
|
/** Current version of the SDK */
|
|
661
|
-
_sdk.version = "1.1.
|
|
662
|
+
_sdk.version = "1.1.2";
|
|
662
663
|
/** Current maximum width of the playable ad container in pixels */
|
|
663
664
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
664
665
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/index.js
CHANGED
|
@@ -503,6 +503,7 @@ var _sdk = class _sdk {
|
|
|
503
503
|
* @fires finish When the playable ad is marked as finished
|
|
504
504
|
*/
|
|
505
505
|
static finish() {
|
|
506
|
+
if ("vungle" === AD_NETWORK && _sdk.isFinished) return;
|
|
506
507
|
_sdk.isFinished = true;
|
|
507
508
|
if ("tapjoy" === AD_NETWORK && isTapjoy()) {
|
|
508
509
|
finishTapjoy();
|
|
@@ -542,7 +543,7 @@ var _sdk = class _sdk {
|
|
|
542
543
|
* @fires install When the install action is triggered
|
|
543
544
|
*/
|
|
544
545
|
static install() {
|
|
545
|
-
if (!_sdk.isFinished) {
|
|
546
|
+
if (!_sdk.isFinished && "vungle" !== AD_NETWORK) {
|
|
546
547
|
let timeout = 0;
|
|
547
548
|
if ("tapjoy" === AD_NETWORK) timeout = 300;
|
|
548
549
|
_sdk.finish();
|
|
@@ -683,7 +684,7 @@ var _sdk = class _sdk {
|
|
|
683
684
|
}
|
|
684
685
|
};
|
|
685
686
|
/** Current version of the SDK */
|
|
686
|
-
_sdk.version = "1.1.
|
|
687
|
+
_sdk.version = "1.1.2";
|
|
687
688
|
/** Current maximum width of the playable ad container in pixels */
|
|
688
689
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
689
690
|
/** Current maximum height of the playable ad container in pixels */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoud/playable-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "It's unified Playable SDK that supports MRAID, Google, Facebook, Vungle, and many more Ad Networks, simplifying playable ad development with a standardized interface for seamless cross-network compatibility.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|