Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAU: Bump prettier from 2.7.1 to 3.2.5 #1548

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"nunjucks": "^3.2.3",
"pino": "^8.19.0",
"pino-http": "^9.0.0",
"prettier": "^2.7.1",
"prettier": "^3.2.5",
"qrcode": "^1.5.0",
"redis": "^4.6.13",
"uglify-js": "^3.14.5",
Expand Down
4 changes: 2 additions & 2 deletions scripts/render-user-journey-documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const htmlContent = `
return `
<tr>
<td id="current-state-${currentState}" colspan="5">${renderRouterPageLink(
currentState
)} 🏁</td>
currentState
)} 🏁</td>
</tr>
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ describe("change security codes confirmation controller", () => {
});

describe("changeSecurityCodesConfirmationGet", () => {
[MFA_METHOD_TYPE.SMS, MFA_METHOD_TYPE.AUTH_APP].forEach(function (
mfaMethodType
) {
it(`should render the change security codes codes confirmation page for mfaMethodType ${mfaMethodType}`, async () => {
req.session.user.accountRecoveryVerifiedMfaType = mfaMethodType;
req.session.user.email = "[email protected]";
req.session.user.redactedPhoneNumber = "*******1234";

await changeSecurityCodesConfirmationGet()(
req as Request,
res as Response
);

expect(res.render).to.have.been.calledWith(
"account-recovery/change-security-codes-confirmation/index.njk",
{ mfaMethodType: mfaMethodType, phoneNumber: "*******1234" }
);
});
});
[MFA_METHOD_TYPE.SMS, MFA_METHOD_TYPE.AUTH_APP].forEach(
function (mfaMethodType) {
it(`should render the change security codes codes confirmation page for mfaMethodType ${mfaMethodType}`, async () => {
req.session.user.accountRecoveryVerifiedMfaType = mfaMethodType;
req.session.user.email =
"[email protected]";
req.session.user.redactedPhoneNumber = "*******1234";

await changeSecurityCodesConfirmationGet()(
req as Request,
res as Response
);

expect(res.render).to.have.been.calledWith(
"account-recovery/change-security-codes-confirmation/index.njk",
{ mfaMethodType: mfaMethodType, phoneNumber: "*******1234" }
);
});
}
);
});

describe("changeSecurityCodesConfirmationPost", () => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/authorize/kms-decryption-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ export class KmsDecryptionService implements KmsDecryptionServiceInterface {
KeyId: this.kmsKeyId,
};

const decryptResponse: DecryptCommandOutput = await this.kmsClient.decrypt(
inputs
);
const decryptResponse: DecryptCommandOutput =
await this.kmsClient.decrypt(inputs);
return decryptResponse.Plaintext;
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4210,10 +4210,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.7.1:
version "2.7.1"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz"
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

process-nextick-args@~2.0.0:
version "2.0.1"
Expand Down
Loading