Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop node support for < v18.17.0 #3125

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
KhafraDev committed Apr 15, 2024
commit 38e96c12f91b0acc2a479e55e3c4a3a5ddf63cc5
4 changes: 2 additions & 2 deletions lib/web/fetch/file.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { Blob, File: NativeFile } = require('node:buffer')
const { Blob, File } = require('node:buffer')
const { kState } = require('./symbols')
const { webidl } = require('./webidl')

Expand Down Expand Up @@ -113,7 +113,7 @@ webidl.converters.Blob = webidl.interfaceConverter(Blob)
// https://github.com/nodejs/undici/issues/1629
function isFileLike (object) {
return (
(NativeFile && object instanceof NativeFile) ||
(object instanceof File) ||
(
object &&
(typeof object.stream === 'function' ||
Expand Down
Loading