Skip to content

Commit

Permalink
Merge pull request #6 from Pinta365/use-simplemerge
Browse files Browse the repository at this point in the history
use simplemerge instead of deepmerge
  • Loading branch information
Pinta365 authored Mar 13, 2024
2 parents 46902aa + 8d5484c commit 247cddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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!;
Expand Down

0 comments on commit 247cddb

Please sign in to comment.