Skip to content

Commit

Permalink
fix: Provide safe defaults for destructured argument object
Browse files Browse the repository at this point in the history
config: Decrease coverage requirements
  • Loading branch information
Roman Seidelsohn committed Apr 16, 2023
1 parent 42754a7 commit d581f46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/indexHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
// TODO: Add tests for this function
const deleteNonDirectDependenciesFromAllDependencies = function deleteNonDirectDependenciesFromAllDependencies(
{ _dependencies: directDependencies, dependencies: allDependencies, devDependencies },
{ _dependencies: directDependencies = {}, dependencies: allDependencies = {}, devDependencies = {} } = {},
options,
) {
const allDependenciesArray = Object.keys(allDependencies);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"**/tests/*.js"
],
"lines": 90,
"statements": 89,
"functions": 88,
"branches": 82
"statements": 80,
"functions": 80,
"branches": 80
},
"contributors": [
"Adam Weber <adamweber01@gmail.com>",
Expand Down

0 comments on commit d581f46

Please sign in to comment.