Update @types/node from 14.6.0 to 14.6.1

This commit is contained in:
Joel Male 2020-08-29 11:11:10 +10:00
parent 2546cabb9a
commit ee5a04db5d
7 changed files with 25 additions and 31 deletions

2
node_modules/@types/node/README.md generated vendored
View File

@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
### Additional Details ### Additional Details
* Last updated: Mon, 17 Aug 2020 14:33:28 GMT * Last updated: Thu, 27 Aug 2020 11:19:52 GMT
* Dependencies: none * Dependencies: none
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`

View File

@ -152,8 +152,7 @@ declare module "async_hooks" {
/** /**
* This method disables the instance of `AsyncLocalStorage`. All subsequent calls * This method disables the instance of `AsyncLocalStorage`. All subsequent calls
* to `asyncLocalStorage.getStore()` will return `undefined` until * to `asyncLocalStorage.getStore()` will return `undefined` until
* `asyncLocalStorage.run()` or `asyncLocalStorage.runSyncAndReturn()` * `asyncLocalStorage.run()` is called again.
* is called again.
* *
* When calling `asyncLocalStorage.disable()`, all current contexts linked to the * When calling `asyncLocalStorage.disable()`, all current contexts linked to the
* instance will be exited. * instance will be exited.
@ -169,45 +168,40 @@ declare module "async_hooks" {
disable(): void; disable(): void;
/** /**
* This method returns the current store. * This method returns the current store. If this method is called outside of an
* If this method is called outside of an asynchronous context initialized by * asynchronous context initialized by calling `asyncLocalStorage.run`, it will
* calling `asyncLocalStorage.run` or `asyncLocalStorage.runAndReturn`, it will
* return `undefined`. * return `undefined`.
*/ */
getStore(): T | undefined; getStore(): T | undefined;
/** /**
* Calling `asyncLocalStorage.run(callback)` will create a new asynchronous * This methods runs a function synchronously within a context and return its
* context. * return value. The store is not accessible outside of the callback function or
* Within the callback function and the asynchronous operations from the callback, * the asynchronous operations created within the callback.
* `asyncLocalStorage.getStore()` will return an instance of `Map` known as
* "the store". This store will be persistent through the following
* asynchronous calls.
* *
* The callback will be ran asynchronously. Optionally, arguments can be passed * Optionally, arguments can be passed to the function. They will be passed to the
* to the function. They will be passed to the callback function. * callback function.
* *
* If an error is thrown by the callback function, it will not be caught by * I the callback function throws an error, it will be thrown by `run` too. The
* a `try/catch` block as the callback is ran in a new asynchronous resource. * stacktrace will not be impacted by this call and the context will be exited.
* Also, the stacktrace will be impacted by the asynchronous call.
*/ */
// TODO: Apply generic vararg once available // TODO: Apply generic vararg once available
run(store: T, callback: (...args: any[]) => void, ...args: any[]): void; run<R>(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
/** /**
* Calling `asyncLocalStorage.exit(callback)` will create a new asynchronous * This methods runs a function synchronously outside of a context and return its
* context. * return value. The store is not accessible within the callback function or the
* Within the callback function and the asynchronous operations from the callback, * asynchronous operations created within the callback.
* `asyncLocalStorage.getStore()` will return `undefined`.
* *
* The callback will be ran asynchronously. Optionally, arguments can be passed * Optionally, arguments can be passed to the function. They will be passed to the
* to the function. They will be passed to the callback function. * callback function.
* *
* If an error is thrown by the callback function, it will not be caught by * If the callback function throws an error, it will be thrown by `exit` too. The
* a `try/catch` block as the callback is ran in a new asynchronous resource. * stacktrace will not be impacted by this call and the context will be
* Also, the stacktrace will be impacted by the asynchronous call. * re-entered.
*/ */
exit(callback: (...args: any[]) => void, ...args: any[]): void; // TODO: Apply generic vararg once available
exit<R>(callback: (...args: any[]) => R, ...args: any[]): R;
/** /**
* Calling `asyncLocalStorage.enterWith(store)` will transition into the context * Calling `asyncLocalStorage.enterWith(store)` will transition into the context

View File

@ -1,6 +1,6 @@
{ {
"name": "@types/node", "name": "@types/node",
"version": "14.6.0", "version": "14.6.1",
"description": "TypeScript definitions for Node.js", "description": "TypeScript definitions for Node.js",
"license": "MIT", "license": "MIT",
"contributors": [ "contributors": [
@ -246,6 +246,6 @@
}, },
"scripts": {}, "scripts": {},
"dependencies": {}, "dependencies": {},
"typesPublisherContentHash": "9d0f004e6461e52f8fa5badd6efa10f2dc7d2156363fcb7ca879e15a611c96f0", "typesPublisherContentHash": "fe5126c321b3e11256e7d89d506db0a8f78bc70c6d89968a6084e20c9be0acc5",
"typeScriptVersion": "3.0" "typeScriptVersion": "3.1"
} }

Binary file not shown.

Binary file not shown.