triangle-utils 1.0.9 → 1.0.10
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 -1
- package/index.js +1 -0
- package/package.json +1 -1
package/clients.js
CHANGED
|
@@ -7,7 +7,7 @@ export default function get_clients(config) {
|
|
|
7
7
|
if (config.region !== undefined) {
|
|
8
8
|
clients.dynamodb = new DynamoDB({ region : config.region })
|
|
9
9
|
}
|
|
10
|
-
if (config.google_email !== undefined && config.google_app_password) {
|
|
10
|
+
if (config.google_email !== undefined && config.google_app_password !== undefined) {
|
|
11
11
|
clients.transporter = nodemailer.createTransport({
|
|
12
12
|
service: "Gmail",
|
|
13
13
|
host: "smtp.gmail.com",
|
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import get_clients from "./clients.js"
|
|
|
6
6
|
|
|
7
7
|
export default function get_utils(config) {
|
|
8
8
|
const clients = get_clients(config)
|
|
9
|
+
console.log(clients)
|
|
9
10
|
const utils = {}
|
|
10
11
|
for (const utils_list of [utils_misc, utils_dynamodb]) {
|
|
11
12
|
for (const [util_name, util] of Object.entries(utils_list)) {
|