@knowlearning/agents 0.9.76 → 0.9.78

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.
Files changed (2) hide show
  1. package/deno.js +3 -4
  2. package/package.json +1 -1
package/deno.js CHANGED
@@ -12,12 +12,11 @@ function Connection() {
12
12
 
13
13
  thisConnection.send = message => denoProcess.postMessage(message)
14
14
 
15
- (async function () {
16
- console.log('executing anonymous function????')
17
- await new Promise(r => setTimeout(r, 1))
15
+ const delay = new Promise(r => setTimeout(r))
16
+ delay.then(() => {
18
17
  console.log('Deno connection onopen', thisConnection.onopen)
19
18
  thisConnection.onopen && thisConnection.onopen()
20
- })()
19
+ })
21
20
 
22
21
  // TODO: consider what onclose and onerror mean in this case
23
22
  return thisConnection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.76",
3
+ "version": "0.9.78",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",