Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-sizeof

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-sizeof - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

4

index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc