@fmidev/smartmet-alert-client 4.7.2-beta.0 → 4.7.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/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * name: @fmidev/smartmet-alert-client
3
- * version: v4.7.2-beta.0
3
+ * version: v4.7.2
4
4
  * description: Web application for viewing weather and flood alerts
5
5
  * author: Finnish Meteorological Institute
6
6
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
7
7
  */
8
8
  /**
9
9
  * name: @fmidev/smartmet-alert-client
10
- * version: v4.7.2-beta.0
10
+ * version: v4.7.2
11
11
  * description: Web application for viewing weather and flood alerts
12
12
  * author: Finnish Meteorological Institute
13
13
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
@@ -7868,7 +7868,7 @@ const Hn = function(t, e, r) {
7868
7868
  },
7869
7869
  emits: ["loaded", "themeChanged", "update-warnings"],
7870
7870
  setup(t, { emit: e }) {
7871
- const r = t, a = e, n = qt(), { t: o } = G2(n2(r, "language")), l = l2(r.defaultDay), s = l2([]), d = l2(null), u = l2(null), g = l2(null), f = l2([]), C = l2(V3()), k = l2({}), A = l2([]), h = l2(0), x = "4.7.2-beta.0", S = l2([]), B = O1.methods.geoJSONToSVG.bind(O1.methods), c = q(() => String(r.geometryId)), v = q(() => n.geometries), m = q(() => n.regionIds), p = q(() => n.warningTypes), b = q(() => n.timeZone), y = q(() => n.dateTimeFormatLocale), E = q(() => r.currentTime), N = q(() => r.startFrom), z = q(() => r.staticDays), H = q(() => r.dailyWarningTypes), Y = q(
7871
+ const r = t, a = e, n = qt(), { t: o } = G2(n2(r, "language")), l = l2(r.defaultDay), s = l2([]), d = l2(null), u = l2(null), g = l2(null), f = l2([]), C = l2(V3()), k = l2({}), A = l2([]), h = l2(0), x = "4.7.2", S = l2([]), B = O1.methods.geoJSONToSVG.bind(O1.methods), c = q(() => String(r.geometryId)), v = q(() => n.geometries), m = q(() => n.regionIds), p = q(() => n.warningTypes), b = q(() => n.timeZone), y = q(() => n.dateTimeFormatLocale), E = q(() => r.currentTime), N = q(() => r.startFrom), z = q(() => r.staticDays), H = q(() => r.dailyWarningTypes), Y = q(
7872
7872
  () => n.maxUpdateDelay
7873
7873
  ), w = q(
7874
7874
  () => n.bbox
@@ -10,6 +10,6 @@
10
10
 
11
11
  <body>
12
12
  <smartmet-alert-client language="sv"></smartmet-alert-client>
13
- <script src="./index.js"></script>
13
+ <script type="module" src="./index.js"></script>
14
14
  </body>
15
15
  </html>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @fmidev/smartmet-alert-client
3
- * version: v4.7.2-beta.0
3
+ * version: v4.7.2
4
4
  * description: Web application for viewing weather and flood alerts
5
5
  * author: Finnish Meteorological Institute
6
6
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @fmidev/smartmet-alert-client
3
- * version: v4.7.2-beta.0
3
+ * version: v4.7.2
4
4
  * description: Web application for viewing weather and flood alerts
5
5
  * author: Finnish Meteorological Institute
6
6
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @fmidev/smartmet-alert-client
3
- * version: v4.7.2-beta.0
3
+ * version: v4.7.2
4
4
  * description: Web application for viewing weather and flood alerts
5
5
  * author: Finnish Meteorological Institute
6
6
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
@@ -14828,7 +14828,7 @@ const Ag = function(e, t, n) {
14828
14828
  },
14829
14829
  emits: ["loaded", "themeChanged", "update-warnings"],
14830
14830
  setup(e, { emit: t }) {
14831
- const n = e, a = t, o = W2(), { t: s } = Et(be(n, "language")), u = Fe(n.defaultDay), l = Fe([]), p = Fe(null), f = Fe(null), d = Fe(null), D = Fe([]), C = Fe(vo()), F = Fe({}), x = Fe([]), w = Fe(0), L = "4.7.2-beta.0", $ = Fe([]), R = Ai.methods.geoJSONToSVG.bind(Ai.methods), m = j(() => String(n.geometryId)), A = j(() => o.geometries), b = j(() => o.regionIds), v = j(() => o.warningTypes), h = j(() => o.timeZone), k = j(() => o.dateTimeFormatLocale), _ = j(() => n.currentTime), I = j(() => n.startFrom), M = j(() => n.staticDays), J = j(() => n.dailyWarningTypes), G = j(
14831
+ const n = e, a = t, o = W2(), { t: s } = Et(be(n, "language")), u = Fe(n.defaultDay), l = Fe([]), p = Fe(null), f = Fe(null), d = Fe(null), D = Fe([]), C = Fe(vo()), F = Fe({}), x = Fe([]), w = Fe(0), L = "4.7.2", $ = Fe([]), R = Ai.methods.geoJSONToSVG.bind(Ai.methods), m = j(() => String(n.geometryId)), A = j(() => o.geometries), b = j(() => o.regionIds), v = j(() => o.warningTypes), h = j(() => o.timeZone), k = j(() => o.dateTimeFormatLocale), _ = j(() => n.currentTime), I = j(() => n.startFrom), M = j(() => n.staticDays), J = j(() => n.dailyWarningTypes), G = j(
14832
14832
  () => o.maxUpdateDelay
14833
14833
  ), T = j(
14834
14834
  () => o.bbox
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @fmidev/smartmet-alert-client
3
- * version: v4.7.2-beta.0
3
+ * version: v4.7.2
4
4
  * description: Web application for viewing weather and flood alerts
5
5
  * author: Finnish Meteorological Institute
6
6
  * homepage: https://github.com/fmidev/smartmet-alert-client#readme
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fmidev/smartmet-alert-client",
3
- "version": "4.7.2-beta.0",
3
+ "version": "4.7.2",
4
4
  "description": "Web application for viewing weather and flood alerts",
5
5
  "author": "Finnish Meteorological Institute",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.mjs",
8
8
  "module": "dist/index.mjs",
9
- "unpkg": "dist/index.js",
10
- "jsdelivr": "dist/index.js",
9
+ "unpkg": "dist/index.iife.js",
10
+ "jsdelivr": "dist/index.iife.js",
11
11
  "type": "module",
12
12
  "exports": {
13
13
  ".": {
@@ -15,6 +15,6 @@
15
15
 
16
16
  <body>
17
17
  <smartmet-alert-client language="fi" theme="dark"></smartmet-alert-client>
18
- <script src="./index.js"></script>
18
+ <script type="module" src="./index.js"></script>
19
19
  </body>
20
20
  </html>
@@ -10,6 +10,6 @@
10
10
 
11
11
  <body>
12
12
  <smartmet-alert-client language="en"></smartmet-alert-client>
13
- <script src="./index.js"></script>
13
+ <script type="module" src="./index.js"></script>
14
14
  </body>
15
15
  </html>
@@ -10,6 +10,6 @@
10
10
 
11
11
  <body>
12
12
  <smartmet-alert-client language="fi"></smartmet-alert-client>
13
- <script src="./index.js"></script>
13
+ <script type="module" src="./index.js"></script>
14
14
  </body>
15
15
  </html>
@@ -5,11 +5,11 @@
5
5
  <meta
6
6
  name="viewport"
7
7
  content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0, user-scalable=yes" />
8
- <title>SmartMet Alert Client — ESM</title>
8
+ <title>SmartMet Alert Client — IIFE</title>
9
9
  </head>
10
10
 
11
11
  <body>
12
12
  <smartmet-alert-client language="fi"></smartmet-alert-client>
13
- <script type="module" src="./index.mjs"></script>
13
+ <script src="./index.iife.js"></script>
14
14
  </body>
15
15
  </html>
@@ -10,6 +10,6 @@
10
10
 
11
11
  <body>
12
12
  <smartmet-alert-client language="sv"></smartmet-alert-client>
13
- <script src="./index.js"></script>
13
+ <script type="module" src="./index.js"></script>
14
14
  </body>
15
15
  </html>
package/vite.config.js CHANGED
@@ -5,6 +5,7 @@ import { visualizer } from 'rollup-plugin-visualizer'
5
5
  import { defineConfig } from 'vite'
6
6
  import banner from 'vite-plugin-banner'
7
7
  import dts from 'vite-plugin-dts'
8
+ import { viteStaticCopy } from 'vite-plugin-static-copy'
8
9
 
9
10
  import pkg from './package.json'
10
11
 
@@ -30,7 +31,17 @@ export default defineConfig({
30
31
  outDir: 'dist/vue',
31
32
  }),
32
33
  ]
33
- : []),
34
+ : [
35
+ viteStaticCopy({
36
+ targets: [
37
+ {
38
+ src: 'dist/index.mjs',
39
+ dest: './',
40
+ rename: 'index.js',
41
+ },
42
+ ],
43
+ }),
44
+ ]),
34
45
  ],
35
46
  build:
36
47
  buildMode === 'vue'
@@ -112,7 +123,7 @@ export default defineConfig({
112
123
  {
113
124
  format: 'iife',
114
125
  name: 'SmartMetAlertClient',
115
- entryFileNames: 'index.js',
126
+ entryFileNames: 'index.iife.js',
116
127
  compact: true,
117
128
  inlineDynamicImports: true,
118
129
  generatedCode: {