UNPKG

@pubby/sdk

Version:
21 lines (18 loc) 640 B
import { __extends } from 'tslib'; import { PubbyModule } from '../../module.js'; import merge from 'lodash.defaultsdeep'; var ConfigModule = /** @class */ (function (_super) { __extends(ConfigModule, _super); function ConfigModule(pubby, options) { var _this = _super.call(this, pubby, options) || this; pubby.config = _this; _this.current = merge({}, options); return _this; } ConfigModule.prototype.merge = function (config) { this.current = merge(this.current, config); return this; }; return ConfigModule; }(PubbyModule)); export { ConfigModule };