undici-types 7.19.2 → 7.20.0

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/dispatcher.d.ts CHANGED
@@ -181,6 +181,7 @@ declare namespace Dispatcher {
181
181
  }
182
182
  export interface ResponseData<TOpaque = null> {
183
183
  statusCode: number;
184
+ statusText: string;
184
185
  headers: IncomingHttpHeaders;
185
186
  body: BodyReadable & BodyMixin;
186
187
  trailers: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "7.19.2",
3
+ "version": "7.20.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
package/webidl.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // These types are not exported, and are only used internally
2
+ import { BufferSource } from 'node:stream/web'
2
3
  import * as undici from './index'
3
4
 
4
5
  /**
@@ -93,6 +94,11 @@ interface WebidlUtil {
93
94
  IsResizableArrayBuffer (V: ArrayBufferLike): boolean
94
95
 
95
96
  HasFlag (flag: number, attributes: number): boolean
97
+
98
+ /**
99
+ * @see https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
100
+ */
101
+ getCopyOfBytesHeldByBufferSource (bufferSource: BufferSource): Uint8Array
96
102
  }
97
103
 
98
104
  interface WebidlConverters {