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

@bitdiver/logadapter-dispatcher

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitdiver/logadapter-dispatcher - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

36

lib/LogAdapterDispatcher.js

@@ -27,3 +27,39 @@ "use strict";

}
/**
* sets a new log level
* @param level {number/string} The logLevel as number or String value
*/
set level(level) {
if (this.logAdapterList !== undefined && this.logAdapterList.length > 0) {
for (const logger of this.logAdapterList) {
logger.level = level;
}
}
}
/**
* Returns the logLevel as a string
* @return level {string} The logLevel
*/
get level() {
if (this.logAdapterList !== undefined && this.logAdapterList.length > 0) {
return this.logAdapterList[0].level;
}
}
/**
* Returns the logLevel as a number
*
* @return level {string} The logLevel
*/
get levelNumber() {
if (this.logAdapterList !== undefined && this.logAdapterList.length > 0) {
return this.logAdapterList[0].levelNumber;
}
}
reset() {

@@ -30,0 +66,0 @@ if (this.logAdapterList !== undefined && this.logAdapterList.length > 0) {

2

package.json
{
"name": "@bitdiver/logadapter-dispatcher",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

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

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