@types/node 11.15.5 → 11.15.9

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 (49) hide show
  1. {node v11 → node v11.15}/LICENSE +0 -0
  2. node v11.15/README.md +16 -0
  3. {node v11 → node v11.15}/assert.d.ts +0 -0
  4. {node v11 → node v11.15}/async_hooks.d.ts +0 -0
  5. {node v11 → node v11.15}/base.d.ts +0 -0
  6. {node v11 → node v11.15}/buffer.d.ts +0 -0
  7. {node v11 → node v11.15}/child_process.d.ts +0 -0
  8. {node v11 → node v11.15}/cluster.d.ts +0 -0
  9. {node v11 → node v11.15}/console.d.ts +0 -0
  10. {node v11 → node v11.15}/constants.d.ts +0 -0
  11. {node v11 → node v11.15}/crypto.d.ts +0 -0
  12. {node v11 → node v11.15}/dgram.d.ts +0 -0
  13. {node v11 → node v11.15}/dns.d.ts +0 -0
  14. {node v11 → node v11.15}/domain.d.ts +0 -0
  15. {node v11 → node v11.15}/events.d.ts +0 -0
  16. {node v11 → node v11.15}/fs.d.ts +1 -1
  17. {node v11 → node v11.15}/globals.d.ts +6 -0
  18. {node v11 → node v11.15}/http.d.ts +0 -0
  19. {node v11 → node v11.15}/http2.d.ts +0 -0
  20. {node v11 → node v11.15}/https.d.ts +0 -0
  21. {node v11 → node v11.15}/index.d.ts +1 -0
  22. {node v11 → node v11.15}/inspector.d.ts +0 -0
  23. {node v11 → node v11.15}/module.d.ts +0 -0
  24. {node v11 → node v11.15}/net.d.ts +0 -0
  25. {node v11 → node v11.15}/os.d.ts +0 -0
  26. {node v11 → node v11.15}/package.json +7 -2
  27. {node v11 → node v11.15}/path.d.ts +0 -0
  28. {node v11 → node v11.15}/perf_hooks.d.ts +0 -0
  29. {node v11 → node v11.15}/process.d.ts +0 -0
  30. {node v11 → node v11.15}/punycode.d.ts +0 -0
  31. {node v11 → node v11.15}/querystring.d.ts +0 -0
  32. {node v11 → node v11.15}/readline.d.ts +0 -0
  33. {node v11 → node v11.15}/repl.d.ts +0 -0
  34. {node v11 → node v11.15}/stream.d.ts +0 -0
  35. {node v11 → node v11.15}/string_decoder.d.ts +0 -0
  36. {node v11 → node v11.15}/timers.d.ts +0 -0
  37. {node v11 → node v11.15}/tls.d.ts +0 -0
  38. {node v11 → node v11.15}/trace_events.d.ts +0 -0
  39. {node v11 → node v11.15}/ts3.2/globals.d.ts +0 -0
  40. {node v11 → node v11.15}/ts3.2/index.d.ts +0 -0
  41. {node v11 → node v11.15}/ts3.2/util.d.ts +0 -0
  42. {node v11 → node v11.15}/tty.d.ts +0 -0
  43. {node v11 → node v11.15}/url.d.ts +0 -0
  44. {node v11 → node v11.15}/util.d.ts +0 -0
  45. {node v11 → node v11.15}/v8.d.ts +0 -0
  46. {node v11 → node v11.15}/vm.d.ts +1 -1
  47. {node v11 → node v11.15}/worker_threads.d.ts +2 -0
  48. {node v11 → node v11.15}/zlib.d.ts +0 -0
  49. node v11/README.md +0 -16
File without changes
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/node`
3
+
4
+ # Summary
5
+ This package contains type definitions for Node.js (http://nodejs.org/).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v11.
9
+
10
+ ### Additional Details
11
+ * Last updated: Mon, 30 Mar 2020 22:25:04 GMT
12
+ * Dependencies: none
13
+ * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
+
15
+ # Credits
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Ivan Sieder](https://github.com/ivansieder), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -710,7 +710,7 @@ declare module "fs" {
710
710
  * A file mode. If a string is passed, it is parsed as an octal integer. If not specified
711
711
  * @default 0o777.
712
712
  */
713
- mode?: number;
713
+ mode?: number | string;
714
714
  }
715
715
 
716
716
  /**
@@ -362,6 +362,12 @@ declare const Buffer: {
362
362
  */
363
363
  from(data: number[]): Buffer;
364
364
  from(data: Uint8Array): Buffer;
365
+ /**
366
+ * Creates a new buffer containing the coerced value of an object
367
+ * A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants.
368
+ * @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`.
369
+ */
370
+ from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer;
365
371
  /**
366
372
  * Creates a new Buffer containing the given JavaScript string {str}.
367
373
  * If provided, the {encoding} parameter identifies the character encoding.
File without changes
File without changes
File without changes
@@ -39,6 +39,7 @@
39
39
  // Thanik Bhongbhibhat <https://github.com/bhongy>
40
40
  // Ivan Sieder <https://github.com/ivansieder>
41
41
  // Minh Son Nguyen <https://github.com/nguymin4>
42
+ // ExE Boss <https://github.com/ExE-Boss>
42
43
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
43
44
 
44
45
  // NOTE: These definitions support NodeJS and TypeScript 3.2.
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "11.15.5",
3
+ "version": "11.15.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -198,6 +198,11 @@
198
198
  "name": "Minh Son Nguyen",
199
199
  "url": "https://github.com/nguymin4",
200
200
  "githubUsername": "nguymin4"
201
+ },
202
+ {
203
+ "name": "ExE Boss",
204
+ "url": "https://github.com/ExE-Boss",
205
+ "githubUsername": "ExE-Boss"
201
206
  }
202
207
  ],
203
208
  "main": "",
@@ -216,6 +221,6 @@
216
221
  },
217
222
  "scripts": {},
218
223
  "dependencies": {},
219
- "typesPublisherContentHash": "b9e6f39c40d53302ee530e6d10ed7d46243f646380be22a3f4aa0f4a9e2efcfe",
224
+ "typesPublisherContentHash": "06f5c32047b5a84f017a94acc044711a42b3bc3ca2fa05e318e6d22f083ea5d1",
220
225
  "typeScriptVersion": "2.8"
221
226
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -60,5 +60,5 @@ declare module "vm" {
60
60
  function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
61
61
  function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
62
62
  function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
63
- function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
63
+ function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
64
64
  }
@@ -5,6 +5,7 @@ declare module "worker_threads" {
5
5
 
6
6
  const isMainThread: boolean;
7
7
  const parentPort: null | MessagePort;
8
+ const SHARE_ENV: unique symbol;
8
9
  const threadId: number;
9
10
  const workerData: any;
10
11
 
@@ -55,6 +56,7 @@ declare module "worker_threads" {
55
56
 
56
57
  interface WorkerOptions {
57
58
  eval?: boolean;
59
+ env?: NodeJS.ProcessEnv | typeof SHARE_ENV;
58
60
  workerData?: any;
59
61
  stdin?: boolean;
60
62
  stdout?: boolean;
File without changes
node v11/README.md DELETED
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/node`
3
-
4
- # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v11.
9
-
10
- ### Additional Details
11
- * Last updated: Tue, 28 Jan 2020 19:35:09 GMT
12
- * Dependencies: none
13
- * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
-
15
- # Credits
16
- These definitions were written by Microsoft TypeScript (https://github.com/Microsoft), DefinitelyTyped (https://github.com/DefinitelyTyped), Alberto Schiabel (https://github.com/jkomyno), Alexander T. (https://github.com/a-tarasyuk), Alvis HT Tang (https://github.com/alvis), Andrew Makarov (https://github.com/r3nya), Benjamin Toueg (https://github.com/btoueg), Bruno Scheufler (https://github.com/brunoscheufler), Chigozirim C. (https://github.com/smac89), Christian Vaagland Tellnes (https://github.com/tellnes), David Junger (https://github.com/touffy), Deividas Bakanas (https://github.com/DeividasBakanas), Eugene Y. Q. Shen (https://github.com/eyqs), Flarna (https://github.com/Flarna), Hannes Magnusson (https://github.com/Hannes-Magnusson-CK), Hoàng Văn Khải (https://github.com/KSXGitHub), Huw (https://github.com/hoo29), Kelvin Jin (https://github.com/kjin), Klaus Meinhardt (https://github.com/ajafff), Lishude (https://github.com/islishude), Mariusz Wiktorczyk (https://github.com/mwiktorczyk), Mohsen Azimi (https://github.com/mohsen1), Nicolas Even (https://github.com/n-e), Nicolas Voigt (https://github.com/octo-sniffle), Nikita Galkin (https://github.com/galkin), Parambir Singh (https://github.com/parambirs), Sebastian Silbermann (https://github.com/eps1lon), Simon Schick (https://github.com/SimonSchick), Thomas den Hollander (https://github.com/ThomasdenH), Wilco Bakker (https://github.com/WilcoBakker), wwwy3y3 (https://github.com/wwwy3y3), Zane Hannan AU (https://github.com/ZaneHannanAU), Jeremie Rodriguez (https://github.com/jeremiergz), Samuel Ainsworth (https://github.com/samuela), Kyle Uehlein (https://github.com/kuehlein), Jordi Oliveras Rovira (https://github.com/j-oliveras), Thanik Bhongbhibhat (https://github.com/bhongy), Ivan Sieder (https://github.com/ivansieder), and Minh Son Nguyen (https://github.com/nguymin4).