From 58e9587c8e8b8a49f36457110d75750081d3c206 Mon Sep 17 00:00:00 2001 From: cool Date: Mon, 29 Jan 2024 17:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/plugin/service/info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plugin/service/info.ts b/src/modules/plugin/service/info.ts index b25dd94..3730ada 100644 --- a/src/modules/plugin/service/info.ts +++ b/src/modules/plugin/service/info.ts @@ -4,7 +4,6 @@ import { InjectEntityModel } from '@midwayjs/typeorm'; import { Not, Repository } from 'typeorm'; import { PluginInfoEntity } from '../entity/info'; import { IMidwayApplication, IMidwayContext } from '@midwayjs/core'; -import * as decompress from 'decompress'; import * as _ from 'lodash'; import { PluginInfo } from '../interface'; import { PluginCenterService } from './center'; @@ -118,6 +117,7 @@ export class PluginService extends BaseService { errorData: string; }> { // const plugin = await download(encodeURI(url)); + const decompress = require('decompress'); const files = await decompress(filePath); let errorData; let pluginJson: PluginInfo, readme: string, logo: string, content: string;