File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-restricted-globals */
2
+
2
3
import type { RawHeaders , FormDataEncoderHeaders } from "./util/Headers.js"
3
4
import { getStreamIterator } from "./util/getStreamIterator.js"
4
5
import { createBoundary } from "./util/createBoundary.js"
@@ -253,16 +254,6 @@ export class FormDataEncoder {
253
254
return String ( length + this . #footer. byteLength )
254
255
}
255
256
256
- /**
257
- * Returns form-data content length
258
- *
259
- * @deprecated Use FormDataEncoder.contentLength or FormDataEncoder.headers["Content-Length"] instead
260
- */
261
- /* c8 ignore next 3 */
262
- getContentLength ( ) : number | undefined {
263
- return this . contentLength == null ? undefined : Number ( this . contentLength )
264
- }
265
-
266
257
/**
267
258
* Creates an iterator allowing to go through form-data parts (with metadata).
268
259
* This method **will not** read the files and **will not** split values big into smaller chunks.
Original file line number Diff line number Diff line change 1
1
import type { FileLike } from "../FileLike.js"
2
+
2
3
import { isFunction } from "./isFunction.js"
3
4
4
5
/**
@@ -38,8 +39,3 @@ export const isFile = (value: unknown): value is FileLike => Boolean(
38
39
&& isFunction ( ( value as FileLike ) . stream )
39
40
&& ( value as FileLike ) . name != null
40
41
)
41
-
42
- /**
43
- * @deprecated use `isFile` instead
44
- */
45
- export const isFileLike = isFile
You can’t perform that action at this time.
0 commit comments