@vc-shell/framework 1.1.83-alpha.0 → 1.1.83

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.
@@ -1,23 +1,23 @@
1
- <template>
2
- <template
3
- v-for="extension in components"
4
- :key="extension.id"
5
- >
6
- <component
7
- :is="extension.component"
8
- v-bind="extension.props || {}"
9
- />
10
- </template>
11
- </template>
12
-
13
- <script setup lang="ts">
14
- import { useExtensionSlot } from './simple-extensions';
15
-
16
- interface Props {
17
- name: string;
18
- }
19
-
20
- const props = defineProps<Props>();
21
-
22
- const { components } = useExtensionSlot(props.name);
23
- </script>
1
+ <template>
2
+ <template
3
+ v-for="extension in components"
4
+ :key="extension.id"
5
+ >
6
+ <component
7
+ :is="extension.component"
8
+ v-bind="extension.props || {}"
9
+ />
10
+ </template>
11
+ </template>
12
+
13
+ <script setup lang="ts">
14
+ import { useExtensionSlot } from './simple-extensions';
15
+
16
+ interface Props {
17
+ name: string;
18
+ }
19
+
20
+ const props = defineProps<Props>();
21
+
22
+ const { components } = useExtensionSlot(props.name);
23
+ </script>
@@ -148,7 +148,7 @@ function checkVersionCompatibility(
148
148
 
149
149
  if (
150
150
  moduleVersion.compatibleWith.framework &&
151
- !semver.satisfies(frameworkVersion, moduleVersion.compatibleWith.framework)
151
+ !semver.satisfies(frameworkVersion, moduleVersion.compatibleWith.framework, { includePrerelease: true })
152
152
  ) {
153
153
  console.error(
154
154
  `Module ${moduleId} requires framework version ${moduleVersion.compatibleWith.framework}, but current framework version is ${frameworkVersion}.`,
@@ -172,7 +172,7 @@ function checkVersionCompatibility(
172
172
  continue;
173
173
  }
174
174
 
175
- if (!semver.satisfies(loadedDepVersion, versionRange)) {
175
+ if (!semver.satisfies(loadedDepVersion, versionRange, { includePrerelease: true })) {
176
176
  console.error(
177
177
  `Module ${moduleId} requires ${depModuleId} version ${versionRange}, but loaded version is ${loadedDepVersion}.`,
178
178
  );