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: Update dependencies with high alerts (M2-7990) #550

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ramirlm
Copy link
Contributor

@ramirlm ramirlm commented Nov 13, 2024

📝 Description

This PR updates required and possible libraries to the minimum required versions, as well as consequent lit/prettier tweaks.

🔗 Jira Ticket M2-7990

Changes include:

  • Upgrade of axios and jsdom dependencies
  • New ESLInt/Prettier rules applied to a few files

🪤 Peer Testing

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-550.d15zn9do8xbzga.amplifyapp.com

@ramirlm ramirlm changed the title fix: Update dependencies with high alerts fix: Update dependencies with high alerts (M2-7990) Nov 13, 2024
@ramirlm ramirlm marked this pull request as ready for review November 13, 2024 20:56
@ramirlm ramirlm requested a review from ChaconC November 14, 2024 11:02
Copy link

@felipeMetaLab felipeMetaLab left a comment

Choose a reason for hiding this comment

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

Looks good to me.

import { Banner, BannerProps } from '../Banner';
import { SUCCESS_BANNER_DURATION } from './lib/const';
Copy link
Contributor

Choose a reason for hiding this comment

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

This is causing an error:

  2:1  error  `./lib/const` import should occur before import of `../Banner`  import/order

import { Answer, hasAdditionalResponse, requiresAdditionalResponse } from '../lib';
import { ItemPicker } from './items/ItemPicker';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

./items/ItemPicker` import should occur before import of `../lib`

@@ -95,7 +95,7 @@ export const SurveyWidget = (props: Props) => {
publicAppletKey={publicAppletKey}
appletId={appletId}
errorLabel={
publicAppletKey ? t('additional.invalid_public_url') : error?.evaluatedMessage ?? ''
publicAppletKey ? t('additional.invalid_public_url') : (error?.evaluatedMessage ?? '')
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm also seeing a prettier error here but prettier:fix changes it back 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Investigating @ChaconC 🤔

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.

3 participants