@live-change/dao-vue3 0.8.49 → 0.8.51

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/lib/live.js +4 -1
  2. package/package.json +3 -3
package/lib/live.js CHANGED
@@ -36,7 +36,10 @@ async function fetch(api, path) {
36
36
  const res = preFetchMap.get(JSON.stringify(what))
37
37
  debug("PREFETCH", what, "RES", res, "MORE", more, "ERR", res?.error)
38
38
  if(res.error) {
39
- throw new Error(JSON.stringify(res.error) + ' when fetching '+JSON.stringify(what) + ' with more=('+JSON.stringify(more)+')')
39
+ throw new Error(''
40
+ + (res.error.stack ?? res.error.message ?? (typeof res.error === 'object' ? JSON.stringify(res.error) : res.error))
41
+ + '\n when fetching '+JSON.stringify(what) + ' with more=('+JSON.stringify(more)+')'
42
+ )
40
43
  }
41
44
  const data = res.data
42
45
  if(data && more) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-vue3",
3
- "version": "0.8.49",
3
+ "version": "0.8.51",
4
4
  "author": {
5
5
  "email": "m8@em8.pl",
6
6
  "name": "Michał Łaszczewski",
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/live-change/live-change-stack/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@live-change/dao": "^0.8.49"
13
+ "@live-change/dao": "^0.8.51"
14
14
  },
15
15
  "type": "module",
16
16
  "description": "Vue.js integration for live-change dao",
@@ -32,5 +32,5 @@
32
32
  "scripts": {
33
33
  "compileTests": "webpack test/*.js tests-bundle.js"
34
34
  },
35
- "gitHead": "568f730f1c8a6ce0247d1d8e49fcea110604800c"
35
+ "gitHead": "ba8da813894eeb717223aa8d5e364649e4ac0347"
36
36
  }