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

@treelab/logger-metrics-middleware

Package Overview
Dependencies
Maintainers
12
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@treelab/logger-metrics-middleware - npm Package Compare versions

Comparing version 1.0.1-beta to 1.0.1-beta-1

3

dist/index.d.ts

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

export { HttpLoggerMiddleware } from './http-logger';
export { GrpcLoggerMiddleware } from './grpc-logger';
export declare function switchLogger(logger?: string): any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GrpcLoggerMiddleware = exports.HttpLoggerMiddleware = void 0;
var http_logger_1 = require("./http-logger");
Object.defineProperty(exports, "HttpLoggerMiddleware", { enumerable: true, get: function () { return http_logger_1.HttpLoggerMiddleware; } });
var grpc_logger_1 = require("./grpc-logger");
Object.defineProperty(exports, "GrpcLoggerMiddleware", { enumerable: true, get: function () { return grpc_logger_1.GrpcLoggerMiddleware; } });
exports.switchLogger = void 0;
const HttpLoggerMiddleware = require('./http-logger');
const GrpcLoggerMiddleware = require('./grpc-logger');
function switchLogger(logger = 'all') {
switch (logger) {
case 'http':
return HttpLoggerMiddleware;
case 'grpc':
return GrpcLoggerMiddleware;
default:
return { HttpLoggerMiddleware, GrpcLoggerMiddleware };
}
}
exports.switchLogger = switchLogger;
//# sourceMappingURL=index.js.map
{
"name": "@treelab/logger-metrics-middleware",
"description": "nest js logger-metrics-middleware",
"version": "1.0.1-beta",
"version": "1.0.1-beta-1",
"author": "simon.shi <simon.shi@treelab.co>",

@@ -35,3 +35,2 @@ "homepage": "https://github.com/treelab/treelab-infra-utils/tree/master/treelab-log-metrics",

"@nestjs/common": "^8.4.0",
"@nestjs/core": "^8.4.1",
"@nestjs/microservices": "^8.4.0",

@@ -38,0 +37,0 @@ "@types/node": "^17.0.21",

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