@onecx/accelerator 8.0.0-rc.1 → 8.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/accelerator",
3
- "version": "8.0.0-rc.1",
3
+ "version": "8.0.0-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,8 @@
10
10
  "tslib": "^2.6.3",
11
11
  "rxjs": "^7.8.1",
12
12
  "@nx/devkit": "^22.0.2",
13
- "@onecx/nx-migration-utils": "^8.0.0-rc.1"
13
+ "@onecx/nx-migration-utils": "^8.0.0-rc.2",
14
+ "debug": "^4.4.3"
14
15
  },
15
16
  "type": "commonjs",
16
17
  "main": "./src/index.js",
package/src/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './lib/utils/is-test.utils';
9
9
  export * from './lib/utils/normalize-locales.utils';
10
10
  export * from './lib/utils/get-normalized-browser-locales.utils';
11
11
  export * from './lib/utils/gatherer';
12
+ export * from './lib/utils/create-logger.utils';
package/src/index.js CHANGED
@@ -12,4 +12,5 @@ tslib_1.__exportStar(require("./lib/utils/is-test.utils"), exports);
12
12
  tslib_1.__exportStar(require("./lib/utils/normalize-locales.utils"), exports);
13
13
  tslib_1.__exportStar(require("./lib/utils/get-normalized-browser-locales.utils"), exports);
14
14
  tslib_1.__exportStar(require("./lib/utils/gatherer"), exports);
15
+ tslib_1.__exportStar(require("./lib/utils/create-logger.utils"), exports);
15
16
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/accelerator/src/index.ts"],"names":[],"mappings":";;;AAAA,4DAAiC;AACjC,uEAA4C;AAC5C,mFAAwD;AACxD,qEAA0C;AAC1C,sEAA2C;AAC3C,iEAAsC;AACtC,iEAAsC;AACtC,oEAAyC;AACzC,8EAAmD;AACnD,2FAAgE;AAChE,+DAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/accelerator/src/index.ts"],"names":[],"mappings":";;;AAAA,4DAAiC;AACjC,uEAA4C;AAC5C,mFAAwD;AACxD,qEAA0C;AAC1C,sEAA2C;AAC3C,iEAAsC;AACtC,iEAAsC;AACtC,oEAAyC;AACzC,8EAAmD;AACnD,2FAAgE;AAChE,+DAAoC;AACpC,0EAA+C"}
@@ -2,13 +2,11 @@ declare global {
2
2
  interface Window {
3
3
  '@onecx/accelerator': {
4
4
  gatherer?: {
5
- debug?: string[];
6
5
  promises?: {
7
6
  [id: number]: Promise<unknown>[];
8
7
  };
9
8
  };
10
9
  topic?: {
11
- debug?: string[];
12
10
  statsEnabled?: boolean;
13
11
  stats?: {
14
12
  messagesPublished?: {
@@ -24,6 +22,7 @@ declare global {
24
22
  };
25
23
  useBroadcastChannel?: boolean;
26
24
  initDate?: number;
25
+ tabId?: number;
27
26
  };
28
27
  };
29
28
  }
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  window['@onecx/accelerator'] ??= {};
4
4
  window['@onecx/accelerator'].gatherer ??= {};
5
5
  window['@onecx/accelerator'].gatherer.promises ??= {};
6
- window['@onecx/accelerator'].gatherer.debug ??= [];
7
6
  window['@onecx/accelerator'].topic ??= {};
8
7
  window['@onecx/accelerator'].topic.useBroadcastChannel ??= true;
9
8
  window['@onecx/accelerator'].topic.initDate ??= Date.now();
9
+ window['@onecx/accelerator'].topic.tabId = Math.ceil(globalThis.performance.now());
10
10
  exports.default = globalThis;
11
11
  //# sourceMappingURL=declarations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"declarations.js","sourceRoot":"","sources":["../../../../../libs/accelerator/src/lib/declarations.ts"],"names":[],"mappings":";;AA2BA,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAA;AACnC,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAA;AAC5C,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,QAAQ,KAAK,EAAE,CAAA;AACrD,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,CAAA;AAClD,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,KAAK,EAAE,CAAA;AACzC,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,mBAAmB,KAAK,IAAI,CAAA;AAC/D,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,GAAG,EAAE,CAAA;AAE1D,kBAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"declarations.js","sourceRoot":"","sources":["../../../../../libs/accelerator/src/lib/declarations.ts"],"names":[],"mappings":";;AA0BA,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAA;AACnC,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAA;AAC5C,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,QAAQ,KAAK,EAAE,CAAA;AACrD,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,KAAK,EAAE,CAAA;AACzC,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,mBAAmB,KAAK,IAAI,CAAA;AAC/D,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,GAAG,EAAE,CAAA;AAC1D,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAA;AAElF,kBAAe,UAAU,CAAA"}
@@ -1,9 +1,11 @@
1
1
  import { TopicMessage } from './topic-message';
2
+ import { ComponentLogger } from '../utils/create-logger.utils';
2
3
  export declare class TopicPublisher<T> {
3
4
  name: string;
4
5
  version: number;
5
6
  protected publishPromiseResolver: Record<number, () => void>;
6
7
  protected publishBroadcastChannel: BroadcastChannel | undefined;
8
+ protected readonly baseLogger: ComponentLogger;
7
9
  constructor(name: string, version: number);
8
10
  publish(value: T): Promise<void>;
9
11
  protected createBroadcastChannel(): void;
@@ -3,14 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TopicPublisher = void 0;
4
4
  const topic_data_message_1 = require("./topic-data-message");
5
5
  const topic_resolve_message_1 = require("./topic-resolve-message");
6
+ const logger_utils_1 = require("../utils/logger.utils");
6
7
  class TopicPublisher {
7
8
  name;
8
9
  version;
9
10
  publishPromiseResolver = {};
10
11
  publishBroadcastChannel;
12
+ baseLogger;
11
13
  constructor(name, version) {
12
14
  this.name = name;
13
15
  this.version = version;
16
+ this.baseLogger = (0, logger_utils_1.createLogger)(`TopicPublisher:${this.name}`);
14
17
  }
15
18
  publish(value) {
16
19
  const message = new topic_data_message_1.TopicDataMessage("TopicNext" /* TopicMessageType.TopicNext */, this.name, this.version, value);
@@ -28,13 +31,13 @@ class TopicPublisher {
28
31
  }
29
32
  if (window['@onecx/accelerator']?.topic?.useBroadcastChannel) {
30
33
  if (typeof BroadcastChannel === 'undefined') {
31
- console.log('BroadcastChannel not supported. Disabling BroadcastChannel for topic publisher');
34
+ this.baseLogger.info('BroadcastChannel not supported. Disabling BroadcastChannel for topic publisher');
32
35
  window['@onecx/accelerator'] ??= {};
33
36
  window['@onecx/accelerator'].topic ??= {};
34
37
  window['@onecx/accelerator'].topic.useBroadcastChannel = false;
35
38
  }
36
39
  else {
37
- this.publishBroadcastChannel = new BroadcastChannel(`Topic-${this.name}|${this.version}`);
40
+ this.publishBroadcastChannel = new BroadcastChannel(`Topic-${this.name}|${this.version}-${window['@onecx/accelerator'].topic.tabId}`);
38
41
  }
39
42
  }
40
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"topic-publisher.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/topic/topic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QACpD,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;QAClC,CAAC;IACH,CAAC;CACF;AAhDD,wCAgDC"}
@@ -3,6 +3,7 @@ import { TopicDataMessage } from './topic-data-message';
3
3
  import { TopicPublisher } from './topic-publisher';
4
4
  import '../declarations';
5
5
  export declare class Topic<T> extends TopicPublisher<T> implements Subscribable<T> {
6
+ private readonly logger;
6
7
  protected isInitializedPromise: Promise<void>;
7
8
  protected data: BehaviorSubject<TopicDataMessage<T> | undefined>;
8
9
  protected isInit: boolean;
@@ -51,7 +52,6 @@ export declare class Topic<T> extends TopicPublisher<T> implements Subscribable<
51
52
  private onWindowMessage;
52
53
  private onBroadcastChannelMessage;
53
54
  private disableBroadcastChannel;
54
- private isLogEnabled;
55
55
  private handleTopicResolveMessage;
56
56
  private handleTopicGetMessage;
57
57
  private handleTopicNextMessage;
@@ -7,7 +7,9 @@ const topic_message_1 = require("./topic-message");
7
7
  const topic_publisher_1 = require("./topic-publisher");
8
8
  require("../declarations");
9
9
  const logs_utils_1 = require("../utils/logs.utils");
10
+ const logger_utils_1 = require("../utils/logger.utils");
10
11
  class Topic extends topic_publisher_1.TopicPublisher {
12
+ logger = (0, logger_utils_1.createLogger)(`Topic:${this.name}`);
11
13
  isInitializedPromise;
12
14
  data = new rxjs_1.BehaviorSubject(undefined);
13
15
  isInit = false;
@@ -21,13 +23,13 @@ class Topic extends topic_publisher_1.TopicPublisher {
21
23
  window['@onecx/accelerator'].topic.initDate ??= Date.now();
22
24
  if (window['@onecx/accelerator']?.topic?.useBroadcastChannel) {
23
25
  if (typeof BroadcastChannel === 'undefined') {
24
- console.log('BroadcastChannel not supported. Disabling BroadcastChannel for topic');
26
+ this.logger.info('BroadcastChannel not supported. Disabling BroadcastChannel for topic');
25
27
  window['@onecx/accelerator'] ??= {};
26
28
  window['@onecx/accelerator'].topic ??= {};
27
29
  window['@onecx/accelerator'].topic.useBroadcastChannel = false;
28
30
  }
29
31
  else {
30
- this.readBroadcastChannel = new BroadcastChannel(`Topic-${this.name}|${this.version}`);
32
+ this.readBroadcastChannel = new BroadcastChannel(`Topic-${this.name}|${this.version}-${window['@onecx/accelerator'].topic.tabId}`);
31
33
  }
32
34
  }
33
35
  if ((0, logs_utils_1.isStatsEnabled)()) {
@@ -103,8 +105,8 @@ class Topic extends topic_publisher_1.TopicPublisher {
103
105
  this.publishBroadcastChannel?.close();
104
106
  }
105
107
  onWindowMessage(m) {
106
- if (this.isLogEnabled() && m.data?.name === this.name && m.data?.version === this.version) {
107
- console.log('Topic', this.name, ':', this.version, 'received message via window', m.data);
108
+ if (m.data?.name === this.name && m.data?.version === this.version) {
109
+ this.logger.debug('received message via window', m.data);
108
110
  }
109
111
  switch (m.data.type) {
110
112
  case "TopicNext" /* TopicMessageType.TopicNext */: {
@@ -129,9 +131,7 @@ class Topic extends topic_publisher_1.TopicPublisher {
129
131
  }
130
132
  }
131
133
  onBroadcastChannelMessage(m) {
132
- if (this.isLogEnabled()) {
133
- console.log('Topic', this.name, ':', this.version, 'received message', m.data);
134
- }
134
+ this.logger.debug('received message', m.data);
135
135
  switch (m.data.type) {
136
136
  case "TopicNext" /* TopicMessageType.TopicNext */: {
137
137
  this.handleTopicNextMessage(m);
@@ -153,13 +153,10 @@ class Topic extends topic_publisher_1.TopicPublisher {
153
153
  window['@onecx/accelerator'] ??= {};
154
154
  window['@onecx/accelerator'].topic ??= {};
155
155
  if (window['@onecx/accelerator'].topic.useBroadcastChannel === true) {
156
- console.log('Disabling BroadcastChannel for topic');
156
+ this.logger.info('Disabling BroadcastChannel for topic');
157
157
  }
158
158
  window['@onecx/accelerator'].topic.useBroadcastChannel = false;
159
159
  }
160
- isLogEnabled() {
161
- return window['@onecx/accelerator']?.topic?.debug?.includes(this.name);
162
- }
163
160
  handleTopicResolveMessage(m) {
164
161
  const publishPromiseResolver = this.publishPromiseResolver[m.data.resolveId];
165
162
  if (publishPromiseResolver) {
@@ -170,7 +167,7 @@ class Topic extends topic_publisher_1.TopicPublisher {
170
167
  delete this.publishPromiseResolver[m.data.resolveId];
171
168
  }
172
169
  catch (error) {
173
- console.error('Error handling TopicResolveMessage:', error);
170
+ this.logger.error('Error handling TopicResolveMessage:', error);
174
171
  }
175
172
  }
176
173
  }
@@ -193,7 +190,7 @@ class Topic extends topic_publisher_1.TopicPublisher {
193
190
  this.isInit &&
194
191
  m.data.timestamp === this.data.value.timestamp &&
195
192
  ((m.data.id && !this.data.value.id) || (!m.data.id && this.data.value.id))) {
196
- console.warn('Message was dropped because of equal timestamps, because there was an old style message in the system. Please upgrade all libraries to the latest version.');
193
+ this.logger.warn('Message was dropped because of equal timestamps, because there was an old style message in the system. Please upgrade all libraries to the latest version.');
197
194
  }
198
195
  }
199
196
  }
@@ -1 +1 @@
1
- {"version":3,"file":"topic.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/topic/topic.ts"],"names":[],"mappings":";;;AAAA,8CAA4C;AAC5C,+BAQa;AAEb,mDAA8C;AAE9C,uDAAkD;AAElD,2BAAwB;AACxB,oDAA2E;AAE3E,MAAa,KAAS,SAAQ,gCAAiB;IACnC,oBAAoB,CAAe;IACnC,IAAI,GAAG,IAAI,sBAAe,CAAkC,SAAS,CAAC,CAAA;IAEtE,MAAM,GAAG,KAAK,CAAA;IAChB,kBAAkB,CAA4C;IACrD,mBAAmB,GAAG,CAAC,CAA6B,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IAC9E,oBAAoB,CAA8B;IAErE,YAAY,IAAY,EAAE,OAAe,EAAE,cAAc,GAAG,IAAI;QAC9D,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QACpB,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAA;QACnC,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,KAAK,EAAE,CAAA;QACzC,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,QAAQ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AC7D,CAAC;YACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;YAClB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAsB,CAAC,CAAC,IAAI,CAAC,CAAA;YAC3C,IAAI,CAAC,kBAAkB,EAAE,CAAA;QAC3B,CAAC;aAAM,IACL,IAAI,CAAC,IAAI,CAAC,KAAK;YACf,IAAI,CAAC,MAAM;YACX,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS;YAC9C,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAC1E,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,4JAA4J,CAC7J,CAAA;QACH,CAAC;IACH,CAAC;CACF;AAjTD,sBAiTC"}
@@ -0,0 +1,42 @@
1
+ import { type Debugger } from "debug";
2
+ export type LogLevel = "debug" | "info" | "warn" | "error";
3
+ /**
4
+ * Logger for a single component.
5
+ *
6
+ * Each property is a `debug` instance with a namespace of the form:
7
+ * `<libName>:<location>:<level>`
8
+ */
9
+ export interface ComponentLogger {
10
+ /** Logs with namespace `<libName>:<location>:debug`. */
11
+ debug: Debugger;
12
+ /** Logs with namespace `<libName>:<location>:info`. */
13
+ info: Debugger;
14
+ /** Logs with namespace `<libName>:<location>:warn`. */
15
+ warn: Debugger;
16
+ /** Logs with namespace `<libName>:<location>:error`. */
17
+ error: Debugger;
18
+ }
19
+ /**
20
+ * Function that creates a {@link ComponentLogger} for a given component name.
21
+ *
22
+ * @param location - Where the logger is used (e.g. component, service, directive, pipe, guard).
23
+ * @returns A logger whose namespaces include the location.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const createLogger = createLoggerFactory("myLib");
28
+ * const log = createLogger("AuthPanel");
29
+ * log.warn("token missing");
30
+ * ```
31
+ */
32
+ export type CreateLogger = (location: string) => ComponentLogger;
33
+ /**
34
+ * Creates a {@link CreateLogger} function for a given library name.
35
+ *
36
+ * Namespaces will follow the schema:
37
+ * `<libName>:<location>:<level>`
38
+ *
39
+ * @param libOrAppName - The library (or application) namespace prefix.
40
+ * @returns A function that creates component loggers.
41
+ */
42
+ export declare function createLoggerFactory(libOrAppName: string): CreateLogger;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createLoggerFactory = createLoggerFactory;
4
+ const debug_1 = require("debug");
5
+ // Bind debug.log to console.log for proper output
6
+ debug_1.default.log = console.log.bind(console);
7
+ /**
8
+ * Creates a {@link CreateLogger} function for a given library name.
9
+ *
10
+ * Namespaces will follow the schema:
11
+ * `<libName>:<location>:<level>`
12
+ *
13
+ * @param libOrAppName - The library (or application) namespace prefix.
14
+ * @returns A function that creates component loggers.
15
+ */
16
+ function createLoggerFactory(libOrAppName) {
17
+ const prefix = libOrAppName.trim();
18
+ if (!prefix)
19
+ throw new Error("createLoggerFactory(libOrAppName): libOrAppName must be a non-empty string.");
20
+ /**
21
+ * Creates a logger for a specific location.
22
+ *
23
+ * Note: This function is produced by {@link createLoggerFactory}. Its TS-Doc is
24
+ * provided via the {@link CreateLogger} type so editors can show it in IntelliSense.
25
+ */
26
+ const createLogger = (location) => {
27
+ const trimmedLocation = location.trim();
28
+ if (!trimmedLocation)
29
+ throw new Error("createLogger(location): location must be a non-empty string.");
30
+ const ns = (level) => `${prefix}:${trimmedLocation}:${level}`;
31
+ return {
32
+ debug: (0, debug_1.default)(ns("debug")),
33
+ info: (0, debug_1.default)(ns("info")),
34
+ warn: (0, debug_1.default)(ns("warn")),
35
+ error: (0, debug_1.default)(ns("error")),
36
+ };
37
+ };
38
+ return createLogger;
39
+ }
40
+ //# sourceMappingURL=create-logger.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-logger.utils.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/utils/create-logger.utils.ts"],"names":[],"mappings":";;AAmDA,kDAyBC;AA5ED,iCAA6C;AAuC7C,kDAAkD;AAClD,eAAK,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAEtC;;;;;;;;GAQG;AACH,SAAgB,mBAAmB,CAAC,YAAoB;IACtD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;IACnC,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAC;IAE5G;;;;;OAKG;IACH,MAAM,YAAY,GAAiB,CAAC,QAAgB,EAAE,EAAE;QACtD,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,eAAe;YAAE,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAEtG,MAAM,EAAE,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,GAAG,MAAM,IAAI,eAAe,IAAI,KAAK,EAAE,CAAC;QAExE,OAAO;YACL,KAAK,EAAE,IAAA,eAAK,EAAC,EAAE,CAAC,OAAO,CAAC,CAAC;YACzB,IAAI,EAAE,IAAA,eAAK,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACvB,IAAI,EAAE,IAAA,eAAK,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACvB,KAAK,EAAE,IAAA,eAAK,EAAC,EAAE,CAAC,OAAO,CAAC,CAAC;SAC1B,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -3,6 +3,7 @@ import '../declarations';
3
3
  * Implementation of the Scatter-Gather pattern.
4
4
  */
5
5
  export declare class Gatherer<Request, Response> {
6
+ private readonly logger;
6
7
  private static id;
7
8
  private readonly topic;
8
9
  private readonly ownIds;
@@ -13,6 +14,5 @@ export declare class Gatherer<Request, Response> {
13
14
  gather(request: Request): Promise<Response[]>;
14
15
  private logReceivedIfDebug;
15
16
  private logAnsweredIfDebug;
16
- private logIfDebug;
17
17
  private isOwnerOfRequest;
18
18
  }
@@ -2,11 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Gatherer = void 0;
4
4
  const topic_1 = require("../topic/topic");
5
+ const logger_utils_1 = require("./logger.utils");
5
6
  require("../declarations");
6
7
  /**
7
8
  * Implementation of the Scatter-Gather pattern.
8
9
  */
9
10
  class Gatherer {
11
+ logger;
10
12
  static id = 0;
11
13
  topic;
12
14
  ownIds = new Set();
@@ -14,14 +16,15 @@ class Gatherer {
14
16
  topicName;
15
17
  constructor(name, version, callback) {
16
18
  this.topicName = name;
17
- this.logIfDebug(name, `Gatherer ${name}: ${version} created`);
19
+ this.logger = (0, logger_utils_1.createLogger)(`Gatherer:${name}`);
20
+ this.logger.debug(`Gatherer ${name}: ${version} created`);
18
21
  this.topic = new topic_1.Topic(name, version, false);
19
22
  // Perform a callback every time a request is received in the topic.
20
23
  this.topicSub = this.topic.subscribe((m) => {
21
24
  if (!this.isOwnerOfRequest(m) && window['@onecx/accelerator']?.gatherer?.promises) {
22
25
  this.logReceivedIfDebug(name, version, m);
23
26
  if (!window['@onecx/accelerator'].gatherer.promises[m.id]) {
24
- console.warn('Expected an array of promises to gather for id ', m.id, ' but the id was not present');
27
+ this.logger.warn('Expected an array of promises to gather for id ', m.id, ' but the id was not present');
25
28
  return;
26
29
  }
27
30
  let resolve;
@@ -36,7 +39,7 @@ class Gatherer {
36
39
  });
37
40
  }
38
41
  destroy() {
39
- this.logIfDebug(this.topic.name, `Gatherer ${this.topic.name}: ${this.topic.version} destroyed`);
42
+ this.logger.debug(`Gatherer ${this.topic.name}: ${this.topic.version} destroyed`);
40
43
  this.topicSub?.unsubscribe();
41
44
  this.topic.destroy();
42
45
  for (const id of this.ownIds) {
@@ -63,20 +66,15 @@ class Gatherer {
63
66
  delete window['@onecx/accelerator'].gatherer.promises[id];
64
67
  this.ownIds.delete(id);
65
68
  return Promise.all(promises).then((v) => {
66
- this.logIfDebug(this.topicName, 'Finished gathering responses', v);
69
+ this.logger.debug('Finished gathering responses', v);
67
70
  return v;
68
71
  });
69
72
  }
70
73
  logReceivedIfDebug(name, version, m) {
71
- this.logIfDebug(name, 'Gatherer ' + name + ': ' + version + ' received request ' + m.request);
74
+ this.logger.debug('Gatherer ' + name + ': ' + version + ' received request ' + m.request);
72
75
  }
73
76
  logAnsweredIfDebug(name, version, m, response) {
74
- this.logIfDebug(name, 'Gatherer ' + name + ': ' + version + ' answered request ' + m.request + ' with response', response);
75
- }
76
- logIfDebug(name, ...args) {
77
- if (window['@onecx/accelerator']?.gatherer?.debug?.includes(name)) {
78
- console.log(...args);
79
- }
77
+ this.logger.debug('Gatherer ' + name + ': ' + version + ' answered request ' + m.request + ' with response', response);
80
78
  }
81
79
  isOwnerOfRequest(m) {
82
80
  return this.ownIds.has(m.id);
@@ -1 +1 @@
1
- {"version":3,"file":"gatherer.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/utils/gatherer.ts"],"names":[],"mappings":";;;AACA,0CAAsC;AAEtC,2BAAwB;AAExB;;GAEG;AACH,MAAa,QAAQ;IACX,MAAM,CAAC,EAAE,GAAG,CAAC,CAAA;IACJ,KAAK,CAAyC;IAC9C,MAAM,GAAG,IAAI,GAAG,EAAU,CAAA;IAC1B,QAAQ,GAAwB,IAAI,CAAA;IACpC,SAAS,CAAQ;IAElC,YAAY,IAAY,EAAE,OAAe,EAAE,QAAiD;QAC1F,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY,IAAI,KAAK,OAAO,UAAU,CAAC,CAAA;QAE7D,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAmC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;QAC9E,oEAA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AE,CAAC,CAAA;IAC9B,CAAC;;AArFH,4BAsFC"}
@@ -0,0 +1 @@
1
+ export declare const createLogger: import("./create-logger.utils").CreateLogger;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createLogger = void 0;
4
+ // This file is not planned to be in the index.ts so it is private to this lib
5
+ const create_logger_utils_1 = require("./create-logger.utils");
6
+ exports.createLogger = (0, create_logger_utils_1.createLoggerFactory)('@onecx/accelerator');
7
+ //# sourceMappingURL=logger.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.utils.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/utils/logger.utils.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AAC9E,+DAA2D;AAE9C,QAAA,YAAY,GAAG,IAAA,yCAAmB,EAAC,oBAAoB,CAAC,CAAA"}