api-def 0.14.0-alpha.1 → 0.14.0-alpha.2

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.
package/cjs/Utils.js CHANGED
@@ -107,8 +107,8 @@ const toFormData = (body) => {
107
107
  return;
108
108
  }
109
109
  if (Array.isArray(value)) {
110
- for (const item of value) {
111
- appendValue(key, item);
110
+ for (const [index, item] of value.entries()) {
111
+ appendValue(`${key}.${index}`, item);
112
112
  }
113
113
  return;
114
114
  }
package/esm/Utils.js CHANGED
@@ -97,8 +97,8 @@ export const toFormData = (body) => {
97
97
  return;
98
98
  }
99
99
  if (Array.isArray(value)) {
100
- for (const item of value) {
101
- appendValue(key, item);
100
+ for (const [index, item] of value.entries()) {
101
+ appendValue(`${key}.${index}`, item);
102
102
  }
103
103
  return;
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-def",
3
- "version": "0.14.0-alpha.1",
3
+ "version": "0.14.0-alpha.2",
4
4
  "description": "Typed API definitions with middleware support",
5
5
  "main": "cjs/index.js",
6
6
  "types": "esm/index.d.ts",