commit | 56258f669ac177d9cf1e6e1a6d67d4a155cb1ad6 | [log] [tgz] |
---|---|---|
author | TypeScript Team <noreply@google.com> | Fri Dec 07 16:18:40 2018 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Fri Dec 07 16:19:02 2018 -0800 |
tree | ef95124382ca7a1bf98fe36cd910e1f3c65c9fc7 | |
parent | 3e3d3b9fe661089ed20591ff4776ab07dfe0402a [diff] |
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);