Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(remix-node): use built-in atob & btoa
Browse files Browse the repository at this point in the history
MichaelDeBoey committed Aug 29, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 3e36c8d commit e8feffc
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
@@ -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,
@@ -21,9 +20,6 @@ declare global {
}

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

Blob: typeof Blob;
File: typeof File;

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

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

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

0 comments on commit e8feffc

Please sign in to comment.