@levrbet/shared 0.4.23 → 0.4.25

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.
@@ -1,2 +1,2 @@
1
1
  import { AlertMessage, LevrEnv } from "../types";
2
- export declare const sendAdminAlert: (message: AlertMessage, levrEnv: LevrEnv) => void;
2
+ export declare const sendAdminAlert: (message: AlertMessage, levrEnv: LevrEnv) => Promise<void>;
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.sendAdminAlert = void 0;
7
7
  const config_1 = require("../config");
8
8
  const axios_1 = __importDefault(require("axios"));
9
- const sendAdminAlert = (message, levrEnv) => {
9
+ const sendAdminAlert = async (message, levrEnv) => {
10
10
  const alertEndpoints = `${config_1.allUrls[levrEnv].lambda}/alerting/send`;
11
- axios_1.default.post(alertEndpoints, { body: message });
11
+ await axios_1.default.post(alertEndpoints, { ...message });
12
12
  };
13
13
  exports.sendAdminAlert = sendAdminAlert;
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/alerts/index.ts"],"names":[],"mappings":";;;;;;AACA,sCAAmC;AACnC,kDAAyB;AAElB,MAAM,cAAc,GAAG,CAAC,OAAqB,EAAE,OAAgB,EAAE,EAAE;IACtE,MAAM,cAAc,GAAG,GAAG,gBAAO,CAAC,OAAO,CAAC,CAAC,MAAM,gBAAgB,CAAA;IACjE,eAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;AACjD,CAAC,CAAA;AAHY,QAAA,cAAc,kBAG1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/alerts/index.ts"],"names":[],"mappings":";;;;;;AACA,sCAAmC;AACnC,kDAAyB;AAElB,MAAM,cAAc,GAAG,KAAK,EAAE,OAAqB,EAAE,OAAgB,EAAE,EAAE;IAC5E,MAAM,cAAc,GAAG,GAAG,gBAAO,CAAC,OAAO,CAAC,CAAC,MAAM,gBAAgB,CAAA;IACjE,MAAM,eAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AACpD,CAAC,CAAA;AAHY,QAAA,cAAc,kBAG1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levrbet/shared",
3
- "version": "0.4.23",
3
+ "version": "0.4.25",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {