@embeddable.com/sdk-core 3.13.3 → 3.13.4-next.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/lib/index.esm.js CHANGED
@@ -21615,11 +21615,12 @@ var push = async () => {
21615
21615
  breadcrumbs.push("select workspace");
21616
21616
  const { workspaceId, name: workspaceName } = await selectWorkspace(ora, config, token);
21617
21617
  const workspacePreviewUrl = `${config.previewBaseUrl}/workspace/${workspaceId}`;
21618
+ const message = getArgumentByKey(["--message", "-m"]);
21618
21619
  breadcrumbs.push("build archive");
21619
21620
  await buildArchive(config);
21620
21621
  spinnerPushing.info(`Publishing to ${workspaceName} using ${workspacePreviewUrl}...`);
21621
21622
  breadcrumbs.push("send build");
21622
- await sendBuild(config, { workspaceId, token });
21623
+ await sendBuild(config, { workspaceId, token, message });
21623
21624
  spinnerPushing.succeed(`Published to ${workspaceName} using ${workspacePreviewUrl}`);
21624
21625
  }
21625
21626
  catch (error) {
@@ -21737,12 +21738,12 @@ async function sendBuildByApiKey(ctx, { apiKey, email, message, }) {
21737
21738
  await fs.rm(ctx.client.archiveFile);
21738
21739
  return { ...response.data, message };
21739
21740
  }
21740
- async function sendBuild(ctx, { workspaceId, token }) {
21741
+ async function sendBuild(ctx, { workspaceId, token, message, }) {
21741
21742
  const form = await createFormData(ctx.client.archiveFile, {
21742
21743
  pushModels: ctx.pushModels,
21743
21744
  pushComponents: ctx.pushComponents,
21744
21745
  authorEmail: "",
21745
- description: "",
21746
+ description: message,
21746
21747
  });
21747
21748
  await uploadFile(form, `${ctx.pushBaseUrl}/bundle/${workspaceId}/upload`, token);
21748
21749
  await fs.rm(ctx.client.archiveFile);