@hg-ts/events 0.2.14 → 0.2.15

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.
@@ -2,14 +2,12 @@ export type EventParams<Body> = {
2
2
  body: Body;
3
3
  occurredOn?: Date;
4
4
  traceId?: string;
5
- localTraceId?: string;
6
5
  };
7
6
  export declare abstract class BaseEvent<Body = unknown> {
8
7
  readonly occurredOn: Date;
9
8
  readonly name: string;
10
9
  readonly body: Body;
11
10
  readonly traceId: Nullable<string>;
12
- readonly localTraceId: Nullable<string>;
13
- constructor({ body, occurredOn, traceId, localTraceId }: EventParams<Body>);
11
+ constructor({ body, occurredOn, traceId }: EventParams<Body>);
14
12
  }
15
13
  //# sourceMappingURL=base.event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.event.d.ts","sourceRoot":"","sources":["../src/base.event.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,8BAAsB,SAAS,CAAC,IAAI,GAAG,OAAO;IAC7C,SAAgB,UAAU,EAAE,IAAI,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B,SAAgB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1C,SAAgB,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAE5B,EAAE,IAAI,EAAE,UAAuB,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC;CAQ9F"}
1
+ {"version":3,"file":"base.event.d.ts","sourceRoot":"","sources":["../src/base.event.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,8BAAsB,SAAS,CAAC,IAAI,GAAG,OAAO;IAC7C,SAAgB,UAAU,EAAE,IAAI,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B,SAAgB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAEvB,EAAE,IAAI,EAAE,UAAuB,EAAE,OAAO,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC;CAOhF"}
@@ -6,13 +6,11 @@ class BaseEvent {
6
6
  name;
7
7
  body;
8
8
  traceId;
9
- localTraceId;
10
- constructor({ body, occurredOn = new Date(), traceId, localTraceId }) {
9
+ constructor({ body, occurredOn = new Date(), traceId }) {
11
10
  this.body = body;
12
11
  this.occurredOn = occurredOn;
13
12
  this.name = this.constructor.name;
14
13
  this.traceId = traceId ?? null;
15
- this.localTraceId = localTraceId ?? null;
16
14
  }
17
15
  }
18
16
  exports.BaseEvent = BaseEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"base.event.js","sourceRoot":"","sources":["../src/base.event.ts"],"names":[],"mappings":";;;AAOA,MAAsB,SAAS;IACd,UAAU,CAAO;IACjB,IAAI,CAAS;IACb,IAAI,CAAO;IAEX,OAAO,CAAmB;IAC1B,YAAY,CAAmB;IAE/C,YAAmB,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,YAAY,EAAqB;QAC7F,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAElC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,IAAI,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,YAAY,IAAI,IAAI,CAAC;IAC1C,CAAC;CACD;AAhBD,8BAgBC"}
1
+ {"version":3,"file":"base.event.js","sourceRoot":"","sources":["../src/base.event.ts"],"names":[],"mappings":";;;AAMA,MAAsB,SAAS;IACd,UAAU,CAAO;IACjB,IAAI,CAAS;IACb,IAAI,CAAO;IAEX,OAAO,CAAmB;IAE1C,YAAmB,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,EAAE,EAAE,OAAO,EAAqB;QAC/E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAElC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,IAAI,CAAC;IAChC,CAAC;CACD;AAdD,8BAcC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hg-ts/events",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -17,10 +17,10 @@
17
17
  "test:dev": "yarn build:dev --onSuccess \"yarn test\""
18
18
  },
19
19
  "devDependencies": {
20
- "@hg-ts-config/typescript": "0.2.14",
21
- "@hg-ts/linter": "0.2.14",
22
- "@hg-ts/tests": "0.2.14",
23
- "@hg-ts/types": "0.2.14",
20
+ "@hg-ts-config/typescript": "0.2.15",
21
+ "@hg-ts/linter": "0.2.15",
22
+ "@hg-ts/tests": "0.2.15",
23
+ "@hg-ts/types": "0.2.15",
24
24
  "@types/node": "22.10.6",
25
25
  "eslint": "9.18.0",
26
26
  "reflect-metadata": "0.2.2",