Skip to content

Commit

Permalink
Use mergeSingle instead of merge to clone object key
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Jan 28, 2021
1 parent d86053f commit 4ae0a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function mergeSingle(target, source) {
if (typeof prop === 'object' && Object.prototype.toString.call(prop) === '[object Object]') {
// Only deep copy Object
if (!target[key]) target[key] = {};
merge(target[key], prop);
mergeSingle(target[key], prop);
} else if (key === 'path') {
target.path = URI.joinPaths(target.path || '', source.path || '')
.setQuery(URI.parseQuery(URI.parse(target.path || '').query || ''))
Expand Down

0 comments on commit 4ae0a29

Please sign in to comment.