Socket
Socket
Sign inDemoInstall

residue

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

residue - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

2

CHANGELOG.md
# Change Log
## [2.3.4]
## [2.3.5]
- Introduced native binding

@@ -5,0 +5,0 @@ - Added `version()` and `type()`

{
"name": "residue",
"version": "2.3.5",
"version": "2.3.6",
"description": "Library to interact with residue server seamlessly.",

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

@@ -24,18 +24,14 @@ //

this.trace = (fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Trace, undefined, fmt, ...args);
this.trace = (fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Trace, undefined, fmt, ...args);
this.debug = (fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Debug, undefined, fmt, ...args);
this.fatal = (vlevel, fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Fatal, vlevel, fmt, ...args);
this.error = (fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Error, undefined, fmt, ...args);
this.warning = (fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Warning, undefined, fmt, ...args);
this.verbose = (vlevel, fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Verbose, vlevel, fmt, ...args);
this.info = (fmt, ...args) => this._write_log(CommonUtils.LoggingLevels.Info, undefined, fmt, ...args);
this.debug = (fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Debug, undefined, fmt, ...args);
// private members
this.fatal = (vlevel, fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Fatal, vlevel, fmt, ...args);
this.error = (fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Error, undefined, fmt, ...args);
this.warning = (fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Warning, undefined, fmt, ...args);
this.verbose = (vlevel, fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Verbose, vlevel, fmt, ...args);
this.info = (fmt, ...args) => this._send_log_msg(CommonUtils.LoggingLevels.Info, undefined, fmt, ...args);
// private
this._send_log_msg = (level, vlevel, fmt, ...args) => {
this._source_base_index = 5;
this._write_log = (level, vlevel, fmt, ...args) => {
const cpy = args;

@@ -49,5 +45,5 @@ for (var idx = 0; idx < cpy.length; ++idx) {

residue_native.write_log(this.id,
CommonUtils.getSourceFile(5),
CommonUtils.getSourceLine(5),
CommonUtils.getSourceFunc(5),
CommonUtils.getSourceFile(this._source_base_index),
CommonUtils.getSourceLine(this._source_base_index),
CommonUtils.getSourceFunc(this._source_base_index),
util.format(fmt, ...cpy),

@@ -54,0 +50,0 @@ level,

@@ -611,15 +611,23 @@ //

this.info = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Info, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
this.info = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Info, 0, format, ...args);
this.error = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Error, 0, format, ...args);
this.debug = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Debug, 0, format, ...args);
this.warn = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Warn, 0, format, ...args);
this.trace = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Trace, 0, format, ...args);
this.fatal = (format, ...args) => this._write_log(CommonUtils.LoggingLevels.Fatal, 0, format, ...args);
this.verbose = (vlevel, format, ...args) => this._write_log(CommonUtils.LoggingLevels.Verbose, vlevel, format, ...args);
this.error = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Error, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
//private members
this.debug = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Debug, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
this._source_base_index = 5;
this.warn = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Warn, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
this.trace = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Trace, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
this.fatal = (format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Fatal, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), 0, undefined, format, ...args);
this.verbose = (vlevel, format, ...args) => sendLogRequest(CommonUtils.LoggingLevels.Verbose, this.id, CommonUtils.getSourceFile(), CommonUtils.getSourceLine(), CommonUtils.getSourceFunc(), vlevel, undefined, format, ...args);
this._write_log = (level, vlevel, format, ...args) => sendLogRequest(level,
this.id,
CommonUtils.getSourceFile(this.source_base_index),
CommonUtils.getSourceLine(this.source_base_index),
CommonUtils.getSourceFunc(this.source_base_index),
vlevel,
undefined,
format,
...args);
}

@@ -626,0 +634,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