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

cedar

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cedar - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

6

lib/base.js

@@ -133,2 +133,8 @@ var logMethods = ['error', 'warn', 'info', 'log', 'trace', 'debug'];

}
else if (data instanceof Error) {
data = '' + (data.stack || data);
if (stack) {
data = '[Error: ' + data + ']';
}
}
else if (typeof data == 'object') {

@@ -135,0 +141,0 @@ stack = stack || [];

9

lib/console.js

@@ -48,5 +48,2 @@ var fs = require('fs');

logger.setFormat(function (string, type) {
if (string instanceof Error) {
string = string.stack || string;
}
var color = (type == 'warn' ? yellow : (type == 'error' ? red : bash));

@@ -135,2 +132,8 @@ string = string.replace(/^\[(\w+)\] ([^\n]+)/, function (match, name, text) {

}
else if (data instanceof Error) {
data = '' + (data.stack || data);
if (stack) {
data = '[Error: ' + data + ']';
}
}
else if (typeof data == 'object') {

@@ -137,0 +140,0 @@ stack = stack || [];

@@ -15,3 +15,3 @@ {

],
"version": "0.0.18",
"version": "0.0.19",
"main": "cedar.js",

@@ -18,0 +18,0 @@ "homepage": "https://github.com/lighterio/cedar",

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