@hostlink/nuxt-light 1.20.6 → 1.21.0

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.20.6",
4
+ "version": "1.21.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -279,13 +279,11 @@ const module = defineNuxtModule({
279
279
  { name: "getApiUrl", from },
280
280
  { name: "getCurrentUser", from },
281
281
  { name: "getObject", from },
282
- { name: "loadObject", from },
283
282
  { name: "list", from },
284
283
  { name: "m", from },
285
284
  { name: "q", from },
286
285
  { name: "removeObject", from },
287
286
  { name: "t", from },
288
- { name: "listObject", from },
289
287
  { name: "useLight", from: index },
290
288
  { name: "isGranted", from },
291
289
  { name: "sv", from },
@@ -19,6 +19,7 @@ const app = ref(null)
19
19
  try {
20
20
  app.value = (await q({
21
21
  app: {
22
+ version: true,
22
23
  company: true,
23
24
  companyLogo: true,
24
25
  logged: true,
@@ -43,6 +44,21 @@ try {
43
44
  });
44
45
  }
45
46
 
47
+ const compatible_version = "1.16.0";
48
+
49
+ if (app.value.version != "dev") {
50
+ //check version must be larger or equal to compatible_version
51
+ if (app.value.version <= compatible_version) {
52
+ quasar.dialog({
53
+ title: 'Error',
54
+ message: `This app is not compatible with this version of the server. Please update the light api to version ${compatible_version} or higher.`,
55
+ ok: 'Reload',
56
+ }).onOk(() => {
57
+ window.location.reload();
58
+ });
59
+ }
60
+ }
61
+
46
62
  if (app.value.facebookAppId) {
47
63
 
48
64
  //load facebook sdk