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 31, 2023
1 parent 048d0ad commit a8edf48
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
WritableStream as NodeWritableStream,
} from "@remix-run/web-stream";

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

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

File: typeof File;

Headers: typeof Headers;
Expand All @@ -38,9 +34,6 @@ declare global {
}

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

global.File = NodeFile;

global.Headers = NodeHeaders as typeof Headers;
Expand Down

0 comments on commit a8edf48

Please sign in to comment.