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.
- package/dist/src/payments/_generated_connector_client_flows.d.ts +8 -0
- package/dist/src/payments/_generated_connector_client_flows.js +16 -1
- package/dist/src/payments/_generated_flows.js +9 -0
- package/dist/src/payments/_generated_uniffi_client_flows.d.ts +12 -0
- package/dist/src/payments/_generated_uniffi_client_flows.js +24 -0
- package/dist/src/payments/connector_client.d.ts +1 -1
- package/dist/src/payments/connector_client.js +7 -6
- package/dist/src/payments/generated/libconnector_service_ffi.dylib +0 -0
- package/dist/src/payments/generated/proto.d.ts +2569 -1753
- package/dist/src/payments/generated/proto.js +7718 -4547
- package/dist/src/payments/uniffi_client.js +9 -0
- package/package.json +2 -2
|
@@ -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.
|
|
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
|
+
}
|