UNPKG

@atomist/automation-client

Version:
28 lines 838 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const InMemoryEventStore_1 = require("./internal/event/InMemoryEventStore"); //////////////////////////////////////////////////////// let es; function initEventStore() { if (!es) { es = new InMemoryEventStore_1.InMemoryEventStore(); } } /** * Globally available instance of {EventStore} to be used across the automation client. * @type {InMemoryEventStore} */ function eventStore() { initEventStore(); return es; } exports.eventStore = eventStore; function setEventStore(newEventStore) { es = newEventStore; } exports.setEventStore = setEventStore; function automationClientInstance() { return global.__runningAutomationClient; } exports.automationClientInstance = automationClientInstance; //# sourceMappingURL=globals.js.map