@types/node 13.13.46 → 13.13.50

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 v13.13/LICENSE +0 -0
  2. node v13.13/README.md +1 -1
  3. node v13.13/assert.d.ts +0 -0
  4. node v13.13/async_hooks.d.ts +1 -1
  5. node v13.13/base.d.ts +0 -0
  6. node v13.13/buffer.d.ts +0 -0
  7. node v13.13/child_process.d.ts +0 -0
  8. node v13.13/cluster.d.ts +0 -0
  9. node v13.13/console.d.ts +0 -0
  10. node v13.13/constants.d.ts +0 -0
  11. node v13.13/crypto.d.ts +0 -0
  12. node v13.13/dgram.d.ts +0 -0
  13. node v13.13/dns.d.ts +0 -0
  14. node v13.13/domain.d.ts +0 -0
  15. node v13.13/events.d.ts +0 -0
  16. node v13.13/fs.d.ts +0 -0
  17. node v13.13/globals.d.ts +42 -1
  18. node v13.13/globals.global.d.ts +0 -0
  19. node v13.13/http.d.ts +1 -0
  20. node v13.13/http2.d.ts +1 -1
  21. node v13.13/https.d.ts +0 -0
  22. node v13.13/index.d.ts +0 -0
  23. node v13.13/inspector.d.ts +0 -0
  24. node v13.13/module.d.ts +0 -0
  25. node v13.13/net.d.ts +0 -0
  26. node v13.13/os.d.ts +0 -0
  27. node v13.13/package.json +2 -2
  28. node v13.13/path.d.ts +0 -0
  29. node v13.13/perf_hooks.d.ts +0 -0
  30. node v13.13/process.d.ts +0 -0
  31. node v13.13/punycode.d.ts +0 -0
  32. node v13.13/querystring.d.ts +0 -0
  33. node v13.13/readline.d.ts +0 -0
  34. node v13.13/repl.d.ts +0 -0
  35. node v13.13/stream.d.ts +0 -0
  36. node v13.13/string_decoder.d.ts +0 -0
  37. node v13.13/timers.d.ts +0 -0
  38. node v13.13/tls.d.ts +0 -0
  39. node v13.13/trace_events.d.ts +0 -0
  40. node v13.13/ts3.6/assert.d.ts +0 -0
  41. node v13.13/ts3.6/base.d.ts +0 -0
  42. node v13.13/ts3.6/index.d.ts +0 -0
  43. node v13.13/tty.d.ts +0 -0
  44. node v13.13/url.d.ts +0 -0
  45. node v13.13/util.d.ts +0 -0
  46. node v13.13/v8.d.ts +0 -0
  47. node v13.13/vm.d.ts +0 -0
  48. node v13.13/wasi.d.ts +0 -0
  49. node v13.13/worker_threads.d.ts +0 -0
  50. node v13.13/zlib.d.ts +0 -0
node v13.13/LICENSE CHANGED
File without changes
node v13.13/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/v13.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 09 Mar 2021 16:20:16 GMT
11
+ * Last updated: Thu, 15 Apr 2021 17:31:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v13.13/assert.d.ts CHANGED
File without changes
@@ -131,7 +131,7 @@ declare module "async_hooks" {
131
131
  /**
132
132
  * Call AsyncHooks destroy callbacks.
133
133
  */
134
- emitDestroy(): void;
134
+ emitDestroy(): this;
135
135
 
136
136
  /**
137
137
  * @return the unique ID assigned to this AsyncResource instance.
node v13.13/base.d.ts CHANGED
File without changes
node v13.13/buffer.d.ts CHANGED
File without changes
File without changes
node v13.13/cluster.d.ts CHANGED
File without changes
node v13.13/console.d.ts CHANGED
File without changes
File without changes
node v13.13/crypto.d.ts CHANGED
File without changes
node v13.13/dgram.d.ts CHANGED
File without changes
node v13.13/dns.d.ts CHANGED
File without changes
node v13.13/domain.d.ts CHANGED
File without changes
node v13.13/events.d.ts CHANGED
File without changes
node v13.13/fs.d.ts CHANGED
File without changes
@@ -783,6 +783,32 @@ declare namespace NodeJS {
783
783
  voluntaryContextSwitches: number;
784
784
  }
785
785
 
786
+ interface EmitWarningOptions {
787
+ /**
788
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
789
+ *
790
+ * @default 'Warning'
791
+ */
792
+ type?: string;
793
+
794
+ /**
795
+ * A unique identifier for the warning instance being emitted.
796
+ */
797
+ code?: string;
798
+
799
+ /**
800
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
801
+ *
802
+ * @default process.emitWarning
803
+ */
804
+ ctor?: Function;
805
+
806
+ /**
807
+ * Additional text to include with the error.
808
+ */
809
+ detail?: string;
810
+ }
811
+
786
812
  interface Process extends EventEmitter {
787
813
  /**
788
814
  * Can also be a tty.WriteStream, not typed due to limitation.s
@@ -802,7 +828,22 @@ declare namespace NodeJS {
802
828
  chdir(directory: string): void;
803
829
  cwd(): string;
804
830
  debugPort: number;
805
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
831
+
832
+ /**
833
+ * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
834
+ *
835
+ * These can be listened for by adding a handler to the `'warning'` event.
836
+ *
837
+ * @param warning The warning to emit.
838
+ * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
839
+ * @param code A unique identifier for the warning instance being emitted.
840
+ * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
841
+ */
842
+ emitWarning(warning: string | Error, ctor?: Function): void;
843
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
844
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
845
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
846
+
806
847
  env: ProcessEnv;
807
848
  exit(code?: number): never;
808
849
  exitCode?: number;
File without changes
node v13.13/http.d.ts CHANGED
@@ -33,6 +33,7 @@ declare module "http" {
33
33
  'content-type'?: string;
34
34
  'cookie'?: string;
35
35
  'date'?: string;
36
+ 'etag'?: string;
36
37
  'expect'?: string;
37
38
  'expires'?: string;
38
39
  'forwarded'?: string;
node v13.13/http2.d.ts CHANGED
@@ -638,7 +638,7 @@ declare module "http2" {
638
638
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
639
639
  }
640
640
 
641
- export class Http2ServerResponse extends stream.Stream {
641
+ export class Http2ServerResponse extends stream.Writable {
642
642
  constructor(stream: ServerHttp2Stream);
643
643
 
644
644
  readonly connection: net.Socket | tls.TLSSocket;
node v13.13/https.d.ts CHANGED
File without changes
node v13.13/index.d.ts CHANGED
File without changes
File without changes
node v13.13/module.d.ts CHANGED
File without changes
node v13.13/net.d.ts CHANGED
File without changes
node v13.13/os.d.ts CHANGED
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.46",
3
+ "version": "13.13.50",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -221,6 +221,6 @@
221
221
  },
222
222
  "scripts": {},
223
223
  "dependencies": {},
224
- "typesPublisherContentHash": "05f3e0129e60950bf69c8ce2c4b009dce67284202c39cadadab30e5a69ff6d00",
224
+ "typesPublisherContentHash": "1bfd8b60ca54a042077f6721f60bd6a07c653fce3be37184d14cca2ec92a1f63",
225
225
  "typeScriptVersion": "3.5"
226
226
  }
node v13.13/path.d.ts CHANGED
File without changes
File without changes
node v13.13/process.d.ts CHANGED
File without changes
node v13.13/punycode.d.ts CHANGED
File without changes
File without changes
node v13.13/readline.d.ts CHANGED
File without changes
node v13.13/repl.d.ts CHANGED
File without changes
node v13.13/stream.d.ts CHANGED
File without changes
File without changes
node v13.13/timers.d.ts CHANGED
File without changes
node v13.13/tls.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
node v13.13/tty.d.ts CHANGED
File without changes
node v13.13/url.d.ts CHANGED
File without changes
node v13.13/util.d.ts CHANGED
File without changes
node v13.13/v8.d.ts CHANGED
File without changes
node v13.13/vm.d.ts CHANGED
File without changes
node v13.13/wasi.d.ts CHANGED
File without changes
File without changes
node v13.13/zlib.d.ts CHANGED
File without changes