@atomist/automation-client
Version:
Atomist API for software low-level client
23 lines • 645 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const continuation_local_storage_1 = require("continuation-local-storage");
// create the local storage namespace
continuation_local_storage_1.createNamespace("automation-client");
function init() {
return continuation_local_storage_1.getNamespace("automation-client");
}
exports.init = init;
function set(context) {
if (init().active) {
init().set("context", context);
}
}
exports.set = set;
function get() {
if (init().active) {
return init().get("context");
}
return null;
}
exports.get = get;
//# sourceMappingURL=cls.js.map