@types/node 10.17.54 → 10.17.58

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 v10.17/LICENSE CHANGED
File without changes
node v10.17/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/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 19 Feb 2021 17:58:57 GMT
11
+ * Last updated: Thu, 15 Apr 2021 17:31:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v10.17/assert.d.ts CHANGED
File without changes
@@ -129,7 +129,7 @@ declare module "async_hooks" {
129
129
  /**
130
130
  * Call AsyncHooks destroy callbacks.
131
131
  */
132
- emitDestroy(): void;
132
+ emitDestroy(): this;
133
133
 
134
134
  /**
135
135
  * @return the unique ID assigned to this AsyncResource instance.
node v10.17/base.d.ts CHANGED
File without changes
node v10.17/buffer.d.ts CHANGED
File without changes
File without changes
node v10.17/cluster.d.ts CHANGED
File without changes
node v10.17/console.d.ts CHANGED
File without changes
File without changes
node v10.17/crypto.d.ts CHANGED
File without changes
node v10.17/dgram.d.ts CHANGED
File without changes
node v10.17/dns.d.ts CHANGED
File without changes
node v10.17/domain.d.ts CHANGED
File without changes
node v10.17/events.d.ts CHANGED
File without changes
node v10.17/fs.d.ts CHANGED
File without changes
@@ -712,6 +712,32 @@ declare namespace NodeJS {
712
712
  bigint(): bigint;
713
713
  }
714
714
 
715
+ interface EmitWarningOptions {
716
+ /**
717
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
718
+ *
719
+ * @default 'Warning'
720
+ */
721
+ type?: string;
722
+
723
+ /**
724
+ * A unique identifier for the warning instance being emitted.
725
+ */
726
+ code?: string;
727
+
728
+ /**
729
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
730
+ *
731
+ * @default process.emitWarning
732
+ */
733
+ ctor?: Function;
734
+
735
+ /**
736
+ * Additional text to include with the error.
737
+ */
738
+ detail?: string;
739
+ }
740
+
715
741
  interface Process extends EventEmitter {
716
742
  stdout: WriteStream;
717
743
  stderr: WriteStream;
@@ -725,7 +751,22 @@ declare namespace NodeJS {
725
751
  chdir(directory: string): void;
726
752
  cwd(): string;
727
753
  debugPort: number;
728
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
754
+
755
+ /**
756
+ * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
757
+ *
758
+ * These can be listened for by adding a handler to the `'warning'` event.
759
+ *
760
+ * @param warning The warning to emit.
761
+ * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
762
+ * @param code A unique identifier for the warning instance being emitted.
763
+ * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
764
+ */
765
+ emitWarning(warning: string | Error, ctor?: Function): void;
766
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
767
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
768
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
769
+
729
770
  env: ProcessEnv;
730
771
  exit(code?: number): never;
731
772
  exitCode?: number;
node v10.17/http.d.ts CHANGED
@@ -32,6 +32,7 @@ declare module "http" {
32
32
  'content-type'?: string;
33
33
  'cookie'?: string;
34
34
  'date'?: string;
35
+ 'etag'?: string;
35
36
  'expect'?: string;
36
37
  'expires'?: string;
37
38
  'forwarded'?: string;
node v10.17/http2.d.ts CHANGED
File without changes
node v10.17/https.d.ts CHANGED
File without changes
node v10.17/index.d.ts CHANGED
File without changes
File without changes
node v10.17/module.d.ts CHANGED
File without changes
node v10.17/net.d.ts CHANGED
File without changes
node v10.17/os.d.ts CHANGED
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.54",
3
+ "version": "10.17.58",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -181,6 +181,6 @@
181
181
  },
182
182
  "scripts": {},
183
183
  "dependencies": {},
184
- "typesPublisherContentHash": "df046bd192b2e6f64321516ffd3e9711815abd43c4da5f5c5ecc07a8a25656f3",
185
- "typeScriptVersion": "3.4"
184
+ "typesPublisherContentHash": "fc8b202fb70125505792af7ce55808619dc40e9dd39e1a586623c58e5b1a4755",
185
+ "typeScriptVersion": "3.5"
186
186
  }
node v10.17/path.d.ts CHANGED
File without changes
File without changes
node v10.17/process.d.ts CHANGED
File without changes
node v10.17/punycode.d.ts CHANGED
File without changes
File without changes
@@ -136,7 +136,7 @@ declare module "readline" {
136
136
  function createInterface(options: ReadLineOptions): Interface;
137
137
 
138
138
  function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void;
139
- function emitKeypressEvents(stream: NodeJS.ReadableStream, interface?: Interface): void;
139
+ function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
140
140
  function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void;
141
141
  function clearLine(stream: NodeJS.WritableStream, dir: number): void;
142
142
  function clearScreenDown(stream: NodeJS.WritableStream): void;
node v10.17/repl.d.ts CHANGED
File without changes
node v10.17/stream.d.ts CHANGED
File without changes
File without changes
node v10.17/timers.d.ts CHANGED
File without changes
node v10.17/tls.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
node v10.17/tty.d.ts CHANGED
File without changes
node v10.17/url.d.ts CHANGED
File without changes
node v10.17/util.d.ts CHANGED
File without changes
node v10.17/v8.d.ts CHANGED
File without changes
node v10.17/vm.d.ts CHANGED
File without changes
File without changes
node v10.17/zlib.d.ts CHANGED
File without changes