@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
|
@@ -3161,7 +3161,8 @@ var Delopay = class {
|
|
|
3161
3161
|
const type = err.error_type ?? err.type ?? "";
|
|
3162
3162
|
const data = err.data && typeof err.data === "object" && !Array.isArray(err.data) ? err.data : void 0;
|
|
3163
3163
|
const truncatedRaw = truncateRawBody(rawBody);
|
|
3164
|
-
|
|
3164
|
+
const isConnectorPassthrough = type === "connector" || code.startsWith("CE_");
|
|
3165
|
+
if (response.status === 401 && !isConnectorPassthrough) {
|
|
3165
3166
|
throw new DelopayAuthenticationError(message, {
|
|
3166
3167
|
code,
|
|
3167
3168
|
type,
|
|
@@ -4133,4 +4134,4 @@ export {
|
|
|
4133
4134
|
applyBrandingVariables,
|
|
4134
4135
|
shadowFor
|
|
4135
4136
|
};
|
|
4136
|
-
//# sourceMappingURL=chunk-
|
|
4137
|
+
//# sourceMappingURL=chunk-7KPAARZE.js.map
|