@live-change/vue3-ssr 0.2.17 → 0.2.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.
- package/Api.js +0 -1
- package/clientApi.js +2 -2
- package/package.json +4 -4
package/Api.js
CHANGED
package/clientApi.js
CHANGED
|
@@ -5,12 +5,12 @@ import SockJsConnection from '@live-change/dao-sockjs'
|
|
|
5
5
|
import Api from "./Api.js"
|
|
6
6
|
|
|
7
7
|
function clientApi(settings = {}) {
|
|
8
|
-
let credentials = window.__DAO_CACHE__ ? window.__CREDENTIALS__ : undefined
|
|
8
|
+
let credentials = settings.credentials ?? (window.__DAO_CACHE__ ? window.__CREDENTIALS__ : undefined)
|
|
9
9
|
if(settings.credentials) {
|
|
10
10
|
credentials = { ...credentials, ...settings.credentials }
|
|
11
11
|
}
|
|
12
12
|
const dao = new lcdao.Dao(credentials, {
|
|
13
|
-
remoteUrl: document.location.protocol + '//' + document.location.host + "/api/sockjs",
|
|
13
|
+
remoteUrl: settings.remoteUrl || document.location.protocol + '//' + document.location.host + "/api/sockjs",
|
|
14
14
|
protocols: {
|
|
15
15
|
'sockjs': SockJsConnection
|
|
16
16
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-ssr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.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-framework-vue3",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/dao-vue3": "0.5.
|
|
25
|
-
"@live-change/uid": "0.7.
|
|
24
|
+
"@live-change/dao-vue3": "0.5.10",
|
|
25
|
+
"@live-change/uid": "0.7.16",
|
|
26
26
|
"@vueuse/core": "^9.1.0",
|
|
27
27
|
"debug": "^4.3.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ba8e0f2c67695d1e5ffdf8d713e5a4dec25d03b2"
|
|
30
30
|
}
|