exome
Version:
State manager for deeply nested states
8 lines (7 loc) • 949 B
Source Map (JSON)
{
"version": 3,
"sources": ["../src/ghost.ts", "../src/create-id.ts"],
"sourcesContent": ["/**\n * @module exome/ghost\n */\nimport { exomeId } from \"exome\";\n\nimport { createID } from \"./create-id.ts\";\n\n/**\n * This is a class that pretends to be Exome store, but doesn't apply same change detection logic.\n * This is useful for testing and mocking data.\n */\nexport class GhostExome {\n\tprivate [exomeId] = this.constructor.name + \"-\" + createID();\n}\n", "export const createID = (): string =>\n\t(\n\t\tDate.now().toString(36) + ((Math.random() * 1e5) ^ 1).toString(36)\n\t).toUpperCase();\n"],
"mappings": ";AAGA,SAAS,WAAAA,SAAe;;;ACHjB,IAAMC,IAAW,OAEtB,KAAK,IAAI,EAAE,SAAS,EAAE,KAAM,KAAK,OAAO,IAAI,MAAO,GAAG,SAAS,EAAE,GAChE,YAAY;;;ADHf,IAAAC;AAYUA,IAAAC;AADH,IAAMC,IAAN,MAAiB;AAAA,EAAjB;AACN,SAASF,KAAW,KAAK,YAAY,OAAO,MAAMG,EAAS;AAAA;AAC5D;",
"names": ["exomeId", "createID", "_a", "exomeId", "GhostExome", "createID"]
}