@sats-connect/core 0.0.7-7b38d02 → 0.0.7-fafc6cc
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/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -350,7 +350,7 @@ var SatsConnectAdapter = class {
|
|
|
350
350
|
return {
|
|
351
351
|
status: "error",
|
|
352
352
|
error: {
|
|
353
|
-
code: response.error.code === 400
|
|
353
|
+
code: response.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
|
|
354
354
|
message: response.error.message
|
|
355
355
|
}
|
|
356
356
|
};
|
|
@@ -373,7 +373,7 @@ var SatsConnectAdapter = class {
|
|
|
373
373
|
return {
|
|
374
374
|
status: "error",
|
|
375
375
|
error: {
|
|
376
|
-
code: response.error.code === 400
|
|
376
|
+
code: response.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
|
|
377
377
|
message: response.error.message
|
|
378
378
|
}
|
|
379
379
|
};
|
|
@@ -389,7 +389,7 @@ var SatsConnectAdapter = class {
|
|
|
389
389
|
return {
|
|
390
390
|
status: "error",
|
|
391
391
|
error: {
|
|
392
|
-
code: orderResponse.error.code === 400
|
|
392
|
+
code: orderResponse.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
|
|
393
393
|
message: orderResponse.error.message
|
|
394
394
|
}
|
|
395
395
|
};
|