Skip to content

Commit

Permalink
Upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 10, 2019
1 parent db039dd commit 6e84797
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@
"p-timeout": "^3.1.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.5.0",
"@sindresorhus/tsconfig": "^0.6.0",
"@types/benchmark": "^1.0.31",
"@types/node": "^12.0.10",
"@types/node": "^12.12.7",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"ava": "^2.0.0",
"benchmark": "^2.1.4",
"codecov": "^3.3.0",
"del-cli": "^3.0.0",
"delay": "^4.2.0",
"eslint-config-xo-typescript": "^0.15.0",
"eslint-config-xo-typescript": "^0.16.0",
"in-range": "^2.0.0",
"nyc": "^14.0.0",
"random-int": "^2.0.0",
"time-span": "^3.1.0",
"ts-node": "^8.3.0",
"typescript": "^3.6.4",
"typescript": "^3.7.2",
"xo": "^0.25.3"
},
"ava": {
Expand All @@ -83,10 +83,10 @@
"ts"
],
"rules": {
"import/first": "off",
"import/newline-after-import": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/strict-boolean-expressions": "off"
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": "off"
}
},
"nyc": {
Expand Down
26 changes: 13 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Type: `object`

##### concurrency

Type: `number`<br>
Default: `Infinity`<br>
Type: `number`\
Default: `Infinity`\
Minimum: `1`

Concurrency limit.
Expand All @@ -66,14 +66,14 @@ Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses

##### throwOnTimeout

Type: `boolean`<br>
Type: `boolean`\
Default: `false`

Whether or not a timeout is considered an exception.

##### autoStart

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

Whether queue tasks within concurrency limit, are auto-executed as soon as they're added.
Expand All @@ -86,23 +86,23 @@ Class with a `enqueue` and `dequeue` method, and a `size` getter. See the [Custo

##### intervalCap

Type: `number`<br>
Default: `Infinity`<br>
Type: `number`\
Default: `Infinity`\
Minimum: `1`

The max number of runs in the given interval of time.

##### interval

Type: `number`<br>
Default: `0`<br>
Type: `number`\
Default: `0`\
Minimum: `0`

The length of time in milliseconds before the interval count resets. Must be finite.

##### carryoverConcurrencyCount

Type: `boolean`<br>
Type: `boolean`\
Default: `false`

Whether the task must finish in the given interval or will be carried over into the next interval count.
Expand All @@ -111,7 +111,7 @@ Whether the task must finish in the given interval or will be carried over into

`PQueue` instance.

#### .add(fn, [options])
#### .add(fn, options?)

Adds a sync or async task to the queue. Always returns a promise.

Expand All @@ -123,16 +123,16 @@ Promise-returning/async function.

#### options

Type: `Object`
Type: `object`

##### priority

Type: `number`<br>
Type: `number`\
Default: `0`

Priority of operation. Operations with greater priority will be scheduled first.

#### .addAll(fns, [options])
#### .addAll(fns, options?)

Same as `.add()`, but accepts an array of sync or async functions and returns a promise that resolves when all functions are resolved.

Expand Down
1 change: 0 additions & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ test('.add() - update concurrency', async t => {
running--;

if (index % 30 === 0) {
// eslint-disable-next-line require-atomic-updates
queue.concurrency = --concurrency;
t.is(queue.concurrency, concurrency);
}
Expand Down

0 comments on commit 6e84797

Please sign in to comment.