Updating NPM dependencies
This commit is contained in:
8
node_modules/throat/README.md
generated
vendored
8
node_modules/throat/README.md
generated
vendored
@@ -2,14 +2,14 @@
|
||||
|
||||
Throttle the parallelism of an asynchronous, promise returning, function / functions. This has special utility when you set the concurrency to `1`. That way you get a mutually exclusive lock.
|
||||
|
||||
[Professionally supported throat is now available](https://tidelift.com/subscription/pkg/npm-throat?utm_source=npm-throat&utm_medium=referral&utm_campaign=readme)
|
||||
|
||||
[](https://travis-ci.org/ForbesLindesay/throat)
|
||||
[](https://coveralls.io/r/ForbesLindesay/throat?branch=master)
|
||||
[](https://david-dm.org/ForbesLindesay/throat)
|
||||
[](https://www.npmjs.com/package/throat)
|
||||
[](https://greenkeeper.io/)
|
||||
|
||||
[](https://saucelabs.com/u/throat)
|
||||
|
||||
## Installation
|
||||
|
||||
npm install throat
|
||||
@@ -50,6 +50,10 @@ const data = Promise.all(input.map(throat(2, fileName => readFile(fileName))));
|
||||
|
||||
Only 2 files will be read at a time, sometimes limiting parallelism in this way can improve scalability.
|
||||
|
||||
## Security contact information
|
||||
|
||||
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
35
node_modules/throat/index.d.ts
generated
vendored
35
node_modules/throat/index.d.ts
generated
vendored
@@ -1,5 +1,32 @@
|
||||
declare function throat<TResult, TFn extends (...args: Array<any>) => Promise<TResult>>(size: number, fn: TFn): TFn;
|
||||
declare function throat<TResult, TFn extends (...args: Array<any>) => Promise<TResult>>(fn: TFn, size: number): TFn;
|
||||
declare function throat(size: number): <TResult>(fn: () => Promise<TResult>) => Promise<TResult>;
|
||||
/**
|
||||
* Throttle the given function to only run `size` times in parallel.
|
||||
* Extra calls will be queued until one of the earlier calls completes.
|
||||
*/
|
||||
declare function throat<TResult, TArgs extends any[]>(
|
||||
size: number,
|
||||
fn: (...args: TArgs) => Promise<TResult>
|
||||
): (...args: TArgs) => Promise<TResult>;
|
||||
|
||||
/**
|
||||
* Throttle the given function to only run `size` times in parallel.
|
||||
* Extra calls will be queued until one of the earlier calls completes.
|
||||
*/
|
||||
declare function throat<TResult, TArgs extends any[]>(
|
||||
fn: (...args: TArgs) => Promise<TResult>,
|
||||
size: number
|
||||
): (...args: TArgs) => Promise<TResult>;
|
||||
|
||||
/**
|
||||
* Create a throttle that only allows `size` calls in parallel.
|
||||
* Extra calls will be queued until one of the earlier calls completes.
|
||||
*
|
||||
* To create an exclusive lock, just use a `size` of `1`.
|
||||
*/
|
||||
declare function throat(
|
||||
size: number
|
||||
): <TResult, TArgs extends any[] = []>(
|
||||
fn: (...args: TArgs) => Promise<TResult>,
|
||||
...args: TArgs
|
||||
) => Promise<TResult>;
|
||||
export default throat;
|
||||
|
||||
export = throat;
|
||||
2
node_modules/throat/index.js
generated
vendored
2
node_modules/throat/index.js
generated
vendored
@@ -77,6 +77,8 @@ module.exports = function (PromiseArgument) {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports.default = module.exports;
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (typeof Promise === 'function') {
|
||||
module.exports.Promise = Promise;
|
||||
|
||||
45
node_modules/throat/package.json
generated
vendored
45
node_modules/throat/package.json
generated
vendored
@@ -1,26 +1,19 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"throat@4.1.0",
|
||||
"/Users/drew.heavner/Documents/Github/upload-google-play"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "throat@4.1.0",
|
||||
"_id": "throat@4.1.0",
|
||||
"_from": "throat@^5.0.0",
|
||||
"_id": "throat@5.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=",
|
||||
"_integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==",
|
||||
"_location": "/throat",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "throat@4.1.0",
|
||||
"raw": "throat@^5.0.0",
|
||||
"name": "throat",
|
||||
"escapedName": "throat",
|
||||
"rawSpec": "4.1.0",
|
||||
"rawSpec": "^5.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "4.1.0"
|
||||
"fetchSpec": "^5.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jest-changed-files",
|
||||
@@ -28,26 +21,29 @@
|
||||
"/jest-jasmine2",
|
||||
"/jest-runner"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz",
|
||||
"_spec": "4.1.0",
|
||||
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play",
|
||||
"_resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz",
|
||||
"_shasum": "c5199235803aad18754a667d659b5e72ce16764b",
|
||||
"_spec": "throat@^5.0.0",
|
||||
"_where": "/home/codespace/workspace/upload-google-play/node_modules/jest-changed-files",
|
||||
"author": {
|
||||
"name": "ForbesLindesay"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ForbesLindesay/throat/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Throttle the parallelism of an asynchronous (promise returning) function / functions",
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.11.2",
|
||||
"flow-bin": "^0.49.1",
|
||||
"coveralls": "^3.0.0",
|
||||
"flow-bin": "^0.73.0",
|
||||
"istanbul": "^0.4.5",
|
||||
"jest": "^20.0.4",
|
||||
"jest": "^22.1.4",
|
||||
"promise": "^8.0.0",
|
||||
"sauce-test": "^1.0.0",
|
||||
"test-result": "^2.0.0",
|
||||
"testit": "^2.1.3",
|
||||
"typescript": "^2.3.4"
|
||||
"testit": "^3.1.0",
|
||||
"typescript": "^3.4.5"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
@@ -55,6 +51,9 @@
|
||||
"index.js.flow"
|
||||
],
|
||||
"homepage": "https://github.com/ForbesLindesay/throat#readme",
|
||||
"jest": {
|
||||
"testEnvironment": "node"
|
||||
},
|
||||
"keywords": [
|
||||
"promise",
|
||||
"aplus",
|
||||
@@ -78,5 +77,5 @@
|
||||
"test:types": "jest",
|
||||
"tsc": "tsc --noEmit"
|
||||
},
|
||||
"version": "4.1.0"
|
||||
"version": "5.0.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user