Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitdiver/runner-server

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitdiver/runner-server - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

4

lib/LogAdapterFile.js

@@ -58,3 +58,3 @@ 'use strict';

constructor(opts) {
const param = (0, _extends3.default)({ targetDir: 'log', logLevel: 'warn' }, opts);
const param = (0, _extends3.default)({ targetDir: 'log', logLevel: LEVEL_WARNING }, opts);

@@ -128,3 +128,3 @@ this.targetDir = param.targetDir;

const data = logMessage.data;
const messageLogLevel = meta.logLevel;
const messageLogLevel = logMessage.logLevel;

@@ -131,0 +131,0 @@ const messageShouldBeLogged = this._messageShouldBeLogged(messageLogLevel, this.logAdapterLogLevel);

{
"name": "@bitdiver/runner-server",
"version": "1.4.0",
"version": "1.4.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -6,3 +6,3 @@ import { getLogAdapter } from '../lib'

test('Loglevel debug', async done => {
test('>Loglevel debug', async done => {
const logMessage = {

@@ -13,4 +13,4 @@ meta: {

},
logLevel: 'debug',
},
logLevel: 'debug',
data: {},

@@ -21,3 +21,3 @@ }

await LOG_ADAPTER._messageShouldBeLogged(
logMessage.meta.logLevel,
logMessage.logLevel,
LOG_ADAPTER_LOG_LEVEL

@@ -29,3 +29,3 @@ )

test('Loglevel info', async done => {
test('>Loglevel info', async done => {
const logMessage = {

@@ -36,4 +36,4 @@ meta: {

},
logLevel: 'info',
},
logLevel: 'info',
data: {},

@@ -43,3 +43,3 @@ }

await LOG_ADAPTER._messageShouldBeLogged(
logMessage.meta.logLevel,
logMessage.logLevel,
LOG_ADAPTER_LOG_LEVEL

@@ -57,4 +57,4 @@ )

},
logLevel: 'warn',
},
logLevel: 'warn',
data: {},

@@ -65,3 +65,3 @@ }

await LOG_ADAPTER._messageShouldBeLogged(
logMessage.meta.logLevel,
logMessage.logLevel,
LOG_ADAPTER_LOG_LEVEL

@@ -79,4 +79,4 @@ )

},
logLevel: 'error',
},
logLevel: 'error',
data: {},

@@ -87,3 +87,3 @@ }

await LOG_ADAPTER._messageShouldBeLogged(
logMessage.meta.logLevel,
logMessage.logLevel,
LOG_ADAPTER_LOG_LEVEL

@@ -101,4 +101,4 @@ )

},
logLevel: 'fatal',
},
logLevel: 'fatal',
data: {},

@@ -109,3 +109,3 @@ }

await LOG_ADAPTER._messageShouldBeLogged(
logMessage.meta.logLevel,
logMessage.logLevel,
LOG_ADAPTER_LOG_LEVEL

@@ -112,0 +112,0 @@ )

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc