mirror of
https://github.com/syuilo/ai.git
synced 2025-01-31 07:29:10 +00:00
Node.js v22でのimport assertionの廃止に対応 (#154)
This commit is contained in:
parent
3a6a7b83b9
commit
59ac631527
3 changed files with 3 additions and 3 deletions
|
@ -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<boolean | HandlerResult>;
|
||||
type ContextHook = (key: any, msg: Message, data?: any) => Promise<void | boolean | HandlerResult>;
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue