diff --git a/package.json b/package.json index 656765d..e8f7838 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yz-yuki-plugin", - "version": "1.0.2-rc.1", + "version": "1.0.2-rc.2", "description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件", "author": "snowtafir", "type": "module", diff --git a/src/components/dynamic/Account.tsx b/src/components/dynamic/Account.tsx index 6150e08..78de583 100644 --- a/src/components/dynamic/Account.tsx +++ b/src/components/dynamic/Account.tsx @@ -2,7 +2,7 @@ // up账户组件 import React from 'react'; import LogoText from './LogoText.tsx'; -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url) diff --git a/src/components/dynamic/Content.tsx b/src/components/dynamic/Content.tsx index 2b6b5d5..a94159b 100644 --- a/src/components/dynamic/Content.tsx +++ b/src/components/dynamic/Content.tsx @@ -1,6 +1,6 @@ // DynamicContent.tsx import React from 'react'; -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url) type ContentProps = { diff --git a/src/components/dynamic/Footer.tsx b/src/components/dynamic/Footer.tsx index ecad5c4..0d856cc 100644 --- a/src/components/dynamic/Footer.tsx +++ b/src/components/dynamic/Footer.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { BOT_NAME, ConfigController } from 'yunzai'; import Config from '../../utils/config'; -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const botVersion = ConfigController.package?.version diff --git a/src/components/dynamic/ForwardContent.tsx b/src/components/dynamic/ForwardContent.tsx index 5ae70d0..8018bcf 100644 --- a/src/components/dynamic/ForwardContent.tsx +++ b/src/components/dynamic/ForwardContent.tsx @@ -3,7 +3,7 @@ import React from 'react'; import Account from './Account.tsx'; import Content from './Content.tsx'; -import { createRequire } from 'module' +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url) type ForwardContentProps = { diff --git a/src/components/dynamic/LogoText.tsx b/src/components/dynamic/LogoText.tsx index 7a965e2..7ddc03c 100644 --- a/src/components/dynamic/LogoText.tsx +++ b/src/components/dynamic/LogoText.tsx @@ -1,7 +1,7 @@ // LogoText // Logo 文本组件 import React from 'react'; -import { createRequire } from 'module' +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url) type LogoTextProps = { diff --git a/src/components/dynamic/MainPage.tsx b/src/components/dynamic/MainPage.tsx index b26c9a0..61a8b35 100644 --- a/src/components/dynamic/MainPage.tsx +++ b/src/components/dynamic/MainPage.tsx @@ -4,7 +4,7 @@ import Account from './Account.tsx'; import Content from './Content.tsx'; import ForwardContent from './ForwardContent'; import Footer from './Footer'; -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url) diff --git a/src/components/help/Help.tsx b/src/components/help/Help.tsx index 9d577e7..10abf17 100644 --- a/src/components/help/Help.tsx +++ b/src/components/help/Help.tsx @@ -2,8 +2,7 @@ import React from 'react'; import { BOT_NAME, ConfigController } from 'yunzai'; import Config from '../../utils/config'; - -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const botVersion = ConfigController.package?.version diff --git a/src/components/loginQrcode/Page.tsx b/src/components/loginQrcode/Page.tsx index 221530a..917ea4e 100644 --- a/src/components/loginQrcode/Page.tsx +++ b/src/components/loginQrcode/Page.tsx @@ -1,7 +1,6 @@ // QrcodeLoginPage.tsx import React from 'react'; -import { createRequire } from 'module'; - +import { createRequire } from 'react-puppeteer'; const require = createRequire(import.meta.url); export type LoginProps = { diff --git a/src/components/version/Version.tsx b/src/components/version/Version.tsx index d03db07..90dd807 100644 --- a/src/components/version/Version.tsx +++ b/src/components/version/Version.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { BOT_NAME, ConfigController } from 'yunzai'; import Config from '../../utils/config'; -import { createRequire } from 'module'; +import { createRequire } from 'react-puppeteer'; const botVersion = ConfigController.package?.version