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 +4 -1
- package/.github/workflows/node.js.yml +1 -1
- package/.github/workflows/npm-publish.yml +2 -2
- package/lib/git.js +12 -7
- package/package.json +3 -2
package/.eslintrc.js
CHANGED
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
- uses: actions/checkout@v2
|
|
15
15
|
- uses: actions/setup-node@v1
|
|
16
16
|
with:
|
|
17
|
-
node-version:
|
|
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:
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
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",
|