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

oberknecht-utils

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oberknecht-utils - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

6

lib/utils/log.js

@@ -14,5 +14,5 @@ function date_() { return new Date(new Date().setMinutes(new Date().getMinutes() - new Date().getTimezoneOffset())).toISOString().split("Z")[0].replace("T", " ") };

const casecolors = { "fg": { "0": "", "1": "30", "2": "41" }, "bg": { "0": "", "1": "43", "2": "41" } };
logcolorfg = (`\x1b[${(((logcolorfg ?? 0) == 0 ? (casecolors.fg[(logopt ?? 0)]) : (logcolors[logcolorfg] ? logcolors[logcolorfg] : logcolorfg ?? casecolors.fg[(logopt ?? 0)])))}m`);
logcolorbg = (`\x1b[${(((logcolorbg ?? 0) == 0 ? (casecolors.bg[(logopt ?? 0)]) : (logcolors[logcolorbg] ? logcolors[logcolorbg] : logcolorbg ?? casecolors[(logopt ?? 0)])))}m`);
const logm = [`${logcolorbg}${logcolorfg} ${date_()} \x1b[0m >`, (logmsg.error?.message ?? logmsg.error ?? logmsg?.message ?? logmsg)];
logcolorfg = (`\x1b[${(((logcolorfg ?? 0) === 0 ? (casecolors.fg[(logopt ?? 0)]) : (logcolors[logcolorfg] ? logcolors[logcolorfg] : logcolorfg ?? casecolors.fg[(logopt ?? 0)])))}m`);
logcolorbg = (`\x1b[${(((logcolorbg ?? 0) === 0 ? (casecolors.bg[(logopt ?? 0)]) : (logcolors[logcolorbg] ? logcolors[logcolorbg] : logcolorbg ?? casecolors[(logopt ?? 0)])))}m`);
const logm = [`${logcolorbg}${logcolorfg} ${date_()} \x1b[0m >`, (logmsg?.error?.message ?? logmsg?.error ?? logmsg?.message ?? logmsg)];
switch (logopt) { default: case 0: return console.log(...logm); case 1: return console.info(...logm); case 2: return console.error(...logm); };

@@ -19,0 +19,0 @@ };

{
"name": "oberknecht-utils",
"version": "0.2.5",
"version": "0.2.6",
"description": "Utils for oberknecht packages",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/jubewe/oberknecht-utils.git"
"url": "git+https://github.com/oberknechte/oberknecht-utils.git"
},

@@ -20,5 +20,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/jubewe/oberknecht-utils/issues"
"url": "https://github.com/oberknechte/oberknecht-utils/issues"
},
"homepage": "https://github.com/jubewe/oberknecht-utils#readme"
"homepage": "https://github.com/oberknechte/oberknecht-utils#readme"
}
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