a2r
Version:
A2R Framework
18 lines (17 loc) • 468 B
JavaScript
;
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;