debt - avoid deprecated Buffer ctors

This commit is contained in:
Benjamin Pasero
2018-02-26 13:09:47 +01:00
parent 0c1cb4571f
commit a23edada50
25 changed files with 48 additions and 48 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ module nls {
export function fileFrom(file: File, contents: string, path: string = file.path) {
return new File({
contents: new Buffer(contents),
contents: Buffer.from(contents),
base: file.base,
cwd: file.cwd,
path: path