object-sizeof
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -55,3 +55,5 @@ // Copyright 2014 Andrei Karpushonak | ||
if (Array.isArray(object)) { | ||
return object.map(sizeof).reduce((acc, curr) => acc + curr, 0) | ||
return object.map(sizeof).reduce(function (acc, curr) { | ||
return acc + curr | ||
}, 0) | ||
} else { | ||
@@ -58,0 +60,0 @@ return sizeOfObject(object) |
{ | ||
"name": "object-sizeof", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Sizeof of a JavaScript object in Bytes", | ||
@@ -23,10 +23,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"buffer": "^5.4.0" | ||
"buffer": "^5.4.3" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^6.2.0", | ||
"mocha": "^6.2.1", | ||
"should": "^13.2.3", | ||
"standard": "^14.0.0" | ||
"standard": "^14.3.1" | ||
}, | ||
"types": "index.d.ts" | ||
} |
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
7921
136
Updatedbuffer@^5.4.3