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

@ayana/logger

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ayana/logger - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@ayana/logger",
"version": "1.0.1",
"version": "1.0.2",
"description": "Useful and great looking logging made easy",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -66,3 +66,5 @@ /*

let name;
if (typeof forClass === 'function') name = forClass.name;
if (forClass == null || forClass === '') name = 'index.js';
else if (typeof forClass === 'function') name = forClass.name;
else if (typeof forClass === 'string') name = forClass;

@@ -95,4 +97,6 @@ else throw new Error('Logger.get(): Invalid forClass parameter. Use a string or a named function');

if (!pkgPath) pkgPath = '';
if (pkgPath.length > 0) pkgPath = `${pkgPath}.`;
if (pkgPath.length > 0 && name !== 'index.js') pkgPath = `${pkgPath}.`;
if (name === 'index.js') name = '';
return new Logger(name, pkgName, pkgPath);

@@ -99,0 +103,0 @@ }

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