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

inv-loggers

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inv-loggers - npm Package Compare versions

Comparing version 3.3.11 to 3.3.12

13

inv-loggers.js
const chalk = require('tiny-chalk')
const { grey } = chalk
const { inspect } = require('util')
const print = str => process.stdout.write(str + '\n')
const log = (obj, label, color = 'cyan') => {
if ((typeof obj === 'string') && (label == null)) {
console.log(chalk[color](obj))
print(chalk[color](obj))
return obj

@@ -13,5 +14,5 @@ } else {

if (label != null) {
console.log(grey('****** ') + chalk[color](label.toString()) + grey(' ******'))
print(grey('****** ') + chalk[color](label.toString()) + grey(' ******'))
} else {
console.log(chalk[color]('******************************'))
print(chalk[color]('******************************'))
}

@@ -25,7 +26,7 @@ let objCopy = obj

}
console.log(objCopy)
print(objCopy)
if (context != null) {
console.log('Context: ', inspect(context, { depth: 10 }))
print('Context: ', inspect(context, { depth: 10 }))
}
console.log(grey('-----'))
print(grey('-----'))
return obj

@@ -32,0 +33,0 @@ }

{
"name": "inv-loggers",
"version": "3.3.11",
"version": "3.3.12",
"description": "loggers and partial loggers",

@@ -8,3 +8,4 @@ "main": "inv-loggers.js",

"test": "mocha",
"prepublish": "npm test"
"prepublish": "npm test",
"postpublish": "git push --tags"
},

@@ -11,0 +12,0 @@ "files": [

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