Socket
Socket
Sign inDemoInstall

@lskjs/log

Package Overview
Dependencies
21
Maintainers
11
Versions
260
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.62.0 to 2.64.0

utils/tryLogfmtParse.d.ts

10

package.json
{
"name": "@lskjs/log",
"version": "2.62.0",
"description": "Логгер совмещающий лучшие черты morgan, winston, bunyan, logrus. debug. Базируется на debug-level.",
"version": "2.64.0",
"description": "Логгер совмещающий лучшие черты debug, bunyan, logfmt/logrus, morgan/winston, ",
"keywords": [],

@@ -49,5 +49,9 @@ "publishConfig": {

"kleur": "4.1.4",
"logfmt": "1.3.2",
"nanocolors": "0.2.9"
},
"gitHead": "cd4a11b3d316fc1e680dec5e29711408bccf799a"
"optionalDependencies": {
"logfmt": "1.3.2"
},
"gitHead": "25b4f6761e4b97c0699c3df708de05559dd0d8a9"
}

@@ -18,2 +18,4 @@ "use strict";

var _tryLogfmtParse = require("../utils/tryLogfmtParse");
var _prettyFormat = require("./prettyFormat");

@@ -26,2 +28,6 @@

if (!json) {
json = (0, _tryLogfmtParse.tryLogfmtParse)(raw);
}
if (!json) {
log.log.apply(log, (0, _toConsumableArray2["default"])((0, _prettyFormat.prettyFormat)({}, raw)));

@@ -28,0 +34,0 @@ return;

@@ -26,3 +26,3 @@ "use strict";

var isBunyan = function isBunyan(json) {
return Boolean(json.name && json.hostname && json.pid && json.msg && json.time && json.v);
return Boolean(json.name && json.hostname && json.pid && json.msg && json.time);
};

@@ -29,0 +29,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc