sliftutils 1.1.51 → 1.1.53

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": "sliftutils",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -51,7 +51,7 @@
51
51
  "mobx": "^6.13.3",
52
52
  "preact-old-types": "^10.28.1",
53
53
  "shell-quote": "^1.8.3",
54
- "socket-function": "^1.1.41",
54
+ "socket-function": "^1.1.42",
55
55
  "typenode": "*",
56
56
  "typesafecss": "*",
57
57
  "ws": "^8.18.3",
@@ -210,7 +210,8 @@ export class BulkDatabaseBase<T extends { key: string }> {
210
210
 
211
211
  let time = Date.now() - start;
212
212
  if (time > 50) {
213
- console.log(`${blue(`${this.name} loaded`)} in ${red(formatTime(time))} (${blue(formatNumber(joined.rowCount))} rows, ${bulkFiles.length} bulk + ${streamFiles.length} stream files)`);
213
+ let totalKeysSize = readers.map(x => x.columns.find(c => c.column === "key")?.byteSize || 0).reduce((a, b) => a + b, 0);
214
+ console.log(`${blue(`${this.name} loaded`)} in ${red(formatTime(time))} (${blue(formatNumber(joined.rowCount))} rows, ${bulkFiles.length} bulk + ${streamFiles.length} stream files, ${blue(formatNumber(totalKeysSize))} keys size)`);
214
215
  }
215
216
  return joined;
216
217
  });
package/yarn.lock CHANGED
@@ -1940,10 +1940,10 @@ slash@^3.0.0:
1940
1940
  resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
1941
1941
  integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
1942
1942
 
1943
- socket-function@^1.1.41:
1944
- version "1.1.41"
1945
- resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-1.1.41.tgz#03e7c187d16e8353f90cff511bb3432a4e297050"
1946
- integrity sha512-d/c5wUKk/WEhvH7d4M7jtYEPcZifqulG/OkP3EkyYypS34cL0a40i2x9gqqYVxo6AYosJC2IuO7NR9fNgqfIKA==
1943
+ socket-function@^1.1.42:
1944
+ version "1.1.42"
1945
+ resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-1.1.42.tgz#79694906fe37c77da720f0fcc46a812021349062"
1946
+ integrity sha512-+nhKi73LNv8m99w/sShaQbxQbUA1qgO7QvP0PX7MdV9SvhAbnOY9O4siaqTfqtJy5cMuX8Xnbfz/pptvvPDTaA==
1947
1947
  dependencies:
1948
1948
  "@types/pako" "^2.0.3"
1949
1949
  "@types/ws" "^8.5.3"