Skip to content

Commit

Permalink
remove base-64
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 21, 2024
1 parent 2710894 commit 143f22f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 26 deletions.
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions packages/base64/browser.js

This file was deleted.

8 changes: 6 additions & 2 deletions packages/base64/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { encode, decode } from "base-64";
export function encode(string) {
return globalThis.btoa(string);
}

export { encode, decode };
export function decode(string) {
return globalThis.atob(string);
}
5 changes: 0 additions & 5 deletions packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
"XMPP",
"base64"
],
"dependencies": {
"base-64": "^1.0.0"
},
"react-native": "index.js",
"browser": "browser.js",
"engines": {
"node": ">= 20"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/websocket/lib/Socket.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import WS from "ws";
import { EventEmitter } from "@xmpp/events";

// eslint-disable-next-line n/no-unsupported-features/node-builtins
const WebSocket = globalThis.WebSocket || WS;

import { EventEmitter } from "@xmpp/events";
const WebSocket = WS || globalThis.WebSocket;

const CODE = "ECONNERROR";

Expand Down

0 comments on commit 143f22f

Please sign in to comment.