Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flora

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flora - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

5

lib/url-parser.js

@@ -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 @@ });

10

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc