Socket
Socket
Sign inDemoInstall

@tsed/logger

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/logger - npm Package Compare versions

Comparing version 6.1.2 to 6.1.3

9

lib/cjs/core/LogEvent.js

@@ -38,4 +38,13 @@ "use strict";

}
isMessage() {
return this.data.length && typeof this.data[0] !== "object";
}
getData() {
return !this.isMessage() ? this.data[0] : {};
}
getMessage() {
return this.isMessage() ? this.data : undefined;
}
}
exports.LogEvent = LogEvent;
//# sourceMappingURL=LogEvent.js.map

@@ -35,3 +35,12 @@ export class LogEvent {

}
isMessage() {
return this.data.length && typeof this.data[0] !== "object";
}
getData() {
return !this.isMessage() ? this.data[0] : {};
}
getMessage() {
return this.isMessage() ? this.data : undefined;
}
}
//# sourceMappingURL=LogEvent.js.map

3

lib/types/core/LogEvent.d.ts

@@ -26,2 +26,5 @@ import { LogLevel } from "./LogLevel";

get pid(): any;
isMessage(): boolean | 0;
getData(): any;
getMessage(): any[] | undefined;
}

2

package.json
{
"name": "@tsed/logger",
"version": "6.1.2",
"version": "6.1.3",
"description": "A multi channel logger written in TypeScript.",

@@ -5,0 +5,0 @@ "private": false,

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc