@embeddable.com/sdk-core 3.13.3-next.0 → 3.13.3-next.1

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/lib/index.esm.js CHANGED
@@ -21722,8 +21722,15 @@ async function sendBuildByApiKey(ctx, { apiKey, email, message, }) {
21722
21722
  const file = await fileFromPath(ctx.client.archiveFile, "embeddable-build.zip");
21723
21723
  const form = new FormData();
21724
21724
  form.set("file", file, "embeddable-build.zip");
21725
- const metadataBlob = new Blob([JSON.stringify({ authorEmail: email, description: message })], { type: "application/json" });
21726
- form.set("metadata", metadataBlob, "metadata.json");
21725
+ const metadataBlob = new Blob([
21726
+ JSON.stringify({
21727
+ pushModels: ctx.pushModels,
21728
+ pushComponents: ctx.pushComponents,
21729
+ authorEmail: email,
21730
+ description: message,
21731
+ }),
21732
+ ], { type: "application/json" });
21733
+ form.set("request", metadataBlob, "request.json");
21727
21734
  const response = await uploadFile(form, `${ctx.pushBaseUrl}/api/v1/bundle/upload`, apiKey);
21728
21735
  await fs.rm(ctx.client.archiveFile);
21729
21736
  return { bundleId: (_a = response.data) === null || _a === undefined ? undefined : _a.bundleId, email, message };