Skip to content

Commit

Permalink
fix: not spreading initial options properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlambert committed Apr 4, 2023
1 parent 8b87881 commit 9faf111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const defaultOptions = {
};

export const createCache = async (setup?: Partial<CacheOptions>) => {
const optionsWithDefaults = { ...defaultOptions, setup };
const optionsWithDefaults = { ...defaultOptions, ...setup };
const { driver, verbose } = optionsWithDefaults;
const { debug } = getLogger(verbose);

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"exclude": ["./dist"],
"compilerOptions": {
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"module": "commonjs" /* Specify what module code is generated. */,
Expand All @@ -8,5 +9,5 @@
"strict": true,
"skipLibCheck": true,
"moduleResolution": "node"
},
}
}

0 comments on commit 9faf111

Please sign in to comment.