@banzaicloud/service-tools
Advanced tools
Comparing version 2.0.0 to 2.0.1
/** | ||
* Request function for testing routes on localhost | ||
*/ | ||
/// <reference types="node" /> | ||
import * as http from 'http'; | ||
@@ -6,0 +5,0 @@ import * as request from 'request-promise-native'; |
@@ -0,5 +1,6 @@ | ||
/// <reference types="pino" /> | ||
import { ErrorRequestHandler } from 'express'; | ||
export default function errorHandlerFactory({ logger, }?: { | ||
logger?: ((obj: object, msg?: string | undefined, ...args: any[]) => void) | undefined; | ||
logger?: import("pino").LogFn | undefined; | ||
}): ErrorRequestHandler; | ||
//# sourceMappingURL=error-handler.d.ts.map |
@@ -0,5 +1,6 @@ | ||
/// <reference types="pino" /> | ||
import { RequestHandler } from 'express'; | ||
export default function healthCheckFactory(checks?: Array<() => Promise<any>>, { logger }?: { | ||
logger?: ((obj: object, msg?: string | undefined, ...args: any[]) => void) | undefined; | ||
logger?: import("pino").LogFn | undefined; | ||
}): RequestHandler; | ||
//# sourceMappingURL=health-check.d.ts.map |
@@ -0,5 +1,6 @@ | ||
/// <reference types="pino" /> | ||
import { Context } from 'koa'; | ||
export default function errorHandlerFactory({ logger }?: { | ||
logger?: ((obj: object, msg?: string | undefined, ...args: any[]) => void) | undefined; | ||
logger?: import("pino").LogFn | undefined; | ||
}): (ctx: Context, next: () => void) => Promise<void>; | ||
//# sourceMappingURL=error-handler.d.ts.map |
@@ -0,6 +1,7 @@ | ||
/// <reference types="pino" /> | ||
import { Context } from 'koa'; | ||
export default function healthCheckFactory(checks?: Array<() => Promise<any>>, { logger, serviceUnavailableOnTermination }?: { | ||
logger?: ((obj: object, msg?: string | undefined, ...args: any[]) => void) | undefined; | ||
logger?: import("pino").LogFn | undefined; | ||
serviceUnavailableOnTermination?: boolean | undefined; | ||
}): (ctx: Context) => Promise<void>; | ||
//# sourceMappingURL=health-check.d.ts.map |
@@ -7,3 +7,3 @@ { | ||
"joi": "14.3.1", | ||
"koa": "2.6.2", | ||
"koa": "2.7.0", | ||
"koa-router": "7.4.0", | ||
@@ -10,0 +10,0 @@ "stoppable": "1.1.0" |
{ | ||
"name": "@banzaicloud/service-tools", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Andras Toth", | ||
@@ -38,9 +38,9 @@ "license": "Apache-2.0", | ||
"@babel/core": "7.2.2", | ||
"@types/express": "4.16.0", | ||
"@types/express": "4.16.1", | ||
"@types/http-errors": "1.6.1", | ||
"@types/jest": "23.3.12", | ||
"@types/joi": "14.0.1", | ||
"@types/jest": "23.3.13", | ||
"@types/joi": "14.3.1", | ||
"@types/koa": "2.0.48", | ||
"@types/lodash": "4.14.119", | ||
"@types/node": "10.12.18", | ||
"@types/lodash": "4.14.120", | ||
"@types/node": "10.12.21", | ||
"@types/pino": "5.20.0", | ||
@@ -52,12 +52,12 @@ "@types/request-promise-native": "1.0.15", | ||
"jest-mock-console": "0.4.2", | ||
"koa": "2.6.2", | ||
"prettier": "1.15.3", | ||
"koa": "2.7.0", | ||
"prettier": "1.16.4", | ||
"prettier-tslint": "0.4.2", | ||
"pretty-quick": "1.8.0", | ||
"pretty-quick": "1.10.0", | ||
"request-promise-native": "1.0.5", | ||
"ts-jest": "23.10.5", | ||
"ts-node": "7.0.1", | ||
"tslint": "5.12.0", | ||
"tslint-config-prettier": "1.17.0", | ||
"typescript": "3.2.2" | ||
"ts-node": "8.0.2", | ||
"tslint": "5.12.1", | ||
"tslint-config-prettier": "1.18.0", | ||
"typescript": "3.3.1" | ||
}, | ||
@@ -72,3 +72,3 @@ "peerDependencies": { | ||
"lodash": "4.17.11", | ||
"pino": "5.10.6", | ||
"pino": "5.11.1", | ||
"prom-client": "11.2.1" | ||
@@ -75,0 +75,0 @@ }, |
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
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
1894
121194
+ Addedpino@5.11.1(transitive)
- Removedpino@5.10.6(transitive)
Updatedpino@5.11.1