Skip to content

Conversation

@laliconfigcat
Copy link
Member

@laliconfigcat laliconfigcat commented Dec 20, 2023

Describe the purpose of your pull request

The localstorage cache is not working with non Latin 1 characters.
Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.

Related issues (only if applicable)

Provide links to issues relating to this pull request

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.
@laliconfigcat laliconfigcat requested a review from a team as a code owner December 20, 2023 14:56
@codecov
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (10d1590) 85.36% compared to head (5953863) 87.50%.

Additional details and impacted files
@@ Coverage Diff @@ ## master #89 +/- ## ========================================== + Coverage 85.36% 87.50% +2.13%  ========================================== Files 3 3 Lines 41 48 +7 Branches 6 6 ========================================== + Hits 35 42 +7  Misses 4 4 Partials 2 2 

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

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

return void 0;
}

private b64EncodeUnicode(str: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to move these methods into js-common ?

Copy link
Member Author

@laliconfigcat laliconfigcat Dec 20, 2023

Choose a reason for hiding this comment

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

It is not used in Node :D So it's not that common :D

@laliconfigcat laliconfigcat merged commit f63c32d into master Dec 20, 2023
@laliconfigcat laliconfigcat deleted the latin1fix branch December 20, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants