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

@lage-run/logger

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lage-run/logger - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

10

lib/index.d.ts

@@ -1,9 +0,9 @@

import { LogStructuredData } from "./interfaces/LogStructuredData";
import { Logger } from "./Logger";
import type { LogStructuredData } from "./interfaces/LogStructuredData.js";
import { Logger } from "./Logger.js";
export default function createLogger<TLogStructuredData extends LogStructuredData = LogStructuredData>(): Logger<TLogStructuredData>;
export type { LogEntry } from "./interfaces/LogEntry";
export type { Reporter } from "./interfaces/Reporter";
export type { LogEntry } from "./interfaces/LogEntry.js";
export type { Reporter } from "./interfaces/Reporter.js";
export type { LogStructuredData };
/** Logger, can be extended to have specific TLogStructuredData generic param */
export { Logger };
export { LogLevel } from "./interfaces/LogLevel";
export { LogLevel } from "./interfaces/LogLevel.js";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogLevel = exports.Logger = void 0;
const Logger_1 = require("./Logger");
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } });
const Logger_js_1 = require("./Logger.js");
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_js_1.Logger; } });
function createLogger() {
return new Logger_1.Logger();
return new Logger_js_1.Logger();
}
exports.default = createLogger;
var LogLevel_1 = require("./interfaces/LogLevel");
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return LogLevel_1.LogLevel; } });
var LogLevel_js_1 = require("./interfaces/LogLevel.js");
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return LogLevel_js_1.LogLevel; } });
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import type { LogLevel } from "./LogLevel";
import { LogStructuredData } from "./LogStructuredData";
import type { LogLevel } from "./LogLevel.js";
import type { LogStructuredData } from "./LogStructuredData.js";
export interface LogEntry<TLogStructuredData extends LogStructuredData = LogStructuredData> {

@@ -4,0 +4,0 @@ /** a timestamp of when the log event occurred */

@@ -1,4 +0,4 @@

import type { LogLevel } from "./LogLevel";
import type { LogEntry } from "./LogEntry";
import { LogStructuredData } from "./LogStructuredData";
import type { LogLevel } from "./LogLevel.js";
import type { LogEntry } from "./LogEntry.js";
import type { LogStructuredData } from "./LogStructuredData.js";
export interface Reporter<TLogStructuredData extends LogStructuredData = LogStructuredData> {

@@ -5,0 +5,0 @@ /** log level, use the LogLevel object */

/// <reference types="node" />
import type { LogStructuredData } from "./interfaces/LogStructuredData";
import type { Reporter } from "./interfaces/Reporter";
import { LogLevel } from "./interfaces/LogLevel";
import type { LogStructuredData } from "./interfaces/LogStructuredData.js";
import type { Reporter } from "./interfaces/Reporter.js";
import { LogLevel } from "./interfaces/LogLevel.js";
export declare class Logger<TLogStructuredData extends LogStructuredData = LogStructuredData> {

@@ -6,0 +6,0 @@ reporters: Reporter[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
const LogLevel_1 = require("./interfaces/LogLevel");
const LogLevel_js_1 = require("./interfaces/LogLevel.js");
const readline_1 = require("readline");

@@ -22,15 +22,15 @@ class Logger {

info(msg, data) {
this.log(LogLevel_1.LogLevel.info, msg, data);
this.log(LogLevel_js_1.LogLevel.info, msg, data);
}
warn(msg, data) {
this.log(LogLevel_1.LogLevel.warn, msg, data);
this.log(LogLevel_js_1.LogLevel.warn, msg, data);
}
error(msg, data) {
this.log(LogLevel_1.LogLevel.error, msg, data);
this.log(LogLevel_js_1.LogLevel.error, msg, data);
}
verbose(msg, data) {
this.log(LogLevel_1.LogLevel.verbose, msg, data);
this.log(LogLevel_js_1.LogLevel.verbose, msg, data);
}
silly(msg, data) {
this.log(LogLevel_1.LogLevel.silly, msg, data);
this.log(LogLevel_js_1.LogLevel.silly, msg, data);
}

@@ -37,0 +37,0 @@ stream(level, input, data) {

{
"name": "@lage-run/logger",
"version": "1.2.1",
"version": "1.2.2",
"description": "Logger for Lage",

@@ -14,3 +14,4 @@ "repository": {

"start": "tsc -w --preserveWatchOutput",
"test": "jest"
"test": "jest",
"lint": "monorepo-scripts lint"
},

@@ -17,0 +18,0 @@ "devDependencies": {},

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