array-chunk-by-size
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -47,3 +47,3 @@ const stringify = require('json-stringify-safe'); | ||
const str = stringify(obj); | ||
return str.length; | ||
return Buffer.byteLength(str, 'utf8'); | ||
} catch (error) { | ||
@@ -50,0 +50,0 @@ return 0; |
{ | ||
"name": "array-chunk-by-size", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Chunk array of objects by their size in JSON", |
2532