@banzaicloud/service-tools
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -37,3 +37,3 @@ "use strict"; | ||
// read more: https://nodejs.org/api/process.html#process_event_unhandledrejection | ||
const unhandledRejectionHandler = (reason) => __awaiter(this, void 0, void 0, function* () { | ||
const unhandledRejectionHandler = (reason = {}, promise) => __awaiter(this, void 0, void 0, function* () { | ||
logger(reason, 'unhandled promise rejection'); | ||
@@ -40,0 +40,0 @@ // shut down anyway after `timeout` seconds |
{ | ||
"name": "@banzaicloud/service-tools", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Andras Toth", | ||
@@ -50,3 +50,3 @@ "license": "Apache-2.0", | ||
"@types/lodash": "4.14.121", | ||
"@types/node": "11.9.5", | ||
"@types/node": "11.10.4", | ||
"@types/pino": "5.8.5", | ||
@@ -65,3 +65,3 @@ "@types/request-promise-native": "1.0.15", | ||
"ts-node": "8.0.2", | ||
"tslint": "5.13.0", | ||
"tslint": "5.13.1", | ||
"tslint-config-prettier": "1.18.0", | ||
@@ -68,0 +68,0 @@ "typescript": "3.3.3333" |
@@ -43,3 +43,3 @@ import { LogFn } from 'pino' | ||
// read more: https://nodejs.org/api/process.html#process_event_unhandledrejection | ||
const unhandledRejectionHandler = async (reason: PromiseRejectionEvent) => { | ||
const unhandledRejectionHandler = async (reason: any = {}, promise: Promise<any>) => { | ||
logger(reason, 'unhandled promise rejection') | ||
@@ -46,0 +46,0 @@ |
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
121370