@typeberry/lib 0.8.3-43d8627 → 0.8.3-f8c637a

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeberry/lib",
3
- "version": "0.8.3-43d8627",
3
+ "version": "0.8.3-f8c637a",
4
4
  "description": "Typeberry Library",
5
5
  "main": "./bin/lib/index.js",
6
6
  "types": "./bin/lib/index.d.ts",
@@ -115,7 +115,7 @@ export function measure(id) {
115
115
  }
116
116
  const BYTES_IN_MB = 1024 * 1024;
117
117
  const toMb = (bytes) => (bytes / BYTES_IN_MB).toFixed(1);
118
- const signedMb = (bytes) => `${bytes >= 0 ? "+" : ""}${toMb(bytes)}`;
118
+ const signedMb = (bytes) => `${bytes >= 0 ? "+" : "-"}${toMb(bytes)}`;
119
119
  /** Raw process memory usage, or `null` in environments without `process` (e.g. browser). */
120
120
  function rawMemoryUsage() {
121
121
  if (isBrowser() || typeof process.memoryUsage !== "function") {