abap-local-client 1.4.13 → 1.4.14

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.13",
3
+ "version": "1.4.14",
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",
@@ -785,7 +785,7 @@ class WebSocketClient {
785
785
  for (const lock of allLocks) {
786
786
  const unlockUrl = buildAdtUnlockUrl(lock.name, lock.type, lock.lockHandle);
787
787
  if (!unlockUrl) { console.log(` ⚠️ No ADT path for type ${lock.type} — skipping`); failed++; continue; }
788
- const r = await this.sapClient.executeCallspec({ method: 'DELETE', url: unlockUrl, headers: {} });
788
+ const r = await this.sapClient.executeCallspec({ method: 'POST', url: unlockUrl, headers: {}, body: '' });
789
789
  if (r.success) { this.lockManager.clearLock(lock.name, lock.type); unlocked++; console.log(` ✅ Unlocked ${lock.type}:${lock.name}`); }
790
790
  else { failed++; console.log(` ⚠️ Failed to unlock ${lock.type}:${lock.name}: ${r.error || r.status}`); }
791
791
  }
@@ -798,7 +798,7 @@ class WebSocketClient {
798
798
  const handle = lockHandle || this.lockManager.getLock(objectName, objectType)?.lockHandle || '';
799
799
  const unlockUrl = buildAdtUnlockUrl(objectName, objectType, handle);
800
800
  if (!unlockUrl) { results.push({ success: false, status: 0, error: `Unknown object type: ${objectType}` }); allSuccessful = false; break; }
801
- const r = await this.sapClient.executeCallspec({ method: 'DELETE', url: unlockUrl, headers: {} });
801
+ const r = await this.sapClient.executeCallspec({ method: 'POST', url: unlockUrl, headers: {}, body: '' });
802
802
  if (r.success) this.lockManager.clearLock(objectName, objectType);
803
803
  results.push(r);
804
804
  if (!r.success) { allSuccessful = false; break; }