@delopay/sdk 0.58.0 → 0.59.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/{chunk-2ZY2CLJC.js → chunk-7KPAARZE.js} +3 -2
- package/dist/{chunk-2ZY2CLJC.js.map → chunk-7KPAARZE.js.map} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +2 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3236,7 +3236,8 @@ var Delopay = class {
|
|
|
3236
3236
|
const type = err.error_type ?? err.type ?? "";
|
|
3237
3237
|
const data = err.data && typeof err.data === "object" && !Array.isArray(err.data) ? err.data : void 0;
|
|
3238
3238
|
const truncatedRaw = truncateRawBody(rawBody);
|
|
3239
|
-
|
|
3239
|
+
const isConnectorPassthrough = type === "connector" || code.startsWith("CE_");
|
|
3240
|
+
if (response.status === 401 && !isConnectorPassthrough) {
|
|
3240
3241
|
throw new DelopayAuthenticationError(message, {
|
|
3241
3242
|
code,
|
|
3242
3243
|
type,
|