UNPKG

@layerfig/config

Version:

Layer and runtime-validate type-safe configs for JavaScript apps.

22 lines (20 loc) 526 B
const require_source = require('../../source-C9BKBtnS.cjs'); //#region src/sources/object.ts var ObjectSource = class extends require_source.Source { #object; constructor(object) { super(); this.#object = object; } loadSource({ slotPrefix, runtimeEnv }) { const replacedObject = this.maybeReplaceSlotFromValue({ value: JSON.stringify(this.#object), slotPrefix, runtimeEnv }); return JSON.parse(replacedObject); } }; //#endregion exports.ObjectSource = ObjectSource; //# sourceMappingURL=index.cjs.map