@prismatic-io/spectral 7.4.0 → 7.4.1
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/dist/clients/http/index.js +3 -1
- package/dist/util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -76,7 +76,9 @@ const toAuthorizationHeaders = (connection) => {
|
|
|
76
76
|
const toFormData = (formData, fileData) => {
|
|
77
77
|
const form = new form_data_1.default();
|
|
78
78
|
(formData || []).map(({ key, value }) => form.append(key, value));
|
|
79
|
-
(fileData || []).map(({ key, value }) => form.append(key, value, {
|
|
79
|
+
(fileData || []).map(({ key, value }) => form.append(key, util_1.default.types.toBufferDataPayload(value).data, {
|
|
80
|
+
filename: key,
|
|
81
|
+
}));
|
|
80
82
|
return form;
|
|
81
83
|
};
|
|
82
84
|
const computeRetryDelay = (retryDelay, useExponentialBackoff) => {
|
package/dist/util.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
isDate: (value: unknown) => value is Date;
|
|
38
38
|
toDate: (value: unknown) => Date;
|
|
39
39
|
isUrl: (value: string) => boolean;
|
|
40
|
-
isBufferDataPayload: (value: unknown) =>
|
|
40
|
+
isBufferDataPayload: (value: unknown) => value is DataPayload;
|
|
41
41
|
toBufferDataPayload: (value: unknown) => DataPayload;
|
|
42
42
|
isData: (value: unknown) => boolean;
|
|
43
43
|
toData: (value: unknown) => DataPayload;
|