@live-change/vue3-ssr 0.8.12 → 0.8.14
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 +5 -5
- package/index.js +1 -1
- package/package.json +7 -7
package/Api.js
CHANGED
|
@@ -93,8 +93,8 @@ class Api extends DaoProxy {
|
|
|
93
93
|
console.log("API NOT CHANGED")
|
|
94
94
|
return
|
|
95
95
|
}
|
|
96
|
+
if(lastApiJson) console.log("API CHANGED", lastApiJson, JSON.stringify(newApi))
|
|
96
97
|
lastApiJson = JSON.stringify(newApi)
|
|
97
|
-
console.log("API CHANGED")
|
|
98
98
|
api.value = JSON.parse(lastApiJson)
|
|
99
99
|
this.generateServicesApi()
|
|
100
100
|
})
|
|
@@ -270,7 +270,7 @@ class Api extends DaoProxy {
|
|
|
270
270
|
return {
|
|
271
271
|
gt: range.lt,
|
|
272
272
|
gte: range.lte,
|
|
273
|
-
lt: range.gt
|
|
273
|
+
lt: range.gt === '' ? '\xFF\xFF\xFF\xFF' : range.gt,
|
|
274
274
|
lte: range.gte,
|
|
275
275
|
limit: range.limit,
|
|
276
276
|
reverse: !range.reverse
|
|
@@ -278,7 +278,7 @@ class Api extends DaoProxy {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
getServiceDefinition(serviceName) {
|
|
281
|
-
return this.metadata.api.value.services.find(s => s.name
|
|
281
|
+
return this.metadata.api.value.services.find(s => s.name === serviceName)
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
uploadFile(purpose, fileName, blob, id) {
|
|
@@ -290,8 +290,8 @@ class Api extends DaoProxy {
|
|
|
290
290
|
state.value = { ...state.value, percent, transferred: evt.loaded }
|
|
291
291
|
}, false)
|
|
292
292
|
xhr.addEventListener("readystatechange", (evt) => {
|
|
293
|
-
if (xhr.readyState
|
|
294
|
-
if (xhr.status
|
|
293
|
+
if (xhr.readyState === 4) {
|
|
294
|
+
if (xhr.status === 200) {
|
|
295
295
|
state.value = { ...state.value, state: "done" }
|
|
296
296
|
} else {
|
|
297
297
|
state.value = { ...state.value, state: "failed", error: xhr.status + " " + xhr.responseText }
|
package/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function useFetch(path, context) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
async function rangeBuckets(pathFunction, options, app = getCurrentInstance()) {
|
|
31
|
-
const lc = useApi()
|
|
31
|
+
const lc = useApi(app?.appContext)
|
|
32
32
|
const extendedPathFunction = (range) => pathFunction(range, lc.fetch)
|
|
33
33
|
const buckets = new RangeBuckets(lc, extendedPathFunction, options)
|
|
34
34
|
if(app) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-ssr",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.14",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/live-change/live-change-
|
|
11
|
+
"url": "git+https://github.com/live-change/live-change-stack.git"
|
|
12
12
|
},
|
|
13
13
|
"author": {
|
|
14
14
|
"email": "m8@em8.pl",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/live-change/live-change-
|
|
20
|
+
"url": "https://github.com/live-change/live-change-stack/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/live-change/live-change-
|
|
22
|
+
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/dao-vue3": "^0.8.
|
|
25
|
-
"@live-change/uid": "^0.8.
|
|
24
|
+
"@live-change/dao-vue3": "^0.8.14",
|
|
25
|
+
"@live-change/uid": "^0.8.14",
|
|
26
26
|
"@vueuse/core": "^10.7.2",
|
|
27
27
|
"debug": "^4.3.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "d81b573fb8891746ae1c67f4f68558123c9f85f7"
|
|
30
30
|
}
|