@types/node 10.3.5 → 10.5.2

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 (3) hide show
  1. node/README.md +1 -1
  2. node/index.d.ts +33 -8
  3. node/package.json +2 -2
node/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
9
9
 
10
10
  Additional Details
11
- * Last updated: Sat, 23 Jun 2018 00:22:09 GMT
11
+ * Last updated: Fri, 06 Jul 2018 00:07:02 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
node/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Node.js 10.3.x
1
+ // Type definitions for Node.js 10.5.x
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <http://typescriptlang.org>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
@@ -477,6 +477,7 @@ declare namespace NodeJS {
477
477
  showProxy?: boolean;
478
478
  maxArrayLength?: number | null;
479
479
  breakLength?: number;
480
+ compact?: boolean;
480
481
  }
481
482
 
482
483
  export interface ConsoleConstructor {
@@ -1248,6 +1249,7 @@ declare module "http" {
1248
1249
  }
1249
1250
 
1250
1251
  export class Agent {
1252
+ maxFreeSockets: number;
1251
1253
  maxSockets: number;
1252
1254
  sockets: any;
1253
1255
  requests: any;
@@ -4470,6 +4472,17 @@ declare module "fs" {
4470
4472
  /** Constant for fs.access(). File can be executed by the calling process. */
4471
4473
  export const X_OK: number;
4472
4474
 
4475
+ // File Copy Constants
4476
+
4477
+ /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */
4478
+ export const COPYFILE_EXCL: number;
4479
+
4480
+ /** Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. */
4481
+ export const COPYFILE_FICLONE: number;
4482
+
4483
+ /** Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then the operation will fail with an error. */
4484
+ export const COPYFILE_FICLONE_FORCE: number;
4485
+
4473
4486
  // File Open Constants
4474
4487
 
4475
4488
  /** Constant for fs.open(). Flag indicating to open a file for read-only access. */
@@ -4583,9 +4596,6 @@ declare module "fs" {
4583
4596
 
4584
4597
  /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */
4585
4598
  export const S_IXOTH: number;
4586
-
4587
- /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */
4588
- export const COPYFILE_EXCL: number;
4589
4599
  }
4590
4600
 
4591
4601
  /**
@@ -5893,10 +5903,20 @@ declare module "crypto" {
5893
5903
  export function pseudoRandomBytes(size: number): Buffer;
5894
5904
  export function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
5895
5905
 
5896
- export function randomFillSync(buffer: ArrayBufferView, offset?: number, size?: number): ArrayBufferView;
5897
- export function randomFill(buffer: ArrayBufferView, callback: (err: Error | null, buf: ArrayBufferView) => void): void;
5898
- export function randomFill(buffer: ArrayBufferView, offset: number, callback: (err: Error | null, buf: ArrayBufferView) => void): void;
5899
- export function randomFill(buffer: ArrayBufferView, offset: number, size: number, callback: (err: Error | null, buf: ArrayBufferView) => void): void;
5906
+ export function randomFillSync<T extends Buffer | ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
5907
+ export function randomFill<T extends Buffer | ArrayBufferView>(buffer: T, callback: (err: Error | null, buf: T) => void): void;
5908
+ export function randomFill<T extends Buffer | ArrayBufferView>(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void;
5909
+ export function randomFill<T extends Buffer | ArrayBufferView>(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void;
5910
+
5911
+ export interface ScryptOptions {
5912
+ N?: number;
5913
+ r?: number;
5914
+ p?: number;
5915
+ maxmem?: number;
5916
+ }
5917
+ export function scrypt(password: string | ArrayBufferView, salt: string | ArrayBufferView, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void;
5918
+ export function scrypt(password: string | ArrayBufferView, salt: string | ArrayBufferView, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void;
5919
+ export function scryptSync(password: string | ArrayBufferView, salt: string | ArrayBufferView, keylen: number, options?: ScryptOptions): Buffer;
5900
5920
 
5901
5921
  export interface RsaPublicKey {
5902
5922
  key: string;
@@ -6406,6 +6426,8 @@ declare module "assert" {
6406
6426
  export function rejects(block: Function | Promise<any>, error: Function | RegExp | Object | Error, message?: string): Promise<void>;
6407
6427
  export function doesNotReject(block: Function | Promise<any>, message?: string): Promise<void>;
6408
6428
  export function doesNotReject(block: Function | Promise<any>, error: Function | RegExp | Object | Error, message?: string): Promise<void>;
6429
+
6430
+ export var strict: typeof internal;
6409
6431
  }
6410
6432
 
6411
6433
  export = internal;
@@ -6689,6 +6711,9 @@ declare module "constants" {
6689
6711
  export var R_OK: number;
6690
6712
  export var W_OK: number;
6691
6713
  export var X_OK: number;
6714
+ export var COPYFILE_EXCL: number;
6715
+ export var COPYFILE_FICLONE: number;
6716
+ export var COPYFILE_FICLONE_FORCE: number;
6692
6717
  export var UV_UDP_REUSEADDR: number;
6693
6718
  export var SIGQUIT: number;
6694
6719
  export var SIGTRAP: number;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.3.5",
3
+ "version": "10.5.2",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -140,6 +140,6 @@
140
140
  },
141
141
  "scripts": {},
142
142
  "dependencies": {},
143
- "typesPublisherContentHash": "4a5c1bdf5dbef8cf5b66b533e6dce85e75439aa11932233804a10b93d21d8f9e",
143
+ "typesPublisherContentHash": "6805f5cefcfd70ab67f521919cd1b191301cdf6bf44990a54a16133ff4bc95d0",
144
144
  "typeScriptVersion": "2.0"
145
145
  }