@skillstew/common 1.0.15 → 1.0.17

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.
@@ -30,7 +30,7 @@ class Consumer {
30
30
  durable: true,
31
31
  });
32
32
  yield Promise.all(interestedEvents.map((eventName) => this._channel.bindQueue(queue.queue, this._exchange, eventName)));
33
- this._channel.consume(queue.queue, this.handleEvent, { noAck: true });
33
+ this._channel.consume(queue.queue, this.handleEvent, { noAck: false });
34
34
  this._initialized = true;
35
35
  });
36
36
  this.handleEvent = (msg) => __awaiter(this, void 0, void 0, function* () {
package/build/index.d.ts CHANGED
@@ -11,3 +11,6 @@ export * from "./types/UserRoles";
11
11
  export * from "./constants/HttpStatus";
12
12
  export * from "./events/AppEvent";
13
13
  export * from "./events/schemas/userEventsSchema";
14
+ export * from "./events/CreateEvent";
15
+ export * from "./events/Consumer";
16
+ export * from "./events/Producer";
package/build/index.js CHANGED
@@ -33,3 +33,6 @@ __exportStar(require("./constants/HttpStatus"), exports);
33
33
  // Events
34
34
  __exportStar(require("./events/AppEvent"), exports);
35
35
  __exportStar(require("./events/schemas/userEventsSchema"), exports);
36
+ __exportStar(require("./events/CreateEvent"), exports);
37
+ __exportStar(require("./events/Consumer"), exports);
38
+ __exportStar(require("./events/Producer"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillstew/common",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "scripts": {
package/publish.sh CHANGED
@@ -18,12 +18,10 @@ git add .
18
18
  # Step 4: Prompt for a commit message
19
19
  echo "Enter commit message:"
20
20
  read COMMIT_MESSAGE
21
- git commit -m "$COMMIT_MESSAGE"
21
+ git commit -m "[common] $COMMIT_MESSAGE"
22
22
 
23
23
  # Step 5: Push to GitHub
24
- echo "Enter remote branch to push to:"
25
- read REMOTE_BRANCH
26
- git push -u origin "$REMOTE_BRANCH"
24
+ git push
27
25
 
28
26
  # Step 6: Publish to npm
29
27
  npm publish
@@ -40,7 +40,7 @@ export class Consumer {
40
40
  ),
41
41
  );
42
42
 
43
- this._channel.consume(queue.queue, this.handleEvent, { noAck: true });
43
+ this._channel.consume(queue.queue, this.handleEvent, { noAck: false });
44
44
 
45
45
  this._initialized = true;
46
46
  };
package/src/index.ts CHANGED
@@ -22,3 +22,6 @@ export * from "./constants/HttpStatus";
22
22
  // Events
23
23
  export * from "./events/AppEvent";
24
24
  export * from "./events/schemas/userEventsSchema";
25
+ export * from "./events/CreateEvent";
26
+ export * from "./events/Consumer";
27
+ export * from "./events/Producer";