]> zoso.dev Git - buffer.git/commitdiff
Export missing globals for compat (#347)
authorChristopher Jeffrey (JJ) <chjjeffrey@gmail.com>
Mon, 5 Feb 2024 03:16:47 +0000 (22:16 -0500)
committerGitHub <noreply@github.com>
Mon, 5 Feb 2024 03:16:47 +0000 (14:16 +1100)
index.js

index 1d4b5ea43c78d85b25fc9172fb64262ebab5d0ff..58f331e41f07bd4459f83673a6fd60d1b29a358d 100644 (file)
--- a/index.js
+++ b/index.js
@@ -38,6 +38,11 @@ exports.constants = {
   MAX_STRING_LENGTH: K_STRING_MAX_LENGTH
 }
 
+exports.Blob = global.Blob
+exports.File = global.File
+exports.atob = global.atob
+exports.btoa = global.btoa
+
 /**
  * If `Buffer.TYPED_ARRAY_SUPPORT`:
  *   === true    Use Uint8Array implementation (fastest)