@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.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 (
|
|
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
|
|
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 [];
|