Skip to content

Commit b770eae

Browse files
committed
Meta tweaks
1 parent edd2e8a commit b770eae

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@
4848
"devDependencies": {
4949
"@sindresorhus/tsconfig": "^0.7.0",
5050
"@types/benchmark": "^1.0.31",
51-
"@types/node": "^14.0.14",
51+
"@types/node": "^14.0.23",
5252
"ava": "^2.0.0",
5353
"benchmark": "^2.1.4",
54-
"codecov": "^3.3.0",
54+
"codecov": "^3.7.1",
5555
"del-cli": "^3.0.0",
56-
"delay": "^4.2.0",
56+
"delay": "^4.4.0",
5757
"in-range": "^2.0.0",
5858
"nyc": "^15.0.0",
5959
"random-int": "^2.0.0",
6060
"time-span": "^4.0.0",
6161
"ts-node": "^8.3.0",
62-
"typescript": "^3.9.5",
63-
"xo": "^0.32.0"
62+
"typescript": "^3.9.7",
63+
"xo": "^0.32.1"
6464
},
6565
"ava": {
6666
"babel": false,
@@ -78,7 +78,6 @@
7878
"xo": {
7979
"rules": {
8080
"@typescript-eslint/member-ordering": "off",
81-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
8281
"node/no-unsupported-features/es-syntax": "off",
8382
"@typescript-eslint/no-floating-promises": "off",
8483
"import/no-named-default": "off",

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# p-queue [![Build Status](https://travis-ci.org/sindresorhus/p-queue.svg?branch=master)](https://travis-ci.org/sindresorhus/p-queue) [![codecov](https://codecov.io/gh/sindresorhus/p-queue/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/p-queue)
1+
# p-queue [![Build Status](https://travis-ci.com/sindresorhus/p-queue.svg?branch=master)](https://travis-ci.com/github/sindresorhus/p-queue) [![codecov](https://codecov.io/gh/sindresorhus/p-queue/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/p-queue)
22

33
> Promise queue with concurrency control
44
@@ -271,12 +271,12 @@ const job2 = queue.add(() => delay(500));
271271

272272
await job1;
273273
await job2;
274-
// => 'Task is added. Size: 0 Pending: 1'
275-
// => 'Task is added. Size: 0 Pending: 2'
274+
//=> 'Task is added. Size: 0 Pending: 1'
275+
//=> 'Task is added. Size: 0 Pending: 2'
276276

277277
await queue.add(() => delay(600));
278-
// => 'Task is completed. Size: 0 Pending: 1'
279-
// => 'Task is completed. Size: 0 Pending: 0'
278+
//=> 'Task is completed. Size: 0 Pending: 1'
279+
//=> 'Task is completed. Size: 0 Pending: 0'
280280
```
281281

282282
## Advanced example

test/test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ test('should emit idle event when idle', async t => {
853853
t.is(queue.size, 0);
854854
t.is(timesCalled, 2);
855855
});
856+
856857
test('should emit add event when adding task', async t => {
857858
const queue = new PQueue({concurrency: 1});
858859

@@ -896,6 +897,7 @@ test('should emit add event when adding task', async t => {
896897
t.is(queue.size, 0);
897898
t.is(timesCalled, 3);
898899
});
900+
899901
test('should emit next event when completing task', async t => {
900902
const queue = new PQueue({concurrency: 1});
901903

0 commit comments

Comments
 (0)