npm-update-package 1.4.7 → 1.4.9

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.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -25,39 +25,37 @@
25
25
  "log4js": "6.6.1",
26
26
  "mustache": "4.2.0",
27
27
  "node-fetch": "2.6.7",
28
- "npm-check-updates": "16.1.2",
28
+ "npm-check-updates": "16.3.2",
29
29
  "parse-github-url": "1.0.2",
30
30
  "semver": "7.3.7",
31
- "sleep-promise": "9.1.0",
32
31
  "type-guards": "0.15.0"
33
32
  },
34
33
  "devDependencies": {
35
- "@jest/types": "29.0.3",
36
34
  "@tsconfig/node14": "1.0.3",
37
- "@types/jest": "29.0.1",
38
35
  "@types/lodash": "4.14.185",
39
36
  "@types/mustache": "4.2.1",
40
- "@types/node": "14.18.28",
37
+ "@types/node": "14.18.30",
41
38
  "@types/node-fetch": "2.6.2",
42
39
  "@types/parse-github-url": "1.0.0",
43
40
  "@types/semver": "7.3.12",
44
- "@typescript-eslint/eslint-plugin": "5.36.2",
45
- "eslint": "8.23.1",
41
+ "@typescript-eslint/eslint-plugin": "5.38.0",
42
+ "eslint": "8.24.0",
46
43
  "eslint-config-lodash": "1.1.0",
47
- "eslint-config-standard-with-typescript": "22.0.0",
44
+ "eslint-config-standard-with-typescript": "23.0.0",
48
45
  "eslint-plugin-eslint-comments": "3.2.0",
49
46
  "eslint-plugin-import": "2.26.0",
47
+ "eslint-plugin-import-newlines": "1.2.3",
50
48
  "eslint-plugin-jest": "27.0.4",
51
49
  "eslint-plugin-lodash": "7.4.0",
52
- "eslint-plugin-n": "15.2.5",
50
+ "eslint-plugin-n": "15.3.0",
53
51
  "eslint-plugin-promise": "6.0.1",
54
- "eslint-plugin-tsdoc": "0.2.16",
52
+ "eslint-plugin-tsdoc": "0.2.17",
55
53
  "eslint-plugin-unicorn": "43.0.2",
56
54
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
57
55
  "jest": "29.0.3",
58
56
  "npm-run-all": "4.1.5",
59
57
  "rimraf": "3.0.2",
60
- "ts-jest": "29.0.0",
58
+ "ts-jest": "29.0.2",
61
59
  "ts-node": "10.9.1",
62
60
  "typescript": "4.8.3",
63
61
  "utility-types": "3.10.0"
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ReleasesFetcher = void 0;
7
+ // TODO [engine:node@>=18]: Replace with global fetch and remove node-fetch from dependencies when the minimum supported Node.js version becomes v18 or later.
7
8
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
9
  const semver_1 = require("semver");
9
- const sleep_promise_1 = __importDefault(require("sleep-promise"));
10
+ const util_1 = require("../../../util");
10
11
  // TODO: Split into multiple classes and functions
11
12
  class ReleasesFetcher {
12
13
  constructor({ options, packageManager }) {
@@ -39,7 +40,7 @@ class ReleasesFetcher {
39
40
  const releases = [];
40
41
  for (const [i, tag] of tags.entries()) {
41
42
  if (i > 0) {
42
- await (0, sleep_promise_1.default)(this.options.fetchSleepTime);
43
+ await (0, util_1.sleep)(this.options.fetchSleepTime);
43
44
  }
44
45
  const release = await this.fetchReleaseByTag({
45
46
  gitRepo,
@@ -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("./sleep"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sleep = void 0;
4
+ const sleep = async (ms) => {
5
+ return await new Promise(resolve => setTimeout(resolve, ms));
6
+ };
7
+ exports.sleep = sleep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -25,39 +25,37 @@
25
25
  "log4js": "6.6.1",
26
26
  "mustache": "4.2.0",
27
27
  "node-fetch": "2.6.7",
28
- "npm-check-updates": "16.1.2",
28
+ "npm-check-updates": "16.3.2",
29
29
  "parse-github-url": "1.0.2",
30
30
  "semver": "7.3.7",
31
- "sleep-promise": "9.1.0",
32
31
  "type-guards": "0.15.0"
33
32
  },
34
33
  "devDependencies": {
35
- "@jest/types": "29.0.3",
36
34
  "@tsconfig/node14": "1.0.3",
37
- "@types/jest": "29.0.1",
38
35
  "@types/lodash": "4.14.185",
39
36
  "@types/mustache": "4.2.1",
40
- "@types/node": "14.18.28",
37
+ "@types/node": "14.18.30",
41
38
  "@types/node-fetch": "2.6.2",
42
39
  "@types/parse-github-url": "1.0.0",
43
40
  "@types/semver": "7.3.12",
44
- "@typescript-eslint/eslint-plugin": "5.36.2",
45
- "eslint": "8.23.1",
41
+ "@typescript-eslint/eslint-plugin": "5.38.0",
42
+ "eslint": "8.24.0",
46
43
  "eslint-config-lodash": "1.1.0",
47
- "eslint-config-standard-with-typescript": "22.0.0",
44
+ "eslint-config-standard-with-typescript": "23.0.0",
48
45
  "eslint-plugin-eslint-comments": "3.2.0",
49
46
  "eslint-plugin-import": "2.26.0",
47
+ "eslint-plugin-import-newlines": "1.2.3",
50
48
  "eslint-plugin-jest": "27.0.4",
51
49
  "eslint-plugin-lodash": "7.4.0",
52
- "eslint-plugin-n": "15.2.5",
50
+ "eslint-plugin-n": "15.3.0",
53
51
  "eslint-plugin-promise": "6.0.1",
54
- "eslint-plugin-tsdoc": "0.2.16",
52
+ "eslint-plugin-tsdoc": "0.2.17",
55
53
  "eslint-plugin-unicorn": "43.0.2",
56
54
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
57
55
  "jest": "29.0.3",
58
56
  "npm-run-all": "4.1.5",
59
57
  "rimraf": "3.0.2",
60
- "ts-jest": "29.0.0",
58
+ "ts-jest": "29.0.2",
61
59
  "ts-node": "10.9.1",
62
60
  "typescript": "4.8.3",
63
61
  "utility-types": "3.10.0"