@ajayjbtickets/common 1.0.40 → 1.0.42

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/index.cjs CHANGED
@@ -534,6 +534,7 @@ var Listener = class {
534
534
  );
535
535
  subscription.on("message", (msg) => {
536
536
  const parsedData = this.parseData(msg);
537
+ logger.info(`Message recieved: "${this.subject}"`);
537
538
  this.onMessage(parsedData, msg);
538
539
  });
539
540
  }
@@ -555,6 +556,7 @@ var Publisher = class {
555
556
  if (error) {
556
557
  reject(error);
557
558
  }
559
+ logger.info(`Event published: "${this.subject}"`);
558
560
  resolve(guid);
559
561
  });
560
562
  });
package/dist/index.d.cts CHANGED
@@ -221,8 +221,9 @@ declare abstract class Publisher<T extends Event> {
221
221
  interface Ticket {
222
222
  id: string;
223
223
  name: string;
224
+ slug: string;
224
225
  price: number;
225
- userId: string;
226
+ createdBy: string;
226
227
  }
227
228
  interface TicketCreatedEvent {
228
229
  subject: Subjects.TicketCreated;
package/dist/index.d.ts CHANGED
@@ -221,8 +221,9 @@ declare abstract class Publisher<T extends Event> {
221
221
  interface Ticket {
222
222
  id: string;
223
223
  name: string;
224
+ slug: string;
224
225
  price: number;
225
- userId: string;
226
+ createdBy: string;
226
227
  }
227
228
  interface TicketCreatedEvent {
228
229
  subject: Subjects.TicketCreated;
package/dist/index.js CHANGED
@@ -463,6 +463,7 @@ var Listener = class {
463
463
  );
464
464
  subscription.on("message", (msg) => {
465
465
  const parsedData = this.parseData(msg);
466
+ logger.info(`Message recieved: "${this.subject}"`);
466
467
  this.onMessage(parsedData, msg);
467
468
  });
468
469
  }
@@ -484,6 +485,7 @@ var Publisher = class {
484
485
  if (error) {
485
486
  reject(error);
486
487
  }
488
+ logger.info(`Event published: "${this.subject}"`);
487
489
  resolve(guid);
488
490
  });
489
491
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ajayjbtickets/common",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,26 +31,26 @@
31
31
  "author": "",
32
32
  "license": "ISC",
33
33
  "dependencies": {
34
- "bcrypt": "^6.0.0",
35
- "cookie-session": "^2.1.0",
36
- "dotenv": "^16.5.0",
37
- "express": "^5.1.0",
38
- "jsonwebtoken": "^9.0.2",
39
- "lodash": "^4.17.21",
40
- "node-nats-streaming": "^0.3.2",
41
- "winston": "^3.17.0",
42
- "winston-daily-rotate-file": "^5.0.0",
43
- "zod": "^3.24.4"
34
+ "bcrypt": "6.0.0",
35
+ "cookie-session": "2.1.0",
36
+ "dotenv": "16.5.0",
37
+ "express": "5.1.0",
38
+ "jsonwebtoken": "9.0.2",
39
+ "lodash": "4.17.21",
40
+ "node-nats-streaming": "0.3.2",
41
+ "winston": "3.17.0",
42
+ "winston-daily-rotate-file": "5.0.0",
43
+ "zod": "3.24.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/bcrypt": "^5.0.2",
47
- "@types/cookie-session": "^2.0.49",
48
- "@types/express": "^5.0.1",
49
- "@types/jsonwebtoken": "^9.0.9",
50
- "@types/lodash": "^4.17.17",
51
- "del-cli": "^6.0.0",
52
- "tsup": "^8.4.0",
53
- "tsx": "^4.19.4",
54
- "typescript": "^5.8.3"
46
+ "@types/bcrypt": "5.0.2",
47
+ "@types/cookie-session": "2.0.49",
48
+ "@types/express": "5.0.1",
49
+ "@types/jsonwebtoken": "9.0.9",
50
+ "@types/lodash": "4.17.17",
51
+ "del-cli": "6.0.0",
52
+ "tsup": "8.4.0",
53
+ "tsx": "4.21.0",
54
+ "typescript": "5.8.3"
55
55
  }
56
56
  }