Skip to content

Commit

Permalink
dependencis: update jsxp
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Jan 17, 2025
1 parent ecf82cc commit e13dbb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yuki-plugin",
"version": "2.0.6-9",
"version": "2.0.6-10",
"author": "snowtafir",
"description": "优纪插件,yunzai-V4 关于 微博推送、B站推送 等功能的拓展插件",
"main": "./index",
Expand All @@ -26,7 +26,7 @@
"chokidar": "^4.0.1",
"jsdom": "^25.0.1",
"json5": "^2.2.3",
"jsxp": "1.0.8",
"jsxp": "1.1.2",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"moment": "^2.30.1",
Expand Down Expand Up @@ -61,7 +61,7 @@
"husky": "^9.1.6",
"jsdom": "^25.0.1",
"json5": "^2.2.3",
"jsxp": "1.0.8",
"jsxp": "1.1.2",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"node-fetch": "^3.3.2",
Expand Down
8 changes: 4 additions & 4 deletions utils/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Image extends Picture {
// 继承父类实例
super();
// 父类已经实例化组件渲染对象
//this.Com;
//this.component;
// 父类已经实例化启动 Puppeteer
//this.Pup.start();
//this.puppeteer.start();
// 初始化 YukiPuppeteerRender 实例
this.yukiPuppeteerRender = new YukiPuppeteerRender(this.Pup);
this.yukiPuppeteerRender = new YukiPuppeteerRender(this.puppeteer);
}

/**
Expand All @@ -43,7 +43,7 @@ class Image extends Picture {
const Page = ReactPages[page];
// 调用 yukiPuppeteerRender 进行截图操作
return this.yukiPuppeteerRender.yukiScreenshot(
this.Com.compile({
this.component.compile({
path: page,
name: `${uid}.html`,
component: <Page {...props} />,
Expand Down

0 comments on commit e13dbb0

Please sign in to comment.