@live-change/vue3-ssr 0.2.6 → 0.2.10
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 +8 -0
- package/package.json +6 -6
package/Api.js
CHANGED
|
@@ -124,6 +124,10 @@ class Api extends DaoProxy {
|
|
|
124
124
|
}
|
|
125
125
|
let fetch = { }
|
|
126
126
|
globalFetch[serviceDefinition.name] = fetch
|
|
127
|
+
for(const actionName in serviceDefinition.actions) {
|
|
128
|
+
fetch[actionName] = (params) => [serviceDefinition.name, actionName, params]
|
|
129
|
+
fetch[actionName].definition = serviceDefinition.actions[actionName]
|
|
130
|
+
}
|
|
127
131
|
for(const viewName in serviceDefinition.views) {
|
|
128
132
|
fetch[viewName] = (params) => new Path([serviceDefinition.name, viewName, params])
|
|
129
133
|
fetch[viewName].definition = serviceDefinition.views[viewName]
|
|
@@ -235,6 +239,10 @@ class Api extends DaoProxy {
|
|
|
235
239
|
reverse: !range.reverse
|
|
236
240
|
}
|
|
237
241
|
}
|
|
242
|
+
|
|
243
|
+
getServiceDefinition(serviceName) {
|
|
244
|
+
return this.metadata.api.value.services.find(s => s.name == serviceName)
|
|
245
|
+
}
|
|
238
246
|
}
|
|
239
247
|
|
|
240
248
|
export default Api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-ssr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
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-framework-vue3",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/uid": "0.5
|
|
25
|
-
"@vueuse/core": "^8.1
|
|
26
|
-
"debug": "^4.3.
|
|
27
|
-
"vue": "^3.2.
|
|
24
|
+
"@live-change/uid": "0.6.5",
|
|
25
|
+
"@vueuse/core": "^8.3.1",
|
|
26
|
+
"debug": "^4.3.4",
|
|
27
|
+
"vue": "^3.2.33"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "589481d53e4599a6682db2fc4c787cc9dfd13974"
|
|
30
30
|
}
|