generated from tpl/purs
fix: js
This commit is contained in:
parent
731a44c370
commit
8a2d27a005
@ -5,7 +5,7 @@ export const blobArrayBufferImpl = b => () => b.arrayBuffer()
|
|||||||
const formDataValueSize = v => (typeof v === 'string' ? v.length : v.size)
|
const formDataValueSize = v => (typeof v === 'string' ? v.length : v.size)
|
||||||
|
|
||||||
/** @type {(_: ArrayBuffer | FormData) => () => number} */
|
/** @type {(_: ArrayBuffer | FormData) => () => number} */
|
||||||
export const rawRequestBodySize = body => () =>
|
export const rawBodySize = body => () =>
|
||||||
body instanceof ArrayBuffer
|
body instanceof ArrayBuffer
|
||||||
? body.byteLength
|
? body.byteLength
|
||||||
: body instanceof FormData
|
: body instanceof FormData
|
||||||
|
Loading…
Reference in New Issue
Block a user