From e13dbb0a1f21b5048c567428ea69a075a9d11956 Mon Sep 17 00:00:00 2001 From: snowtafir Date: Sat, 18 Jan 2025 00:19:39 +0800 Subject: [PATCH] dependencis: update jsxp --- package.json | 6 +++--- utils/image.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7c8320c..d2617cb 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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", diff --git a/utils/image.tsx b/utils/image.tsx index 36866f3..5ebeb22 100644 --- a/utils/image.tsx +++ b/utils/image.tsx @@ -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); } /** @@ -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: ,