@hey-api/openapi-ts 0.80.9 → 0.80.10
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.
|
@@ -21,6 +21,8 @@ const serializeFormDataPair = (
|
|
|
21
21
|
): void => {
|
|
22
22
|
if (typeof value === 'string' || value instanceof Blob) {
|
|
23
23
|
data.append(key, value);
|
|
24
|
+
} else if (value instanceof Date) {
|
|
25
|
+
data.append(key, value.toISOString());
|
|
24
26
|
} else {
|
|
25
27
|
data.append(key, JSON.stringify(value));
|
|
26
28
|
}
|
package/package.json
CHANGED