@knowlearning/agents 0.9.155 → 0.9.156
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.
|
@@ -166,7 +166,7 @@ export default function EmbeddedAgent() {
|
|
|
166
166
|
const res = await download(id)
|
|
167
167
|
const { name } = await metadata(id)
|
|
168
168
|
const type = res.headers.get('Content-Type')
|
|
169
|
-
const blob = new Blob([ await res.blob() ], { type })
|
|
169
|
+
const blob = new Blob([ await res.blob() ], { type })
|
|
170
170
|
const url = window.URL.createObjectURL(blob)
|
|
171
171
|
const a = document.createElement('a')
|
|
172
172
|
a.style.display = 'none'
|
package/agents/download.js
CHANGED
|
@@ -28,7 +28,7 @@ export default function download (id, { create, lastMessageResponse, fetch, meta
|
|
|
28
28
|
const res = await download(id, { create, lastMessageResponse, fetch, metadata })
|
|
29
29
|
const { name } = await metadata(id)
|
|
30
30
|
const type = res.headers.get('Content-Type')
|
|
31
|
-
const blob = new Blob([ await res.blob() ], { type })
|
|
31
|
+
const blob = new Blob([ await res.blob() ], { type })
|
|
32
32
|
const url = window.URL.createObjectURL(blob)
|
|
33
33
|
const a = document.createElement('a')
|
|
34
34
|
a.style.display = 'none'
|
package/package.json
CHANGED