@prismatic-io/spectral
Advanced tools
Comparing version 7.4.0 to 7.4.1
@@ -79,3 +79,5 @@ "use strict"; | ||
(formData || []).map(({ key, value }) => form.append(key, value)); | ||
(fileData || []).map(({ key, value }) => form.append(key, value, { filename: key })); | ||
(fileData || []).map(({ key, value }) => form.append(key, util_1.default.types.toBufferDataPayload(value).data, { | ||
filename: key, | ||
})); | ||
return form; | ||
@@ -82,0 +84,0 @@ }; |
@@ -40,3 +40,3 @@ /** | ||
isUrl: (value: string) => boolean; | ||
isBufferDataPayload: (value: unknown) => boolean; | ||
isBufferDataPayload: (value: unknown) => value is DataPayload; | ||
toBufferDataPayload: (value: unknown) => DataPayload; | ||
@@ -43,0 +43,0 @@ isData: (value: unknown) => boolean; |
{ | ||
"name": "@prismatic-io/spectral", | ||
"version": "7.4.0", | ||
"version": "7.4.1", | ||
"description": "Utility library for building Prismatic components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157949
3536