npm-update-package 1.2.0 → 1.2.3
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.
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"log4js": "6.4.7",
|
|
27
27
|
"mustache": "4.1.0",
|
|
28
28
|
"node-fetch": "2.6.7",
|
|
29
|
-
"npm-check-updates": "
|
|
29
|
+
"npm-check-updates": "13.0.3",
|
|
30
30
|
"parse-github-url": "1.0.2",
|
|
31
31
|
"semver": "7.3.7",
|
|
32
32
|
"sleep-promise": "9.1.0",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"@types/parse-github-url": "1.0.0",
|
|
44
44
|
"@types/semver": "7.3.9",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "5.25.0",
|
|
46
|
-
"eslint": "8.
|
|
47
|
-
"eslint-config-lodash": "1.0
|
|
46
|
+
"eslint": "8.16.0",
|
|
47
|
+
"eslint-config-lodash": "1.1.0",
|
|
48
48
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
49
49
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
50
50
|
"eslint-plugin-import": "2.26.0",
|
|
51
|
-
"eslint-plugin-jest": "26.
|
|
51
|
+
"eslint-plugin-jest": "26.2.2",
|
|
52
52
|
"eslint-plugin-lodash": "7.4.0",
|
|
53
53
|
"eslint-plugin-node": "11.1.0",
|
|
54
54
|
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-tsdoc": "0.2.16",
|
|
56
56
|
"eslint-plugin-unicorn": "42.0.0",
|
|
57
57
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
|
58
|
-
"husky": "
|
|
58
|
+
"husky": "8.0.1",
|
|
59
59
|
"jest": "27.5.1",
|
|
60
60
|
"lint-staged": "12.4.1",
|
|
61
61
|
"npm-run-all": "4.1.5",
|
|
62
62
|
"rimraf": "3.0.2",
|
|
63
|
-
"ts-jest": "27.1.
|
|
64
|
-
"ts-node": "10.
|
|
63
|
+
"ts-jest": "27.1.5",
|
|
64
|
+
"ts-node": "10.8.0",
|
|
65
65
|
"typescript": "4.6.4",
|
|
66
66
|
"utility-types": "3.10.0"
|
|
67
67
|
},
|
|
@@ -4,18 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AssigneesAdder = void 0;
|
|
7
|
-
const
|
|
7
|
+
const sampleSize_1 = __importDefault(require("lodash/sampleSize"));
|
|
8
8
|
class AssigneesAdder {
|
|
9
9
|
constructor({ github, gitRepo }) {
|
|
10
10
|
this.github = github;
|
|
11
11
|
this.gitRepo = gitRepo;
|
|
12
12
|
}
|
|
13
|
-
async add({ issueNumber, assignees,
|
|
13
|
+
async add({ issueNumber, assignees, size }) {
|
|
14
14
|
await this.github.addAssignees({
|
|
15
15
|
owner: this.gitRepo.owner,
|
|
16
16
|
repo: this.gitRepo.name,
|
|
17
17
|
issueNumber,
|
|
18
|
-
assignees:
|
|
18
|
+
assignees: size !== undefined ? (0, sampleSize_1.default)(assignees, size) : assignees
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -37,14 +37,14 @@ class PullRequestCreator {
|
|
|
37
37
|
await this.assigneesAdder.add({
|
|
38
38
|
issueNumber: pullRequest.number,
|
|
39
39
|
assignees: this.options.assignees,
|
|
40
|
-
|
|
40
|
+
size: this.options.assigneesSampleSize
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (this.options.reviewers !== undefined) {
|
|
44
44
|
await this.reviewersAdder.add({
|
|
45
45
|
pullNumber: pullRequest.number,
|
|
46
46
|
reviewers: this.options.reviewers,
|
|
47
|
-
|
|
47
|
+
size: this.options.reviewersSampleSize
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
return pullRequest;
|
|
@@ -4,18 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReviewersAdder = void 0;
|
|
7
|
-
const
|
|
7
|
+
const sampleSize_1 = __importDefault(require("lodash/sampleSize"));
|
|
8
8
|
class ReviewersAdder {
|
|
9
9
|
constructor({ github, gitRepo }) {
|
|
10
10
|
this.github = github;
|
|
11
11
|
this.gitRepo = gitRepo;
|
|
12
12
|
}
|
|
13
|
-
async add({ pullNumber, reviewers,
|
|
13
|
+
async add({ pullNumber, reviewers, size }) {
|
|
14
14
|
await this.github.requestReviewers({
|
|
15
15
|
owner: this.gitRepo.owner,
|
|
16
16
|
repo: this.gitRepo.name,
|
|
17
17
|
pullNumber,
|
|
18
|
-
reviewers:
|
|
18
|
+
reviewers: size !== undefined ? (0, sampleSize_1.default)(reviewers, size) : reviewers
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"log4js": "6.4.7",
|
|
27
27
|
"mustache": "4.1.0",
|
|
28
28
|
"node-fetch": "2.6.7",
|
|
29
|
-
"npm-check-updates": "
|
|
29
|
+
"npm-check-updates": "13.0.3",
|
|
30
30
|
"parse-github-url": "1.0.2",
|
|
31
31
|
"semver": "7.3.7",
|
|
32
32
|
"sleep-promise": "9.1.0",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"@types/parse-github-url": "1.0.0",
|
|
44
44
|
"@types/semver": "7.3.9",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "5.25.0",
|
|
46
|
-
"eslint": "8.
|
|
47
|
-
"eslint-config-lodash": "1.0
|
|
46
|
+
"eslint": "8.16.0",
|
|
47
|
+
"eslint-config-lodash": "1.1.0",
|
|
48
48
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
49
49
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
50
50
|
"eslint-plugin-import": "2.26.0",
|
|
51
|
-
"eslint-plugin-jest": "26.
|
|
51
|
+
"eslint-plugin-jest": "26.2.2",
|
|
52
52
|
"eslint-plugin-lodash": "7.4.0",
|
|
53
53
|
"eslint-plugin-node": "11.1.0",
|
|
54
54
|
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-tsdoc": "0.2.16",
|
|
56
56
|
"eslint-plugin-unicorn": "42.0.0",
|
|
57
57
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
|
58
|
-
"husky": "
|
|
58
|
+
"husky": "8.0.1",
|
|
59
59
|
"jest": "27.5.1",
|
|
60
60
|
"lint-staged": "12.4.1",
|
|
61
61
|
"npm-run-all": "4.1.5",
|
|
62
62
|
"rimraf": "3.0.2",
|
|
63
|
-
"ts-jest": "27.1.
|
|
64
|
-
"ts-node": "10.
|
|
63
|
+
"ts-jest": "27.1.5",
|
|
64
|
+
"ts-node": "10.8.0",
|
|
65
65
|
"typescript": "4.6.4",
|
|
66
66
|
"utility-types": "3.10.0"
|
|
67
67
|
},
|