From 575883b78ce4a586c6f883dcb42cf374e86398aa Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sun, 14 Sep 2025 18:51:39 -0400 Subject: [PATCH] Try raji --- package.json | 2 +- structures/JeopardyScrape.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e190fbd5..3ff2e07d 100644 --- a/package.json +++ b/package.json @@ -71,11 +71,11 @@ "parse-domain": "^8.2.2", "pokersolver": "^2.1.4", "qr": "^0.5.1", + "raji": "^0.1.6", "random-js": "^2.1.0", "sagiri": "^4.3.0", "semver": "^7.7.2", "sherlockjs": "^1.4.2", - "simdjson": "^0.9.2", "stackblur-canvas": "^2.7.0", "text-diff": "^1.0.1", "tictactoe-minimax-ai": "github:marianoheller/tic-tac-toe-minimax", diff --git a/structures/JeopardyScrape.js b/structures/JeopardyScrape.js index 4e192191..6547a481 100644 --- a/structures/JeopardyScrape.js +++ b/structures/JeopardyScrape.js @@ -1,7 +1,7 @@ const request = require('node-superfetch'); const cheerio = require('cheerio'); const fs = require('fs'); -const simdjson = require('simdjson'); +const raji = require('raji'); const path = require('path'); const { checkFileExists } = require('../util/Util'); const rounds = ['jeopardy_round', 'double_jeopardy_round', 'final_jeopardy_round']; @@ -67,7 +67,7 @@ module.exports = class JeopardyScrape { async importData() { const read = await fs.promises.readFile(path.join(__dirname, '..', 'jeopardy.json'), { encoding: 'utf8' }); - const file = simdjson.parse(read); + const file = await raji.parse(read); if (typeof file !== 'object' || Array.isArray(file)) return null; if (!file.clues || !file.gameIDs || !file.seasons) return null; for (const season of file.seasons) {