@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 +1 -1
- node/buffer.d.ts +1 -1
- node/package.json +2 -2
- node/stream/web.d.ts +2 -1
- node/url.d.ts +10 -6
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:
|
|
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):
|
|
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.
|
|
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": "
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
880
|
-
|
|
881
|
-
|
|
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' {
|