@altostra/core
Version:
Core library for shared types and logic
1 lines • 699 B
JavaScript
;var __awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleTelemetryAgent=void 0;class SimpleTelemetryAgent{constructor(e){this.reporter=e}send(e){return __awaiter(this,void 0,void 0,(function*(){this.reporter.reportTelemetry([e])}))}dispose(){return __awaiter(this,void 0,void 0,(function*(){}))}}exports.SimpleTelemetryAgent=SimpleTelemetryAgent;