From 91c849c9f22b841a69df1005c7bdcb4399505f82 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Tue, 20 Apr 2021 21:22:23 +0930 Subject: [PATCH] fix: use btoa to read key file --- app/core/modules/info/get-license.ts | 5 +++-- package-lock.json | 5 +++++ package.json | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/core/modules/info/get-license.ts b/app/core/modules/info/get-license.ts index 6abb899af..6956550a9 100644 --- a/app/core/modules/info/get-license.ts +++ b/app/core/modules/info/get-license.ts @@ -4,6 +4,7 @@ */ import fs from 'fs'; +import btoa from 'btoa'; import { varState } from '../../states'; import { CoreContext, CoreResult } from '../../types'; import { ensurePermission } from '../../utils'; @@ -27,8 +28,8 @@ export const getLicense = async function (context: CoreContext): Promise