mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
6.2 KiB
Plaintext
1 line
6.2 KiB
Plaintext
{"dependencies":[{"name":"eventemitter3","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":24,"index":126},"end":{"line":4,"column":48,"index":150}}],"key":"Zer+KWV0bk2Kb76lO2UgzgR5IvY=","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.Events = void 0;\n const eventemitter3_1 = require(_dependencyMap[0], \"eventemitter3\");\n class Events {\n #eventemitter = new eventemitter3_1.EventEmitter();\n emit(type, ...args) {\n return this.#eventemitter.emit(type, ...args);\n }\n /**\n * @description Attach an eventemitter handler to listen to a specific event\n *\n * @param type The type of event to listen to. Available events are `connected`, `disconnected`, `ready` and `error`\n * @param handler The callback to be called when the event fires. Depending on the event type, it could fire with additional arguments.\n *\n * @example\n * <BR>\n *\n * ```javascript\n * api.on('connected', (): void => {\n * console.log('API has been connected to the endpoint');\n * });\n *\n * api.on('disconnected', (): void => {\n * console.log('API has been disconnected from the endpoint');\n * });\n * ```\n */\n on(type, handler) {\n this.#eventemitter.on(type, handler);\n return this;\n }\n /**\n * @description Remove the given eventemitter handler\n *\n * @param type The type of event the callback was attached to. Available events are `connected`, `disconnected`, `ready` and `error`\n * @param handler The callback to unregister.\n *\n * @example\n * <BR>\n *\n * ```javascript\n * const handler = (): void => {\n * console.log('Connected !);\n * };\n *\n * // Start listening\n * api.on('connected', handler);\n *\n * // Stop listening\n * api.off('connected', handler);\n * ```\n */\n off(type, handler) {\n this.#eventemitter.removeListener(type, handler);\n return this;\n }\n /**\n * @description Attach an one-time eventemitter handler to listen to a specific event\n *\n * @param type The type of event to listen to. Available events are `connected`, `disconnected`, `ready` and `error`\n * @param handler The callback to be called when the event fires. Depending on the event type, it could fire with additional arguments.\n *\n * @example\n * <BR>\n *\n * ```javascript\n * api.once('connected', (): void => {\n * console.log('API has been connected to the endpoint');\n * });\n *\n * api.once('disconnected', (): void => {\n * console.log('API has been disconnected from the endpoint');\n * });\n * ```\n */\n once(type, handler) {\n this.#eventemitter.once(type, handler);\n return this;\n }\n }\n exports.Events = Events;\n});","lineCount":87,"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,"Events"],[7,16,3,14],[7,19,3,17],[7,24,3,22],[7,25,3,23],[8,2,4,0],[8,8,4,6,"eventemitter3_1"],[8,23,4,21],[8,26,4,24,"require"],[8,33,4,31],[8,34,4,31,"_dependencyMap"],[8,48,4,31],[8,68,4,47],[8,69,4,48],[9,2,5,0],[9,8,5,6,"Events"],[9,14,5,12],[9,15,5,13],[10,4,6,4],[10,5,6,5,"eventemitter"],[10,17,6,17],[10,20,6,20],[10,24,6,24,"eventemitter3_1"],[10,39,6,39],[10,40,6,40,"EventEmitter"],[10,52,6,52],[10,53,6,53],[10,54,6,54],[11,4,7,4,"emit"],[11,8,7,8,"emit"],[11,9,7,9,"type"],[11,13,7,13],[11,15,7,15],[11,18,7,18,"args"],[11,22,7,22],[11,24,7,24],[12,6,8,8],[12,13,8,15],[12,17,8,19],[12,18,8,20],[12,19,8,21,"eventemitter"],[12,31,8,33],[12,32,8,34,"emit"],[12,36,8,38],[12,37,8,39,"type"],[12,41,8,43],[12,43,8,45],[12,46,8,48,"args"],[12,50,8,52],[12,51,8,53],[13,4,9,4],[14,4,10,4],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,0,28,0],[33,4,29,4,"on"],[33,6,29,6,"on"],[33,7,29,7,"type"],[33,11,29,11],[33,13,29,13,"handler"],[33,20,29,20],[33,22,29,22],[34,6,30,8],[34,10,30,12],[34,11,30,13],[34,12,30,14,"eventemitter"],[34,24,30,26],[34,25,30,27,"on"],[34,27,30,29],[34,28,30,30,"type"],[34,32,30,34],[34,34,30,36,"handler"],[34,41,30,43],[34,42,30,44],[35,6,31,8],[35,13,31,15],[35,17,31,19],[36,4,32,4],[37,4,33,4],[38,0,34,0],[39,0,35,0],[40,0,36,0],[41,0,37,0],[42,0,38,0],[43,0,39,0],[44,0,40,0],[45,0,41,0],[46,0,42,0],[47,0,43,0],[48,0,44,0],[49,0,45,0],[50,0,46,0],[51,0,47,0],[52,0,48,0],[53,0,49,0],[54,0,50,0],[55,0,51,0],[56,0,52,0],[57,0,53,0],[58,4,54,4,"off"],[58,7,54,7,"off"],[58,8,54,8,"type"],[58,12,54,12],[58,14,54,14,"handler"],[58,21,54,21],[58,23,54,23],[59,6,55,8],[59,10,55,12],[59,11,55,13],[59,12,55,14,"eventemitter"],[59,24,55,26],[59,25,55,27,"removeListener"],[59,39,55,41],[59,40,55,42,"type"],[59,44,55,46],[59,46,55,48,"handler"],[59,53,55,55],[59,54,55,56],[60,6,56,8],[60,13,56,15],[60,17,56,19],[61,4,57,4],[62,4,58,4],[63,0,59,0],[64,0,60,0],[65,0,61,0],[66,0,62,0],[67,0,63,0],[68,0,64,0],[69,0,65,0],[70,0,66,0],[71,0,67,0],[72,0,68,0],[73,0,69,0],[74,0,70,0],[75,0,71,0],[76,0,72,0],[77,0,73,0],[78,0,74,0],[79,0,75,0],[80,0,76,0],[81,4,77,4,"once"],[81,8,77,8,"once"],[81,9,77,9,"type"],[81,13,77,13],[81,15,77,15,"handler"],[81,22,77,22],[81,24,77,24],[82,6,78,8],[82,10,78,12],[82,11,78,13],[82,12,78,14,"eventemitter"],[82,24,78,26],[82,25,78,27,"once"],[82,29,78,31],[82,30,78,32,"type"],[82,34,78,36],[82,36,78,38,"handler"],[82,43,78,45],[82,44,78,46],[83,6,79,8],[83,13,79,15],[83,17,79,19],[84,4,80,4],[85,2,81,0],[86,2,82,0,"exports"],[86,9,82,7],[86,10,82,8,"Events"],[86,16,82,14],[86,19,82,17,"Events"],[86,25,82,23],[87,0,82,24],[87,3]],"functionMap":{"names":["<global>","Events","emit","on","off","once"],"mappings":"AAA;ACI;ICE;KDE;IEoB;KFG;IGsB;KHG;IIoB;KJG;CDC"},"hasCjsExports":true},"type":"js/module"}]} |