@puckeditor/cloud-client 0.3.1-canary.fd1e993b → 0.3.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/dist/index.js CHANGED
@@ -19765,6 +19765,8 @@ async function generate({
19765
19765
  await cloudApi("generate", { prompt, config: config2, pageData }, options, (chunk) => {
19766
19766
  if (chunk.type === "data-page") {
19767
19767
  result = chunk.data;
19768
+ } else if (chunk.type === "error") {
19769
+ throw new Error(chunk.errorText);
19768
19770
  }
19769
19771
  });
19770
19772
  return result;
package/dist/index.mjs CHANGED
@@ -19731,6 +19731,8 @@ async function generate({
19731
19731
  await cloudApi("generate", { prompt, config: config2, pageData }, options, (chunk) => {
19732
19732
  if (chunk.type === "data-page") {
19733
19733
  result = chunk.data;
19734
+ } else if (chunk.type === "error") {
19735
+ throw new Error(chunk.errorText);
19734
19736
  }
19735
19737
  });
19736
19738
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/cloud-client",
3
- "version": "0.3.1-canary.fd1e993b",
3
+ "version": "0.3.1",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "puckeditor/puck",
6
6
  "bugs": "https://github.com/puckeditor/puck/issues",