querysub 0.643.0 → 0.644.0

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": "querysub",
3
- "version": "0.643.0",
3
+ "version": "0.644.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -79,8 +79,8 @@
79
79
  "node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
80
80
  "pako": "^2.1.0",
81
81
  "peggy": "^5.0.6",
82
- "sliftutils": "^1.7.114",
83
- "socket-function": "^1.2.32",
82
+ "sliftutils": "^1.7.116",
83
+ "socket-function": "^1.2.33",
84
84
  "terser": "^5.31.0",
85
85
  "typenode": "^6.6.1",
86
86
  "typesafecss": "^0.32.0",
@@ -123,11 +123,14 @@ export function createArchiveLocker2(config: {
123
123
  // Delete all files we didn't just set (move to recycle bin)
124
124
  let moveCount = 0;
125
125
  async function moveFile(file: string) {
126
- moveCount++;
127
- if (correctFiles.has(file)) return;
126
+ if (correctFiles.has(file)) {
127
+ moveCount++;
128
+ return;
129
+ }
128
130
  let info = await archiveValues.getInfo(file);
129
131
  console.log(`Moving file ${file}, ${moveCount}/${valuePaths.size}, ${formatNumber(info?.size || 0)} bytes`);
130
132
  await moveArchiveFile({ from: archiveValues, to: archiveRecycleBin, path: file, noFallbacks: true });
133
+ moveCount++;
131
134
  console.log(`Moved file ${file}, ${moveCount}/${valuePaths.size}`);
132
135
  }
133
136
  let moveFileParallel = runInParallel({ parallelCount: 8 }, moveFile);