UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 354 B
const e=e=>Array.from(new Set((e??[]).filter(e=>e!=null))).sort(),t=t=>{let n=new Map;for(let r of t){let t=e(r.tenantKeys),i=JSON.stringify(t),a=n.get(i);if(a){a.payloads.push(r.payload);continue}n.set(i,{tenantKeys:t,payloads:[r.payload]})}return Array.from(n.values())};export{t as default}; //# sourceMappingURL=group-queue-payloads-by-tenant.mjs.map