@types/node 12.20.6 → 12.20.10
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 v12.20/LICENSE +0 -0
- node v12.20/README.md +1 -1
- node v12.20/assert.d.ts +0 -0
- node v12.20/async_hooks.d.ts +1 -1
- node v12.20/base.d.ts +0 -0
- node v12.20/buffer.d.ts +0 -0
- node v12.20/child_process.d.ts +0 -0
- node v12.20/cluster.d.ts +0 -0
- node v12.20/console.d.ts +0 -0
- node v12.20/constants.d.ts +0 -0
- node v12.20/crypto.d.ts +0 -0
- node v12.20/dgram.d.ts +0 -0
- node v12.20/dns.d.ts +0 -0
- node v12.20/domain.d.ts +0 -0
- node v12.20/events.d.ts +0 -0
- node v12.20/fs.d.ts +0 -0
- node v12.20/globals.d.ts +42 -1
- node v12.20/globals.global.d.ts +0 -0
- node v12.20/http.d.ts +5 -0
- node v12.20/http2.d.ts +0 -0
- node v12.20/https.d.ts +0 -0
- node v12.20/index.d.ts +0 -0
- node v12.20/inspector.d.ts +0 -0
- node v12.20/module.d.ts +0 -0
- node v12.20/net.d.ts +0 -0
- node v12.20/os.d.ts +0 -0
- node v12.20/package.json +2 -2
- node v12.20/path.d.ts +0 -0
- node v12.20/perf_hooks.d.ts +0 -0
- node v12.20/process.d.ts +0 -0
- node v12.20/punycode.d.ts +0 -0
- node v12.20/querystring.d.ts +0 -0
- node v12.20/readline.d.ts +0 -0
- node v12.20/repl.d.ts +0 -0
- node v12.20/stream.d.ts +0 -0
- node v12.20/string_decoder.d.ts +0 -0
- node v12.20/timers.d.ts +0 -0
- node v12.20/tls.d.ts +0 -0
- node v12.20/trace_events.d.ts +0 -0
- node v12.20/ts3.6/assert.d.ts +0 -0
- node v12.20/ts3.6/base.d.ts +0 -0
- node v12.20/ts3.6/index.d.ts +0 -0
- node v12.20/tty.d.ts +0 -0
- node v12.20/url.d.ts +0 -0
- node v12.20/util.d.ts +0 -0
- node v12.20/v8.d.ts +0 -0
- node v12.20/vm.d.ts +0 -0
- node v12.20/wasi.d.ts +0 -0
- node v12.20/worker_threads.d.ts +0 -0
- node v12.20/zlib.d.ts +0 -0
node v12.20/LICENSE
CHANGED
|
File without changes
|
node v12.20/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 16 Apr 2021 03:31:17 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v12.20/assert.d.ts
CHANGED
|
File without changes
|
node v12.20/async_hooks.d.ts
CHANGED
node v12.20/base.d.ts
CHANGED
|
File without changes
|
node v12.20/buffer.d.ts
CHANGED
|
File without changes
|
node v12.20/child_process.d.ts
CHANGED
|
File without changes
|
node v12.20/cluster.d.ts
CHANGED
|
File without changes
|
node v12.20/console.d.ts
CHANGED
|
File without changes
|
node v12.20/constants.d.ts
CHANGED
|
File without changes
|
node v12.20/crypto.d.ts
CHANGED
|
File without changes
|
node v12.20/dgram.d.ts
CHANGED
|
File without changes
|
node v12.20/dns.d.ts
CHANGED
|
File without changes
|
node v12.20/domain.d.ts
CHANGED
|
File without changes
|
node v12.20/events.d.ts
CHANGED
|
File without changes
|
node v12.20/fs.d.ts
CHANGED
|
File without changes
|
node v12.20/globals.d.ts
CHANGED
|
@@ -850,6 +850,32 @@ declare namespace NodeJS {
|
|
|
850
850
|
voluntaryContextSwitches: number;
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
+
interface EmitWarningOptions {
|
|
854
|
+
/**
|
|
855
|
+
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
|
856
|
+
*
|
|
857
|
+
* @default 'Warning'
|
|
858
|
+
*/
|
|
859
|
+
type?: string;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* A unique identifier for the warning instance being emitted.
|
|
863
|
+
*/
|
|
864
|
+
code?: string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
|
868
|
+
*
|
|
869
|
+
* @default process.emitWarning
|
|
870
|
+
*/
|
|
871
|
+
ctor?: Function;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Additional text to include with the error.
|
|
875
|
+
*/
|
|
876
|
+
detail?: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
853
879
|
interface Process extends EventEmitter {
|
|
854
880
|
/**
|
|
855
881
|
* Can also be a tty.WriteStream, not typed due to limitation.s
|
|
@@ -869,7 +895,22 @@ declare namespace NodeJS {
|
|
|
869
895
|
chdir(directory: string): void;
|
|
870
896
|
cwd(): string;
|
|
871
897
|
debugPort: number;
|
|
872
|
-
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
|
901
|
+
*
|
|
902
|
+
* These can be listened for by adding a handler to the `'warning'` event.
|
|
903
|
+
*
|
|
904
|
+
* @param warning The warning to emit.
|
|
905
|
+
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
|
906
|
+
* @param code A unique identifier for the warning instance being emitted.
|
|
907
|
+
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
|
908
|
+
*/
|
|
909
|
+
emitWarning(warning: string | Error, ctor?: Function): void;
|
|
910
|
+
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
|
911
|
+
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
|
912
|
+
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
|
913
|
+
|
|
873
914
|
env: ProcessEnv;
|
|
874
915
|
exit(code?: number): never;
|
|
875
916
|
exitCode?: number;
|
node v12.20/globals.global.d.ts
CHANGED
|
File without changes
|
node v12.20/http.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare module 'http' {
|
|
|
36
36
|
'content-type'?: string;
|
|
37
37
|
'cookie'?: string;
|
|
38
38
|
'date'?: string;
|
|
39
|
+
'etag'?: string;
|
|
39
40
|
'expect'?: string;
|
|
40
41
|
'expires'?: string;
|
|
41
42
|
'forwarded'?: string;
|
|
@@ -335,6 +336,10 @@ declare module 'http' {
|
|
|
335
336
|
* Socket timeout in milliseconds. This will set the timeout after the socket is connected.
|
|
336
337
|
*/
|
|
337
338
|
timeout?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Scheduling strategy to apply when picking the next free socket to use. Default: 'fifo'.
|
|
341
|
+
*/
|
|
342
|
+
scheduling?: 'fifo' | 'lifo';
|
|
338
343
|
}
|
|
339
344
|
|
|
340
345
|
class Agent {
|
node v12.20/http2.d.ts
CHANGED
|
File without changes
|
node v12.20/https.d.ts
CHANGED
|
File without changes
|
node v12.20/index.d.ts
CHANGED
|
File without changes
|
node v12.20/inspector.d.ts
CHANGED
|
File without changes
|
node v12.20/module.d.ts
CHANGED
|
File without changes
|
node v12.20/net.d.ts
CHANGED
|
File without changes
|
node v12.20/os.d.ts
CHANGED
|
File without changes
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.10",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -211,6 +211,6 @@
|
|
|
211
211
|
},
|
|
212
212
|
"scripts": {},
|
|
213
213
|
"dependencies": {},
|
|
214
|
-
"typesPublisherContentHash": "
|
|
214
|
+
"typesPublisherContentHash": "697ddc6befec5201abab83489a1943d7601627fb31d331b0db3bb03c2b2cefc8",
|
|
215
215
|
"typeScriptVersion": "3.5"
|
|
216
216
|
}
|
node v12.20/path.d.ts
CHANGED
|
File without changes
|
node v12.20/perf_hooks.d.ts
CHANGED
|
File without changes
|
node v12.20/process.d.ts
CHANGED
|
File without changes
|
node v12.20/punycode.d.ts
CHANGED
|
File without changes
|
node v12.20/querystring.d.ts
CHANGED
|
File without changes
|
node v12.20/readline.d.ts
CHANGED
|
File without changes
|
node v12.20/repl.d.ts
CHANGED
|
File without changes
|
node v12.20/stream.d.ts
CHANGED
|
File without changes
|
node v12.20/string_decoder.d.ts
CHANGED
|
File without changes
|
node v12.20/timers.d.ts
CHANGED
|
File without changes
|
node v12.20/tls.d.ts
CHANGED
|
File without changes
|
node v12.20/trace_events.d.ts
CHANGED
|
File without changes
|
node v12.20/ts3.6/assert.d.ts
CHANGED
|
File without changes
|
node v12.20/ts3.6/base.d.ts
CHANGED
|
File without changes
|
node v12.20/ts3.6/index.d.ts
CHANGED
|
File without changes
|
node v12.20/tty.d.ts
CHANGED
|
File without changes
|
node v12.20/url.d.ts
CHANGED
|
File without changes
|
node v12.20/util.d.ts
CHANGED
|
File without changes
|
node v12.20/v8.d.ts
CHANGED
|
File without changes
|
node v12.20/vm.d.ts
CHANGED
|
File without changes
|
node v12.20/wasi.d.ts
CHANGED
|
File without changes
|
node v12.20/worker_threads.d.ts
CHANGED
|
File without changes
|
node v12.20/zlib.d.ts
CHANGED
|
File without changes
|