UNPKG

838 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const InMemoryEventStore_1 = require("./internal/event/InMemoryEventStore");
4////////////////////////////////////////////////////////
5let es;
6function initEventStore() {
7 if (!es) {
8 es = new InMemoryEventStore_1.InMemoryEventStore();
9 }
10}
11/**
12 * Globally available instance of {EventStore} to be used across the automation client.
13 * @type {InMemoryEventStore}
14 */
15function eventStore() {
16 initEventStore();
17 return es;
18}
19exports.eventStore = eventStore;
20function setEventStore(newEventStore) {
21 es = newEventStore;
22}
23exports.setEventStore = setEventStore;
24function automationClientInstance() {
25 return global.__runningAutomationClient;
26}
27exports.automationClientInstance = automationClientInstance;
28//# sourceMappingURL=globals.js.map
\No newline at end of file