@embeddable.com/sdk-react 2.2.22 → 2.2.23

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.js CHANGED
@@ -570,10 +570,10 @@ const validateComponentEvents = (metaInfo) => {
570
570
  };
571
571
  const validateModuleName = (metaInfo) => {
572
572
  const basename = path__namespace.basename(metaInfo.moduleId);
573
- const fileName = basename.split(".");
574
- if (!basename.includes(metaInfo.meta.name)) {
573
+ const fileName = basename.split(".")[0];
574
+ if (fileName !== metaInfo.meta.name) {
575
575
  return [
576
- `meta.name: The name of the .emb.* file and [meta.name]'s value must match. In this case, [meta.name] must be ${fileName[0]}`,
576
+ `meta.name: The name of the .emb.* file and [meta.name]'s value must match. In this case, [meta.name] must be ${fileName}`,
577
577
  ];
578
578
  }
579
579
  return [];