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

chore: rename handlePostMessage to messageParentWindow #582

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

seekshiva
Copy link
Collaborator

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

handlePostMessage doesn't actually "handle" a message that was posted by someone. Instead the method actually just posts a message to the parent window. So renaming it to messageParentWindow makes more sense.

How did you test it?

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

Copy link

semanticdiff-com bot commented Aug 26, 2024

Review changes with SemanticDiff.

Analyzed 1 of 38 files.

File Information
Filename Status
✔️ rescript.json Analyzed
src/LoaderController.res Unsupported file format
src/PaymentElement.res Unsupported file format
src/SingleLineCardPayment.res Unsupported file format
src/ThreeDSAuth.res Unsupported file format
src/ThreeDSMethod.res Unsupported file format
src/orca-log-catcher/ErrorBoundary.res Unsupported file format
src/orca-loader/Elements.res Unsupported file format
src/orca-loader/LoaderPaymentElement.res Unsupported file format
src/orca-loader/Types.res Unsupported file format
src/libraries/Promise.res Unsupported file format
src/Utilities/ApplePayHelpers.res Unsupported file format
src/Utilities/GooglePayHelpers.res Unsupported file format
src/Utilities/PaymentHelpers.res Unsupported file format
src/Utilities/Utils.res Unsupported file format
src/Types/GooglePayType.res Unsupported file format
src/Types/PaypalSDKTypes.res Unsupported file format
src/Types/PostalCodeType.res Unsupported file format
src/Types/ThemeImporter.res Unsupported file format
src/Payments/AddBankDetails.res Unsupported file format
src/Payments/BankTransfersPopup.res Unsupported file format
src/Payments/GPay.res Unsupported file format
src/Payments/KlarnaSDK.res Unsupported file format
src/Payments/KlarnaSDKTypes.res Unsupported file format
src/Payments/PaypalSDK.res Unsupported file format
src/Payments/PaypalSDKHelpers.res Unsupported file format
src/Payments/PlaidSDKIframe.res Unsupported file format
src/Payments/PreMountLoader.res Unsupported file format
src/Payments/QRCodeDisplay.res Unsupported file format
src/Payments/VoucherDisplay.res Unsupported file format
src/Components/AddBankAccount.res Unsupported file format
src/Components/AddressPaymentInput.res Unsupported file format
src/Components/FullScreenDivDriver.res Unsupported file format
src/Components/InputField.res Unsupported file format
src/Components/Modal.res Unsupported file format
src/Components/PayNowButton.res Unsupported file format
src/Components/PaymentLoader.res Unsupported file format
src/Components/SavedPaymentManagement.res Unsupported file format

@github-actions github-actions bot added the S-conventions-not-followed Some Github conventions not followed label Aug 26, 2024
@seekshiva seekshiva changed the title Chore refactor chore: rename handlePostMessage to messageParentWindow Aug 26, 2024
@github-actions github-actions bot removed the S-conventions-not-followed Some Github conventions not followed label Aug 26, 2024
Copy link
Collaborator

@PritishBudhiraja PritishBudhiraja left a comment

Choose a reason for hiding this comment

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

LGTM :)

@PritishBudhiraja PritishBudhiraja added the Ready for Review PR with label Ready for Review should only be reviewed. label Aug 26, 2024
@seekshiva seekshiva merged commit 827ae3a into main Aug 26, 2024
4 of 5 checks passed
@seekshiva seekshiva deleted the chore-refactor branch August 26, 2024 07:33
@github-actions github-actions bot added Closed Label will be automatically added when the PR will get merged to main and removed Ready for Review PR with label Ready for Review should only be reviewed. labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Label will be automatically added when the PR will get merged to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants