@live-change/vue3-components 0.9.7 → 0.9.8
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/logic/synchronized.js +4 -3
- package/package.json +3 -3
package/logic/synchronized.js
CHANGED
|
@@ -113,15 +113,16 @@ function synchronized(options) {
|
|
|
113
113
|
saving.value = true
|
|
114
114
|
const data = JSON.parse(JSON.stringify(local.value))
|
|
115
115
|
try {
|
|
116
|
+
let updateResult
|
|
116
117
|
if(updateDataProperty) {
|
|
117
|
-
await update({
|
|
118
|
+
updateResult = await update({
|
|
118
119
|
[updateDataProperty]: { ...data, [timeField]: lastLocalUpdate.value },
|
|
119
120
|
...unref(identifiers)
|
|
120
121
|
})
|
|
121
122
|
} else {
|
|
122
|
-
await update({ ...data, [timeField]: lastLocalUpdate.value, ...unref(identifiers) })
|
|
123
|
+
updateResult = await update({ ...data, [timeField]: lastLocalUpdate.value, ...unref(identifiers) })
|
|
123
124
|
}
|
|
124
|
-
try { onSave() } catch(e) { console.error("ON SAVE HANDLER ERROR", e) }
|
|
125
|
+
try { onSave(updateResult) } catch(e) { console.error("ON SAVE HANDLER ERROR", e) }
|
|
125
126
|
} catch(e) {
|
|
126
127
|
if(resetOnError) synchronizedValue.value = source.value
|
|
127
128
|
console.error("SAVE ERROR", e)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-components",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
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/vue3-ssr": "^0.9.
|
|
24
|
+
"@live-change/vue3-ssr": "^0.9.8",
|
|
25
25
|
"debug": "^4.3.4",
|
|
26
26
|
"mitt": "3.0.1",
|
|
27
27
|
"vue": "^3.4.29"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "bb09550504f28df5f4fdd73273de45dc91a857b5"
|
|
30
30
|
}
|