@atomist/automation-client
Version:
Atomist API for software low-level client
28 lines • 838 B
JavaScript
;
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