1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

feature/18-import (#19)

* fix #18

* Add locked check
This commit is contained in:
Brandon Davis
2018-08-06 09:38:17 -04:00
committed by Kyle Spearrin
parent e0ff13e193
commit 47b5b9f950
8 changed files with 133 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ export class EncodeCommand {
return Response.badRequest('No stdin was piped in.');
}
const input = await CliUtils.readStdin();
const b64 = new Buffer(input, 'utf8').toString('base64');
const b64 = Buffer.from(input, 'utf8').toString('base64');
const res = new StringResponse(b64);
return Response.success(res);
}