UNPKG

a2r

Version:
18 lines (17 loc) 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getContext = exports.setContext = void 0; let context = null; /** * Sets context for next API method to be executed * @param currentContext Context for current API method */ const setContext = (currentContext) => { context = currentContext; }; exports.setContext = setContext; /** * Gets current context */ const getContext = () => context; exports.getContext = getContext;