pmxtjs 2.34.1 → 2.34.3

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.
@@ -341,11 +341,25 @@ class ServerManager {
341
341
  if (info && info.pid) {
342
342
  try {
343
343
  process.kill(info.pid, 'SIGTERM');
344
- // Brief wait
345
344
  await new Promise(resolve => setTimeout(resolve, 500));
346
345
  }
347
346
  catch {
348
- // Ignore
347
+ // Process already dead — fall through to lock cleanup
348
+ }
349
+ // Verify the process is actually dead; escalate to SIGKILL if not
350
+ try {
351
+ process.kill(info.pid, 0); // throws if dead
352
+ // Still alive — force kill
353
+ try {
354
+ process.kill(info.pid, 'SIGKILL');
355
+ await new Promise(resolve => setTimeout(resolve, 200));
356
+ }
357
+ catch {
358
+ // Ignore — SIGKILL may race with natural exit
359
+ }
360
+ }
361
+ catch {
362
+ // Process is dead — good
349
363
  }
350
364
  }
351
365
  // Remove lock file (best effort)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.34.1",
3
+ "version": "2.34.3",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.34.1",
3
+ "version": "2.34.3",
4
4
  "description": "Unified prediction market data API - The ccxt for prediction markets",
5
5
  "author": "PMXT Contributors",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "unified"
44
44
  ],
45
45
  "dependencies": {
46
- "pmxt-core": "2.34.1"
46
+ "pmxt-core": "2.34.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",