@betarena/ad-engine 0.0.22 → 0.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betarena/ad-engine",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -412,7 +412,7 @@
412
412
  (
413
413
  ): Promise < void >
414
414
  {
415
- detectDeviceType();
415
+ deviceType = detectDeviceType() as IDeviceType;
416
416
  geoLocation = await getUserLocation();
417
417
  generateElementMap();
418
418
 
@@ -34,4 +34,4 @@ export function detectDeviceType
34
34
  else
35
35
  return 'desktop';
36
36
  ;
37
- }
37
+ }
package/src/index.ts DELETED
@@ -1,29 +0,0 @@
1
- import AdvertEngineWidget from './lib/Advert-Engine-Widget.svelte'
2
-
3
- let
4
- /**
5
- * @description
6
- */
7
- app
8
- ;
9
-
10
- // ╭─────
11
- // │ CHECK |:| running on 'browser'
12
- // ╰─────
13
- if (typeof document !== 'undefined')
14
- app
15
- = new AdvertEngineWidget
16
- (
17
- {
18
- target: document.body,
19
- props:
20
- {
21
- // authorId: 1
22
- authorArticleTagIds: [1]
23
- }
24
- }
25
- )
26
- ;
27
- ;
28
-
29
- export default app;