@live-change/vue3-ssr 0.8.13 → 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.
Files changed (3) hide show
  1. package/Api.js +4 -4
  2. package/index.js +1 -1
  3. package/package.json +4 -4
package/Api.js CHANGED
@@ -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 == '' ? '\xFF\xFF\xFF\xFF' : 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 == serviceName)
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 == 4) {
294
- if (xhr.status == 200) {
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.13",
3
+ "version": "0.8.14",
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/dao-vue3": "^0.8.13",
25
- "@live-change/uid": "^0.8.13",
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": "4453aa639a9fe1a857d93d73ebd28a82c97fdd87"
29
+ "gitHead": "d81b573fb8891746ae1c67f4f68558123c9f85f7"
30
30
  }