Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Mar 29, 2024
1 parent 6d63b9b commit 81bb72c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ async function * intoAsyncIterator (payload) {
const isBuffer = Buffer.isBuffer(payload)

if (
!isBuffer && (
// ArrayBuffer
!isBuffer &&
(
// ArrayBuffer
payload instanceof ArrayBuffer ||
// NodeJS.TypedArray
ArrayBuffer.isView(payload)
// NodeJS.TypedArray
ArrayBuffer.isView(payload)
)
) {
payload = Buffer.from(payload)
Expand Down

0 comments on commit 81bb72c

Please sign in to comment.