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

@libj/logger

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libj/logger - npm Package Compare versions

Comparing version 0.1.7 to 0.2.0

1

dist/base/BaseLogger.d.ts

@@ -17,3 +17,4 @@ import { LoggerLevel } from '../LoggerLevel';

private extractFormatArgs;
private isSprintfError;
}
export {};

@@ -31,3 +31,11 @@ "use strict";

: message;
return this.sprintf(finalMessage, formatArgs);
try {
return this.sprintf(finalMessage, formatArgs);
}
catch (err) {
if (this.isSprintfError(err)) {
return finalMessage;
}
throw err;
}
};

@@ -57,2 +65,5 @@ BaseLogger.prototype.sprintf = function (message, args) {

};
BaseLogger.prototype.isSprintfError = function (err) {
return (err instanceof TypeError && err.message.includes('[sprintf]'));
};
return BaseLogger;

@@ -59,0 +70,0 @@ }());

4

package.json

@@ -6,3 +6,3 @@ {

"name": "@libj/logger",
"version": "0.1.7",
"version": "0.2.0",
"description": "Generic logger",

@@ -29,3 +29,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>",

],
"gitHead": "402b4454728a916c29dd2a2e233ab1241d7f1e83"
"gitHead": "6d868a93c5d1934959f020dcc9ac0669a1dc72d7"
}

Sorry, the diff of this file is not supported yet

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