querysub 0.318.0 → 0.319.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.318.0",
3
+ "version": "0.319.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",
@@ -394,7 +394,11 @@ class TransactionLocker {
394
394
  let pastTime = Date.now() - ARCHIVE_PROPAGATION_TIME * 10;
395
395
  let veryBadFiles = newFiles.filter(x => x.createTime < pastTime);
396
396
  if (veryBadFiles.length > 0) {
397
- console.error(`Old files suddenly appeared. This isn't possible, if they are old, they should have appeared when they were created! This likely means that our getKeys() failed to actually read all of the files. This is bad and can result in us deleting seemingly broken files for missing a confirmation, when they in fact had a confirmation.`, { files: veryBadFiles.map(x => x.file) });
397
+ console.error(`Old files suddenly appeared. This isn't possible, if they are old, they should have appeared when they were created! This likely means that our getKeys() failed to actually read all of the files. This is bad and can result in us deleting seemingly broken files for missing a confirmation, when they in fact had a confirmation.`, {
398
+ newlyAppearingOldFiles: veryBadFiles.map(x => x.file),
399
+ prevFiles: this.lastFilesRead.map(x => x.file),
400
+ newFiles: files.map(x => x.file),
401
+ });
398
402
  }
399
403
  }
400
404
  this.lastFilesRead = files;