Comparing version 2.0.10 to 2.0.11
@@ -68,2 +68,4 @@ 'use strict'; | ||
if (contentTypes.type === 'application/json' || contentTypes.type === 'application/x-www-form-urlencoded') { | ||
if (httpRequest.flora) httpRequest.flora.state = 'processing-post-data'; | ||
// POST Form Data or JSON | ||
@@ -83,2 +85,3 @@ httpRequest.setEncoding(contentTypes.parameters.charset || 'utf-8'); | ||
if (Array.isArray(payload[key])) { | ||
if (httpRequest.flora) httpRequest.flora.state = 'processing'; | ||
reject(new RequestError(`Duplicate parameter "${key}" in Payload`)); | ||
@@ -96,2 +99,3 @@ return; | ||
} catch (err) { | ||
if (httpRequest.flora) httpRequest.flora.state = 'processing'; | ||
reject(new RequestError('Invalid payload, must be valid JSON')); | ||
@@ -103,2 +107,3 @@ return; | ||
if (httpRequest.flora) httpRequest.flora.state = 'processing'; | ||
resolve(new Request(opts)); | ||
@@ -105,0 +110,0 @@ }); |
{ | ||
"name": "flora", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "FLexible Open Rest API", | ||
@@ -47,3 +47,3 @@ "main": "index.js", | ||
"content-type": "^1.0.4", | ||
"flora-cluster": "^2.0.1", | ||
"flora-cluster": "^2.0.2", | ||
"flora-errors": "^2.0.0", | ||
@@ -55,6 +55,6 @@ "flora-request-parser": "^2.3.1", | ||
"lodash.uniq": "^4.5.0", | ||
"moment-timezone": "^0.5.32", | ||
"promise-events": "^0.2.1", | ||
"moment-timezone": "^0.5.33", | ||
"promise-events": "^0.2.2", | ||
"serve-static": "^1.14.1", | ||
"xmldom": "^0.4.0" | ||
"xmldom": "^0.5.0" | ||
}, | ||
@@ -61,0 +61,0 @@ "devDependencies": { |
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
197807
4216
+ Addedxmldom@0.5.0(transitive)
- Removedxmldom@0.4.0(transitive)
Updatedflora-cluster@^2.0.2
Updatedmoment-timezone@^0.5.33
Updatedpromise-events@^0.2.2
Updatedxmldom@^0.5.0