@types/node 14.0.21 → 14.0.22

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/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: Fri, 10 Jul 2020 13:13:28 GMT
11
+ * Last updated: Fri, 10 Jul 2020 14:49:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `exports`, `global`, `module`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/assert.d.ts CHANGED
@@ -19,16 +19,16 @@ declare module "assert" {
19
19
  type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error;
20
20
 
21
21
  function fail(message?: string | Error): never;
22
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
22
+ /** @deprecated since v10.0.0 - use `fail([message])` or other assert functions instead. */
23
23
  function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
24
24
  function ok(value: any, message?: string | Error): void;
25
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
25
+ /** @deprecated since v9.9.0 - use `strictEqual()` instead. */
26
26
  function equal(actual: any, expected: any, message?: string | Error): void;
27
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
27
+ /** @deprecated since v9.9.0 - use `notStrictEqual()` instead. */
28
28
  function notEqual(actual: any, expected: any, message?: string | Error): void;
29
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
29
+ /** @deprecated since v9.9.0 - use `deepStrictEqual()` instead. */
30
30
  function deepEqual(actual: any, expected: any, message?: string | Error): void;
31
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
31
+ /** @deprecated since v9.9.0 - use `notDeepStrictEqual()` instead. */
32
32
  function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
33
33
  function strictEqual(actual: any, expected: any, message?: string | Error): void;
34
34
  function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
node/buffer.d.ts CHANGED
@@ -13,7 +13,7 @@ declare module "buffer" {
13
13
  export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
14
14
 
15
15
  export const SlowBuffer: {
16
- /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
16
+ /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
17
17
  new(size: number): Buffer;
18
18
  prototype: Buffer;
19
19
  };
node/crypto.d.ts CHANGED
@@ -178,11 +178,11 @@ declare module "crypto" {
178
178
  interface CipherGCMOptions extends stream.TransformOptions {
179
179
  authTagLength?: number;
180
180
  }
181
- /** @deprecated since v10.0.0 use createCipheriv() */
181
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
182
182
  function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
183
- /** @deprecated since v10.0.0 use createCipheriv() */
183
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
184
184
  function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
185
- /** @deprecated since v10.0.0 use createCipheriv() */
185
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
186
186
  function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
187
187
 
188
188
  function createCipheriv(
@@ -221,11 +221,11 @@ declare module "crypto" {
221
221
  setAAD(buffer: Buffer, options?: { plaintextLength: number }): this;
222
222
  getAuthTag(): Buffer;
223
223
  }
224
- /** @deprecated since v10.0.0 use createDecipheriv() */
224
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
225
225
  function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
226
- /** @deprecated since v10.0.0 use createDecipheriv() */
226
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
227
227
  function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
228
- /** @deprecated since v10.0.0 use createDecipheriv() */
228
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
229
229
  function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
230
230
 
231
231
  function createDecipheriv(
node/dns.d.ts CHANGED
@@ -60,7 +60,7 @@ declare module "dns" {
60
60
  ttl: number;
61
61
  }
62
62
 
63
- /** @deprecated Use AnyARecord or AnyAaaaRecord instead. */
63
+ /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
64
64
  type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
65
65
 
66
66
  interface AnyARecord extends RecordWithTtl {
node/fs.d.ts CHANGED
@@ -1727,7 +1727,7 @@ declare module "fs" {
1727
1727
 
1728
1728
  /**
1729
1729
  * Asynchronously tests whether or not the given path exists by checking with the file system.
1730
- * @deprecated
1730
+ * @deprecated since v1.0.0 Use `fs.stat()` or `fs.access()` instead
1731
1731
  * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
1732
1732
  * URL support is _experimental_.
1733
1733
  */
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.0.21",
3
+ "version": "14.0.22",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -251,6 +251,6 @@
251
251
  },
252
252
  "scripts": {},
253
253
  "dependencies": {},
254
- "typesPublisherContentHash": "c67b057b01f9c8ab7a8d4f8cf6ee476baf35ed1667268f5aa02bdafffcdfa893",
254
+ "typesPublisherContentHash": "f78fd3a598fd4e5b96cf0085c1892137a734bc9d6f5acc8a47a6cb8b63834c44",
255
255
  "typeScriptVersion": "3.0"
256
256
  }
node/tls.d.ts CHANGED
@@ -726,7 +726,7 @@ declare module "tls" {
726
726
  function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
727
727
  function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
728
728
  /**
729
- * @deprecated
729
+ * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
730
730
  */
731
731
  function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
732
732
  function createSecureContext(details: SecureContextOptions): SecureContext;