New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bare-console

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-console - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

50

index.js

@@ -21,27 +21,7 @@ const inspect = require('bare-inspect')

log (...args) {
let out = ''
let first = true
for (const arg of args) {
if (first) first = false
else out += ' '
out += typeof arg === 'string' ? arg : inspect(arg, { colors: this._colors })
}
this._stdout.write(out + '\n')
this._stdout.write(formatArgs(args) + '\n')
}
error (...args) {
let out = ''
let first = true
for (const arg of args) {
if (first) first = false
else out += ' '
out += typeof arg === 'string' ? arg : inspect(arg, { colors: this._colors })
}
this._stderr.write(out + '\n')
this._stderr.write(formatArgs(args) + '\n')
}

@@ -74,10 +54,6 @@

trace (...messages) {
const { stack } = new Error()
const first = stack.indexOf('\n')
const second = stack.indexOf('\n', first + 1)
const start = second > -1 ? second : 0
this.error('Trace: ' + messages.join(' ') + stack.slice(start))
trace (...args) {
const err = { name: 'Trace', message: formatArgs(args) }
Error.captureStackTrace(err, this.trace)
this.error(err.stack)
}

@@ -89,1 +65,15 @@ }

}
function formatArgs (args) {
let out = ''
let first = true
for (const arg of args) {
if (first) first = false
else out += ' '
out += typeof arg === 'string' ? arg : inspect(arg, { colors: this._colors })
}
return out
}

4

package.json
{
"name": "bare-console",
"version": "3.1.0",
"version": "3.1.1",
"description": "Simple debugging console for JavaScript",

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

"dependencies": {
"bare-inspect": "^1.0.0"
"bare-inspect": "^1.1.0"
},

@@ -26,0 +26,0 @@ "devDependencies": {

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