gm-plugkit 2.0.1168 → 2.0.1170
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/package.json +1 -1
- package/plugkit-wasm-wrapper.js +6 -2
- package/plugkit.sha256 +1 -1
- package/plugkit.version +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1170",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -1289,8 +1289,10 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
1289
1289
|
const files = [];
|
|
1290
1290
|
try {
|
|
1291
1291
|
for (const entry of fs.readdirSync(dir)) {
|
|
1292
|
+
if (/\.tmp\.\d+(\.|$)/.test(entry)) continue;
|
|
1292
1293
|
const fullPath = path.join(dir, entry);
|
|
1293
|
-
|
|
1294
|
+
let stat;
|
|
1295
|
+
try { stat = fs.statSync(fullPath); } catch (_) { continue; }
|
|
1294
1296
|
if (stat.isFile()) {
|
|
1295
1297
|
files.push(fullPath);
|
|
1296
1298
|
} else if (stat.isDirectory()) {
|
|
@@ -1407,10 +1409,12 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
1407
1409
|
let stale = 0;
|
|
1408
1410
|
const walk = (dir) => {
|
|
1409
1411
|
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
1412
|
+
if (/\.tmp\.\d+(\.|$)/.test(entry.name)) continue;
|
|
1410
1413
|
const fp = path.join(dir, entry.name);
|
|
1411
1414
|
if (entry.isDirectory()) walk(fp);
|
|
1412
1415
|
else if (entry.isFile()) {
|
|
1413
|
-
|
|
1416
|
+
let s;
|
|
1417
|
+
try { s = fs.statSync(fp); } catch (_) { continue; }
|
|
1414
1418
|
if (s.mtimeMs < cutoff) {
|
|
1415
1419
|
const rel = path.relative(inDir, fp);
|
|
1416
1420
|
const verbDir = path.dirname(rel);
|
package/plugkit.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"plugkit.wasm":"
|
|
1
|
+
{"plugkit.wasm":"fc556868ffca7ab16ec04a13538bb42e853894f541a8251148165aa8e423dc83"}
|
package/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.422
|