npm-update-package 0.58.2 → 0.58.5

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 CHANGED
@@ -294,7 +294,7 @@ Allowed values:
294
294
  |Value|Description|
295
295
  |---|---|
296
296
  |`create`|Create new pull request.|
297
- |`recreate`|Close old pull requests and create new pull request.|
297
+ |`recreate`|Close outdated pull requests and create new pull request.|
298
298
  |`skip`|Skip creating pull request.|
299
299
 
300
300
  Example:
@@ -601,7 +601,7 @@ while (Package exists) is (yes)
601
601
  :Create branch;
602
602
  :Update package;
603
603
  :Create pull request;
604
- :Close old pull requests;
604
+ :Close outdated pull requests;
605
605
  :Remove branch;
606
606
  case (skip)
607
607
  if (Outdated pull requests don't exist) then (yes)
@@ -626,7 +626,7 @@ end
626
626
  ```
627
627
  -->
628
628
 
629
- [![](http://www.plantuml.com/plantuml/svg/hLF1RjGm4BtxAzvjiuUgzzrBKIKg92GgAZx0cynkh3gUO4zOojUJQUo0WS25IsBFUvddzpovIsAZJ8CthmjpYJoDEBbW3k-24sUz-qRWKHo7TCpmO1L_805FqbcX3gDjd-s5PefnPpHll5zBi94mZJV2DyhTGteAQ5uexGr0eJFa4w49l3VppfsDERmbQNj46bW8fsX3ssllN1ydxsVmyqH9Yk9xUoAFZYaXi82-kYI_I1tk8raXUAKUVrEj73yuGSlXx2x5z8TizJ7RUepSKaeSZRdspXEQZ2pQQG-NLka_jlZH0L0B7t-s-tShGBewZQBXqZC-IPmNbvS5RwswQryTBvKIG54ubkgdKJkK-phMv2hi5TEZVgaQPS58MHB_NVFUSoAmxoeu_VjCwTcD9GBDkLn3tGSTXzrMsjjEDhrikza-Bx0EPTulevbNovsRcfKP-bx6JCSvJwGop0e0jxljCSRkrXoUUhuYKfgy1bj_gN-zakhgQIsQk_an3Vux)](http://www.plantuml.com/plantuml/uml/hLF1RjGm4BtxAzvjiuUgzzrBKIKg92GgAZx0cynkh3gUO4zOojUJQUo0WS25IsBFUvddzpovIsAZJ8CthmjpYJoDEBbW3k-24sUz-qRWKHo7TCpmO1L_805FqbcX3gDjd-s5PefnPpHll5zBi94mZJV2DyhTGteAQ5uexGr0eJFa4w49l3VppfsDERmbQNj46bW8fsX3ssllN1ydxsVmyqH9Yk9xUoAFZYaXi82-kYI_I1tk8raXUAKUVrEj73yuGSlXx2x5z8TizJ7RUepSKaeSZRdspXEQZ2pQQG-NLka_jlZH0L0B7t-s-tShGBewZQBXqZC-IPmNbvS5RwswQryTBvKIG54ubkgdKJkK-phMv2hi5TEZVgaQPS58MHB_NVFUSoAmxoeu_VjCwTcD9GBDkLn3tGSTXzrMsjjEDhrikza-Bx0EPTulevbNovsRcfKP-bx6JCSvJwGop0e0jxljCSRkrXoUUhuYKfgy1bj_gN-zakhgQIsQk_an3Vux)
629
+ [![](http://www.plantuml.com/plantuml/svg/hLD1Rjim4Bpp5NEpV0Xojoyf0ZGeK211Wpw0bjOM4OghagkwwUlhZIYsHAtsaej4xevsECFHNH8RPHgyULkOK-HfnC45i_iKd3ZhtKy2Z-8uf7rk3rRx3oJWIJehr66qxOizqGLYt17D1-zB2JOIfl56-4QnMqXF0SqhfQq1A7I6V28qWRVcidD7OtOVITeUaGOMmY7QqFOwEzV7oNj4-ZPHaeNnipsGHyUK45X0FroIcWgx-qXM25wX-xzOAyKFJj1oEBhJ8lenIttAifuYjvGIHsFElVE49dTcxhI5IuNwweZV4m2LyELFkV-M0gIpKoiQNcR6PubMwFGwzrkhwjetnNEb690PzalrwwWJbllQr-3AxDBJetwl1cN2I9aIxyvvxpbHILmTWlyVBBsuSV51pNwyEWSTXysAvUjorWMjIre_Br2IcVTpFlDgldXJep92ttFMDDCQoummfG7SRjQpZCsjsJttV4QaD7arjlvIVtq5rTL3APgxosCQ_2y0)](http://www.plantuml.com/plantuml/uml/hLD1Rjim4Bpp5NEpV0Xojoyf0ZGeK211Wpw0bjOM4OghagkwwUlhZIYsHAtsaej4xevsECFHNH8RPHgyULkOK-HfnC45i_iKd3ZhtKy2Z-8uf7rk3rRx3oJWIJehr66qxOizqGLYt17D1-zB2JOIfl56-4QnMqXF0SqhfQq1A7I6V28qWRVcidD7OtOVITeUaGOMmY7QqFOwEzV7oNj4-ZPHaeNnipsGHyUK45X0FroIcWgx-qXM25wX-xzOAyKFJj1oEBhJ8lenIttAifuYjvGIHsFElVE49dTcxhI5IuNwweZV4m2LyELFkV-M0gIpKoiQNcR6PubMwFGwzrkhwjetnNEb690PzalrwwWJbllQr-3AxDBJetwl1cN2I9aIxyvvxpbHILmTWlyVBBsuSV51pNwyEWSTXysAvUjorWMjIre_Br2IcVTpFlDgldXJep92ttFMDDCQoummfG7SRjQpZCsjsJttV4QaD7arjlvIVtq5rTL3APgxosCQ_2y0)
630
630
 
631
631
  ## FAQ
632
632
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.58.2",
3
+ "version": "0.58.5",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -17,16 +17,16 @@
17
17
  "@octokit/rest": "18.12.0",
18
18
  "commander": "9.1.0",
19
19
  "execa": "5.1.1",
20
- "fp-ts": "2.11.9",
20
+ "fp-ts": "2.11.10",
21
21
  "http-status-codes": "2.2.0",
22
22
  "io-ts": "2.2.16",
23
23
  "lodash": "4.14.2",
24
24
  "log4js": "6.4.4",
25
25
  "mustache": "4.1.0",
26
26
  "node-fetch": "2.6.7",
27
- "npm-check-updates": "12.5.8",
27
+ "npm-check-updates": "12.5.9",
28
28
  "parse-github-url": "1.0.2",
29
- "semver": "7.3.6",
29
+ "semver": "7.3.7",
30
30
  "sleep-promise": "9.1.0",
31
31
  "type-guards": "0.15.0"
32
32
  },
@@ -36,7 +36,7 @@
36
36
  "@types/jest": "27.4.1",
37
37
  "@types/lodash": "4.14.181",
38
38
  "@types/mustache": "4.1.2",
39
- "@types/node": "12.20.47",
39
+ "@types/node": "12.20.48",
40
40
  "@types/node-fetch": "2.6.1",
41
41
  "@types/parse-github-url": "1.0.0",
42
42
  "@types/semver": "7.3.9",
@@ -45,9 +45,11 @@
45
45
  "eslint-config-standard-with-typescript": "21.0.1",
46
46
  "eslint-plugin-import": "2.26.0",
47
47
  "eslint-plugin-jest": "26.1.4",
48
+ "eslint-plugin-lodash": "7.4.0",
48
49
  "eslint-plugin-node": "11.1.0",
49
50
  "eslint-plugin-promise": "6.0.0",
50
51
  "eslint-plugin-tsdoc": "0.2.16",
52
+ "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
51
53
  "husky": "7.0.4",
52
54
  "jest": "27.4.7",
53
55
  "lint-staged": "12.3.7",
@@ -16,9 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./FailedResult"), exports);
18
18
  __exportStar(require("./OutdatedPackage"), exports);
19
- __exportStar(require("./OutdatedPackageProcessor"), exports);
20
- __exportStar(require("./OutdatedPackageProcessorCreator"), exports);
21
19
  __exportStar(require("./OutdatedPackagesProcessor"), exports);
22
- __exportStar(require("./OutdatedPullRequestStrategy"), exports);
23
20
  __exportStar(require("./PackageUpdater"), exports);
24
21
  __exportStar(require("./SucceededResult"), exports);
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AssigneesAdder = void 0;
7
7
  const shuffle_1 = __importDefault(require("lodash/shuffle"));
8
- // TODO: Add test
9
8
  class AssigneesAdder {
10
9
  constructor({ github, gitRepo }) {
11
10
  this.github = github;
package/dist/src/main.js CHANGED
@@ -7,6 +7,7 @@ const git_1 = require("./git");
7
7
  const github_1 = require("./github");
8
8
  const logger_1 = require("./logger");
9
9
  const ncu_1 = require("./ncu");
10
+ const outdated_package_processor_1 = require("./outdated-package-processor");
10
11
  const package_manager_1 = require("./package-manager");
11
12
  const terminal_1 = require("./terminal");
12
13
  // TODO: Add test
@@ -102,7 +103,7 @@ const main = async (options) => {
102
103
  packageManager,
103
104
  ncu
104
105
  });
105
- const outdatedPackageProcessorCreator = new core_1.OutdatedPackageProcessorCreator(options);
106
+ const outdatedPackageProcessorCreator = new outdated_package_processor_1.OutdatedPackageProcessorCreator(options);
106
107
  const outdatedPackageProcessor = outdatedPackageProcessorCreator.create({
107
108
  git,
108
109
  packageManager,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isOptions = void 0;
4
4
  const io_ts_1 = require("io-ts");
5
- const core_1 = require("../core");
6
5
  const logger_1 = require("../logger");
6
+ const outdated_package_processor_1 = require("../outdated-package-processor");
7
7
  const package_manager_1 = require("../package-manager");
8
8
  const Options = (0, io_ts_1.intersection)([
9
9
  (0, io_ts_1.type)({
@@ -21,9 +21,9 @@ const Options = (0, io_ts_1.intersection)([
21
21
  (0, io_ts_1.literal)(logger_1.LogLevel.Trace)
22
22
  ]),
23
23
  outdatedPrStrategy: (0, io_ts_1.union)([
24
- (0, io_ts_1.literal)(core_1.OutdatedPullRequestStrategy.Create),
25
- (0, io_ts_1.literal)(core_1.OutdatedPullRequestStrategy.Recreate),
26
- (0, io_ts_1.literal)(core_1.OutdatedPullRequestStrategy.Skip)
24
+ (0, io_ts_1.literal)(outdated_package_processor_1.OutdatedPullRequestStrategy.Create),
25
+ (0, io_ts_1.literal)(outdated_package_processor_1.OutdatedPullRequestStrategy.Recreate),
26
+ (0, io_ts_1.literal)(outdated_package_processor_1.OutdatedPullRequestStrategy.Skip)
27
27
  ]),
28
28
  prBodyGithubHost: io_ts_1.string,
29
29
  prTitle: io_ts_1.string
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cliOptions = void 0;
4
- const core_1 = require("../core");
5
4
  const logger_1 = require("../logger");
5
+ const outdated_package_processor_1 = require("../outdated-package-processor");
6
6
  const package_manager_1 = require("../package-manager");
7
7
  const OptionType_1 = require("./OptionType");
8
8
  exports.cliOptions = [
@@ -85,11 +85,11 @@ exports.cliOptions = [
85
85
  type: OptionType_1.OptionType.String,
86
86
  required: false,
87
87
  choices: [
88
- core_1.OutdatedPullRequestStrategy.Create,
89
- core_1.OutdatedPullRequestStrategy.Recreate,
90
- core_1.OutdatedPullRequestStrategy.Skip
88
+ outdated_package_processor_1.OutdatedPullRequestStrategy.Create,
89
+ outdated_package_processor_1.OutdatedPullRequestStrategy.Recreate,
90
+ outdated_package_processor_1.OutdatedPullRequestStrategy.Skip
91
91
  ],
92
- default: core_1.OutdatedPullRequestStrategy.Recreate
92
+ default: outdated_package_processor_1.OutdatedPullRequestStrategy.Recreate
93
93
  },
94
94
  {
95
95
  name: 'package-manager',
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OutdatedPackageProcessorCreator = void 0;
4
- const Create_1 = require("./Create");
4
+ const create_1 = require("./create");
5
5
  const OutdatedPullRequestStrategy_1 = require("./OutdatedPullRequestStrategy");
6
- const Recreate_1 = require("./Recreate");
7
- const Skip_1 = require("./Skip");
6
+ const recreate_1 = require("./recreate");
7
+ const skip_1 = require("./skip");
8
8
  class OutdatedPackageProcessorCreator {
9
9
  constructor(options) {
10
10
  this.options = options;
@@ -12,7 +12,7 @@ class OutdatedPackageProcessorCreator {
12
12
  create({ git, packageManager, pullRequestCreator, branchFinder, commitMessageCreator, pullRequestFinder, pullRequestsCloser, packageUpdater }) {
13
13
  switch (this.options.outdatedPrStrategy) {
14
14
  case OutdatedPullRequestStrategy_1.OutdatedPullRequestStrategy.Create:
15
- return new Create_1.Create({
15
+ return new create_1.Create({
16
16
  git,
17
17
  packageManager,
18
18
  pullRequestCreator,
@@ -21,7 +21,7 @@ class OutdatedPackageProcessorCreator {
21
21
  packageUpdater
22
22
  });
23
23
  case OutdatedPullRequestStrategy_1.OutdatedPullRequestStrategy.Recreate:
24
- return new Recreate_1.Recreate({
24
+ return new recreate_1.Recreate({
25
25
  git,
26
26
  packageManager,
27
27
  pullRequestCreator,
@@ -32,7 +32,7 @@ class OutdatedPackageProcessorCreator {
32
32
  packageUpdater
33
33
  });
34
34
  case OutdatedPullRequestStrategy_1.OutdatedPullRequestStrategy.Skip:
35
- return new Skip_1.Skip({
35
+ return new skip_1.Skip({
36
36
  git,
37
37
  packageManager,
38
38
  pullRequestCreator,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Create = void 0;
4
4
  const Either_1 = require("fp-ts/lib/Either");
5
- const git_1 = require("../git");
6
- const logger_1 = require("../logger");
5
+ const git_1 = require("../../git");
6
+ const logger_1 = require("../../logger");
7
7
  // TODO: Add test
8
8
  class Create {
9
9
  constructor({ git, packageManager, pullRequestCreator, branchFinder, commitMessageCreator, packageUpdater }) {
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Create"), exports);
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./OutdatedPackageProcessor"), exports);
18
+ __exportStar(require("./OutdatedPackageProcessorCreator"), exports);
19
+ __exportStar(require("./OutdatedPullRequestStrategy"), exports);
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Recreate = void 0;
4
4
  const Either_1 = require("fp-ts/lib/Either");
5
- const git_1 = require("../git");
6
- const logger_1 = require("../logger");
5
+ const git_1 = require("../../git");
6
+ const logger_1 = require("../../logger");
7
7
  // TODO: Add test
8
8
  class Recreate {
9
9
  constructor({ git, packageManager, pullRequestCreator, branchFinder, commitMessageCreator, packageUpdater, pullRequestFinder, pullRequestsCloser }) {
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Recreate"), exports);
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Skip = void 0;
4
4
  const Either_1 = require("fp-ts/lib/Either");
5
- const git_1 = require("../git");
6
- const logger_1 = require("../logger");
5
+ const git_1 = require("../../git");
6
+ const logger_1 = require("../../logger");
7
7
  // TODO: Add test
8
8
  class Skip {
9
9
  constructor({ git, packageManager, pullRequestCreator, branchFinder, commitMessageCreator, packageUpdater, pullRequestFinder }) {
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Skip"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.58.2",
3
+ "version": "0.58.5",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -17,16 +17,16 @@
17
17
  "@octokit/rest": "18.12.0",
18
18
  "commander": "9.1.0",
19
19
  "execa": "5.1.1",
20
- "fp-ts": "2.11.9",
20
+ "fp-ts": "2.11.10",
21
21
  "http-status-codes": "2.2.0",
22
22
  "io-ts": "2.2.16",
23
23
  "lodash": "4.14.2",
24
24
  "log4js": "6.4.4",
25
25
  "mustache": "4.1.0",
26
26
  "node-fetch": "2.6.7",
27
- "npm-check-updates": "12.5.8",
27
+ "npm-check-updates": "12.5.9",
28
28
  "parse-github-url": "1.0.2",
29
- "semver": "7.3.6",
29
+ "semver": "7.3.7",
30
30
  "sleep-promise": "9.1.0",
31
31
  "type-guards": "0.15.0"
32
32
  },
@@ -36,7 +36,7 @@
36
36
  "@types/jest": "27.4.1",
37
37
  "@types/lodash": "4.14.181",
38
38
  "@types/mustache": "4.1.2",
39
- "@types/node": "12.20.47",
39
+ "@types/node": "12.20.48",
40
40
  "@types/node-fetch": "2.6.1",
41
41
  "@types/parse-github-url": "1.0.0",
42
42
  "@types/semver": "7.3.9",
@@ -45,9 +45,11 @@
45
45
  "eslint-config-standard-with-typescript": "21.0.1",
46
46
  "eslint-plugin-import": "2.26.0",
47
47
  "eslint-plugin-jest": "26.1.4",
48
+ "eslint-plugin-lodash": "7.4.0",
48
49
  "eslint-plugin-node": "11.1.0",
49
50
  "eslint-plugin-promise": "6.0.0",
50
51
  "eslint-plugin-tsdoc": "0.2.16",
52
+ "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
51
53
  "husky": "7.0.4",
52
54
  "jest": "27.4.7",
53
55
  "lint-staged": "12.3.7",