mentie 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/modules/cache.js +1 -1
  2. package/package.json +1 -1
package/modules/cache.js CHANGED
@@ -67,7 +67,7 @@ cache.stats = () => {
67
67
  const keys = Object.keys( _cache )
68
68
 
69
69
  // Get the size in bytes of the cache
70
- const size_bytes = keys.reduce( ( acc, key ) => acc + JSON.stringify( _cache[key] ).length, 0 )
70
+ const size_bytes = keys.reduce( ( acc, key ) => acc + JSON.stringify( _cache[key] ).length + JSON.stringify( key ).length, 0 )
71
71
 
72
72
  // Calculate side to MiB and GiB, both rounded to 2 decimal places
73
73
  const size_mib = ( size_bytes / ( 1024 * 1024 ) ).toFixed( 2 )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mentie",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Mentor's toolbelt",
5
5
  "type": "module",
6
6
  "main": "index.js",