@mbler/mcx-core 0.1.1-beta.r2 → 0.1.1-beta.r3

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/dist/index.js CHANGED
@@ -11904,7 +11904,7 @@ async function compileComponent(compiledCode, ctx) {
11904
11904
  const json = pointData.toJSON();
11905
11905
  if (!json._meta ||
11906
11906
  !json._meta.type ||
11907
- (json._meta.type !== 'item' && json._meta.type !== 'entity'))
11907
+ !['item', 'entity'].includes(json._meta.type))
11908
11908
  throw new Error('[mcx component]: not mcx json component: unkown type');
11909
11909
  if (json._meta.file_edit)
11910
11910
  await execEdit(json._meta.file_edit, ctx);