UNPKG

@grafana/faro-core

Version:
25 lines 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MockTransport = void 0; const transports_1 = require("../transports"); const version_1 = require("../version"); class MockTransport extends transports_1.BaseTransport { constructor(ignoreURLs = []) { super(); this.ignoreURLs = ignoreURLs; this.name = '@grafana/transport-mock'; this.version = version_1.VERSION; this.items = []; } send(items) { this.items.push(...items); } isBatched() { return true; } getIgnoreUrls() { return this.ignoreURLs; } } exports.MockTransport = MockTransport; //# sourceMappingURL=mockTransport.js.map