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

@phnq/log

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phnq/log - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

20

logger.js

@@ -46,2 +46,12 @@ "use strict";

};
class StackTrace {
constructor(context) {
this.stack = '';
Error.captureStackTrace(this, context);
this.stack = this.stack
.split('\n')
.slice(1)
.join('\n');
}
}
exports.createLogger = (category, isBrowser) => {

@@ -54,5 +64,9 @@ const colorCat = colorize(category, isBrowser);

const stack = () => {
const stackTrace = { stack: undefined };
Error.captureStackTrace(stackTrace, stack);
console.log(stackTrace.stack);
const stackTrace = new StackTrace(stack);
if (isBrowser) {
console.log(`%c${stackTrace.stack}`, 'color: #999');
}
else {
console.log(chalk_1.default.hsl(0, 0, 30)(stackTrace.stack));
}
};

@@ -59,0 +73,0 @@ return { stack };

2

package.json

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

},
"version": "1.1.2"
"version": "1.1.3"
}
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