-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add shims for atob #88
Add shims for atob #88
Conversation
This pull request has been linked to Shortcut Story #50572: Admin-js Malformed Token on deployment. |
import atob from 'atob'; | ||
|
||
// Shims for atob being undefined in node.js prior version 14 | ||
if (!globalThis.atob) globalThis.atob = atob; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ethella Looks good to me. Just dropped the test coverage too low 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't aware of tests 😭. Will make them
82c65d4
🚀 PR was released in |
📦 Pull Request
Add shims for atob
✅ Fixed Issues
Fixes #86
🚨 Test instructions
[Describe any additional context required to test the PR/feature/bug fix.]
patch
: Bug Fix?minor
: New Feature?major
: Breaking Change?skip-release
: It's unnecessary to publish this change.