@types/node 13.1.2 → 13.1.6
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 +1 -1
- node/crypto.d.ts +1 -1
- node/globals.d.ts +2 -2
- node/index.d.ts +1 -1
- node/module.d.ts +3 -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:
|
|
11
|
+
* Last updated: Thu, 09 Jan 2020 16:03:44 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/crypto.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ declare module "crypto" {
|
|
|
165
165
|
type: KeyObjectType;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm';
|
|
168
|
+
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
|
|
169
169
|
type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
|
|
170
170
|
|
|
171
171
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
node/globals.d.ts
CHANGED
|
@@ -164,8 +164,8 @@ declare function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
|
164
164
|
|
|
165
165
|
declare function queueMicrotask(callback: () => void): void;
|
|
166
166
|
|
|
167
|
-
declare var require:
|
|
168
|
-
declare var module:
|
|
167
|
+
declare var require: NodeRequire;
|
|
168
|
+
declare var module: NodeModule;
|
|
169
169
|
|
|
170
170
|
// Same as module.exports
|
|
171
171
|
declare var exports: any;
|
node/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
61
61
|
// Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
|
|
62
|
-
// just to ensure the names are known and node typings can be
|
|
62
|
+
// just to ensure the names are known and node typings can be used without importing these libs.
|
|
63
63
|
// if someone really needs these types the libs need to be added via --lib or in tsconfig.json
|
|
64
64
|
interface AsyncIterable<T> { }
|
|
65
65
|
interface IterableIterator<T> { }
|
node/module.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module "module" {
|
|
2
2
|
import { URL } from "url";
|
|
3
|
-
interface Module extends
|
|
3
|
+
interface Module extends NodeModule {}
|
|
4
4
|
class Module {
|
|
5
5
|
static runMain(): void;
|
|
6
6
|
static wrap(code: string): string;
|
|
@@ -8,8 +8,8 @@ declare module "module" {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Deprecated since: v12.2.0. Please use createRequire() instead.
|
|
10
10
|
*/
|
|
11
|
-
static createRequireFromPath(path: string):
|
|
12
|
-
static createRequire(path: string | URL):
|
|
11
|
+
static createRequireFromPath(path: string): NodeRequire;
|
|
12
|
+
static createRequire(path: string | URL): NodeRequire;
|
|
13
13
|
static builtinModules: string[];
|
|
14
14
|
|
|
15
15
|
static Module: typeof Module;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.6",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -226,6 +226,6 @@
|
|
|
226
226
|
},
|
|
227
227
|
"scripts": {},
|
|
228
228
|
"dependencies": {},
|
|
229
|
-
"typesPublisherContentHash": "
|
|
229
|
+
"typesPublisherContentHash": "b6f97cea68f1b08b624b3ff17e4c2906543398225cc4dacd4ee0f9fa847d6a06",
|
|
230
230
|
"typeScriptVersion": "2.8"
|
|
231
231
|
}
|