hs-playlib 0.6.0 → 0.7.0

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.
@@ -132,6 +132,15 @@ class UniffiClient {
132
132
  try {
133
133
  checkCallStatus(this._ffi, status);
134
134
  const bytes = liftBytes(result);
135
+ try {
136
+ const connectorReq = proto_js_1.types.FfiConnectorHttpRequest.decode(bytes);
137
+ if (connectorReq?.url || connectorReq?.method || connectorReq?.body) {
138
+ return bytes;
139
+ }
140
+ }
141
+ catch (_ignored) {
142
+ // not an HTTP request payload
143
+ }
135
144
  try {
136
145
  const reqErr = proto_js_1.types.RequestError.decode(bytes);
137
146
  if (reqErr.errorMessage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-playlib",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Hyperswitch Payments SDK — Node.js client for connector integrations via UniFFI FFI",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -26,4 +26,4 @@
26
26
  "tsconfig-paths": "^4.2.0",
27
27
  "typescript": "^5.9.3"
28
28
  }
29
- }
29
+ }