Comparing version 1.0.5 to 1.1.0
@@ -6,2 +6,3 @@ 'use strict'; | ||
const common = require('@metarhia/common'); | ||
const { WritableFileStream } = require('metastreams'); | ||
const concolor = require('concolor'); | ||
@@ -132,3 +133,3 @@ | ||
this.keepDays = keepDays || 0; | ||
this.options = { flags: 'a', highWaterMark: this.writeBuffer }; | ||
this.options = { flags: 'a', bufferSize: this.writeBuffer }; | ||
this.stream = null; | ||
@@ -161,3 +162,3 @@ this.reopenTimer = null; | ||
if (this.keepDays) this.rotate(); | ||
this.stream = fs.createWriteStream(this.file, this.options); | ||
this.stream = new WritableFileStream(this.file, this.options); | ||
this.flushTimer = setInterval(() => { | ||
@@ -164,0 +165,0 @@ this.flush(); |
{ | ||
"name": "metalog", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -31,11 +31,12 @@ "description": "Meta Logger for Metarhia", | ||
"@metarhia/common": "^1.2.1", | ||
"concolor": "^0.1.9" | ||
"concolor": "^0.1.10", | ||
"metastreams": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.12.0", | ||
"eslint-config-prettier": "^3.5.0", | ||
"eslint": "^5.13.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"metatests": "^0.4.0", | ||
"prettier": "1.16.x" | ||
"metatests": "^0.4.1", | ||
"prettier": "^1.16.4" | ||
} | ||
} |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
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
22335
381
1
3
+ Addedmetastreams@^0.1.0
+ Addedmetastreams@0.1.2(transitive)
Updatedconcolor@^0.1.10