@types/node 14.18.44 → 14.18.46

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 v14.18/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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 04 May 2023 21:02:47 GMT
11
+ * Last updated: Mon, 08 May 2023 20:33:02 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -338,7 +338,10 @@ declare module 'child_process' {
338
338
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
339
339
  encoding: BufferEncoding;
340
340
  }
341
- type ExecFileException = ExecException & NodeJS.ErrnoException;
341
+ type ExecFileException =
342
+ & Omit<ExecException, 'code'>
343
+ & Omit<NodeJS.ErrnoException, 'code'>
344
+ & { code?: string | number | undefined | null };
342
345
 
343
346
  function execFile(file: string): ChildProcess;
344
347
  function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
node v14.18/http.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare module 'http' {
2
2
  import * as stream from 'stream';
3
3
  import { URL } from 'url';
4
+ import { EventEmitter } from 'events';
4
5
  import { Socket, Server as NetServer, LookupFunction } from 'net';
5
6
 
6
7
  // incoming headers will never contain number
@@ -499,7 +500,7 @@ declare module 'http' {
499
500
  scheduling?: 'fifo' | 'lifo' | undefined;
500
501
  }
501
502
 
502
- class Agent {
503
+ class Agent extends EventEmitter {
503
504
  maxFreeSockets: number;
504
505
  maxSockets: number;
505
506
  maxTotalSockets: number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.44",
3
+ "version": "14.18.46",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "b3d9782bb86f7925feec5f65267eec93e6090678ea0827575e5be631a5ef702d",
230
+ "typesPublisherContentHash": "32485d829ef18b69e5c69b0e6cd269c7c93ef50b4fd2cfea4be458c1e15982e3",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -338,7 +338,10 @@ declare module 'child_process' {
338
338
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
339
339
  encoding: BufferEncoding;
340
340
  }
341
- type ExecFileException = ExecException & NodeJS.ErrnoException;
341
+ type ExecFileException =
342
+ & Omit<ExecException, 'code'>
343
+ & Omit<NodeJS.ErrnoException, 'code'>
344
+ & { code?: string | number | undefined | null };
342
345
 
343
346
  function execFile(file: string): ChildProcess;
344
347
  function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;