triangle-utils 1.4.31 → 1.4.32

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,4 +2,5 @@ export declare class UtilsSES {
2
2
  private readonly ses;
3
3
  constructor(region: string);
4
4
  send_email(recipient: string, subject: string, text: string): Promise<void>;
5
+ admin_alert(text: string): Promise<void>;
5
6
  }
@@ -27,4 +27,7 @@ export class UtilsSES {
27
27
  }
28
28
  });
29
29
  }
30
+ async admin_alert(text) {
31
+ await this.send_email("louishou@triangleanalytics.com", "ADMIN ALERT", text);
32
+ }
30
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.31",
3
+ "version": "1.4.32",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsSES.ts CHANGED
@@ -32,4 +32,8 @@ export class UtilsSES {
32
32
  })
33
33
  }
34
34
 
35
+ async admin_alert(text : string) {
36
+ await this.send_email("louishou@triangleanalytics.com", "ADMIN ALERT", text)
37
+ }
38
+
35
39
  }