nhb-toolbox 2.6.6 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,13 +39,13 @@ const createControlledFormData = (data, configs) => {
39
39
  else if (Array.isArray(value)) {
40
40
  value.forEach((item, index) => {
41
41
  addToFormData(`${transformedKey}[${index}]`, item);
42
- });
42
+ }); // fix later
43
43
  }
44
44
  else if (typeof value === 'object' &&
45
45
  value !== null &&
46
46
  !(0, basics_2.isEmptyObject)(value)) {
47
47
  if (shouldStringifyNested(key) && !shouldDotNotate(key)) {
48
- formData.append(transformedKey, JSON.stringify(value));
48
+ formData.append(transformedKey, value); // JSON.stringify if needed
49
49
  }
50
50
  else {
51
51
  Object.entries(value).forEach(([nestedKey, nestedValue]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "2.6.6",
3
+ "version": "2.6.7",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions for everyday development needs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",