@live-change/vue3-ssr 0.2.22 → 0.2.23

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/Api.js CHANGED
@@ -60,6 +60,7 @@ class Api extends DaoProxy {
60
60
  setupMetadata() {
61
61
  const api = ref()
62
62
  this.apiObservable = this.observable(['metadata', 'api'])
63
+ console.log("API OBSERVABLE", this.apiObservable)
63
64
  this.apiObservable.bindProperty(api, 'value')
64
65
  const version = ref()
65
66
  this.versionObservable = this.observable(['version', 'version'])
@@ -77,9 +78,9 @@ class Api extends DaoProxy {
77
78
  return api?.value?.client
78
79
  })
79
80
  watch(() => api.value, (api) => {
80
- console.log("API CHANGE!", api)
81
+ //console.log("API CHANGE!", api)
81
82
  if(!api) return
82
- console.log("API CHANGE!", api)
83
+ console.log("API CHANGE!"/*, api*/)
83
84
  this.generateServicesApi()
84
85
  })
85
86
  console.log("SETUP API", api.value)
@@ -109,7 +110,7 @@ class Api extends DaoProxy {
109
110
  }
110
111
  }
111
112
  //console.trace("GENERATE API SERVICES!")
112
- //console.log("GENERATE SERVICES API", apiInfo)
113
+ console.log("GENERATE SERVICES API", apiInfo)
113
114
  const definitions = [...(apiInfo?.services ?? []), ...(this.settings.localDefinitions ?? [])]
114
115
  if(JSON.stringify(definitions) == JSON.stringify(api.servicesApiDefinitions)) return
115
116
  if(!definitions) throw new Error("API DEFINITIONS NOT FOUND! UNABLE TO GENERATE API!")
package/clientApi.js CHANGED
@@ -68,7 +68,8 @@ function clientApi(settings = {}) {
68
68
 
69
69
  defaultRoute: {
70
70
  type: "remote",
71
- generator: ReactiveObservableList
71
+ generator: ReactiveObservableList,
72
+ ...settings.defaultRoute
72
73
  }
73
74
  })
74
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "@vueuse/core": "^9.1.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "8957179a6620c67c29a69dda1715404a71c9fa8d"
29
+ "gitHead": "c002858d831272da05315d3d1ec94d6ade7271d7"
30
30
  }
package/serverApi.js CHANGED
@@ -15,6 +15,7 @@ async function serverApi(dao, settings = {}) {
15
15
  for(const plugin of (settings.use || [])) {
16
16
  plugin(api)
17
17
  }
18
+ await api.readyPromise
18
19
  api.generateServicesApi()
19
20
  await api.preFetch()
20
21
  return api