astro-ghostcms/.pnpm-store/v3/files/d7/b2c29185c218793046d147b0975...

15 lines
492 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
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
};