@live-change/vue3-ssr 0.8.16 → 0.8.18

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/Api.js +5 -5
  2. package/package.json +4 -4
package/Api.js CHANGED
@@ -72,7 +72,7 @@ class Api extends DaoProxy {
72
72
  const versionMismatch = computed(() => {
73
73
  if(!version) return
74
74
  if(!softwareVersion) return
75
- return version.value != softwareVersion.value
75
+ return version.value !== softwareVersion.value
76
76
  })
77
77
  const client = computed(() => {
78
78
  return api?.value?.client
@@ -85,11 +85,11 @@ class Api extends DaoProxy {
85
85
  }
86
86
  let lastApiJson = ''
87
87
  this.apiObservable.observe((signal, ...args) => {
88
- if(signal != 'set') return
88
+ if(signal !== 'set') return
89
89
  //console.log("API OBSERVE SIGNAL", signal, ...args)
90
90
  const newApi = args[0]
91
91
  //console.log("NEW API", newApi)
92
- if(JSON.stringify(newApi) == lastApiJson) {
92
+ if(JSON.stringify(newApi) === lastApiJson) {
93
93
  console.log("API NOT CHANGED")
94
94
  return
95
95
  }
@@ -111,7 +111,7 @@ class Api extends DaoProxy {
111
111
  const ssrCache = window[this.settings.ssrCacheGlobal || '__DAO_CACHE__']
112
112
  if(ssrCache) {
113
113
  for(const [daoPath, value] of ssrCache) {
114
- if(daoPath == cachePath) apiInfo = value
114
+ if(daoPath === cachePath) apiInfo = value
115
115
  }
116
116
  }
117
117
  } else {
@@ -121,7 +121,7 @@ class Api extends DaoProxy {
121
121
  //console.trace("GENERATE API SERVICES!")
122
122
  //console.log("GENERATE SERVICES API", apiInfo)
123
123
  const definitions = [...(apiInfo?.services ?? []), ...(this.settings.localDefinitions ?? [])]
124
- if(JSON.stringify(definitions) == JSON.stringify(api.servicesApiDefinitions)) return
124
+ if(JSON.stringify(definitions) === JSON.stringify(api.servicesApiDefinitions)) return
125
125
  if(!definitions) throw new Error("API DEFINITIONS NOT FOUND! UNABLE TO GENERATE API!")
126
126
  api.uidGenerator = uidGenerator(
127
127
  apiInfo.client.user || (apiInfo.client.session ? apiInfo.client.session.slice(0, 16) : randomString(10) )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
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.16",
25
- "@live-change/uid": "^0.8.16",
24
+ "@live-change/dao-vue3": "^0.8.18",
25
+ "@live-change/uid": "^0.8.18",
26
26
  "@vueuse/core": "^10.9.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "b8ac84cbe1a8c435c7b5003dfc64ddc41a4e15a6"
29
+ "gitHead": "298b551bc412adf7241754a50a675a1cf3aabd1e"
30
30
  }