npm-update-package 1.5.4 → 1.5.6
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.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
"type-guards": "0.15.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@eslint-recommended/eslint-config-typescript": "
|
|
35
|
-
"@npm-update-package/eslint-config-typescript": "0.
|
|
34
|
+
"@eslint-recommended/eslint-config-typescript": "2.0.0",
|
|
35
|
+
"@npm-update-package/eslint-config-typescript": "1.0.0",
|
|
36
36
|
"@tsconfig/node14": "1.0.3",
|
|
37
|
-
"@types/mustache": "4.2.
|
|
37
|
+
"@types/mustache": "4.2.2",
|
|
38
38
|
"@types/node": "14.18.32",
|
|
39
39
|
"@types/node-fetch": "2.6.2",
|
|
40
40
|
"@types/parse-github-url": "1.0.0",
|
|
41
41
|
"@types/semver": "7.3.13",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
43
|
-
"eslint": "8.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.44.0",
|
|
43
|
+
"eslint": "8.28.0",
|
|
44
44
|
"eslint-config-standard-with-typescript": "23.0.0",
|
|
45
45
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
46
46
|
"eslint-plugin-import": "2.26.0",
|
|
47
|
-
"eslint-plugin-import-newlines": "1.
|
|
48
|
-
"eslint-plugin-jest": "27.1.
|
|
47
|
+
"eslint-plugin-import-newlines": "1.3.0",
|
|
48
|
+
"eslint-plugin-jest": "27.1.5",
|
|
49
49
|
"eslint-plugin-jsdoc": "39.6.2",
|
|
50
|
-
"eslint-plugin-n": "15.
|
|
50
|
+
"eslint-plugin-n": "15.5.1",
|
|
51
51
|
"eslint-plugin-promise": "6.1.1",
|
|
52
52
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
53
|
-
"eslint-plugin-unicorn": "
|
|
54
|
-
"jest": "29.
|
|
53
|
+
"eslint-plugin-unicorn": "45.0.0",
|
|
54
|
+
"jest": "29.3.1",
|
|
55
55
|
"npm-run-all": "4.1.5",
|
|
56
56
|
"rimraf": "3.0.2",
|
|
57
57
|
"ts-jest": "29.0.3",
|
|
58
58
|
"ts-node": "10.9.1",
|
|
59
|
-
"typescript": "4.
|
|
59
|
+
"typescript": "4.9.3",
|
|
60
60
|
"utility-types": "3.10.0"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|
|
@@ -12,7 +12,7 @@ class AssigneesAdder {
|
|
|
12
12
|
owner: this.gitRepo.owner,
|
|
13
13
|
repo: this.gitRepo.name,
|
|
14
14
|
issueNumber,
|
|
15
|
-
assignees: size
|
|
15
|
+
assignees: size === undefined ? assignees : (0, util_1.sampleSize)(assignees, size)
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -9,7 +9,7 @@ class LabelsAdder {
|
|
|
9
9
|
this.gitRepo = gitRepo;
|
|
10
10
|
}
|
|
11
11
|
async add(issueNumber) {
|
|
12
|
-
const labels = this.options.additionalLabels
|
|
12
|
+
const labels = this.options.additionalLabels === undefined ? DEFAULT_LABELS : [...DEFAULT_LABELS, ...this.options.additionalLabels];
|
|
13
13
|
await this.github.addLabels({
|
|
14
14
|
owner: this.gitRepo.owner,
|
|
15
15
|
repo: this.gitRepo.name,
|
|
@@ -12,7 +12,7 @@ class ReviewersAdder {
|
|
|
12
12
|
owner: this.gitRepo.owner,
|
|
13
13
|
repo: this.gitRepo.name,
|
|
14
14
|
pullNumber,
|
|
15
|
-
reviewers: size
|
|
15
|
+
reviewers: size === undefined ? reviewers : (0, util_1.sampleSize)(reviewers, size)
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
package/dist/src/main.js
CHANGED
|
@@ -14,7 +14,7 @@ const terminal_1 = require("./terminal");
|
|
|
14
14
|
const main = async (options) => {
|
|
15
15
|
logger_1.logger.debug(`options=${JSON.stringify({
|
|
16
16
|
...options,
|
|
17
|
-
githubToken: options.githubToken
|
|
17
|
+
githubToken: options.githubToken === '' ? '' : '***'
|
|
18
18
|
})}`);
|
|
19
19
|
const ncu = new npm_check_updates_1.NpmCheckUpdates(options);
|
|
20
20
|
const outdatedPackages = await ncu.check();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
"type-guards": "0.15.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@eslint-recommended/eslint-config-typescript": "
|
|
35
|
-
"@npm-update-package/eslint-config-typescript": "0.
|
|
34
|
+
"@eslint-recommended/eslint-config-typescript": "2.0.0",
|
|
35
|
+
"@npm-update-package/eslint-config-typescript": "1.0.0",
|
|
36
36
|
"@tsconfig/node14": "1.0.3",
|
|
37
|
-
"@types/mustache": "4.2.
|
|
37
|
+
"@types/mustache": "4.2.2",
|
|
38
38
|
"@types/node": "14.18.32",
|
|
39
39
|
"@types/node-fetch": "2.6.2",
|
|
40
40
|
"@types/parse-github-url": "1.0.0",
|
|
41
41
|
"@types/semver": "7.3.13",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
43
|
-
"eslint": "8.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.44.0",
|
|
43
|
+
"eslint": "8.28.0",
|
|
44
44
|
"eslint-config-standard-with-typescript": "23.0.0",
|
|
45
45
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
46
46
|
"eslint-plugin-import": "2.26.0",
|
|
47
|
-
"eslint-plugin-import-newlines": "1.
|
|
48
|
-
"eslint-plugin-jest": "27.1.
|
|
47
|
+
"eslint-plugin-import-newlines": "1.3.0",
|
|
48
|
+
"eslint-plugin-jest": "27.1.5",
|
|
49
49
|
"eslint-plugin-jsdoc": "39.6.2",
|
|
50
|
-
"eslint-plugin-n": "15.
|
|
50
|
+
"eslint-plugin-n": "15.5.1",
|
|
51
51
|
"eslint-plugin-promise": "6.1.1",
|
|
52
52
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
53
|
-
"eslint-plugin-unicorn": "
|
|
54
|
-
"jest": "29.
|
|
53
|
+
"eslint-plugin-unicorn": "45.0.0",
|
|
54
|
+
"jest": "29.3.1",
|
|
55
55
|
"npm-run-all": "4.1.5",
|
|
56
56
|
"rimraf": "3.0.2",
|
|
57
57
|
"ts-jest": "29.0.3",
|
|
58
58
|
"ts-node": "10.9.1",
|
|
59
|
-
"typescript": "4.
|
|
59
|
+
"typescript": "4.9.3",
|
|
60
60
|
"utility-types": "3.10.0"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|