proceger 2.0.7 → 2.0.8

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/.eslintrc.js CHANGED
@@ -14,5 +14,8 @@ module.exports = {
14
14
  'rules': {
15
15
  'require-jsdoc': 0,
16
16
  },
17
- 'parser': 'babel-eslint',
17
+ "parser": "@babel/eslint-parser",
18
+ "parserOptions": {
19
+ "requireConfigFile": false
20
+ }
18
21
  };
@@ -16,7 +16,7 @@ jobs:
16
16
 
17
17
  strategy:
18
18
  matrix:
19
- node-version: [12.x, 14.x, 15.x]
19
+ node-version: [25.x]
20
20
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
21
 
22
22
  steps:
@@ -14,7 +14,7 @@ jobs:
14
14
  - uses: actions/checkout@v2
15
15
  - uses: actions/setup-node@v1
16
16
  with:
17
- node-version: 12
17
+ node-version: 25
18
18
  - run: npm ci
19
19
  - run: npm test
20
20
 
@@ -25,7 +25,7 @@ jobs:
25
25
  - uses: actions/checkout@v2
26
26
  - uses: actions/setup-node@v1
27
27
  with:
28
- node-version: 12
28
+ node-version: 25
29
29
  registry-url: https://registry.npmjs.org/
30
30
  - run: npm ci
31
31
  - run: npm publish
package/lib/git.js CHANGED
@@ -52,14 +52,19 @@ class GitRepo {
52
52
  }
53
53
 
54
54
  logger.info(`Pulling updates for "${this.#repoPath}" from "${this.#url}".`);
55
- await this.#git.pull();
56
- const revision = await this.#git.revparse('HEAD');
57
- if (revision === this.#revision) {
58
- return false;
55
+ try {
56
+ await this.#git.pull();
57
+ const revision = await this.#git.revparse('HEAD');
58
+ if (revision === this.#revision) {
59
+ return false;
60
+ }
61
+ logger.info(`Got new revision, old=${this.revision}, new=${revision}.`);
62
+ this.#revision = revision;
63
+ return true;
64
+ } catch (e) {
65
+ logger.error('Unable to pull update from git repo.', e);
59
66
  }
60
- logger.info(`Got new revision, old=${this.revision}, new=${revision}.`);
61
- this.#revision = revision;
62
- return true;
67
+ return false;
63
68
  }
64
69
  }
65
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proceger",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "A process manager with web interface.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,7 +33,8 @@
33
33
  "winston-daily-rotate-file": "^4.5.0"
34
34
  },
35
35
  "devDependencies": {
36
- "babel-eslint": "^10.1.0",
36
+ "@babel/core": "^7.28.5",
37
+ "@babel/eslint-parser": "^7.28.5",
37
38
  "chai": "^3.5.0",
38
39
  "chai-as-promised": "^5.3.0",
39
40
  "eslint": "^7.19.0",