arrow-express
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -40,5 +40,5 @@ import Express from 'express'; | ||
* @param options.app - Express application used by application | ||
* @param options.logRequests - log requests on handle | ||
* @param options.logRequests - log requests, enabled by default | ||
*/ | ||
export declare function Application(options: ApplicationOptions): AppConfigurator; | ||
export {}; |
@@ -110,3 +110,3 @@ "use strict"; | ||
if (this.logRequests) { | ||
console.log(req.method + ":/" + req.path + " Response: " + res.statusCode); | ||
console.log("Request " + req.method + ":" + req.path + " Response: " + res.statusCode); | ||
} | ||
@@ -171,3 +171,3 @@ }; | ||
* @param options.app - Express application used by application | ||
* @param options.logRequests - log requests on handle | ||
* @param options.logRequests - log requests, enabled by default | ||
*/ | ||
@@ -174,0 +174,0 @@ function Application(options) { |
@@ -69,3 +69,3 @@ import Express from 'express'; | ||
if (this.logRequests) { | ||
console.log(`${req.method}:/${req.path} Response: ${res.statusCode}`); | ||
console.log(`Request ${req.method}:${req.path} Response: ${res.statusCode}`); | ||
} | ||
@@ -131,3 +131,3 @@ } | ||
* @param options.app - Express application used by application | ||
* @param options.logRequests - log requests on handle | ||
* @param options.logRequests - log requests, enabled by default | ||
*/ | ||
@@ -134,0 +134,0 @@ export function Application(options: ApplicationOptions): AppConfigurator { |
{ | ||
"name": "arrow-express", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Library to bootstrap express applications with zero configuration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
855972