@tinkoff/logger
Advanced tools
Comparing version 0.10.280 to 0.10.281
import each from '@tinkoff/utils/array/each'; | ||
import split from '@tinkoff/utils/string/split'; | ||
import { env } from 'std-env'; | ||
import { hostname } from 'os'; | ||
@@ -14,2 +13,4 @@ import { LEVELS } from './constants.es.js'; | ||
var _a, _b; | ||
const stdEnv = require('std-env'); | ||
const env = 'env' in stdEnv ? stdEnv.env : stdEnv; | ||
const level = (_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : process.env.DEBUG_LEVEL; | ||
@@ -16,0 +17,0 @@ const enable = (_b = process.env.LOG_ENABLE) !== null && _b !== void 0 ? _b : process.env.DEBUG_ENABLE; |
@@ -7,3 +7,2 @@ 'use strict'; | ||
var split = require('@tinkoff/utils/string/split'); | ||
var stdEnv = require('std-env'); | ||
var os = require('os'); | ||
@@ -24,2 +23,4 @@ var constants = require('./constants.js'); | ||
var _a, _b; | ||
const stdEnv = require('std-env'); | ||
const env = 'env' in stdEnv ? stdEnv.env : stdEnv; | ||
const level = (_a = process.env.LOG_LEVEL) !== null && _a !== void 0 ? _a : process.env.DEBUG_LEVEL; | ||
@@ -43,3 +44,3 @@ const enable = (_b = process.env.LOG_ENABLE) !== null && _b !== void 0 ? _b : process.env.DEBUG_ENABLE; | ||
} | ||
const DefaultReporter = stdEnv.env.ci || stdEnv.env.test ? nodeBasic.NodeBasicReporter : nodeDev.NodeDevReporter; | ||
const DefaultReporter = env.ci || env.test ? nodeBasic.NodeBasicReporter : nodeDev.NodeDevReporter; | ||
const reporter = process.env.DEBUG_PLAIN || process.env.NODE_ENV !== 'production' | ||
@@ -46,0 +47,0 @@ ? new DefaultReporter() |
{ | ||
"name": "@tinkoff/logger", | ||
"version": "0.10.280", | ||
"version": "0.10.281", | ||
"description": "", | ||
@@ -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
88673
2253