@live-change/frontend-base 0.9.159 → 0.9.161

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.
Files changed (2) hide show
  1. package/main.js +4 -4
  2. package/package.json +18 -18
package/main.js CHANGED
@@ -21,6 +21,9 @@ import { createHead } from "@vueuse/head"
21
21
  // that creates a fresh app instance. If using Vuex, we'd also be creating a
22
22
  // fresh store here.
23
23
  export async function createApp(config, api, App, createRouter, host, headers, response, url) {
24
+
25
+ if(config.beforeStart) await config.beforeStart({ api })
26
+
24
27
  const isSSR = response !== undefined
25
28
  const isSPA = (typeof window !== 'undefined') && !window.__DAO_CACHE__
26
29
  //console.log("IS SPA", isSPA)
@@ -114,10 +117,7 @@ export async function createApp(config, api, App, createRouter, host, headers, r
114
117
 
115
118
  app.use(i18n)
116
119
 
117
- const configureContext = { app, api, router, locale, i18n }
118
- if(config.configure) await config.configure(configureContext)
119
- if(typeof window !== 'undefined' && config.configureClient) await config.configureClient(configureContext)
120
- if(typeof window === 'undefined' && config.configureClient) await config.configureServer(configureContext)
120
+ if(config.configure) await config.configure({ app, api, router, locale, i18n })
121
121
 
122
122
  return { app, router, head }
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/frontend-base",
3
- "version": "0.9.159",
3
+ "version": "0.9.161",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --templatePath ../../base-frontend/index.html",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -35,21 +35,21 @@
35
35
  "@lezer/rust": "=1.0.1",
36
36
  "@lezer/sass": "=1.0.3",
37
37
  "@lezer/xml": "=1.0.2",
38
- "@live-change/cli": "^0.9.159",
39
- "@live-change/dao": "^0.9.159",
40
- "@live-change/dao-message": "^0.9.159",
41
- "@live-change/dao-sockjs": "^0.9.159",
42
- "@live-change/dao-vue3": "^0.9.159",
43
- "@live-change/dao-websocket": "^0.9.159",
44
- "@live-change/email-service": "^0.9.159",
45
- "@live-change/password-authentication-service": "^0.9.159",
46
- "@live-change/secret-code-service": "^0.9.159",
47
- "@live-change/secret-link-service": "^0.9.159",
48
- "@live-change/security-frontend": "^0.9.159",
49
- "@live-change/session-service": "^0.9.159",
50
- "@live-change/user-service": "^0.9.159",
51
- "@live-change/vue3-components": "^0.9.159",
52
- "@live-change/vue3-ssr": "^0.9.159",
38
+ "@live-change/cli": "^0.9.161",
39
+ "@live-change/dao": "^0.9.161",
40
+ "@live-change/dao-message": "^0.9.161",
41
+ "@live-change/dao-sockjs": "^0.9.161",
42
+ "@live-change/dao-vue3": "^0.9.161",
43
+ "@live-change/dao-websocket": "^0.9.161",
44
+ "@live-change/email-service": "^0.9.161",
45
+ "@live-change/password-authentication-service": "^0.9.161",
46
+ "@live-change/secret-code-service": "^0.9.161",
47
+ "@live-change/secret-link-service": "^0.9.161",
48
+ "@live-change/security-frontend": "^0.9.161",
49
+ "@live-change/session-service": "^0.9.161",
50
+ "@live-change/user-service": "^0.9.161",
51
+ "@live-change/vue3-components": "^0.9.161",
52
+ "@live-change/vue3-ssr": "^0.9.161",
53
53
  "@primevue/themes": "^4.3.3",
54
54
  "@tailwindcss/node": "4.1.0",
55
55
  "@tailwindcss/oxide": "4.1.0",
@@ -107,7 +107,7 @@
107
107
  "vue3-scroll-border": "0.1.7"
108
108
  },
109
109
  "devDependencies": {
110
- "@live-change/codeceptjs-helper": "^0.9.159",
110
+ "@live-change/codeceptjs-helper": "^0.9.161",
111
111
  "codeceptjs": "^3.6.10",
112
112
  "generate-password": "1.7.1",
113
113
  "playwright": "1.49.1",
@@ -122,5 +122,5 @@
122
122
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
123
123
  "license": "BSD-3-Clause",
124
124
  "description": "",
125
- "gitHead": "8a605f68b81ff004da33e71667d2a7c75fe68ee4"
125
+ "gitHead": "1361610ea2c25bfecff4ec102cde2fd2aecbdb53"
126
126
  }