@vue/server-renderer 3.5.24 → 3.5.26
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/server-renderer v3.5.
|
|
2
|
+
* @vue/server-renderer v3.5.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -456,7 +456,7 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
456
456
|
name = match[1];
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
if (!name && instance
|
|
459
|
+
if (!name && instance) {
|
|
460
460
|
const inferFromRegistry = (registry) => {
|
|
461
461
|
for (const key in registry) {
|
|
462
462
|
if (registry[key] === Component) {
|
|
@@ -464,8 +464,8 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
|
-
name = inferFromRegistry(
|
|
468
|
-
instance.
|
|
467
|
+
name = inferFromRegistry(instance.components) || instance.parent && inferFromRegistry(
|
|
468
|
+
instance.parent.type.components
|
|
469
469
|
) || inferFromRegistry(instance.appContext.components);
|
|
470
470
|
}
|
|
471
471
|
return name ? classify(name) : isRoot ? `App` : `Anonymous`;
|