@polka-codes/runner 0.9.95 → 0.9.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42783,7 +42783,7 @@ var {
|
|
|
42783
42783
|
Help
|
|
42784
42784
|
} = import__.default;
|
|
42785
42785
|
// package.json
|
|
42786
|
-
var version = "0.9.
|
|
42786
|
+
var version = "0.9.97";
|
|
42787
42787
|
|
|
42788
42788
|
// src/runner.ts
|
|
42789
42789
|
import { execSync } from "node:child_process";
|
|
@@ -72883,7 +72883,6 @@ class FileLock {
|
|
|
72883
72883
|
const dbBaseName = basename2(dbPath);
|
|
72884
72884
|
const files = await readdir(lockDir);
|
|
72885
72885
|
const now2 = Date.now();
|
|
72886
|
-
let cleanedCount = 0;
|
|
72887
72886
|
for (const file2 of files) {
|
|
72888
72887
|
if (!file2.startsWith(`${dbBaseName}.lock.`)) {
|
|
72889
72888
|
continue;
|
|
@@ -72898,7 +72897,6 @@ class FileLock {
|
|
|
72898
72897
|
if (age > maxAge) {
|
|
72899
72898
|
try {
|
|
72900
72899
|
await unlink2(filePath);
|
|
72901
|
-
cleanedCount++;
|
|
72902
72900
|
} catch (error48) {
|
|
72903
72901
|
const errorCode = error48?.code;
|
|
72904
72902
|
if (errorCode !== "ENOENT") {
|
|
@@ -72907,9 +72905,6 @@ class FileLock {
|
|
|
72907
72905
|
}
|
|
72908
72906
|
}
|
|
72909
72907
|
}
|
|
72910
|
-
if (cleanedCount > 0) {
|
|
72911
|
-
console.log(`[FileLock] Cleaned up ${cleanedCount} old lock file(s) (older than ${maxAge}ms)`);
|
|
72912
|
-
}
|
|
72913
72908
|
} catch (error48) {
|
|
72914
72909
|
console.debug(`[FileLock] Cleanup encountered an error: ${error48 instanceof Error ? error48.message : String(error48)}`);
|
|
72915
72910
|
}
|