@appolo/agent
Advanced tools
Comparing version 8.0.5 to 8.0.6
@@ -51,4 +51,2 @@ "use strict"; | ||
this._options = utils_1.Objects.defaults(options || {}, defaults_1.Defaults); | ||
this._qsParse = this._options.qsParser || querystring.parse; | ||
this._urlParse = this._options.urlParser === "fast" ? util_1.Util.parseUrlFast : url.parse; | ||
this._middlewares = []; | ||
@@ -71,2 +69,4 @@ this._middlewaresError = []; | ||
} | ||
this._qsParse = this._options.qsParser || querystring.parse; | ||
this._urlParse = this._options.urlParser === "fast" ? util_1.Util.parseUrlFast : url.parse; | ||
this._middlewaresError.push(middleware_1.errorMiddleware); | ||
@@ -73,0 +73,0 @@ this._middlewaresNotFound = [...this._middlewares, middleware_1.notFoundMiddleware]; |
@@ -55,4 +55,2 @@ import {IOptions} from "./IOptions"; | ||
this._qsParse = this._options.qsParser || querystring.parse; | ||
this._urlParse = this._options.urlParser === "fast" ? Util.parseUrlFast : url.parse; | ||
@@ -83,3 +81,7 @@ this._middlewares = []; | ||
this._qsParse = this._options.qsParser || querystring.parse; | ||
this._urlParse = this._options.urlParser === "fast" ? Util.parseUrlFast : url.parse; | ||
this._middlewaresError.push(errorMiddleware); | ||
@@ -86,0 +88,0 @@ |
@@ -30,3 +30,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.5", | ||
"version": "8.0.6", | ||
"license": "MIT", | ||
@@ -33,0 +33,0 @@ "repository": { |
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
118079