15 lines
492 B
Plaintext
15 lines
492 B
Plaintext
|
function isAstroComponentFactory(obj) {
|
||
|
return obj == null ? false : obj.isAstroComponentFactory === true;
|
||
|
}
|
||
|
function isAPropagatingComponent(result, factory) {
|
||
|
let hint = factory.propagation || "none";
|
||
|
if (factory.moduleId && result.componentMetadata.has(factory.moduleId) && hint === "none") {
|
||
|
hint = result.componentMetadata.get(factory.moduleId).propagation;
|
||
|
}
|
||
|
return hint === "in-tree" || hint === "self";
|
||
|
}
|
||
|
export {
|
||
|
isAPropagatingComponent,
|
||
|
isAstroComponentFactory
|
||
|
};
|