Skip to content

Commit

Permalink
Merge pull request #477 from escemi-tech/fix/prototype-polluting-func…
Browse files Browse the repository at this point in the history
…tion

Fix prototype polluting function
  • Loading branch information
neilime authored Jan 18, 2022
2 parents c4226ab + 0b16ff5 commit 932617d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/services/PackageJsonMerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class PackageJsonMerge {
}

private static mergeObjects(source: JsonFileData, update: JsonFileData): JsonFileData {
const updateKeys = Object.keys(update);
for (const updateKey of updateKeys) {
for (const updateKey in update) {
source[updateKey] = PackageJsonMerge.mergeValues(source[updateKey], update[updateKey]);
}
return source;
Expand Down

0 comments on commit 932617d

Please sign in to comment.