@gearbox-protocol/cli-utils 5.72.0 → 5.72.1

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.
@@ -13,7 +13,7 @@ export declare class NotificationsService implements INotificationService {
13
13
  #private;
14
14
  constructor(options: NotificationsServiceOptions, logger?: ILogger);
15
15
  registerRecipient(address: Address, options: NotificationConfig): void;
16
- signl(message: string): void;
16
+ signl(message: string, dedupeKey?: string): void;
17
17
  alert(msg: NotificationLike): void;
18
18
  notify(msg: NotificationLike): void;
19
19
  }
@@ -27,8 +27,8 @@ export class NotificationsService {
27
27
  this.#notifiers.upsert(address, notifier);
28
28
  }
29
29
  }
30
- signl(message) {
31
- this.#signlNotifier?.alert(message);
30
+ signl(message, dedupeKey) {
31
+ this.#signlNotifier?.alert(message, dedupeKey);
32
32
  }
33
33
  alert(msg) {
34
34
  this.#notify(msg, "alert");
@@ -56,9 +56,12 @@ export interface INotificationService {
56
56
  /**
57
57
  * Send an alert to Signl
58
58
  * @param message
59
+ * @param dedupeKey
60
+ * Messages with the same dedupe key will be throttled to avoid spam
61
+ * If not provided, the message will not be throttled
59
62
  * @returns
60
63
  */
61
- signl: (message: string) => void;
64
+ signl: (message: string, dedupeKey?: string) => void;
62
65
  /**
63
66
  * Sends high priority notification
64
67
  * @param message
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/cli-utils",
3
3
  "description": "Utils for creating cli apps",
4
- "version": "5.72.0",
4
+ "version": "5.72.1",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"