Skip to content

Commit

Permalink
chore: remove unused base-64 shim
Browse files Browse the repository at this point in the history
As all runtimes now support atob and btoa, the base-64 shim is not used.

Originally introduced in #28 (b08e380).

- https://developer.mozilla.org/en-US/docs/Web/API/atob#browser_compatibility
- https://developer.mozilla.org/en-US/docs/Web/API/btoa#browser_compatibility
  • Loading branch information
legobeat committed May 13, 2024
1 parent 9cb6e74 commit a59a811
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
"appium-adb": "^9.11.4",
"asyncstorage-down": "4.2.0",
"axios": "^1.6.8",
"base-64": "1.0.0",
"bignumber.js": "^9.0.1",
"buffer": "6.0.3",
"cockatiel": "^3.1.2",
Expand Down
10 changes: 0 additions & 10 deletions shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-nodejs-modules */
import { decode, encode } from 'base-64';
import {
FIXTURE_SERVER_PORT,
isTest,
Expand All @@ -15,14 +13,6 @@ if (isTest) {
: FIXTURE_SERVER_PORT;
}

if (!global.btoa) {
global.btoa = encode;
}

if (!global.atob) {
global.atob = decode;
}

// Fix for https://github.com/facebook/react-native/issues/5667
if (typeof global.self === 'undefined') {
global.self = global;
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11949,11 +11949,6 @@ base-64@0.1.0, base-64@^0.1.0:
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb"
integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs=

base-64@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/base-64/-/base-64-1.0.0.tgz#09d0f2084e32a3fd08c2475b973788eee6ae8f4a"
integrity sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==

base-x@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/base-x/-/base-x-1.1.0.tgz#42d3d717474f9ea02207f6d1aa1f426913eeb7ac"
Expand Down

0 comments on commit a59a811

Please sign in to comment.