@adonisjs/logger
Advanced tools
Comparing version 5.3.0-0 to 5.4.0-0
@@ -5,5 +5,5 @@ import type { TransportTargetOptions } from '../types.js'; | ||
add(value: TransportTargetOptions): this; | ||
if(conditional: boolean, value: TransportTargetOptions | (() => TransportTargetOptions)): this; | ||
unless(conditional: boolean, value: TransportTargetOptions | (() => TransportTargetOptions)): this; | ||
pushIf(conditional: boolean, value: TransportTargetOptions | (() => TransportTargetOptions)): this; | ||
pushUnless(conditional: boolean, value: TransportTargetOptions | (() => TransportTargetOptions)): this; | ||
toArray(): TransportTargetOptions[]; | ||
} |
@@ -7,3 +7,3 @@ export class Targets { | ||
} | ||
if(conditional, value) { | ||
pushIf(conditional, value) { | ||
if (conditional) { | ||
@@ -14,3 +14,3 @@ this.#collection.push(typeof value === 'function' ? value() : value); | ||
} | ||
unless(conditional, value) { | ||
pushUnless(conditional, value) { | ||
if (!conditional) { | ||
@@ -17,0 +17,0 @@ this.#collection.push(typeof value === 'function' ? value() : value); |
{ | ||
"name": "@adonisjs/logger", | ||
"version": "5.3.0-0", | ||
"version": "5.4.0-0", | ||
"description": "Logger built on top of pino to be used by AdonisJs", | ||
@@ -5,0 +5,0 @@ "main": "build/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
21182