@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
3 lines (2 loc) • 722 B
JavaScript
import{AnalyticsEventCategory as t}from"./events/AbstractAnalyticsEvent.js";function r(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}class e{add(r){const e=r.getEventCategory();e===t.info&&this.info.push(r),e===t.error&&this.errors.push(r),e===t.log&&this.logs.push(r)}get infoEvents(){return this.info}get errorEvents(){return this.errors}get logEvents(){return this.logs}get hasEvents(){return this.info.length>0||this.errors.length>0||this.logs.length>0}clear(){this.info=[],this.errors=[],this.logs=[]}constructor(){r(this,"info",[]),r(this,"errors",[]),r(this,"logs",[])}}export{e as AnalyticsEventQueue};
//# sourceMappingURL=AnalyticsEventQueue.js.map