@live-change/dao-vue3 0.5.7 → 0.5.9

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 -3
  2. package/package.json +3 -3
package/lib/live.js CHANGED
@@ -32,7 +32,7 @@ async function fetch(api, path) {
32
32
  const preFetchMap = new Map(preFetchPaths.map((res) => [JSON.stringify(res.what), res] ))
33
33
  function createObject(what, more) {
34
34
  const res = preFetchMap.get(JSON.stringify(what))
35
- console.log("PREFETCH", what, "RES", res, "MORE", more)
35
+ debug("PREFETCH", what, "RES", res, "MORE", more)
36
36
  if(res.error) throw new Error(res.error)
37
37
  const data = res.data
38
38
  if(data && more) {
@@ -57,6 +57,7 @@ async function fetch(api, path) {
57
57
  }
58
58
  } else {
59
59
  for(const moreElement of more) {
60
+ debug("MORE ELEMENT", moreElement)
60
61
  if(moreElement.to) {
61
62
  const pointers = collectPointers(data, moreElement.schema,
62
63
  (what) => preFetchMap.get(JSON.stringify(what)))
@@ -78,9 +79,9 @@ async function fetch(api, path) {
78
79
  async function live(api, path, onUnmountedCb) {
79
80
  if(isRef(path)) {
80
81
  if(typeof window == 'undefined') {
81
- console.log("FETCH", path.value)
82
+ debug("FETCH", path.value)
82
83
  const data = await fetch(api, path.value)
83
- console.log("FETCHED", data)
84
+ debug("FETCHED", data)
84
85
  return data
85
86
  }
86
87
  let liveRef = shallowRef()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-vue3",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
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-dao/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@live-change/dao": "^0.5.7"
13
+ "@live-change/dao": "^0.5.9"
14
14
  },
15
15
  "description": "Vue.js integration for live-change dao",
16
16
  "directories": {},
@@ -32,5 +32,5 @@
32
32
  "scripts": {
33
33
  "compileTests": "webpack test/*.js tests-bundle.js"
34
34
  },
35
- "gitHead": "53cd3536a135bdfd31edc75538a3ea5a426d307e"
35
+ "gitHead": "b4fc670f10aa369feb0c371c976464b246e87e9d"
36
36
  }