@live-change/vue3-ssr 0.9.14 → 0.9.15

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/Api.js +5 -3
  2. package/package.json +4 -4
package/Api.js CHANGED
@@ -117,6 +117,10 @@ class Api extends DaoProxy {
117
117
  apiInfo = this.prerenderCache.cache.get(cachePath)
118
118
  }
119
119
  }
120
+
121
+ api.windowId = this.settings.windowId || api.uid()
122
+ api.shortWindowId = api.windowId.split('@')[0].slice(-5).replace('.', '')
123
+
120
124
  //console.trace("GENERATE API SERVICES!")
121
125
  //console.log("GENERATE SERVICES API", apiInfo)
122
126
  const definitions = [...(apiInfo?.services ?? []), ...(this.settings.localDefinitions ?? [])]
@@ -124,7 +128,7 @@ class Api extends DaoProxy {
124
128
  if(!definitions) throw new Error("API DEFINITIONS NOT FOUND! UNABLE TO GENERATE API!")
125
129
  api.uidGenerator = uidGenerator(
126
130
  apiInfo.client.user || (apiInfo.client.session ? apiInfo.client.session.slice(0, 16) : randomString(10) )
127
- , 1, '[]')
131
+ , 1, '[]', api.shortWindowId)
128
132
  //console.log("GENERATE API DEFINITIONS", definitions)
129
133
  api.servicesApiDefinitions = definitions
130
134
  api.servicesDefinitions.value = definitions
@@ -189,8 +193,6 @@ class Api extends DaoProxy {
189
193
  api.globals.$fetch = this.fetch
190
194
  api.globals.$services = this.services
191
195
 
192
- api.windowId = this.settings.windowId || api.uid()
193
-
194
196
  for(const glob of this.globalInstances) {
195
197
  this.installInstanceProperties(glob)
196
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.9.14",
3
+ "version": "0.9.15",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/dao-vue3": "^0.9.14",
25
- "@live-change/uid": "^0.9.14",
24
+ "@live-change/dao-vue3": "^0.9.15",
25
+ "@live-change/uid": "^0.9.15",
26
26
  "@vueuse/core": "^10.11.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "5d0f137a1a16f892868719d919f4a76584fa879f"
29
+ "gitHead": "7b145114b9ca412b99f4c052d5069dd1729ff388"
30
30
  }