Socket
Socket
Sign inDemoInstall

@lage-run/logger

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.1.0

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Fri, 01 Jul 2022 16:25:06 GMT",
"date": "Wed, 13 Jul 2022 16:08:25 GMT",
"tag": "@lage-run/logger_v1.1.0",
"version": "1.1.0",
"comments": {
"minor": [
{
"author": "kyleehrlich@microsoft.com",
"package": "@lage-run/logger",
"commit": "b3d6f30845394a70654f277705b3b9c452a1a3a1",
"comment": "Replace stdio handler with nodejs readline interfaces to fix handling when log lines span multiple chunks"
}
]
}
},
{
"date": "Fri, 01 Jul 2022 16:25:11 GMT",
"tag": "@lage-run/logger_v1.0.2",

@@ -8,0 +23,0 @@ "version": "1.0.2",

# Change Log - @lage-run/logger
This log was last generated on Fri, 01 Jul 2022 16:25:06 GMT and should not be manually modified.
This log was last generated on Wed, 13 Jul 2022 16:08:25 GMT and should not be manually modified.
<!-- Start content -->
## 1.1.0
Wed, 13 Jul 2022 16:08:25 GMT
### Minor changes
- Replace stdio handler with nodejs readline interfaces to fix handling when log lines span multiple chunks (kyleehrlich@microsoft.com)
## 1.0.2
Fri, 01 Jul 2022 16:25:06 GMT
Fri, 01 Jul 2022 16:25:11 GMT

@@ -11,0 +19,0 @@ ### Patches

@@ -0,1 +1,2 @@

/// <reference types="node" />
import type { LogStructuredData } from "./interfaces/LogStructuredData";

@@ -14,3 +15,4 @@ import type { LogEntry } from "./interfaces/LogEntry";

silly(msg: string, data?: TLogStructuredData): void;
stream(level: LogLevel, input: NodeJS.ReadableStream, data?: TLogStructuredData): void;
addReporter(reporter: Reporter): void;
}

@@ -5,2 +5,3 @@ "use strict";

const LogLevel_1 = require("./interfaces/LogLevel");
const readline_1 = require("readline");
class Logger {

@@ -38,2 +39,9 @@ constructor() {

}
stream(level, input, data) {
const readline = (0, readline_1.createInterface)({
input,
crlfDelay: Infinity,
});
readline.on("line", (line) => this.log(level, line, data));
}
addReporter(reporter) {

@@ -40,0 +48,0 @@ this.reporters.push(reporter);

2

package.json
{
"name": "@lage-run/logger",
"version": "1.0.2",
"version": "1.1.0",
"description": "Logger for Lage",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc