mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
6.1 KiB
Plaintext
1 line
6.1 KiB
Plaintext
{"dependencies":[{"name":"eventemitter3","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}}],"key":"KCIqL5fIlk4FNNic7+TqcYLMlYo=","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 Object.defineProperty(exports, \"Events\", {\n enumerable: true,\n get: function () {\n return Events;\n }\n });\n var _eventemitter = require(_dependencyMap[0], \"eventemitter3\");\n class Events {\n #eventemitter = new _eventemitter.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});","lineCount":91,"map":[[7,2,2,0,"Object"],[7,8,2,0],[7,9,2,0,"defineProperty"],[7,23,2,0],[7,24,2,0,"exports"],[7,31,2,0],[8,4,2,0,"enumerable"],[8,14,2,0],[9,4,2,0,"get"],[9,7,2,0],[9,18,2,0,"get"],[9,19,2,0],[10,6,2,0],[10,13,2,0,"Events"],[10,19,2,0],[11,4,2,0],[12,2,2,0],[13,2,1,0],[13,6,1,0,"_eventemitter"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,7],[14,8,2,13,"Events"],[14,14,2,19],[14,15,2,20],[15,4,3,4],[15,5,3,5,"eventemitter"],[15,17,3,17],[15,20,3,20],[15,24,3,24,"EventEmitter"],[15,37,3,36],[15,38,3,36,"EventEmitter"],[15,50,3,36],[15,51,3,37],[15,52,3,38],[16,4,4,4,"emit"],[16,8,4,8,"emit"],[16,9,4,9,"type"],[16,13,4,13],[16,15,4,15],[16,18,4,18,"args"],[16,22,4,22],[16,24,4,24],[17,6,5,8],[17,13,5,15],[17,17,5,19],[17,18,5,20],[17,19,5,21,"eventemitter"],[17,31,5,33],[17,32,5,34,"emit"],[17,36,5,38],[17,37,5,39,"type"],[17,41,5,43],[17,43,5,45],[17,46,5,48,"args"],[17,50,5,52],[17,51,5,53],[18,4,6,4],[19,4,7,4],[20,0,8,0],[21,0,9,0],[22,0,10,0],[23,0,11,0],[24,0,12,0],[25,0,13,0],[26,0,14,0],[27,0,15,0],[28,0,16,0],[29,0,17,0],[30,0,18,0],[31,0,19,0],[32,0,20,0],[33,0,21,0],[34,0,22,0],[35,0,23,0],[36,0,24,0],[37,0,25,0],[38,4,26,4,"on"],[38,6,26,6,"on"],[38,7,26,7,"type"],[38,11,26,11],[38,13,26,13,"handler"],[38,20,26,20],[38,22,26,22],[39,6,27,8],[39,10,27,12],[39,11,27,13],[39,12,27,14,"eventemitter"],[39,24,27,26],[39,25,27,27,"on"],[39,27,27,29],[39,28,27,30,"type"],[39,32,27,34],[39,34,27,36,"handler"],[39,41,27,43],[39,42,27,44],[40,6,28,8],[40,13,28,15],[40,17,28,19],[41,4,29,4],[42,4,30,4],[43,0,31,0],[44,0,32,0],[45,0,33,0],[46,0,34,0],[47,0,35,0],[48,0,36,0],[49,0,37,0],[50,0,38,0],[51,0,39,0],[52,0,40,0],[53,0,41,0],[54,0,42,0],[55,0,43,0],[56,0,44,0],[57,0,45,0],[58,0,46,0],[59,0,47,0],[60,0,48,0],[61,0,49,0],[62,0,50,0],[63,4,51,4,"off"],[63,7,51,7,"off"],[63,8,51,8,"type"],[63,12,51,12],[63,14,51,14,"handler"],[63,21,51,21],[63,23,51,23],[64,6,52,8],[64,10,52,12],[64,11,52,13],[64,12,52,14,"eventemitter"],[64,24,52,26],[64,25,52,27,"removeListener"],[64,39,52,41],[64,40,52,42,"type"],[64,44,52,46],[64,46,52,48,"handler"],[64,53,52,55],[64,54,52,56],[65,6,53,8],[65,13,53,15],[65,17,53,19],[66,4,54,4],[67,4,55,4],[68,0,56,0],[69,0,57,0],[70,0,58,0],[71,0,59,0],[72,0,60,0],[73,0,61,0],[74,0,62,0],[75,0,63,0],[76,0,64,0],[77,0,65,0],[78,0,66,0],[79,0,67,0],[80,0,68,0],[81,0,69,0],[82,0,70,0],[83,0,71,0],[84,0,72,0],[85,0,73,0],[86,4,74,4,"once"],[86,8,74,8,"once"],[86,9,74,9,"type"],[86,13,74,13],[86,15,74,15,"handler"],[86,22,74,22],[86,24,74,24],[87,6,75,8],[87,10,75,12],[87,11,75,13],[87,12,75,14,"eventemitter"],[87,24,75,26],[87,25,75,27,"once"],[87,29,75,31],[87,30,75,32,"type"],[87,34,75,36],[87,36,75,38,"handler"],[87,43,75,45],[87,44,75,46],[88,6,76,8],[88,13,76,15],[88,17,76,19],[89,4,77,4],[90,2,78,0],[91,0,78,1],[91,3]],"functionMap":{"names":["<global>","Events","emit","on","off","once"],"mappings":"AAA;OCC;ICE;KDE;IEoB;KFG;IGsB;KHG;IIoB;KJG;CDC"},"hasCjsExports":false},"type":"js/module"}]} |