From 59ac6315278892a07a38b160ca7d1bca188aea36 Mon Sep 17 00:00:00 2001 From: "Genki.Takeuchi" Date: Sun, 5 Jan 2025 16:54:49 +0900 Subject: [PATCH] =?UTF-8?q?Node.js=20v22=E3=81=A7=E3=81=AEimport=20asserti?= =?UTF-8?q?on=E3=81=AE=E5=BB=83=E6=AD=A2=E3=81=AB=E5=AF=BE=E5=BF=9C=20(#15?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ai.ts | 2 +- src/config.ts | 2 +- src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai.ts b/src/ai.ts index 701b97e..ecb7e30 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -16,7 +16,7 @@ import type { User } from '@/misskey/user.js'; import Stream from '@/stream.js'; import log from '@/utils/log.js'; import { sleep } from './utils/sleep.js'; -import pkg from '../package.json' assert { type: 'json' }; +import pkg from '../package.json' with { type: 'json' }; type MentionHook = (msg: Message) => Promise; type ContextHook = (key: any, msg: Message, data?: any) => Promise; diff --git a/src/config.ts b/src/config.ts index 31071e5..e409eb8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -23,7 +23,7 @@ type Config = { memoryDir?: string; }; -import config from '../config.json' assert { type: 'json' }; +import config from '../config.json' with { type: 'json' }; config.wsUrl = config.host.replace('http', 'ws'); config.apiUrl = config.host + '/api'; diff --git a/src/index.ts b/src/index.ts index 991a6d1..20f1fcc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import promiseRetry from 'promise-retry'; import 藍 from './ai.js'; import config from './config.js'; import _log from './utils/log.js'; -import pkg from '../package.json' assert { type: 'json' }; +import pkg from '../package.json' with { type: 'json' }; import CoreModule from './modules/core/index.js'; import TalkModule from './modules/talk/index.js';