Skip to content

Commit

Permalink
fix: update @azure/msal-node resolves nm reactioncommerce#1584
Browse files Browse the repository at this point in the history
  • Loading branch information
bugslifesolutions committed Nov 16, 2023
1 parent 4cbbbf9 commit a4660b8
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 64 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: PRERELEASE
on:
workflow_dispatch:
pull_request:
branches:
- prerelease
pull_request:
types:
- closed

Expand Down
2 changes: 1 addition & 1 deletion packages/bl-api-plugin-nodemailer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"sideEffects": false,
"dependencies": {
"@azure/msal-node": "~2.4.0",
"@azure/msal-node": "^2.5.1",
"@bugslifesolutions/api-utils": "workspace:^2.0.0",
"@bugslifesolutions/logger": "workspace:^1.1.5",
"@bugslifesolutions/random": "workspace:^1.0.2",
Expand Down
18 changes: 0 additions & 18 deletions packages/bl-api-plugin-nodemailer/src/config.js

This file was deleted.

18 changes: 0 additions & 18 deletions packages/bl-api-plugin-nodemailer/src/config_applianceshack.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/bl-api-plugin-nodemailer/src/util/NodemailerProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default async function sendEmail(context, {
// see https://nodemailer.com/smtp/customauth/

if (nodemailerTransportOptions.auth.method !== undefined) {
hackForNodemailerIssue1584(nodemailerTransportOptions.auth);
nodemailerTransportOptions.customAuth = {
msalClientCredentialAuth
};
Expand All @@ -39,15 +38,3 @@ export default async function sendEmail(context, {
}
});
}

/**
*
* @param {Object} auth Nodemailer auth configuration.
* @see https://nodemailer.com/smtp/oauth2/
* @returns {undefined}
*/
function hackForNodemailerIssue1584(auth) {
// see https://github.com/nodemailer/nodemailer/issues/1584
auth.user = auth.user || "placeholder";
auth.pass = auth.pass || "placeholder";
}

0 comments on commit a4660b8

Please sign in to comment.