From ffef83357dd91e96edf3cc3267ffd7008e8dad10 Mon Sep 17 00:00:00 2001 From: Scott Gould Date: Thu, 19 Sep 2024 00:24:12 -0400 Subject: [PATCH] They removed assert infavor of with --- src/index.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5919977..23d492a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ interface Instance { } const app = express(); -import instances from "./webpage/instances.json" assert { type: "json" }; +import instances from "./webpage/instances.json" with { type: "json" }; const instanceNames = new Map(); for (const instance of instances) { diff --git a/tsconfig.json b/tsconfig.json index c826805..514583e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,7 +25,7 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, - "target": "ES2022", + "target": "ESNext", "useDefineForClassFields": true, "resolvePackageJsonImports": true, "outDir": "./dist",