gm-plugkit 2.0.1337 → 2.0.1338
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 +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.1338",
|
|
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
|
@@ -2525,7 +2525,7 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2525
2525
|
try {
|
|
2526
2526
|
const content = fs.readFileSync(UPDATE_CHECK_SHARED_CACHE, 'utf-8');
|
|
2527
2527
|
const parsed = JSON.parse(content);
|
|
2528
|
-
if (parsed && parsed.ts &&
|
|
2528
|
+
if (parsed && parsed.ts && (Date.now() - parsed.ts) < UPDATE_CHECK_CACHE_TTL_MS) {
|
|
2529
2529
|
return parsed;
|
|
2530
2530
|
}
|
|
2531
2531
|
} catch (_) {}
|