@betarena/ad-engine 0.0.49 → 0.0.51
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/index.js +68 -49
- package/package.json +1 -1
- package/src/lib/_store.ts +6 -7
- package/src/lib/constants/instance.ts +3 -1
package/package.json
CHANGED
package/src/lib/_store.ts
CHANGED
|
@@ -116,11 +116,15 @@ function createLocalStore
|
|
|
116
116
|
;
|
|
117
117
|
;
|
|
118
118
|
|
|
119
|
+
methods.setLocalStorage
|
|
120
|
+
(
|
|
121
|
+
localStore
|
|
122
|
+
);
|
|
123
|
+
|
|
119
124
|
// ╭─────
|
|
120
125
|
// │ CHECK :|: for already shown advert
|
|
121
126
|
// ╰─────
|
|
122
|
-
if
|
|
123
|
-
(
|
|
127
|
+
if (
|
|
124
128
|
localStore.isBetarenaAdShownForToday
|
|
125
129
|
&& new Date(localStore.advertDateLastShown!).getDate() != new Date().getDate()
|
|
126
130
|
)
|
|
@@ -132,11 +136,6 @@ function createLocalStore
|
|
|
132
136
|
);
|
|
133
137
|
;
|
|
134
138
|
|
|
135
|
-
methods.setLocalStorage
|
|
136
|
-
(
|
|
137
|
-
localStore
|
|
138
|
-
);
|
|
139
|
-
|
|
140
139
|
return;
|
|
141
140
|
},
|
|
142
141
|
|
|
@@ -8,6 +8,8 @@ export const
|
|
|
8
8
|
* "http://192.168.1.236:58749"
|
|
9
9
|
* ➤ dev|:|live|:|staging
|
|
10
10
|
* "https://betarena-test-e2748dab12f5.herokuapp.com"
|
|
11
|
+
* ➤ prod|:|live
|
|
12
|
+
* "http://49.13.201.19:8500" | "https://ads.betarena.com/"
|
|
11
13
|
*/
|
|
12
|
-
betarenaEndpoint = 'https://betarena
|
|
14
|
+
betarenaEndpoint = 'https://ads.betarena.com'
|
|
13
15
|
;
|