mongodb-log-writer
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -191,3 +191,4 @@ "use strict"; | ||
continue; | ||
if (new bson_1.ObjectId(id).generationTime < (Date.now() / 1000) - this._options.retentionDays * 86400) { | ||
if (+new bson_1.ObjectId(id).getTimestamp() / 1000 < | ||
(Date.now() / 1000) - this._options.retentionDays * 86400) { | ||
const toUnlink = path_1.default.join(dir, dirent.name); | ||
@@ -194,0 +195,0 @@ try { |
{ | ||
"name": "mongodb-log-writer", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "A library for writing MongoDB logv2 messages", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"dependencies": { | ||
"bson": "^4.5.1" | ||
"bson": "^4.5.1 || ^5.0.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30804
304
0
+ Addedbson@5.5.1(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbson@4.7.2(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)
Updatedbson@^4.5.1 || ^5.0.0