598103fd3d67b47ee57e6dc0150aa957.json
1.03 KB
{"ast":null,"code":"Object.defineProperty(exports,\"__esModule\",{value:true});exports._TESTING_ONLY_normalize_keys=_TESTING_ONLY_normalize_keys;exports.generateKey=generateKey;var uniqueBaseId=\"id-\"+Date.now();var uuidCount=0;function _TESTING_ONLY_normalize_keys(){uniqueBaseId=\"id\";uuidCount=0;}function generateKey(){return uniqueBaseId+\"-\"+uuidCount++;}","map":{"version":3,"sources":["KeyGenerator.ts"],"names":["uniqueBaseId","Date","uuidCount"],"mappings":"2JAAA,GAAIA,CAAAA,YAAoB,CAAA,MAASC,IAAI,CAArC,GAAiCA,EAAjC,CACA,GAAIC,CAAAA,SAAiB,CAArB,CAAA,CAEO,QAAA,CAAA,4BAAA,EAA8C,CACnDF,YAAY,CAAZA,IAAAA,CACAE,SAAS,CAATA,CAAAA,CAGF,CAAO,QAAA,CAAA,WAAA,EAA+B,CACpC,MAAUF,CAAAA,YAAV,CAAA,GAAUA,CAAgBE,SAA1B,EAAA,CACD","sourcesContent":["let uniqueBaseId: string = `id-${Date.now()}`;\nlet uuidCount: number = 0;\n\nexport function _TESTING_ONLY_normalize_keys(): void {\n uniqueBaseId = `id`;\n uuidCount = 0;\n}\n\nexport function generateKey(): string {\n return `${uniqueBaseId}-${uuidCount++}`;\n}\n"]},"metadata":{},"sourceType":"script"}