@knowlearning/agents 0.5.9 → 0.5.11
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/agents/generic.js +2 -2
- package/package.json +1 -1
- package/persistence/vuex.js +1 -3
package/agents/generic.js
CHANGED
|
@@ -450,11 +450,11 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
450
450
|
mode = 'debug'
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
function query(query, params) {
|
|
453
|
+
function query(query, params, domain) {
|
|
454
454
|
initialize(
|
|
455
455
|
uuid(),
|
|
456
456
|
'application/json;type=postgres-query',
|
|
457
|
-
{ query, params }
|
|
457
|
+
{ query, params, domain }
|
|
458
458
|
)
|
|
459
459
|
return lastMessageResponse()
|
|
460
460
|
}
|
package/package.json
CHANGED
package/persistence/vuex.js
CHANGED
|
@@ -9,9 +9,7 @@ async function scopeIsUninitialized(scope) {
|
|
|
9
9
|
return ii === 0
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default async function (storeDefinition) {
|
|
13
|
-
// Set up persistance
|
|
14
|
-
const { scope } = await Agent.environment()
|
|
12
|
+
export default async function (storeDefinition, scope=window.location.host) {
|
|
15
13
|
let state = copy(await Agent.state(scope))
|
|
16
14
|
|
|
17
15
|
const scopedPaths = getScopedPaths(storeDefinition)
|