const PUBLISHER_ID_KEY = "ctx-key-publisher-id";
export const withPublisher = (ctx, axios) => {
    return Object.assign(Object.assign({}, ctx), { [PUBLISHER_ID_KEY]: axios });
};
export const getPublisher = (ctx) => {
    const l = ctx[PUBLISHER_ID_KEY];
    if (l == undefined) {
        throw (new Error("publisher not found in the context"));
    }
    return l;
};
//# sourceMappingURL=context.js.map