@live-change/vue3-ssr 0.2.2 → 0.2.6

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 +8 -6
  2. package/package.json +9 -7
package/Api.js CHANGED
@@ -1,4 +1,5 @@
1
- import { DaoProxy, DaoPrerenderCache, DaoCache, Path } from "@live-change/dao"
1
+ import * as LcDao from '@live-change/dao'
2
+ const { DaoProxy, DaoPrerenderCache, DaoCache, Path } = LcDao // hack for vite
2
3
  import validators from '@live-change/framework/lib/utils/validators.js'
3
4
  import { hashCode, encodeNumber, uidGenerator, randomString } from '@live-change/uid'
4
5
  import { ref, computed, watch } from "vue"
@@ -16,10 +17,10 @@ class Api extends DaoProxy {
16
17
  this.preFetchComponents = []
17
18
  this.afterPreFetch = []
18
19
 
19
- this.validators = validators
20
+ this.validators = { ...validators }
20
21
 
21
22
  this.globals = {
22
- $validators: validators
23
+ $validators: this.validators
23
24
  }
24
25
  this.globalInstances = []
25
26
  }
@@ -101,8 +102,8 @@ class Api extends DaoProxy {
101
102
  apiInfo = this.prerenderCache.cache.get(cachePath)
102
103
  }
103
104
  }
104
- console.trace("GENERATE API SERVICES!")
105
- console.log("GENERATE SERVICES API", apiInfo)
105
+ //console.trace("GENERATE API SERVICES!")
106
+ //console.log("GENERATE SERVICES API", apiInfo)
106
107
  const definitions = apiInfo?.services
107
108
  if(JSON.stringify(definitions) == JSON.stringify(api.servicesApiDefinitions)) return
108
109
  if(!definitions) throw new Error("API DEFINITIONS NOT FOUND! UNABLE TO GENERATE API!")
@@ -219,7 +220,8 @@ class Api extends DaoProxy {
219
220
 
220
221
  command(method, args = {}) {
221
222
  const _commandId = args._commandId || this.uidGenerator()
222
- console.trace("COMMAND "+_commandId+":"+JSON.stringify(method))
223
+ //console.trace("COMMAND "+_commandId+":"+JSON.stringify(method))
224
+ console.log("COMMAND "+_commandId+":"+JSON.stringify(method)+"("+JSON.stringify(args)+")")
223
225
  return this.request(method, { ...args, _commandId })
224
226
  }
225
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.2.2",
3
+ "version": "0.2.6",
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/vue3-ssr.git"
11
+ "url": "git+https://github.com/live-change/live-change-framework-vue3.git"
12
12
  },
13
13
  "author": {
14
14
  "email": "m8@em8.pl",
@@ -17,12 +17,14 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "bugs": {
20
- "url": "https://github.com/live-change/vue3-ssr/issues"
20
+ "url": "https://github.com/live-change/live-change-framework-vue3/issues"
21
21
  },
22
- "homepage": "https://github.com/live-change/vue3-ssr",
22
+ "homepage": "https://github.com/live-change/live-change-framework-vue3",
23
23
  "dependencies": {
24
+ "@live-change/uid": "0.5.27",
25
+ "@vueuse/core": "^8.1.2",
24
26
  "debug": "^4.3.2",
25
- "vue": "^3.2.21",
26
- "@live-change/uid": "^0.1.3"
27
- }
27
+ "vue": "^3.2.31"
28
+ },
29
+ "gitHead": "88f2d2f0dca78f3147db250a62999f1f90d20b85"
28
30
  }