streamroller
Advanced tools
Comparing version 3.1.0 to 3.1.1
# streamroller Changelog | ||
## 3.1.1 | ||
- [fix: fs.appendFileSync should use flag instead of flags](https://github.com/log4js-node/streamroller/pull/141) - thanks [@peteriman](https://github.com/peteriman) | ||
## 3.1.0 | ||
@@ -4,0 +7,0 @@ - [feat: tilde expansion for filename](https://github.com/log4js-node/streamroller/pull/135) - thanks [@peteriman](https://github.com/peteriman) |
@@ -306,4 +306,9 @@ const debug = require("debug")("streamroller:RollingFileWriteStream"); | ||
}; | ||
const renameKey = function(obj, oldKey, newKey) { | ||
obj[newKey] = obj[oldKey]; | ||
delete obj[oldKey]; | ||
return obj; | ||
}; | ||
// try to throw EISDIR, EROFS, EACCES | ||
fs.appendFileSync(filePath, "", ops); | ||
fs.appendFileSync(filePath, "", renameKey({ ...ops }, "flags", "flag")); | ||
this.currentFileStream = fs.createWriteStream(filePath, ops); | ||
@@ -310,0 +315,0 @@ this.currentFileStream.on("error", e => { |
{ | ||
"name": "streamroller", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "file streams that roll over when size limits, or dates are reached", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43173
590