mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(docs-infra): remove deprecated Buffer usage from stackblitz builder (#30369)
Fixes #30364 PR Close #30369
This commit is contained in:
committed by
Miško Hevery
parent
8422ef2a93
commit
e82b45c8a7
@@ -221,9 +221,7 @@ class StackblitzBuilder {
|
||||
|
||||
_encodeBase64(file) {
|
||||
// read binary data
|
||||
var bitmap = fs.readFileSync(file);
|
||||
// convert binary data to base64 encoded string
|
||||
return Buffer(bitmap).toString('base64');
|
||||
return fs.readFileSync(file, { encoding: 'base64' });
|
||||
}
|
||||
|
||||
_existsSync(filename) {
|
||||
|
||||
Reference in New Issue
Block a user