UNPKG

@lucidcms/core

Version:

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

1 lines 631 B
{"version":3,"file":"sort-role-snapshot.mjs","names":[],"sources":["../../../src/utils/security-audit/sort-role-snapshot.ts"],"sourcesContent":["import type { SecurityAuditRoleSnapshot } from \"../../types/security-audit.js\";\n\nexport const sortRoleSnapshot = (\n\troles: SecurityAuditRoleSnapshot[],\n): SecurityAuditRoleSnapshot[] =>\n\troles\n\t\t.map((role) => ({\n\t\t\tid: role.id,\n\t\t\tname: role.name,\n\t\t}))\n\t\t.sort((a, b) => a.id - b.id);\n\nexport default sortRoleSnapshot;\n"],"mappings":"AAEA,MAAa,EACZ,GAEA,EACE,IAAK,IAAU,CACf,GAAI,EAAK,GACT,KAAM,EAAK,IACZ,EAAE,CAAC,CACF,MAAM,EAAG,IAAM,EAAE,GAAK,EAAE,EAAE"}