diff --git a/deno.jsonc b/deno.jsonc index 23b9ab0..7f4d742 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -13,7 +13,7 @@ "indentWidth": 4 }, "imports": { - "@cross/deepmerge": "jsr:@cross/deepmerge@^0.1.1", + "@cross/deepmerge": "jsr:@cross/deepmerge@^0.2.0", "@cross/runtime": "jsr:@cross/runtime@^0.0.17", "@cross/test": "jsr:@cross/test@^0.0.8", "@std/assert": "jsr:@std/assert@^0.219.1" diff --git a/mod.ts b/mod.ts index 8dee295..527ec61 100644 --- a/mod.ts +++ b/mod.ts @@ -11,7 +11,7 @@ import { ValidationError, ValidatorFunction, } from "./lib/helpers.ts"; -import { deepMerge } from "@cross/deepmerge"; +import { simpleMerge } from "@cross/deepmerge"; import { getCurrentRuntime } from "@cross/runtime"; import { loadEnvFile } from "./lib/filehandler.ts"; export type { EnvOptions, ValidatorFunction } from "./lib/helpers.ts"; @@ -48,7 +48,7 @@ let logWarnings = defaultOptions.logWarnings; */ export async function setupEnv(options?: EnvOptions) { if (options) { - const mergedOptions = deepMerge({}, defaultOptions, options); + const mergedOptions = simpleMerge({}, defaultOptions, options); throwErrors = mergedOptions.throwErrors!; logWarnings = mergedOptions.logWarnings!;