fix: use Buffer.from instead of the deprecated Buffer constructor

Fixes https://github.com/bazelbuild/rules_typescript/issues/313

PiperOrigin-RevId: 224595491
diff --git a/internal/karma/index.ts b/internal/karma/index.ts
index 7c47734..74c4750 100644
--- a/internal/karma/index.ts
+++ b/internal/karma/index.ts
@@ -55,7 +55,7 @@
       }
     });
 
-    bundleFile.sha = sha1(new Buffer(bundleFile.content));
+    bundleFile.sha = sha1(Buffer.from(bundleFile.content));
     bundleFile.mtime = new Date();
     included.unshift(bundleFile);