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

fh-forms

Package Overview
Dependencies
Maintainers
11
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-forms - npm Package Compare versions

Comparing version 1.15.0-rhmap-1157.2 to 1.15.0-rhmap-1157.3

8

lib/impl/submissionExportHelper/csvHeaders.js

@@ -115,3 +115,3 @@ var csvStr = require('./csvStringFromValue');

var fieldKeysProcessed = [];
var fieldsProcessed = {};
fieldKeys.forEach(function(fieldKey) {

@@ -122,2 +122,6 @@ // check if its a repeating form (and extra headers required)

var fieldsInThisSection = sectionUtils.getFieldsInSection(field._id, _.values(mergedFieldEntries));
_.each(fieldsInThisSection, function(field) {
fieldsProcessed[field._id] = true;
});
for (var i = 0; i < field.fieldOptions.definition.maxRepeat; i++) {

@@ -128,3 +132,3 @@ _.each(fieldsInThisSection, function(fieldInThisSection) {

}
} else {
} else if (!fieldsProcessed[fieldKey]) {
fieldKeysProcessed.push({key: fieldKey});

@@ -131,0 +135,0 @@ }

@@ -106,3 +106,3 @@ var csvGeneration = require('./csvValues');

// dont need section there, just a field name/code + sectionIndex+1
fieldsProcessed.concat(repeatingSectionData.idsOfFieldsInSection);
fieldsProcessed = fieldsProcessed.concat(repeatingSectionData.idsOfFieldsInSection);

@@ -109,0 +109,0 @@ for (var i = 0; i < field.fieldOptions.definition.maxRepeat; i++) {

{
"name": "fh-forms",
"version": "1.15.0-rhmap-1157.2",
"version": "1.15.0-rhmap-1157.3",
"description": "Cloud Forms API for form submission",

@@ -5,0 +5,0 @@ "main": "fhforms.js",

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