@knowlearning/agents 0.9.172 → 0.9.174

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,6 +211,7 @@ function embed(environment, iframe) {
211
211
 
212
212
  function on(event, fn) {
213
213
  listeners[event] = fn
214
+ return this
214
215
  }
215
216
 
216
217
  function auth(token, state) {
@@ -131,7 +131,7 @@ export default function Agent({ Connection, domain, token, sid, uuid, fetch, app
131
131
  }
132
132
 
133
133
  async function metadata(id=DEFAULT_SCOPE_NAME, user, domain) {
134
- const md = structuredClone(await state(id, user).metadata)
134
+ const md = structuredClone(await state(id, user, domain).metadata)
135
135
  delete md.active
136
136
  return new PatchProxy(md, patch => {
137
137
  const activePatch = structuredClone(patch)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.172",
3
+ "version": "0.9.174",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",