@types/node 12.11.1 → 12.11.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.
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: Tue, 15 Oct 2019 23:57:18 GMT
11
+ * Last updated: Tue, 22 Oct 2019 21:00:17 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
14
14
 
node/assert.d.ts CHANGED
@@ -20,13 +20,9 @@ declare module "assert" {
20
20
  /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
21
21
  function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
22
22
  function ok(value: any, message?: string | Error): void;
23
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
24
23
  function equal(actual: any, expected: any, message?: string | Error): void;
25
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
26
24
  function notEqual(actual: any, expected: any, message?: string | Error): void;
27
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
28
25
  function deepEqual(actual: any, expected: any, message?: string | Error): void;
29
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
30
26
  function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
31
27
  function strictEqual(actual: any, expected: any, message?: string | Error): void;
32
28
  function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
node/crypto.d.ts CHANGED
@@ -398,6 +398,8 @@ declare module "crypto" {
398
398
  }
399
399
  function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
400
400
  function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
401
+ function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
402
+ function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
401
403
  function getCiphers(): string[];
402
404
  function getCurves(): string[];
403
405
  function getHashes(): string[];
node/fs.d.ts CHANGED
@@ -2124,7 +2124,7 @@ declare module "fs" {
2124
2124
  * Asynchronous rmdir(2) - delete a directory.
2125
2125
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2126
2126
  */
2127
- function rmdir(path: PathLike): Promise<void>;
2127
+ function rmdir(path: PathLike, options?: RmDirAsyncOptions): Promise<void>;
2128
2128
 
2129
2129
  /**
2130
2130
  * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
node/globals.d.ts CHANGED
@@ -185,9 +185,6 @@ declare namespace setImmediate {
185
185
  }
186
186
  declare function clearImmediate(immediateId: NodeJS.Immediate): void;
187
187
 
188
- /**
189
- * @experimental
190
- */
191
188
  declare function queueMicrotask(callback: () => void): void;
192
189
 
193
190
  // TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
@@ -704,7 +701,8 @@ declare namespace NodeJS {
704
701
  | 'openbsd'
705
702
  | 'sunos'
706
703
  | 'win32'
707
- | 'cygwin';
704
+ | 'cygwin'
705
+ | 'netbsd';
708
706
 
709
707
  type Signals =
710
708
  "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
@@ -1132,7 +1130,12 @@ declare namespace NodeJS {
1132
1130
  class Module {
1133
1131
  static runMain(): void;
1134
1132
  static wrap(code: string): string;
1135
- static createRequireFromPath(path: string): (path: string) => any;
1133
+
1134
+ /**
1135
+ * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead.
1136
+ */
1137
+ static createRequireFromPath(path: string): NodeRequireFunction;
1138
+ static createRequire(path: string): NodeRequireFunction;
1136
1139
  static builtinModules: string[];
1137
1140
 
1138
1141
  static Module: typeof Module;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.11.1",
3
+ "version": "12.11.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -211,6 +211,6 @@
211
211
  },
212
212
  "scripts": {},
213
213
  "dependencies": {},
214
- "typesPublisherContentHash": "9ac4a6964ec22ccb1141052fab85bf0d16247a1dfe5c2f2328c19440915c36ef",
214
+ "typesPublisherContentHash": "a0748f68d9a61c534ca029a8a1dc9e6baaf3ca92dfb5e6f1250d6328dbb262c8",
215
215
  "typeScriptVersion": "2.0"
216
216
  }