@types/node 13.5.3 → 13.7.0

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 (4) hide show
  1. node/README.md +1 -1
  2. node/index.d.ts +1 -1
  3. node/module.d.ts +38 -1
  4. 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: Thu, 30 Jan 2020 21:23:38 GMT
11
+ * Last updated: Fri, 31 Jan 2020 21:34:20 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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 13.5
1
+ // Type definitions for non-npm package Node.js 13.7
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
node/module.d.ts CHANGED
@@ -1,6 +1,43 @@
1
1
  declare module "module" {
2
2
  import { URL } from "url";
3
- namespace Module {}
3
+ namespace Module {
4
+ /**
5
+ * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
6
+ * It does not add or remove exported names from the ES Modules.
7
+ */
8
+ function syncBuiltinESMExports(): void;
9
+
10
+ /**
11
+ * @experimental
12
+ */
13
+ function findSourceMap(path: string, error?: Error): SourceMap;
14
+ interface SourceMapPayload {
15
+ file: string;
16
+ version: number;
17
+ sources: string[];
18
+ sourcesContent: string[];
19
+ names: string[];
20
+ mappings: string;
21
+ sourceRoot: string;
22
+ }
23
+
24
+ interface SourceMapping {
25
+ generatedLine: number;
26
+ generatedColumn: number;
27
+ originalSource: string;
28
+ originalLine: number;
29
+ originalColumn: number;
30
+ }
31
+
32
+ /**
33
+ * @experimental
34
+ */
35
+ class SourceMap {
36
+ readonly payload: SourceMapPayload;
37
+ constructor(payload: SourceMapPayload);
38
+ findEntry(line: number, column: number): SourceMapping;
39
+ }
40
+ }
4
41
  interface Module extends NodeModule {}
5
42
  class Module {
6
43
  static runMain(): void;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.5.3",
3
+ "version": "13.7.0",
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": "4dac395cfce226b2d34384ee9377dd2c5ac4c29cd07474226673cd41968f8408",
229
+ "typesPublisherContentHash": "b0cd8dccd6d2eca8bb1de5a05bebf13796984567eb809f63164972122c4ddbaf",
230
230
  "typeScriptVersion": "2.8"
231
231
  }