@live-change/vue3-ssr 0.9.44 → 0.9.46

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/index.js +4 -0
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -143,6 +143,10 @@ function serviceDefinition(service, context = getCurrentInstance().appContext) {
143
143
  return [...api.metadata.api.value.services].find(x => x.name === service)
144
144
  }
145
145
 
146
+ export function getId(object) {
147
+ return object.to ?? object.id
148
+ }
149
+
146
150
  // backward compatibility
147
151
  const api = useApi
148
152
  const path = usePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.9.44",
3
+ "version": "0.9.46",
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.44",
25
- "@live-change/uid": "^0.9.44",
24
+ "@live-change/dao-vue3": "^0.9.46",
25
+ "@live-change/uid": "^0.9.46",
26
26
  "@vueuse/core": "^12.3.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "6e9cf980b2ac6e4e7d78955cbf97ae1c2963bcab"
29
+ "gitHead": "9d2fe9cbfb28f6cd389c8cbc5cf051f583f58e9e"
30
30
  }