@knowlearning/agents 0.9.48 → 0.9.49
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.
|
@@ -147,7 +147,7 @@ export default function EmbeddedAgent() {
|
|
|
147
147
|
const promise = new Promise(async (resolve, reject) => {
|
|
148
148
|
const url = await send({ type: 'download', id })
|
|
149
149
|
|
|
150
|
-
await new Promise(r => setTimeout(r))
|
|
150
|
+
// await new Promise(r => setTimeout(r))
|
|
151
151
|
if (mode === 'url') resolve(url)
|
|
152
152
|
else if (mode === 'fetch') {
|
|
153
153
|
const response = await fetch(url)
|
package/agents/generic/index.js
CHANGED
|
@@ -177,7 +177,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
177
177
|
const id = uuid()
|
|
178
178
|
const requested = Date.now()
|
|
179
179
|
const { session } = await environment()
|
|
180
|
-
await new Promise(r => setTimeout(r, 1)) // ensure next interaction gets sent on its own
|
|
180
|
+
// await new Promise(r => setTimeout(r, 1)) // ensure next interaction gets sent on its own
|
|
181
181
|
interact('sessions', [
|
|
182
182
|
{
|
|
183
183
|
op: 'add',
|
package/agents/generic/state.js
CHANGED
|
@@ -14,7 +14,7 @@ export default function(scope='[]', user, domain, { keyToSubscriptionId, watcher
|
|
|
14
14
|
watchers[qualifiedScope] = []
|
|
15
15
|
states[qualifiedScope] = new Promise(async (resolve, reject) => {
|
|
16
16
|
const { session } = await environment()
|
|
17
|
-
await new Promise(r => setTimeout(r
|
|
17
|
+
await new Promise(r => setTimeout(r))
|
|
18
18
|
interact('sessions', [{
|
|
19
19
|
op: 'add',
|
|
20
20
|
path: ['active', session, 'subscriptions', id],
|