@embeddable.com/sdk-core 4.3.0 → 4.3.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "4.3.0",
3
+ "version": "4.3.1-next.0",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -286,7 +286,7 @@ describe("generateDTS", () => {
286
286
  );
287
287
  expect(fs.writeFile).toHaveBeenCalledWith(
288
288
  "componentDir/component.tsx",
289
- expect.stringContaining("const render = () => {};"),
289
+ expect.stringContaining("const render = (..._args: any[]) => {};"),
290
290
  );
291
291
  });
292
292
 
package/src/generate.ts CHANGED
@@ -189,7 +189,7 @@ async function injectEmptyCSS(ctx: ResolvedEmbeddableConfig) {
189
189
  async function injectBundleRenderStub(
190
190
  ctx: ResolvedEmbeddableConfig,
191
191
  ) {
192
- const stubStr = `const render = () => {};`;
192
+ const stubStr = `const render = (..._args: any[]) => {};`;
193
193
 
194
194
  let content = await fs.readFile(
195
195
  path.resolve(ctx.core.templatesDir, "component.tsx.template"),