Comparing version 5.0.0 to 5.0.1
@@ -64,3 +64,7 @@ const isObject = value => typeof value === 'object' && value !== null; | ||
if (Array.isArray(object)) { | ||
throw new TypeError('Expected an object, got an array'); | ||
} | ||
return _mapObject(object, mapper, options); | ||
} |
{ | ||
"name": "map-obj", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Map object keys and values into a new object", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
9338
175