@types/node 17.0.17 → 17.0.20

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.
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Feb 2022 05:31:37 GMT
11
+ * Last updated: Wed, 23 Feb 2022 11:31:42 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/buffer.d.ts CHANGED
@@ -704,7 +704,7 @@ declare module 'buffer' {
704
704
  * @param [sourceStart=0] The offset within `buf` at which to begin comparison.
705
705
  * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
706
706
  */
707
- compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
707
+ compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1;
708
708
  /**
709
709
  * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
710
710
  *
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.17",
3
+ "version": "17.0.20",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "81c14b1a78451f6c86a6d41a796951f39a75390e0d1f9e36e8f4ff1877f94f38",
218
+ "typesPublisherContentHash": "5b8a79c823e6f24c1b07d27ab8f8864982645c422384b6e2f953d6dfb889e976",
219
219
  "typeScriptVersion": "3.8"
220
220
  }
node/stream/web.d.ts CHANGED
@@ -139,7 +139,8 @@ declare module 'stream/web' {
139
139
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
140
140
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
141
141
  tee(): [ReadableStream<R>, ReadableStream<R>];
142
- [Symbol.asyncIterator](options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
142
+ values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
143
+ [Symbol.asyncIterator](): AsyncIterableIterator<R>;
143
144
  }
144
145
  const ReadableStream: {
145
146
  prototype: ReadableStream;
node/url.d.ts CHANGED
@@ -869,17 +869,21 @@ declare module 'url' {
869
869
  * https://nodejs.org/api/url.html#the-whatwg-url-api
870
870
  * @since v10.0.0
871
871
  */
872
- var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
872
+ var URL:
873
+ // For compatibility with "dom" and "webworker" URL declarations
874
+ typeof globalThis extends { onmessage: any, URL: infer URL }
875
+ ? URL
876
+ : typeof _URL;
873
877
  /**
874
878
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
875
879
  * https://nodejs.org/api/url.html#class-urlsearchparams
876
880
  * @since v10.0.0
877
881
  */
878
- var URLSearchParams: {
879
- prototype: URLSearchParams;
880
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
881
- toString(): string;
882
- };
882
+ var URLSearchParams:
883
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
884
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
885
+ ? URLSearchParams
886
+ : typeof _URLSearchParams;
883
887
  }
884
888
  }
885
889
  declare module 'node:url' {