triangle-utils 1.0.7 → 1.0.9
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/clients.js +1 -0
- package/index.js +1 -1
- package/misc.js +1 -1
- package/package.json +1 -1
package/clients.js
CHANGED
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export default function get_utils(config) {
|
|
|
9
9
|
const utils = {}
|
|
10
10
|
for (const utils_list of [utils_misc, utils_dynamodb]) {
|
|
11
11
|
for (const [util_name, util] of Object.entries(utils_list)) {
|
|
12
|
-
utils[util_name] =
|
|
12
|
+
utils[util_name] = (...args) => util(clients, ...args)
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return utils
|
package/misc.js
CHANGED
|
@@ -30,7 +30,7 @@ export async function send_email(clients, recipient, subject, text) {
|
|
|
30
30
|
|
|
31
31
|
export async function admin_alert(clients, text) {
|
|
32
32
|
console.log("ADMIN ALERT:", text)
|
|
33
|
-
await send_email(config.google_email, "ADMIN ALERT", text)
|
|
33
|
+
await send_email(clients.config.google_email, "ADMIN ALERT", text)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export async function safe_run(clients, f) {
|