@cap-js-community/event-queue 0.1.50 → 0.1.52

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/cds-plugin.js CHANGED
@@ -5,7 +5,7 @@ const cds = require("@sap/cds");
5
5
  const eventQueue = require("./src");
6
6
 
7
7
  if (cds.env.eventQueue && cds.env.eventQueue.plugin) {
8
- cds.on("bootstrap", async () => {
8
+ cds.on("serving", async () => {
9
9
  await eventQueue.initialize();
10
10
  });
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js-community/event-queue",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "event queue for cds",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -38,18 +38,25 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@sap/eslint-plugin-cds": "2.6.3",
41
- "@sap/cds-dk": "7.0.0",
41
+ "@sap/cds-dk": "7.0.3",
42
42
  "hdb": "0.19.5",
43
43
  "eslint-plugin-node": "11.1.0",
44
44
  "sqlite3": "5.1.6",
45
45
  "express": "4.18.2",
46
- "@sap/cds": "7.0.0",
46
+ "@sap/cds": "7.1.0",
47
47
  "eslint": "^8.39.0",
48
48
  "eslint-config-prettier": "^8.8.0",
49
49
  "eslint-plugin-jest": "^27.2.1",
50
50
  "jest": "^29.5.0",
51
51
  "prettier": "^2.8.8"
52
52
  },
53
+ "cds": {
54
+ "requires": {
55
+ "event-queue": {
56
+ "model": "@cap-js-community/event-queue"
57
+ }
58
+ }
59
+ },
53
60
  "author": "Maximilian Gruenfelder <maximilian.gruenfelder@sap.com>",
54
61
  "license": "Apache-2.0"
55
62
  }
@@ -15,12 +15,10 @@ const ERROR_CODES = {
15
15
 
16
16
  const ERROR_CODES_META = {
17
17
  [ERROR_CODES.WRONG_TX_USAGE]: {
18
- message:
19
- "Usage of this.tx|this.context is not allowed if parallel event processing is enabled",
18
+ message: "Usage of this.tx|this.context is not allowed if parallel event processing is enabled",
20
19
  },
21
20
  [ERROR_CODES.UNKNOWN_EVENT_TYPE]: {
22
- message:
23
- "The event type and subType configuration is not configured! Maintain the combination in the config file.",
21
+ message: "The event type and subType configuration is not configured! Maintain the combination in the config file.",
24
22
  },
25
23
  [ERROR_CODES.NOT_INITIALIZED]: {
26
24
  message:
@@ -33,16 +31,13 @@ const ERROR_CODES_META = {
33
31
  message: "disabled reconnect, because we are not running on cloud foundry",
34
32
  },
35
33
  [ERROR_CODES.MISSING_TABLE_DEFINITION]: {
36
- message:
37
- "Could not find table in csn. Make sure the provided table name is correct and the table is known by CDS.",
34
+ message: "Could not find table in csn. Make sure the provided table name is correct and the table is known by CDS.",
38
35
  },
39
36
  [ERROR_CODES.MISSING_ELEMENT_IN_TABLE]: {
40
- message:
41
- "The provided table doesn't match the required structure. At least the following element is missing.",
37
+ message: "The provided table doesn't match the required structure. At least the following element is missing.",
42
38
  },
43
39
  [ERROR_CODES.TYPE_MISMATCH_TABLE]: {
44
- message:
45
- "At least one field in the provided table doesn't have the expected data type.",
40
+ message: "At least one field in the provided table doesn't have the expected data type.",
46
41
  },
47
42
  };
48
43