/* eslint-disable @typescript-eslint/ban-ts-comment, no-underscore-dangle */ // @ts-ignore
import _package from "@pkg";
export const collectPackageInfo = (entityName)=>{
    if (typeof window === 'undefined') {
        return;
    }
    const { name, version } = _package;
    if (!window.__PLASMA_INFO__) {
        window.__PLASMA_INFO__ = {};
    }
    if (!window.__PLASMA_INFO__[name]) {
        window.__PLASMA_INFO__[name] = {
            version,
            entities: [
                entityName
            ]
        };
        return;
    }
    window.__PLASMA_INFO__[name].entities.push(entityName);
};
