@marqeta/ux-toolkit-sdk-javascript 2.15.1 → 2.15.2
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-6KIVMVW4.mjs → chunk-AXZ5QFDF.mjs} +9 -2
- package/dist/{chunk-TOZ2YF66.js → chunk-K4IAX6CN.js} +9 -2
- package/dist/index.js +480 -480
- package/dist/index.mjs +1 -1
- package/dist/react-native.js +593 -532
- package/dist/react-native.mjs +60 -5
- package/package.json +1 -1
|
@@ -4201,11 +4201,18 @@ function checkHttpStandizedError(httpIsOk, data) {
|
|
|
4201
4201
|
function _checkHttpStandizedError() {
|
|
4202
4202
|
_checkHttpStandizedError = // src/http-client/utils/checkHttpStandardizedError.ts
|
|
4203
4203
|
_async_to_generator(function(httpIsOk, data) {
|
|
4204
|
-
var error2, stdError, oauthError;
|
|
4204
|
+
var error2, convertedDebug, stdError, oauthError;
|
|
4205
4205
|
return _ts_generator(this, function(_state) {
|
|
4206
4206
|
error2 = data === null || data === void 0 ? void 0 : data.error;
|
|
4207
4207
|
if ((error2 === null || error2 === void 0 ? void 0 : error2.id) && (error2 === null || error2 === void 0 ? void 0 : error2.debug)) {
|
|
4208
|
-
|
|
4208
|
+
convertedDebug = error2.debug.map(function(item) {
|
|
4209
|
+
return {
|
|
4210
|
+
source: item.source,
|
|
4211
|
+
code: item.code,
|
|
4212
|
+
err: new Error(item.message || "Unknown error")
|
|
4213
|
+
};
|
|
4214
|
+
});
|
|
4215
|
+
stdError = new StandardizedError(error2.id, convertedDebug, error2.details);
|
|
4209
4216
|
console.log({
|
|
4210
4217
|
stdError: stdError
|
|
4211
4218
|
});
|
|
@@ -4181,7 +4181,7 @@ function checkHttpStandizedError(httpIsOk, data) {
|
|
|
4181
4181
|
function _checkHttpStandizedError() {
|
|
4182
4182
|
_checkHttpStandizedError = // src/http-client/utils/checkHttpStandardizedError.ts
|
|
4183
4183
|
_async_to_generator(function(httpIsOk, data) {
|
|
4184
|
-
var error2, stdError, oauthError;
|
|
4184
|
+
var error2, convertedDebug, stdError, oauthError;
|
|
4185
4185
|
return _ts_generator(this, function(_state) {
|
|
4186
4186
|
error2 = _optionalChain([
|
|
4187
4187
|
data,
|
|
@@ -4203,7 +4203,14 @@ function _checkHttpStandizedError() {
|
|
|
4203
4203
|
return _10.debug;
|
|
4204
4204
|
}
|
|
4205
4205
|
])) {
|
|
4206
|
-
|
|
4206
|
+
convertedDebug = error2.debug.map(function(item) {
|
|
4207
|
+
return {
|
|
4208
|
+
source: item.source,
|
|
4209
|
+
code: item.code,
|
|
4210
|
+
err: new Error(item.message || "Unknown error")
|
|
4211
|
+
};
|
|
4212
|
+
});
|
|
4213
|
+
stdError = new StandardizedError(error2.id, convertedDebug, error2.details);
|
|
4207
4214
|
console.log({
|
|
4208
4215
|
stdError: stdError
|
|
4209
4216
|
});
|