@boost/log
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -16,11 +16,11 @@ import { Blueprint, Schemas } from '@boost/common/optimal'; | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
protected checkIfNeedsRotation(): void; | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
protected getRotatedFileName(): string; | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
@@ -27,0 +27,0 @@ protected rotateFile(): void; |
@@ -1,6 +0,6 @@ | ||
export declare type LogLevel = 'debug' | 'error' | 'info' | 'log' | 'trace' | 'warn'; | ||
export declare type LogLevelLabels = { | ||
export type LogLevel = 'debug' | 'error' | 'info' | 'log' | 'trace' | 'warn'; | ||
export type LogLevelLabels = { | ||
[L in LogLevel]?: string; | ||
}; | ||
export declare type LogMetadata = Record<string, unknown>; | ||
export type LogMetadata = Record<string, unknown>; | ||
export interface LogItem { | ||
@@ -77,3 +77,3 @@ /** The name of the host machine. */ | ||
} | ||
export declare type Formatter = (item: LogItem) => string; | ||
export type Formatter = (item: LogItem) => string; | ||
export interface Transportable { | ||
@@ -93,3 +93,3 @@ levels: LogLevel[]; | ||
} | ||
export declare type Rotation = 'daily' | 'hourly' | 'monthly' | 'weekly'; | ||
export type Rotation = 'daily' | 'hourly' | 'monthly' | 'weekly'; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@boost/log", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"type": "commonjs", | ||
@@ -37,5 +37,5 @@ "release": "1651512176170", | ||
"dependencies": { | ||
"@boost/common": "^4.0.0", | ||
"@boost/internal": "^4.0.0", | ||
"@boost/translate": "^4.0.0", | ||
"@boost/common": "^4.1.0", | ||
"@boost/internal": "^4.0.1", | ||
"@boost/translate": "^4.0.1", | ||
"chalk": "^4.1.2" | ||
@@ -73,3 +73,3 @@ }, | ||
}, | ||
"gitHead": "07f3182e14af6b7637b23f69fbe3c735835312a9" | ||
"gitHead": "fd64842195c9e1c72e726800f004bdc80fa682f8" | ||
} |
@@ -132,3 +132,4 @@ import fs from 'fs'; | ||
protected checkIfNeedsRotation() { | ||
if (this.lastSize > this.options.maxSize) { | ||
// @ts-expect-error Valid is defined | ||
if (this.options && this.lastSize > this.options.maxSize) { | ||
this.closeStreamAndRotateFile(); | ||
@@ -135,0 +136,0 @@ } |
@@ -59,3 +59,3 @@ import { Blueprint, Schemas } from '@boost/common/optimal'; | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
@@ -72,3 +72,3 @@ protected override checkIfNeedsRotation() { | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
@@ -83,3 +83,3 @@ protected override getRotatedFileName(): string { | ||
/** | ||
* @inheritdoc | ||
* @inheritDoc | ||
*/ | ||
@@ -86,0 +86,0 @@ protected override rotateFile() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
84478
63
1692
Updated@boost/common@^4.1.0
Updated@boost/internal@^4.0.1
Updated@boost/translate@^4.0.1