New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@homeofthings/nestjs-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

@homeofthings/nestjs-logger - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

1

CHANGELOG.md

@@ -5,2 +5,3 @@ # CHANGELOG for @homeofthings/nestjs-logger

|---------|------------------------|
| 2.0.1 | maintenance release |
| 2.0.0 | nestjs 10x |

@@ -7,0 +8,0 @@ | 1.0.5-6 | maintenance release |

18

package.json
{
"name": "@homeofthings/nestjs-logger",
"description": "HomeOfThings - NestJs Logger: a logger for NestJs based on Winston",
"version": "2.0.0",
"version": "2.0.1",
"keywords": [

@@ -29,10 +29,10 @@ "nestjs",

"dependencies": {
"@nestjs/common": "*",
"@homeofthings/nestjs-utils": "*",
"chalk": "*",
"supports-color": "*",
"debug": "*",
"mkdirp": "*",
"tslib": "*",
"winston": "*"
"@nestjs/common": "^10.3.0",
"@homeofthings/nestjs-utils": "~2.0.0",
"chalk": "^4.1.2",
"supports-color": "^8.1.1",
"debug": "^4.3.4",
"mkdirp": "^3.0.1",
"tslib": "^2.6.2",
"winston": "^3.11.0"
},

@@ -39,0 +39,0 @@ "main": "./src/index.js",

@@ -5,2 +5,3 @@ [![npm version](https://badge.fury.io/js/%40homeofthings%2Fnestjs-logger.svg)](https://badge.fury.io/js/%40homeofthings%2Fnestjs-logger)

[![DeepScan grade](https://deepscan.io/api/teams/439/projects/987/branches/1954/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=439&pid=987&bid=1954)
[![Known Vulnerabilities](https://snyk.io/test/github/gms1/HomeOfThings/badge.svg)](https://snyk.io/test/github/gms1/HomeOfThings)

@@ -7,0 +8,0 @@ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

@@ -5,1 +5,3 @@ export * from './lib/model';

export * from './lib/logger.module';
export * from './lib/winston/winston-logger';
export * from './lib/winston/winston-format';

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

tslib_1.__exportStar(require("./lib/logger.module"), exports);
tslib_1.__exportStar(require("./lib/winston/winston-logger"), exports);
tslib_1.__exportStar(require("./lib/winston/winston-format"), exports);
//# sourceMappingURL=index.js.map

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

import { LoggerService } from './logger.service';
import { LoggerModuleOptions } from './model';
import { LoggerService } from './logger.service';
declare const LoggerModule_base: import("@homeofthings/nestjs-utils").DynamicRootBaseModuleExtended<LoggerModule, import("./model").LoggerOptions, import("@homeofthings/nestjs-utils").AsyncModuleOptions<import("./model").LoggerOptions>>;

@@ -4,0 +4,0 @@ export declare class LoggerModule extends LoggerModule_base {

@@ -5,6 +5,6 @@ "use strict";

const tslib_1 = require("tslib");
const nestjs_utils_1 = require("@homeofthings/nestjs-utils");
const common_1 = require("@nestjs/common");
const logger_service_1 = require("./logger.service");
const model_1 = require("./model");
const logger_service_1 = require("./logger.service");
const nestjs_utils_1 = require("@homeofthings/nestjs-utils");
let LoggerModule = class LoggerModule extends (0, nestjs_utils_1.createDynamicRootModule)(model_1.LOGGER_MODULE_OPTIONS_TOKEN, {

@@ -11,0 +11,0 @@ global: true,

import { LoggerModuleOptions, LogLevel } from './model';
import { NestLoggerService } from './nest-logger.service';
import { WinstonLogger } from './winston/winston-logger';
import { NestLoggerService } from './nest-logger.service';
export declare class LoggerService implements NestLoggerService {

@@ -5,0 +5,0 @@ private static _instance;

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

const tslib_1 = require("tslib");
const nestjs_utils_1 = require("@homeofthings/nestjs-utils");
const common_1 = require("@nestjs/common");

@@ -29,2 +30,3 @@ const model_1 = require("./model");

LoggerService_1._instance = new winston_logger_1.WinstonLogger(_options);
(0, nestjs_utils_1.setLogger)(LoggerService_1._instance);
}

@@ -31,0 +33,0 @@ }

@@ -0,5 +1,6 @@

import { Logger as NodeSysLogger } from '@homeofthings/nestjs-utils';
import * as winston from 'winston';
import { LoggerOptions } from '../model';
import { LogLevel } from '../model/logger.constants';
export declare class WinstonLogger {
export declare class WinstonLogger implements NodeSysLogger {
private _logger;

@@ -17,5 +18,5 @@ get logger(): winston.Logger;

info(message: string, ...meta: any[]): WinstonLogger;
verbose(message: string, ...meta: any[]): WinstonLogger;
debug(message: string, ...meta: any[]): WinstonLogger;
verbose(message: string, ...meta: any[]): WinstonLogger;
private init;
}

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

const tslib_1 = require("tslib");
/* eslint-disable @typescript-eslint/no-explicit-any */
const debug_1 = tslib_1.__importDefault(require("debug"));

@@ -11,4 +10,4 @@ const mkdirp = tslib_1.__importStar(require("mkdirp"));

const winston = tslib_1.__importStar(require("winston"));
const winston_format_1 = require("./winston-format");
const logger_constants_1 = require("../model/logger.constants");
const winston_format_1 = require("./winston-format");
// NOTE: to be able to use WinstonLogger for 'debug'

@@ -18,3 +17,3 @@ // waiting for

// "5.x Roadmap" (2018-12) https://github.com/visionmedia/debug/issues/656
const debug = (0, debug_1.default)('nestjs-logger');
const debug = (0, debug_1.default)('hot:nestjs-logger');
debug('Module "winston" imported');

@@ -69,2 +68,6 @@ class WinstonLogger {

}
verbose(message, ...meta) {
this._logger.verbose(message, ...meta);
return this;
}
debug(message, ...meta) {

@@ -74,6 +77,2 @@ this._logger.debug(message, ...meta);

}
verbose(message, ...meta) {
this._logger.verbose(message, ...meta);
return this;
}
init(options) {

@@ -80,0 +79,0 @@ debug(`creating winston logger....`);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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