happn-db-provider-loki
Advanced tools
Comparing version 1.3.1-prerelease-1 to 1.3.1
11
index.js
@@ -0,1 +1,2 @@ | ||
const prettyBytes = require('pretty-bytes'); | ||
const LokiArchiveDataProvider = require('./archived'); | ||
@@ -640,3 +641,3 @@ | ||
} | ||
this.logger.debug('Snapshot Started - Current DB Size ', currentSize); | ||
this.logger.debug('Snapshot Started - Current DB Size ', prettyBytes(currentSize)); | ||
this.snapshot((e) => { | ||
@@ -728,3 +729,5 @@ if (e) { | ||
this.logger.error(`fsync to file ${this.settings.filename} failed`, e); | ||
callback(errorSyncing); | ||
fs.close(fd, (errorClosing) => { | ||
callback(errorSyncing ?? errorClosing); | ||
}); | ||
return; | ||
@@ -735,3 +738,3 @@ } | ||
} | ||
callback(null); | ||
fs.close(fd, callback); | ||
}); | ||
@@ -841,3 +844,3 @@ }); | ||
this.copyTempDataToMain(callback); | ||
this.logger.debug('Snapshot Complete - New DB Size ', this.baselineFileSize); | ||
this.logger.debug('Snapshot Complete - New DB Size ', prettyBytes(this.baselineFileSize)); | ||
}); | ||
@@ -844,0 +847,0 @@ } |
{ | ||
"name": "happn-db-provider-loki", | ||
"version": "1.3.1-prerelease-1", | ||
"version": "1.3.1", | ||
"description": "Loki data provider for happn", | ||
@@ -14,8 +14,9 @@ "scripts": { | ||
"adm-zip": "^0.5.9", | ||
"happn-commons": "1.6.0-prerelease-2", | ||
"lokijs": "^1.5.12" | ||
"happn-commons": "1.5.1", | ||
"lokijs": "^1.5.12", | ||
"pretty-bytes": "^5.6.0" | ||
}, | ||
"devDependencies": { | ||
"happn-commons-test": "1.2.3-prerelease-3" | ||
"happn-commons-test": "1.2.2" | ||
} | ||
} |
@@ -62,3 +62,3 @@ 1.0.0 2022-03-01 | ||
----------------- | ||
- feat: fixed mesh_gst paths in happner-2 | ||
- feat: fixed mesh_gst paths in happner-2 | ||
@@ -69,9 +69,5 @@ 1.3.0 2024-03-27 | ||
1.3.1 2023-09-29 | ||
1.3.1 2024-07-16 | ||
----------------- | ||
- dep: updated happn commons | ||
- fix: fsync not releasing file handles | ||
1.3.0 2024-03-27 | ||
----------------- | ||
- feat: loki provider has new file-size compaction threshold | ||
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
28580
798
1
4
+ Addedpretty-bytes@^5.6.0
+ Addedhappn-commons@1.5.1(transitive)
+ Addedpretty-bytes@5.6.0(transitive)
- Removedawait-delay@1.0.0(transitive)
- Removedhappn-commons@1.6.0-prerelease-2(transitive)
Updatedhappn-commons@1.5.1