gm-plugkit 2.0.1365 → 2.0.1367

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1365",
3
+ "version": "2.0.1367",
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": {
@@ -2702,7 +2702,12 @@ async function runSpoolWatcher(instance, spoolDir) {
2702
2702
  try { fs.unlinkSync(UPDATE_CHECK_ERROR_MARKER); } catch (_) {}
2703
2703
  }
2704
2704
  function normalizeUpdateErrorCategory(fields) {
2705
- if (fields.status && fields.status !== 200) return `http-${fields.status}`;
2705
+ if (typeof fields.status === 'number') {
2706
+ if (fields.status === -1) return 'network';
2707
+ if (fields.status === -2) return 'network';
2708
+ if (fields.status < 0) return 'network';
2709
+ if (fields.status !== 200 && fields.status > 0) return `http-${fields.status}`;
2710
+ }
2706
2711
  const err = String(fields.error || '').toLowerCase();
2707
2712
  if (!err) return 'unknown';
2708
2713
  if (/timeout|timed out|etimedout/.test(err)) return 'network';
package/plugkit.version CHANGED
@@ -1 +1 @@
1
- 0.1.514
1
+ 0.1.515