@knowlearning/agents 0.4.5 → 0.4.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.
package/agents/generic.js CHANGED
@@ -219,10 +219,14 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
219
219
  keyToSubscriptionId[k] = id
220
220
  watchers[k] = []
221
221
  states[k] = new Promise(async resolve => {
222
- subscriptions[id] = { scope, ii: null, session }
223
222
 
224
- if (d !== domain) subscriptions[id].domain = d
225
- if (u !== user) subscriptions[id].user = u
223
+ subscriptions[id] = {
224
+ session,
225
+ domain: d,
226
+ user: u,
227
+ scope,
228
+ ii: null
229
+ }
226
230
 
227
231
  const { ii, state } = await lastMessageResponse()
228
232
  subscriptions[id].ii = ii
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",