jarvis-ci 1.0.4 → 1.0.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/dist/server.js +3 -3
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -9,7 +9,7 @@ export class Server {
|
|
|
9
9
|
webhooks;
|
|
10
10
|
configCommand;
|
|
11
11
|
pipelineCommand;
|
|
12
|
-
smee;
|
|
12
|
+
smee = null;
|
|
13
13
|
configManager;
|
|
14
14
|
constructor() {
|
|
15
15
|
this.configManager = ConfigManager.getInstance();
|
|
@@ -25,7 +25,7 @@ export class Server {
|
|
|
25
25
|
logger: console,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
else {
|
|
28
|
+
else if (this.configManager.getConfig().server.local && this.configManager.getConfig().server.proxy === "") {
|
|
29
29
|
throw new Error("⚠️ Local server is enabled but no proxy URL is configured. Please set the proxy URL from https://smee.io to receive webhooks from GitHub.");
|
|
30
30
|
}
|
|
31
31
|
this.registerHandlers();
|
|
@@ -69,7 +69,7 @@ export class Server {
|
|
|
69
69
|
}).listen(config.server.port, () => {
|
|
70
70
|
console.log(`Server running on ${config.server.port}`);
|
|
71
71
|
});
|
|
72
|
-
if (this.configManager.getConfig().server.local && this.configManager.getConfig().server.proxy !== "") {
|
|
72
|
+
if (this.configManager.getConfig().server.local && this.configManager.getConfig().server.proxy !== "" && this.smee !== null) {
|
|
73
73
|
this.smee.start();
|
|
74
74
|
}
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jarvis-ci",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "This npm package is light weight CI/CD tool. the goal is to achieve simplicity and local machine CI/CD execution. it is configured through YAML for commands.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|