Fix build error

This commit is contained in:
qianlifeng 2024-11-14 22:46:20 +08:00
parent 5b221b331e
commit 8565f00ed2
No known key found for this signature in database
5 changed files with 2040 additions and 2519 deletions

View File

@ -32,18 +32,6 @@ call_lefthook()
elif test -f "$dir/node_modules/lefthook/bin/index.js"
then
"$dir/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
then
"$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook"
then
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook"
then
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/lefthook/bin/index.js"
then
"$dir/Wox.UI.React/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
then
"$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"

View File

@ -32,18 +32,6 @@ call_lefthook()
elif test -f "$dir/node_modules/lefthook/bin/index.js"
then
"$dir/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
then
"$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook"
then
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook"
then
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@"
elif test -f "$dir/Wox.UI.React/node_modules/lefthook/bin/index.js"
then
"$dir/Wox.UI.React/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
then
"$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"

View File

@ -33,9 +33,9 @@
},
"dependencies": {
"@wox-launcher/wox-plugin": "^0.0.82",
"dayjs": "^1.11.9",
"dayjs": "^1.11.13",
"promise-deferred": "^2.0.4",
"winston": "^3.10.0",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^4.7.1",
"ws": "^8.14.1"
},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
import winston, { format } from "winston"
import dayjs from "dayjs"
import winston from "winston"
import WebSocket from "ws"
import { PluginJsonRpcTypeSystemLog } from "./jsonrpc"
import crypto from "crypto"
@ -11,7 +10,6 @@ let ws: WebSocket | undefined = undefined
const winstonLogger = winston.createLogger({
level: "info",
format: format.combine(format.printf(i => `${dayjs(i.timestamp).format("YYYY-MM-DD HH:mm:ss.SSS")} ${i.message}`)),
transports: [new winston.transports.File({ filename: "node.log", dirname: logDirectory })]
})