@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.esm.js CHANGED
@@ -546,10 +546,10 @@ const validateComponentEvents = (metaInfo) => {
546
546
  };
547
547
  const validateModuleName = (metaInfo) => {
548
548
  const basename = path.basename(metaInfo.moduleId);
549
- const fileName = basename.split(".");
550
- if (!basename.includes(metaInfo.meta.name)) {
549
+ const fileName = basename.split(".")[0];
550
+ if (fileName !== metaInfo.meta.name) {
551
551
  return [
552
- `meta.name: The name of the .emb.* file and [meta.name]'s value must match. In this case, [meta.name] must be ${fileName[0]}`,
552
+ `meta.name: The name of the .emb.* file and [meta.name]'s value must match. In this case, [meta.name] must be ${fileName}`,
553
553
  ];
554
554
  }
555
555
  return [];