npm-update-package 1.5.24 → 2.0.0
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/README.md +1 -1
- package/dist/package.json +8 -18
- package/dist/src/github/GitHub.js +7 -5
- package/package.json +8 -18
package/README.md
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"bin": "dist/src/bin/npm-update-package.js",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=16"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@octokit/rest": "19.0.7",
|
|
20
20
|
"array-shuffle": "2.0.0",
|
|
21
|
-
"commander": "10.0.
|
|
21
|
+
"commander": "10.0.1",
|
|
22
22
|
"execa": "5.1.1",
|
|
23
|
-
"fp-ts": "2.
|
|
23
|
+
"fp-ts": "2.14.0",
|
|
24
24
|
"http-status-codes": "2.2.0",
|
|
25
25
|
"io-ts": "2.2.20",
|
|
26
26
|
"log4js": "6.9.1",
|
|
@@ -32,27 +32,17 @@
|
|
|
32
32
|
"type-guards": "0.15.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint-recommended/eslint-config-typescript": "12.0.0",
|
|
36
35
|
"@npm-update-package/eslint-config-typescript": "1.0.1",
|
|
37
|
-
"@tsconfig/
|
|
36
|
+
"@tsconfig/node16": "1.0.3",
|
|
38
37
|
"@types/mustache": "4.2.2",
|
|
39
|
-
"@types/node": "
|
|
38
|
+
"@types/node": "16.18.25",
|
|
40
39
|
"@types/node-fetch": "2.6.3",
|
|
41
40
|
"@types/parse-github-url": "1.0.0",
|
|
42
41
|
"@types/semver": "7.3.13",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"eslint": "8.
|
|
45
|
-
"eslint-config-standard-with-typescript": "34.0.1",
|
|
46
|
-
"eslint-plugin-eslint-comments": "3.2.0",
|
|
47
|
-
"eslint-plugin-import": "2.27.5",
|
|
48
|
-
"eslint-plugin-import-newlines": "1.3.1",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.59.1",
|
|
43
|
+
"eslint": "8.39.0",
|
|
49
44
|
"eslint-plugin-jest": "27.2.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "41.1.1",
|
|
51
|
-
"eslint-plugin-n": "15.7.0",
|
|
52
|
-
"eslint-plugin-promise": "6.1.1",
|
|
53
45
|
"eslint-plugin-sonarjs": "0.19.0",
|
|
54
|
-
"eslint-plugin-tsdoc": "0.2.17",
|
|
55
|
-
"eslint-plugin-unicorn": "45.0.2",
|
|
56
46
|
"jest": "29.5.0",
|
|
57
47
|
"npm-run-all": "4.1.5",
|
|
58
48
|
"rimraf": "5.0.0",
|
|
@@ -106,12 +106,14 @@ class GitHub {
|
|
|
106
106
|
return data;
|
|
107
107
|
}
|
|
108
108
|
async requestReviewers({ owner, repo, pullNumber, reviewers }) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
// For some reason, some argument types are `never`, so type assertions are used.
|
|
110
|
+
const params = {
|
|
111
|
+
owner: owner,
|
|
112
|
+
repo: repo,
|
|
112
113
|
pull_number: pullNumber,
|
|
113
|
-
reviewers
|
|
114
|
-
}
|
|
114
|
+
reviewers: reviewers
|
|
115
|
+
};
|
|
116
|
+
await this.octokit.pulls.requestReviewers(params);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
exports.GitHub = GitHub;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"bin": "dist/src/bin/npm-update-package.js",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=16"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@octokit/rest": "19.0.7",
|
|
20
20
|
"array-shuffle": "2.0.0",
|
|
21
|
-
"commander": "10.0.
|
|
21
|
+
"commander": "10.0.1",
|
|
22
22
|
"execa": "5.1.1",
|
|
23
|
-
"fp-ts": "2.
|
|
23
|
+
"fp-ts": "2.14.0",
|
|
24
24
|
"http-status-codes": "2.2.0",
|
|
25
25
|
"io-ts": "2.2.20",
|
|
26
26
|
"log4js": "6.9.1",
|
|
@@ -32,27 +32,17 @@
|
|
|
32
32
|
"type-guards": "0.15.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint-recommended/eslint-config-typescript": "12.0.0",
|
|
36
35
|
"@npm-update-package/eslint-config-typescript": "1.0.1",
|
|
37
|
-
"@tsconfig/
|
|
36
|
+
"@tsconfig/node16": "1.0.3",
|
|
38
37
|
"@types/mustache": "4.2.2",
|
|
39
|
-
"@types/node": "
|
|
38
|
+
"@types/node": "16.18.25",
|
|
40
39
|
"@types/node-fetch": "2.6.3",
|
|
41
40
|
"@types/parse-github-url": "1.0.0",
|
|
42
41
|
"@types/semver": "7.3.13",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"eslint": "8.
|
|
45
|
-
"eslint-config-standard-with-typescript": "34.0.1",
|
|
46
|
-
"eslint-plugin-eslint-comments": "3.2.0",
|
|
47
|
-
"eslint-plugin-import": "2.27.5",
|
|
48
|
-
"eslint-plugin-import-newlines": "1.3.1",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.59.1",
|
|
43
|
+
"eslint": "8.39.0",
|
|
49
44
|
"eslint-plugin-jest": "27.2.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "41.1.1",
|
|
51
|
-
"eslint-plugin-n": "15.7.0",
|
|
52
|
-
"eslint-plugin-promise": "6.1.1",
|
|
53
45
|
"eslint-plugin-sonarjs": "0.19.0",
|
|
54
|
-
"eslint-plugin-tsdoc": "0.2.17",
|
|
55
|
-
"eslint-plugin-unicorn": "45.0.2",
|
|
56
46
|
"jest": "29.5.0",
|
|
57
47
|
"npm-run-all": "4.1.5",
|
|
58
48
|
"rimraf": "5.0.0",
|