abap-local-client 1.4.2 → 1.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abap-local-client",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "SAP Local Client — WebSocket bridge with Basic, SPNEGO, X.509, SAML & SNC authentication",
5
5
  "main": "sso-sap-client.mjs",
6
6
  "type": "module",
@@ -658,6 +658,7 @@ class WebSocketClient {
658
658
  if (!sys) { this.sendResponse(requestId, false, { error: `Unknown system: ${sid}` }); return; }
659
659
  this.currentSystemId = sid;
660
660
  this.lockManager.clearAll();
661
+ sessions.delete(sid); // force re-create session with fresh config on every switch
661
662
  const ok = await this.initSapClient();
662
663
  if (!ok) { this.sendResponse(requestId, false, { error: `Failed to connect to ${sid}. Check RFC/SNC config and logs.` }); return; }
663
664
  this.sendResponse(requestId, true, [{ success: true, data: { system: sid, authMode: sys.authMode } }]);