⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
diff --git a/index.js b/index.js
--- a/index.js
+++ b/index.js
@@ -46,6 +46,7 @@
// Protects from prototype poisoning and unexpected merging up the prototype chain.
function propertyIsUnsafe(target, key) {
+ if (key === '__proto__') return true
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
@@ -55,6 +56,7 @@
var destination = {}
if (options.isMergeableObject(target)) {
getKeys(target).forEach(function(key) {
+ if (key === '__proto__') return
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options)
})
}
diff --git a/dist/cjs.js b/dist/cjs.js
--- a/dist/cjs.js
+++ b/dist/cjs.js
@@ -71,6 +71,7 @@
// Protects from prototype poisoning and unexpected merging up the prototype chain.
function propertyIsUnsafe(target, key) {
+ if (key === '__proto__') return true
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
@@ -80,6 +81,7 @@
var destination = {};
if (options.isMergeableObject(target)) {
getKeys(target).forEach(function(key) {
+ if (key === '__proto__') return
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
});
}
diff --git a/dist/umd.js b/dist/umd.js
--- a/dist/umd.js
+++ b/dist/umd.js
@@ -75,6 +75,7 @@
// Protects from prototype poisoning and unexpected merging up the prototype chain.
function propertyIsUnsafe(target, key) {
+ if (key === '__proto__') return true
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
@@ -84,6 +85,7 @@
var destination = {};
if (options.isMergeableObject(target)) {
getKeys(target).forEach(function(key) {
+ if (key === '__proto__') return
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
});
}