mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
9.5 KiB
Plaintext
1 line
9.5 KiB
Plaintext
{"dependencies":[{"name":"tslib","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":16,"index":121},"end":{"line":4,"column":32,"index":137}}],"key":"vm88vOsSPZItrLOmMEyUuGkd1y4=","exportNames":["*"],"imports":1}},{"name":"events","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":17,"index":156},"end":{"line":5,"column":34,"index":173}}],"key":"JsYPPZbiyTKGtgYi4nFi37XasmQ=","exportNames":["*"],"imports":1}},{"name":"@walletconnect/time","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":15,"index":190},"end":{"line":6,"column":45,"index":220}}],"key":"F5SG3Se2rjSCzigxfBKI11htfIE=","exportNames":["*"],"imports":1}},{"name":"./types","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":16,"index":238},"end":{"line":7,"column":34,"index":256}}],"key":"iU0PUTt27rZ09z7DeRf4jWGkzmo=","exportNames":["*"],"imports":1}},{"name":"./constants","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":20,"index":278},"end":{"line":8,"column":42,"index":300}}],"key":"3z43bJyk/UB4EKjDCOXTFak09do=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.HeartBeat = void 0;\n const tslib_1 = require(_dependencyMap[0], \"tslib\");\n const events_1 = require(_dependencyMap[1], \"events\");\n const time_1 = require(_dependencyMap[2], \"@walletconnect/time\");\n const types_1 = require(_dependencyMap[3], \"./types\");\n const constants_1 = require(_dependencyMap[4], \"./constants\");\n class HeartBeat extends types_1.IHeartBeat {\n constructor(opts) {\n super(opts);\n this.events = new events_1.EventEmitter();\n this.interval = constants_1.HEARTBEAT_INTERVAL;\n this.interval = (opts === null || opts === void 0 ? void 0 : opts.interval) || constants_1.HEARTBEAT_INTERVAL;\n }\n static init(opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function* () {\n const heartbeat = new HeartBeat(opts);\n yield heartbeat.init();\n return heartbeat;\n });\n }\n init() {\n return tslib_1.__awaiter(this, void 0, void 0, function* () {\n yield this.initialize();\n });\n }\n stop() {\n clearInterval(this.intervalRef);\n }\n on(event, listener) {\n this.events.on(event, listener);\n }\n once(event, listener) {\n this.events.once(event, listener);\n }\n off(event, listener) {\n this.events.off(event, listener);\n }\n removeListener(event, listener) {\n this.events.removeListener(event, listener);\n }\n initialize() {\n return tslib_1.__awaiter(this, void 0, void 0, function* () {\n this.intervalRef = setInterval(() => this.pulse(), time_1.toMiliseconds(this.interval));\n });\n }\n pulse() {\n this.events.emit(constants_1.HEARTBEAT_EVENTS.pulse);\n }\n }\n exports.HeartBeat = HeartBeat;\n});","lineCount":57,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"HeartBeat"],[7,19,3,17],[7,22,3,20],[7,27,3,25],[7,28,3,26],[8,2,4,0],[8,8,4,6,"tslib_1"],[8,15,4,13],[8,18,4,16,"require"],[8,25,4,23],[8,26,4,23,"_dependencyMap"],[8,40,4,23],[8,52,4,31],[8,53,4,32],[9,2,5,0],[9,8,5,6,"events_1"],[9,16,5,14],[9,19,5,17,"require"],[9,26,5,24],[9,27,5,24,"_dependencyMap"],[9,41,5,24],[9,54,5,33],[9,55,5,34],[10,2,6,0],[10,8,6,6,"time_1"],[10,14,6,12],[10,17,6,15,"require"],[10,24,6,22],[10,25,6,22,"_dependencyMap"],[10,39,6,22],[10,65,6,44],[10,66,6,45],[11,2,7,0],[11,8,7,6,"types_1"],[11,15,7,13],[11,18,7,16,"require"],[11,25,7,23],[11,26,7,23,"_dependencyMap"],[11,40,7,23],[11,54,7,33],[11,55,7,34],[12,2,8,0],[12,8,8,6,"constants_1"],[12,19,8,17],[12,22,8,20,"require"],[12,29,8,27],[12,30,8,27,"_dependencyMap"],[12,44,8,27],[12,62,8,41],[12,63,8,42],[13,2,9,0],[13,8,9,6,"HeartBeat"],[13,17,9,15],[13,26,9,24,"types_1"],[13,33,9,31],[13,34,9,32,"IHeartBeat"],[13,44,9,42],[13,45,9,43],[14,4,10,4,"constructor"],[14,15,10,15,"constructor"],[14,16,10,16,"opts"],[14,20,10,20],[14,22,10,22],[15,6,11,8],[15,11,11,13],[15,12,11,14,"opts"],[15,16,11,18],[15,17,11,19],[16,6,12,8],[16,10,12,12],[16,11,12,13,"events"],[16,17,12,19],[16,20,12,22],[16,24,12,26,"events_1"],[16,32,12,34],[16,33,12,35,"EventEmitter"],[16,45,12,47],[16,46,12,48],[16,47,12,49],[17,6,13,8],[17,10,13,12],[17,11,13,13,"interval"],[17,19,13,21],[17,22,13,24,"constants_1"],[17,33,13,35],[17,34,13,36,"HEARTBEAT_INTERVAL"],[17,52,13,54],[18,6,14,8],[18,10,14,12],[18,11,14,13,"interval"],[18,19,14,21],[18,22,14,24],[18,23,14,25,"opts"],[18,27,14,29],[18,32,14,34],[18,36,14,38],[18,40,14,42,"opts"],[18,44,14,46],[18,49,14,51],[18,54,14,56],[18,55,14,57],[18,58,14,60],[18,63,14,65],[18,64,14,66],[18,67,14,69,"opts"],[18,71,14,73],[18,72,14,74,"interval"],[18,80,14,82],[18,85,14,87,"constants_1"],[18,96,14,98],[18,97,14,99,"HEARTBEAT_INTERVAL"],[18,115,14,117],[19,4,15,4],[20,4,16,4],[20,11,16,11,"init"],[20,15,16,15,"init"],[20,16,16,16,"opts"],[20,20,16,20],[20,22,16,22],[21,6,17,8],[21,13,17,15,"tslib_1"],[21,20,17,22],[21,21,17,23,"__awaiter"],[21,30,17,32],[21,31,17,33],[21,35,17,37],[21,37,17,39],[21,42,17,44],[21,43,17,45],[21,45,17,47],[21,50,17,52],[21,51,17,53],[21,53,17,55],[21,66,17,68],[22,8,18,12],[22,14,18,18,"heartbeat"],[22,23,18,27],[22,26,18,30],[22,30,18,34,"HeartBeat"],[22,39,18,43],[22,40,18,44,"opts"],[22,44,18,48],[22,45,18,49],[23,8,19,12],[23,14,19,18,"heartbeat"],[23,23,19,27],[23,24,19,28,"init"],[23,28,19,32],[23,29,19,33],[23,30,19,34],[24,8,20,12],[24,15,20,19,"heartbeat"],[24,24,20,28],[25,6,21,8],[25,7,21,9],[25,8,21,10],[26,4,22,4],[27,4,23,4,"init"],[27,8,23,8,"init"],[27,9,23,8],[27,11,23,11],[28,6,24,8],[28,13,24,15,"tslib_1"],[28,20,24,22],[28,21,24,23,"__awaiter"],[28,30,24,32],[28,31,24,33],[28,35,24,37],[28,37,24,39],[28,42,24,44],[28,43,24,45],[28,45,24,47],[28,50,24,52],[28,51,24,53],[28,53,24,55],[28,66,24,68],[29,8,25,12],[29,14,25,18],[29,18,25,22],[29,19,25,23,"initialize"],[29,29,25,33],[29,30,25,34],[29,31,25,35],[30,6,26,8],[30,7,26,9],[30,8,26,10],[31,4,27,4],[32,4,28,4,"stop"],[32,8,28,8,"stop"],[32,9,28,8],[32,11,28,11],[33,6,29,8,"clearInterval"],[33,19,29,21],[33,20,29,22],[33,24,29,26],[33,25,29,27,"intervalRef"],[33,36,29,38],[33,37,29,39],[34,4,30,4],[35,4,31,4,"on"],[35,6,31,6,"on"],[35,7,31,7,"event"],[35,12,31,12],[35,14,31,14,"listener"],[35,22,31,22],[35,24,31,24],[36,6,32,8],[36,10,32,12],[36,11,32,13,"events"],[36,17,32,19],[36,18,32,20,"on"],[36,20,32,22],[36,21,32,23,"event"],[36,26,32,28],[36,28,32,30,"listener"],[36,36,32,38],[36,37,32,39],[37,4,33,4],[38,4,34,4,"once"],[38,8,34,8,"once"],[38,9,34,9,"event"],[38,14,34,14],[38,16,34,16,"listener"],[38,24,34,24],[38,26,34,26],[39,6,35,8],[39,10,35,12],[39,11,35,13,"events"],[39,17,35,19],[39,18,35,20,"once"],[39,22,35,24],[39,23,35,25,"event"],[39,28,35,30],[39,30,35,32,"listener"],[39,38,35,40],[39,39,35,41],[40,4,36,4],[41,4,37,4,"off"],[41,7,37,7,"off"],[41,8,37,8,"event"],[41,13,37,13],[41,15,37,15,"listener"],[41,23,37,23],[41,25,37,25],[42,6,38,8],[42,10,38,12],[42,11,38,13,"events"],[42,17,38,19],[42,18,38,20,"off"],[42,21,38,23],[42,22,38,24,"event"],[42,27,38,29],[42,29,38,31,"listener"],[42,37,38,39],[42,38,38,40],[43,4,39,4],[44,4,40,4,"removeListener"],[44,18,40,18,"removeListener"],[44,19,40,19,"event"],[44,24,40,24],[44,26,40,26,"listener"],[44,34,40,34],[44,36,40,36],[45,6,41,8],[45,10,41,12],[45,11,41,13,"events"],[45,17,41,19],[45,18,41,20,"removeListener"],[45,32,41,34],[45,33,41,35,"event"],[45,38,41,40],[45,40,41,42,"listener"],[45,48,41,50],[45,49,41,51],[46,4,42,4],[47,4,43,4,"initialize"],[47,14,43,14,"initialize"],[47,15,43,14],[47,17,43,17],[48,6,44,8],[48,13,44,15,"tslib_1"],[48,20,44,22],[48,21,44,23,"__awaiter"],[48,30,44,32],[48,31,44,33],[48,35,44,37],[48,37,44,39],[48,42,44,44],[48,43,44,45],[48,45,44,47],[48,50,44,52],[48,51,44,53],[48,53,44,55],[48,66,44,68],[49,8,45,12],[49,12,45,16],[49,13,45,17,"intervalRef"],[49,24,45,28],[49,27,45,31,"setInterval"],[49,38,45,42],[49,39,45,43],[49,45,45,49],[49,49,45,53],[49,50,45,54,"pulse"],[49,55,45,59],[49,56,45,60],[49,57,45,61],[49,59,45,63,"time_1"],[49,65,45,69],[49,66,45,70,"toMiliseconds"],[49,79,45,83],[49,80,45,84],[49,84,45,88],[49,85,45,89,"interval"],[49,93,45,97],[49,94,45,98],[49,95,45,99],[50,6,46,8],[50,7,46,9],[50,8,46,10],[51,4,47,4],[52,4,48,4,"pulse"],[52,9,48,9,"pulse"],[52,10,48,9],[52,12,48,12],[53,6,49,8],[53,10,49,12],[53,11,49,13,"events"],[53,17,49,19],[53,18,49,20,"emit"],[53,22,49,24],[53,23,49,25,"constants_1"],[53,34,49,36],[53,35,49,37,"HEARTBEAT_EVENTS"],[53,51,49,53],[53,52,49,54,"pulse"],[53,57,49,59],[53,58,49,60],[54,4,50,4],[55,2,51,0],[56,2,52,0,"exports"],[56,9,52,7],[56,10,52,8,"HeartBeat"],[56,19,52,17],[56,22,52,20,"HeartBeat"],[56,31,52,29],[57,0,52,30],[57,3]],"functionMap":{"names":["<global>","HeartBeat","HeartBeat#constructor","HeartBeat.init","tslib_1.__awaiter$argument_3","HeartBeat#init","HeartBeat#stop","HeartBeat#on","HeartBeat#once","HeartBeat#off","HeartBeat#removeListener","HeartBeat#initialize","setInterval$argument_0","HeartBeat#pulse"],"mappings":"AAA;ACQ;ICC;KDK;IEC;uDCC;SDI;KFC;IIC;uDDC;SCE;KJC;IKC;KLE;IMC;KNE;IOC;KPE;IQC;KRE;ISC;KTE;IUC;uDPC;2CQC,kBR;SOC;KVC;IYC;KZE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |