Skip to content

Commit

Permalink
feat(remix-node): use built-in atob & btoa
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 22, 2023
1 parent cdd6927 commit 636b234
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions packages/remix-node/base64.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/remix-node/globals.ts
Expand Up @@ -3,7 +3,6 @@ import {
WritableStream as NodeWritableStream,
} from "@remix-run/web-stream";

import { atob, btoa } from "./base64";
import {
Blob as NodeBlob,
File as NodeFile,
Expand All @@ -21,9 +20,6 @@ declare global {
}

interface Global {
atob: typeof atob;
btoa: typeof btoa;

Blob: typeof Blob;
File: typeof File;

Expand All @@ -40,9 +36,6 @@ declare global {
}

export function installGlobals() {
global.atob = atob;
global.btoa = btoa;

global.Blob = NodeBlob;
global.File = NodeFile;

Expand Down

0 comments on commit 636b234

Please sign in to comment.