Skip to content

Commit

Permalink
AC - created new branch to resolve credentials issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-cleveland committed Dec 18, 2023
1 parent ad41ecb commit 7a37597
Show file tree
Hide file tree
Showing 17 changed files with 12,525 additions and 765 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
node_modules
output/*
input/*
.env
.env

coverage/*
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trailingComma: "es5"
tabWidth: 2
semi: true
singleQuote: false
1 change: 1 addition & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { presets: ["@babel/preset-env"] };
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function loadConfig() {
throw result.error;
}

console.log("Environment variables loaded");
debug.log("Environment variables loaded");
}

await loadConfig();
Expand All @@ -36,7 +36,7 @@ let sandbox = process.env.MESH_SANDBOX || "true";
let senderAgent;
let receiverAgent;
if (sandbox === "true") {
console.log("Running in sandbox mode");
log.debug("Running in sandbox mode");
// just setup to ignore self-signed certs
senderAgent = new Agent({
rejectUnauthorized: false,
Expand All @@ -46,7 +46,7 @@ if (sandbox === "true") {
rejectUnauthorized: false,
});
} else {
console.log("Running in integration mode");
log.debug("Running in integration mode");
// Setup the https agents for integration, you can ignore this for sandbox
senderAgent = new Agent({
cert: readFileSync(process.env.MESH_SENDER_CERT_LOCATION),
Expand Down Expand Up @@ -130,7 +130,7 @@ async function createMessageChunks() {
});
}

async function receiveMessage() {
export async function receiveMessage() {
// Check connection to mailbox
log.debug("\nChecking connection to mailbox with handshake");
await handShake({
Expand Down
Loading

0 comments on commit 7a37597

Please sign in to comment.