ts-deepmerge
Advanced tools
Comparing version 2.0.3 to 2.0.4
interface IObject { | ||
[key: string]: any; | ||
length?: never; | ||
} | ||
@@ -5,0 +4,0 @@ declare type TUnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; |
@@ -57,2 +57,5 @@ "use strict"; | ||
return objects.reduce(function (result, current) { | ||
if (Array.isArray(current)) { | ||
throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays."); | ||
} | ||
Object.keys(current).forEach(function (key) { | ||
@@ -59,0 +62,0 @@ if (PROTECTED_KEYS.includes(key)) { |
@@ -6,3 +6,3 @@ { | ||
"license": "ISC", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "typescript", |
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
8767
106