Skip to content

Commit 9d9e23b

Browse files
Merge pull request #44 from SakuraKy/main
### 1.4.4 1. server.getupdate: Fix delete `tmp` dir failed when use win32 platform.
2 parents 34faf17 + 6f3e9ed commit 9d9e23b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.4.4
2+
1. server.getupdate: Fix delete `tmp` dir failed when use win32 platform.
3+
14
### 1.4.3
25
1. server: Upgraded dependency library to fix CVE-2024-45296.
36
2. debug: Enhanced password hash validation.

get.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require("dotenv").config();
2-
const VERSION = "1.4.3";
2+
const VERSION = "1.4.4";
33

44
const express = require("express");
55
const schedule = require("node-schedule");
@@ -31,7 +31,7 @@ if (!fs.existsSync(hbwgConfig.tempDir)) {
3131
!fs.existsSync(`${hbwgConfig.tempDir}/.version.hbwg_cache`) ||
3232
fs.readFileSync(`${hbwgConfig.tempDir}/.version.hbwg_cache`) != VERSION
3333
) {
34-
ChildProcess.execSync(`rm ${hbwgConfig.tempDir}/ -rf`);
34+
fs.rmSync(hbwgConfig.tempDir, { recursive: true, force: true });
3535
fs.mkdirSync(hbwgConfig.tempDir);
3636
fs.writeFileSync(`${hbwgConfig.tempDir}/.version.hbwg_cache`, VERSION);
3737
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hestudio-bingwallpaper-get",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "A Bing wallpaper API interface that can directly image output images.",
55
"main": "get.js",
66
"scripts": {

0 commit comments

Comments
 (0)