@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.
Files changed (50) hide show
  1. node v12.20/LICENSE +0 -0
  2. node v12.20/README.md +1 -1
  3. node v12.20/assert.d.ts +0 -0
  4. node v12.20/async_hooks.d.ts +1 -1
  5. node v12.20/base.d.ts +0 -0
  6. node v12.20/buffer.d.ts +0 -0
  7. node v12.20/child_process.d.ts +0 -0
  8. node v12.20/cluster.d.ts +0 -0
  9. node v12.20/console.d.ts +0 -0
  10. node v12.20/constants.d.ts +0 -0
  11. node v12.20/crypto.d.ts +0 -0
  12. node v12.20/dgram.d.ts +0 -0
  13. node v12.20/dns.d.ts +0 -0
  14. node v12.20/domain.d.ts +0 -0
  15. node v12.20/events.d.ts +0 -0
  16. node v12.20/fs.d.ts +0 -0
  17. node v12.20/globals.d.ts +42 -1
  18. node v12.20/globals.global.d.ts +0 -0
  19. node v12.20/http.d.ts +5 -0
  20. node v12.20/http2.d.ts +0 -0
  21. node v12.20/https.d.ts +0 -0
  22. node v12.20/index.d.ts +0 -0
  23. node v12.20/inspector.d.ts +0 -0
  24. node v12.20/module.d.ts +0 -0
  25. node v12.20/net.d.ts +0 -0
  26. node v12.20/os.d.ts +0 -0
  27. node v12.20/package.json +2 -2
  28. node v12.20/path.d.ts +0 -0
  29. node v12.20/perf_hooks.d.ts +0 -0
  30. node v12.20/process.d.ts +0 -0
  31. node v12.20/punycode.d.ts +0 -0
  32. node v12.20/querystring.d.ts +0 -0
  33. node v12.20/readline.d.ts +0 -0
  34. node v12.20/repl.d.ts +0 -0
  35. node v12.20/stream.d.ts +0 -0
  36. node v12.20/string_decoder.d.ts +0 -0
  37. node v12.20/timers.d.ts +0 -0
  38. node v12.20/tls.d.ts +0 -0
  39. node v12.20/trace_events.d.ts +0 -0
  40. node v12.20/ts3.6/assert.d.ts +0 -0
  41. node v12.20/ts3.6/base.d.ts +0 -0
  42. node v12.20/ts3.6/index.d.ts +0 -0
  43. node v12.20/tty.d.ts +0 -0
  44. node v12.20/url.d.ts +0 -0
  45. node v12.20/util.d.ts +0 -0
  46. node v12.20/v8.d.ts +0 -0
  47. node v12.20/vm.d.ts +0 -0
  48. node v12.20/wasi.d.ts +0 -0
  49. node v12.20/worker_threads.d.ts +0 -0
  50. 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: Mon, 15 Mar 2021 18:54:39 GMT
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
@@ -151,7 +151,7 @@ declare module 'async_hooks' {
151
151
  /**
152
152
  * Call AsyncHooks destroy callbacks.
153
153
  */
154
- emitDestroy(): void;
154
+ emitDestroy(): this;
155
155
 
156
156
  /**
157
157
  * @return the unique ID assigned to this AsyncResource instance.
node v12.20/base.d.ts CHANGED
File without changes
node v12.20/buffer.d.ts CHANGED
File without changes
File without changes
node v12.20/cluster.d.ts CHANGED
File without changes
node v12.20/console.d.ts CHANGED
File without changes
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
@@ -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
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
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;
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
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.6",
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": "b1dbda09ef94dd24360ab25f15692c9752b0c6a9dd733fa0eabd38bd9ddff78d",
214
+ "typesPublisherContentHash": "697ddc6befec5201abab83489a1943d7601627fb31d331b0db3bb03c2b2cefc8",
215
215
  "typeScriptVersion": "3.5"
216
216
  }
node v12.20/path.d.ts CHANGED
File without changes
File without changes
node v12.20/process.d.ts CHANGED
File without changes
node v12.20/punycode.d.ts CHANGED
File without changes
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
File without changes
node v12.20/timers.d.ts CHANGED
File without changes
node v12.20/tls.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
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
File without changes
node v12.20/zlib.d.ts CHANGED
File without changes