eve-hub 0.5.0 → 0.5.1-pre.0
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/artifacts/core.mjs +2 -1
- package/package.json +1 -1
package/artifacts/core.mjs
CHANGED
|
@@ -54,7 +54,8 @@ export async function publish({ type: typeName, key, source }, { sandbox, sessio
|
|
|
54
54
|
const unique = [...new Map(files.map((f) => [f.sha, f])).values()];
|
|
55
55
|
for (let i = 0; i < unique.length; i += UPLOADS_AT_ONCE) {
|
|
56
56
|
await Promise.all(unique.slice(i, i + UPLOADS_AT_ONCE).map((f) =>
|
|
57
|
-
|
|
57
|
+
// A file body is the bytes alone, so the session rides in the header.
|
|
58
|
+
hub(`${at}/files/${f.sha}`, { method: "PUT", headers: { "x-hub-session": sessionId, "content-type": "application/octet-stream" }, body: f.data, signal: AbortSignal.timeout(120_000) }, fetchImpl),
|
|
58
59
|
));
|
|
59
60
|
}
|
|
60
61
|
return hub(`${at}/v/${version}`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-hub",
|
|
3
|
-
"version": "0.5.0",
|
|
3
|
+
"version": "0.5.1-pre.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
|
|
6
6
|
"type": "module",
|