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

Decode the sdk meta if url encoded meta is passed #165

Merged
merged 4 commits into from
Sep 18, 2023
Merged

Conversation

ravishekhar
Copy link
Contributor

Decode SDK meta if the meta is passed as URL encoded value.

@ravishekhar ravishekhar requested a review from a team as a code owner September 15, 2023 14:53
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (0d1f467) 87.93% compared to head (05b9fd7) 87.93%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #165   +/-   ##
=======================================
  Coverage   87.93%   87.93%           
=======================================
  Files          20       20           
  Lines         489      489           
  Branches       40       40           
=======================================
  Hits          430      430           
  Misses         59       59           
Flag Coverage Δ
client 83.96% <100.00%> (ø)
server 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/experiment.js 0.00% <ø> (ø)
server/meta.jsx 100.00% <100.00%> (ø)
src/tracking.js 92.85% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/tracking.js Outdated
@@ -114,7 +114,7 @@ export function setupLogger() {
// https://www.paypal.com/us/gifts/
const isLoadedInFrame = isPayPalDomain() && window.xprops;
const sdkLoadTime =
typeof loadTime === "number" ? loadTime.toString() : undefined;
typeof loadTime === "number" ? Number(loadTime) : undefined;
Copy link
Member

Choose a reason for hiding this comment

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

isn't loadTime already a number in this case? since typeof loadtime === "numer" is true?

@ravishekhar ravishekhar merged commit 6e1ad20 into main Sep 18, 2023
5 checks passed
@ravishekhar ravishekhar deleted the encoded-sdk-meta branch September 18, 2023 12:18
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