2020-06-18 00:12:01 +02:00
|
|
|
import { assignWithDepth } from './utils';
|
2020-06-17 11:54:24 +02:00
|
|
|
const config = {};
|
2019-07-14 07:50:53 +02:00
|
|
|
|
|
|
|
export const setConfig = conf => {
|
2020-06-18 00:12:01 +02:00
|
|
|
assignWithDepth(config, conf);
|
2019-09-12 21:58:57 +02:00
|
|
|
};
|
|
|
|
export const getConfig = () => config;
|
2019-10-11 15:39:50 +02:00
|
|
|
|
|
|
|
const configApi = {
|
|
|
|
setConfig,
|
|
|
|
getConfig
|
|
|
|
// get conf() {
|
|
|
|
// return config;
|
|
|
|
// }
|
|
|
|
};
|
|
|
|
export default configApi;
|