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

@geek/logger

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geek/logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

25

Logger.js

@@ -282,4 +282,6 @@ 'use strict';

const getLogParams = (message = '', params = {}) => {
if (typeof message === 'object') {
return message;
// return message;
params = checkForError(message);
} else if (typeof message === 'string') {

@@ -289,12 +291,27 @@ if (typeof params !== 'object') {

params = {};
} else {
params = checkForError(params);
}
params.message = message;
return params;
// return params;
} else {
console.warn('invalid parameters sent to Logger');
return { message: '' };
}
console.warn('invalid parameters sent to Logger');
return { message: '' };
};
const checkForError = params => {
if (params instanceof Error) {
const result = {};
result.stack = params.stack;
result.error_message = params.message;
return result;
} else {
return params;
}
};
const getLogLevelParams = (level, message, params = {}) => {

@@ -301,0 +318,0 @@

10

package.json
{
"name": "@geek/logger",
"version": "1.0.0",
"version": "1.0.1",
"description": "Logging module for Node.js and Axway Titanium",

@@ -9,3 +9,3 @@ "main": "Logger.js",

"prep": "npm install --ignore-scripts && npm run list",
"prepublishOnly2": "git pull && bump",
"prepublishOnly": "git pull && bump",
"lint": "eslint --fix .",

@@ -53,5 +53,5 @@ "test": "echo \"no test specified\" && exit 0"

"@titanium/eslint-config": "0.0.17",
"eslint": "^7.9.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsdoc": "^30.5.1",
"eslint": "^7.10.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.6.2",
"eslint-plugin-promise": "^4.2.1",

@@ -58,0 +58,0 @@ "fs-extra": "^9.0.1",

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