@treelab/logger-metrics-middleware
Advanced tools
Comparing version 1.0.1-beta to 1.0.1-beta-1
@@ -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
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
18523
7
246
0
1
- Removed@nestjs/core@^8.4.1