From 7241834dab689393db5dbea6afcf61949b214820 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:13:09 +1000 Subject: [PATCH] Begone import assertion --- src/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 70eff74..09b3a4c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -12,7 +12,8 @@ import MPServer from './models/MPServer.js'; import xjs from 'xml-js'; import axios from 'axios'; import moment from 'moment'; -import tokens from './tokens.json' assert {type: 'json'}; +const tokens = JSON.parse(readFileSync('src/tokens.json', {encoding:'utf8'})); +// Import assertion warning workaround yes let importconfig:Config try{