@embeddable.com/sdk-react 2.2.22 → 2.2.24
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 +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
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 (
|
|
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
|
|
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 [];
|