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

fix(hsts): rework file path resolution #50

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

argl
Copy link
Contributor

@argl argl commented Jul 24, 2024

Description

Refactor the file path resolution to be in line with other instances where we need to emulate __dirname for ESM code.

Additional details

(MP-1392)

@argl argl marked this pull request as ready for review July 24, 2024 08:42
@argl argl requested a review from a team as a code owner July 24, 2024 08:42
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hsts change looks good, concerned there might be an accidental commit in src/database/repository.js though

@@ -105,7 +105,6 @@ export async function insertTestResults(pool, siteId, scanId, scanResult) {
const scoreModifier = t.scoreModifier;
delete t.scoreModifier;
delete t.scoreDescription;
delete t.name;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional? We seem to store name separately below

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh it doesn't exist in the object, typescript is complaining, all good 👍

@argl argl merged commit 1b2e9ed into main Jul 25, 2024
5 checks passed
@argl argl deleted the MP-1392-hsts-file-loading branch July 25, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants