@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.
- package/build/events/Consumer.js +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/package.json +1 -1
- package/publish.sh +2 -4
- package/src/events/Consumer.ts +1 -1
- package/src/index.ts +3 -0
package/build/events/Consumer.js
CHANGED
|
@@ -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:
|
|
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
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
|
-
|
|
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
|
package/src/events/Consumer.ts
CHANGED
package/src/index.ts
CHANGED