@betarena/ad-engine 0.0.15 → 0.0.17

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.15",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -64,10 +64,10 @@
64
64
  "@fontsource/roboto": "5.0.12"
65
65
  },
66
66
  "main": "dist/index.js",
67
- "svelte": "dist/index.js",
67
+ "svelte": "src/index.js",
68
68
  "exports": {
69
69
  ".": {
70
- "svelte": "dist/index.js"
70
+ "svelte": "src/index.js"
71
71
  }
72
72
  },
73
73
  "type": "module"
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import AdvertEngineWidget from './lib/Advert-Engine-Widget.svelte'
2
+
3
+ export default AdvertEngineWidget;
@@ -45,7 +45,7 @@
45
45
  import { postMod } from './utils/fetch.js';
46
46
  import { detectDeviceType } from './utils/device.js';
47
47
  import { getUserLocation } from './utils/geo.js';
48
- import { removeNull } from '@betarena/scores-lib/src/functions/func.common.js';
48
+ import { removeNull } from '@betarena/scores-lib/dist/functions/func.common.js';
49
49
 
50
50
  import WidgetAdvertSlide from './Advert-Slide-Child.svelte';
51
51
  import WidgetAdGeneral from './Advert-General-Child.svelte';
package/src/index.ts DELETED
@@ -1,24 +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
- }
20
- )
21
- ;
22
- ;
23
-
24
- export default app;