@clairejs/server 3.25.4 → 3.25.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
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.25.5
4
+
5
+ - update packages, remove exit code
6
+
3
7
  #### 3.25.4
4
8
 
5
9
  - update claire orm, claire client
@@ -118,7 +118,7 @@ export class AbstractJobScheduler {
118
118
  const tx = await this.db.createTransaction();
119
119
  if (!jobHandler) {
120
120
  this.logger.info(`Disable job with id: ${job.id} as handler is not found`);
121
- await this.disableJob(job.id || job.id, tx);
121
+ await this.disableJob(job.id, tx);
122
122
  }
123
123
  else {
124
124
  const update = {
@@ -8,7 +8,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { AbstractLogger, ClaireApp, LogContext, getGlobalStore } from "@clairejs/core";
11
- import { ExitCode } from "../common/constants";
12
11
  let ClaireServer = class ClaireServer extends ClaireApp {
13
12
  logger;
14
13
  httpRequestHandler;
@@ -43,11 +42,11 @@ let ClaireServer = class ClaireServer extends ClaireApp {
43
42
  this.logger.debug(`Setting up exception handlers`);
44
43
  process.on("SIGTERM", () => {
45
44
  this.logger.warn("SIGTERM interrupt signal");
46
- return this.stop(ExitCode.SIGTERM_INTERUPTION);
45
+ return this.stop();
47
46
  });
48
47
  process.on("SIGINT", () => {
49
48
  this.logger.warn("SIGINT interrupt signal");
50
- return this.stop(ExitCode.SIGTERM_INTERUPTION);
49
+ return this.stop();
51
50
  });
52
51
  process.on("uncaughtException", (err) => {
53
52
  this.logger.error("uncaughtException", err.name, err.stack);
@@ -57,10 +56,10 @@ let ClaireServer = class ClaireServer extends ClaireApp {
57
56
  });
58
57
  this.booted = true;
59
58
  }
60
- stop(code) {
59
+ stop() {
61
60
  this.logger.debug("Server is shutting down");
62
61
  this.exit();
63
- process.exit(code);
62
+ process.exit(0);
64
63
  }
65
64
  };
66
65
  ClaireServer = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.25.4",
3
+ "version": "3.25.5",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -33,9 +33,9 @@
33
33
  "ws": "^7.5.5"
34
34
  },
35
35
  "peerDependencies": {
36
- "@clairejs/client": "^3.5.0",
37
- "@clairejs/core": "^3.8.13",
38
- "@clairejs/orm": "^3.16.31"
36
+ "@clairejs/client": "^3.5.1",
37
+ "@clairejs/core": "^3.9.0",
38
+ "@clairejs/orm": "^3.17.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/cookie-parser": "^1.4.3",
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- //@internal
2
- export const ExitCode = {
3
- SIGTERM_INTERUPTION: -1,
4
- SIGINT_INTERUPTION: -2,
5
- UNCAUGHT_EXCEPTION: -3,
6
- UNHANDLED_REJECTION: -4,
7
- };