@types/node 4.9.4 → 4.9.5

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.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node v4.9/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/node`
3
+
4
+ # Summary
5
+ This package contains type definitions for Node.js (http://nodejs.org/).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v4.
9
+
10
+ ### Additional Details
11
+ * Last updated: Fri, 16 Oct 2020 16:30:57 GMT
12
+ * Dependencies: none
13
+ * Global values: `Buffer`, `SlowBuffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
+
15
+ # Credits
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Sebastian Silbermann](https://github.com/eps1lon), and [Sander Koenders](https://github.com/Archcry).
@@ -111,7 +111,7 @@ declare var SlowBuffer: {
111
111
  prototype: Buffer;
112
112
  isBuffer(obj: any): boolean;
113
113
  byteLength(string: string, encoding?: string): number;
114
- concat(list: Buffer[], totalLength?: number): Buffer;
114
+ concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
115
115
  };
116
116
 
117
117
 
@@ -178,7 +178,7 @@ declare var Buffer: {
178
178
  * Creates a new Buffer using the passed {data}
179
179
  * @param data data to create a new Buffer
180
180
  */
181
- from(data: any[] | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
181
+ from(data: ReadonlyArray<any> | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
182
182
  /**
183
183
  * Creates a new Buffer containing the given JavaScript string {str}.
184
184
  * If provided, the {encoding} parameter identifies the character encoding.
@@ -217,7 +217,7 @@ declare var Buffer: {
217
217
  * @param totalLength Total length of the buffers when concatenated.
218
218
  * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
219
219
  */
220
- concat(list: Buffer[], totalLength?: number): Buffer;
220
+ concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
221
221
  /**
222
222
  * The same as buf1.compare(buf2).
223
223
  */
@@ -480,7 +480,7 @@ declare namespace NodeJS {
480
480
  nextTick(callback: Function): void;
481
481
  umask(mask?: number): number;
482
482
  uptime(): number;
483
- hrtime(time?:number[]): number[];
483
+ hrtime(time?:ReadonlyArray<number>): number[];
484
484
  domain: Domain;
485
485
 
486
486
  // Worker
@@ -764,7 +764,7 @@ declare module "http" {
764
764
  statusCode: number;
765
765
  statusMessage: string;
766
766
  headersSent: boolean;
767
- setHeader(name: string, value: string | string[]): void;
767
+ setHeader(name: string, value: string | ReadonlyArray<string>): void;
768
768
  sendDate: boolean;
769
769
  getHeader(name: string): string;
770
770
  removeHeader(name: string): void;
@@ -793,7 +793,7 @@ declare module "http" {
793
793
  setNoDelay(noDelay?: boolean): void;
794
794
  setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
795
795
 
796
- setHeader(name: string, value: string | string[]): void;
796
+ setHeader(name: string, value: string | ReadonlyArray<string>): void;
797
797
  getHeader(name: string): string;
798
798
  removeHeader(name: string): void;
799
799
  addTrailers(headers: OutgoingHttpHeaders): void;
@@ -1122,7 +1122,7 @@ declare module "punycode" {
1122
1122
  export var ucs2: ucs2;
1123
1123
  interface ucs2 {
1124
1124
  decode(string: string): number[];
1125
- encode(codePoints: number[]): string;
1125
+ encode(codePoints: ReadonlyArray<number>): string;
1126
1126
  }
1127
1127
  export var version: any;
1128
1128
  }
@@ -1300,11 +1300,11 @@ declare module "child_process" {
1300
1300
  // usage. child_process.execFile("file.sh", {encoding: null as string}, (err, stdout, stderr) => {});
1301
1301
  export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
1302
1302
  export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1303
- export function execFile(file: string, args?: string[], callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1304
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1303
+ export function execFile(file: string, args?: ReadonlyArray<string>, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1304
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1305
1305
  // usage. child_process.execFile("file.sh", ["foo"], {encoding: null as string}, (err, stdout, stderr) => {});
1306
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
1307
- export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1306
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
1307
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
1308
1308
 
1309
1309
  export interface ForkOptions {
1310
1310
  cwd?: string;
@@ -1315,7 +1315,7 @@ declare module "child_process" {
1315
1315
  uid?: number;
1316
1316
  gid?: number;
1317
1317
  }
1318
- export function fork(modulePath: string, args?: string[], options?: ForkOptions): ChildProcess;
1318
+ export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
1319
1319
 
1320
1320
  export interface SpawnSyncOptions {
1321
1321
  cwd?: string;
@@ -1349,9 +1349,9 @@ declare module "child_process" {
1349
1349
  export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1350
1350
  export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1351
1351
  export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1352
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1353
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1354
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1352
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1353
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1354
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1355
1355
 
1356
1356
  export interface ExecSyncOptions {
1357
1357
  cwd?: string;
@@ -1399,9 +1399,9 @@ declare module "child_process" {
1399
1399
  export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
1400
1400
  export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1401
1401
  export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
1402
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithStringEncoding): string;
1403
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1404
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptions): Buffer;
1402
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
1403
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1404
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
1405
1405
  }
1406
1406
 
1407
1407
  declare module "url" {
@@ -1517,7 +1517,7 @@ declare module "dns" {
1517
1517
  export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
1518
1518
 
1519
1519
  export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
1520
- export function setServers(servers: string[]): void;
1520
+ export function setServers(servers: ReadonlyArray<string>): void;
1521
1521
 
1522
1522
  //Error codes
1523
1523
  export var NODATA: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "4.9.4",
3
+ "version": "4.9.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -26,7 +26,7 @@
26
26
  }
27
27
  ],
28
28
  "main": "",
29
- "types": "index",
29
+ "types": "index.d.ts",
30
30
  "repository": {
31
31
  "type": "git",
32
32
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -34,6 +34,6 @@
34
34
  },
35
35
  "scripts": {},
36
36
  "dependencies": {},
37
- "typesPublisherContentHash": "40bd706913f269846d23e715a2922f165b30833eb135713d269e0933ae50402a",
38
- "typeScriptVersion": "2.0"
37
+ "typesPublisherContentHash": "b1a16aa90acbbaf5f966d3b3d7bd879e9f76111f81d888ccd60543aa00999265",
38
+ "typeScriptVersion": "3.2"
39
39
  }
node v4/README.md DELETED
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/node`
3
-
4
- # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v4
9
-
10
- Additional Details
11
- * Last updated: Thu, 24 Oct 2019 17:31:30 GMT
12
- * Dependencies: none
13
- * Global values: Buffer, SlowBuffer, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
-
15
- # Credits
16
- These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Sebastian Silbermann <https://github.com/eps1lon>, and Sander Koenders <https://github.com/Archcry>.