@knowlearning/agents 0.9.33 → 0.9.34
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.
|
@@ -211,7 +211,7 @@ export default function EmbeddedAgent() {
|
|
|
211
211
|
return send({ type: 'login', provider, username, password })
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
function query(query, params) { return send({ type: 'query', query, params }) }
|
|
214
|
+
function query(query, params, domain) { return send({ type: 'query', query, params, domain }) }
|
|
215
215
|
function logout() { return send({ type: 'logout' }) }
|
|
216
216
|
function disconnect() { return send({ type: 'disconnect' }) }
|
|
217
217
|
function reconnect() { return send({ type: 'reconnect' }) }
|
|
@@ -97,8 +97,8 @@ function embed(environment, iframe) {
|
|
|
97
97
|
sendDown(await Agent.patch(root, scopes))
|
|
98
98
|
}
|
|
99
99
|
else if (type === 'query') {
|
|
100
|
-
const { query, params } = message
|
|
101
|
-
sendDown(await Agent.query(query, params))
|
|
100
|
+
const { query, params, domain } = message
|
|
101
|
+
sendDown(await Agent.query(query, params, domain))
|
|
102
102
|
}
|
|
103
103
|
else if (type === 'upload') {
|
|
104
104
|
const { name, contentType, id } = message
|