@embeddable.com/sdk-core 4.1.2-next.0 → 4.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "4.1.2-next.0",
3
+ "version": "4.1.2",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
- "@embeddable.com/core": "2.11.1-next.0",
43
+ "@embeddable.com/core": "2.11.1",
44
44
  "@embeddable.com/sdk-utils": "0.8.2",
45
45
  "@inquirer/prompts": "^7.2.1",
46
46
  "@stencil/core": "^4.23.0",
package/src/dev.test.ts CHANGED
@@ -411,7 +411,7 @@ describe("dev command", () => {
411
411
  `Data models and/or security context synchronization failed with error: ${error.message}`,
412
412
  );
413
413
  expect(mockWss.clients[0].send).toHaveBeenCalledWith(
414
- JSON.stringify({ type: "dataModelsAndOrSecurityContextUpdateError" }),
414
+ JSON.stringify({ type: "dataModelsAndOrSecurityContextUpdateError", error: error.message }),
415
415
  );
416
416
  });
417
417
  });
package/src/dev.ts CHANGED
@@ -491,10 +491,11 @@ export const sendBuildChanges = async (ctx: ResolvedEmbeddableConfig) => {
491
491
  });
492
492
  await sendBuild(ctx, { workspaceId: previewWorkspace, token });
493
493
  } catch (e: any) {
494
+ const errorMessage = e.response?.data?.errorMessage ?? e.message ?? "Unknown error";
494
495
  sending.fail(
495
- `Data models and/or security context synchronization failed with error: ${e.response?.data?.errorMessage ?? e.message ?? "Unknown error"}`,
496
+ `Data models and/or security context synchronization failed with error: ${errorMessage}`,
496
497
  );
497
- return sendMessage("dataModelsAndOrSecurityContextUpdateError");
498
+ return sendMessage("dataModelsAndOrSecurityContextUpdateError", { error: errorMessage });
498
499
  }
499
500
 
500
501
  sending.succeed(`Data models and/or security context synchronized`);