ts-deepmerge
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -50,2 +50,3 @@ "use strict"; | ||
}; | ||
var PROTECTED_KEYS = ["__proto__"]; | ||
var merge = function () { | ||
@@ -58,2 +59,5 @@ var objects = []; | ||
Object.keys(current).forEach(function (key) { | ||
if (PROTECTED_KEYS.includes(key)) { | ||
return; | ||
} | ||
if (Array.isArray(result[key]) && Array.isArray(current[key])) { | ||
@@ -60,0 +64,0 @@ result[key] = merge.options.mergeArrays |
@@ -6,3 +6,3 @@ { | ||
"license": "ISC", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"keywords": [ | ||
@@ -27,5 +27,5 @@ "typescript", | ||
"test:coverage": "cross-env NODE_ENV=test jest --no-cache --coverage --config ./jest.config.js", | ||
"typecheck": "tsc" | ||
"typecheck": "tsc", | ||
"prepack": "tsc" | ||
}, | ||
"prepublish": "tsc", | ||
"repository": { | ||
@@ -41,16 +41,17 @@ "type": "git", | ||
"devDependencies": { | ||
"@types/jest": "^27.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||
"@types/jest": "^28.1.4", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.0.0", | ||
"eslint": "^8.19.0", | ||
"eslint-config-voodoocreation": "^2.0.1", | ||
"eslint-plugin-import": "^2.25.1", | ||
"eslint-plugin-jest": "^25.0.5", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.5.3", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"jest": "^27.2.5", | ||
"jest": "^28.1.2", | ||
"jest-environment-jsdom": "^28.1.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.4.1", | ||
"ts-jest": "^27.0.5", | ||
"typescript": "^4.4.4" | ||
"prettier": "^2.7.1", | ||
"ts-jest": "^28.0.5", | ||
"typescript": "^4.7.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8494
104
14