@ddadaal/tsgrpc-server
Advanced tools
Comparing version 0.18.2 to 0.19.0
# Changelog | ||
## 0.19.0 | ||
### Minor Changes | ||
- e3fcaf3: allow pass in an existing logger when creating server | ||
### Patch Changes | ||
- 99f28ca: don't create a child logger | ||
## 0.18.2 | ||
@@ -4,0 +14,0 @@ |
@@ -10,3 +10,3 @@ import * as grpc from "@grpc/grpc-js"; | ||
port?: number; | ||
logger?: pino.LoggerOptions; | ||
logger?: pino.LoggerOptions | pino.Logger; | ||
/** | ||
@@ -13,0 +13,0 @@ * The server credentials used when creating gRPC server |
@@ -31,3 +31,3 @@ "use strict"; | ||
this.config = config; | ||
this.logger = (0, pino_1.default)(config.logger).child({ component: "server" }); | ||
this.logger = (0, pino_1.default)(config.logger); | ||
this.config.host = this.config.host ?? "0.0.0.0"; | ||
@@ -34,0 +34,0 @@ this.config.port = this.config.port ?? 5000; |
{ | ||
"name": "@ddadaal/tsgrpc-server", | ||
"version": "0.18.2", | ||
"version": "0.19.0", | ||
"description": "A simple gRPC Server Framework for TypeScript Node.js", | ||
@@ -13,4 +13,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"pino": "8.8.0", | ||
"tslib": "2.4.1", | ||
"pino": "8.11.0", | ||
"tslib": "2.5.0", | ||
"@ddadaal/tsgrpc-common": "0.2.1" | ||
@@ -22,3 +22,3 @@ }, | ||
"devDependencies": { | ||
"@grpc/grpc-js": "1.8.4" | ||
"@grpc/grpc-js": "1.8.11" | ||
}, | ||
@@ -25,0 +25,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34906
+ Addedpino@8.11.0(transitive)
+ Addedtslib@2.5.0(transitive)
- Removedpino@8.8.0(transitive)
Updatedpino@8.11.0
Updatedtslib@2.5.0