@marqeta/ux-toolkit-sdk-javascript 2.10.1 → 2.10.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/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6548,10 +6548,16 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
6548
6548
|
value: function requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders) {
|
|
6549
6549
|
var _this = this;
|
|
6550
6550
|
return _async_to_generator(function() {
|
|
6551
|
-
var uxtServiceUrl, dpopProof, data, access_token, expires_in;
|
|
6551
|
+
var uxtServiceUrl, dpopProof, data, access_token, expires_in, error2;
|
|
6552
6552
|
return _ts_generator(this, function(_state) {
|
|
6553
6553
|
switch(_state.label){
|
|
6554
6554
|
case 0:
|
|
6555
|
+
_state.trys.push([
|
|
6556
|
+
0,
|
|
6557
|
+
3,
|
|
6558
|
+
,
|
|
6559
|
+
4
|
|
6560
|
+
]);
|
|
6555
6561
|
uxtServiceUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
6556
6562
|
return [
|
|
6557
6563
|
4,
|
|
@@ -6580,6 +6586,14 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
6580
6586
|
expiresIn: expires_in
|
|
6581
6587
|
}
|
|
6582
6588
|
];
|
|
6589
|
+
case 3:
|
|
6590
|
+
error2 = _state.sent();
|
|
6591
|
+
console.error(FETCH_AUTH_TOKEN_ERROR, error2);
|
|
6592
|
+
throw new MqSDKError(FETCH_AUTH_TOKEN_ERROR, error2);
|
|
6593
|
+
case 4:
|
|
6594
|
+
return [
|
|
6595
|
+
2
|
|
6596
|
+
];
|
|
6583
6597
|
}
|
|
6584
6598
|
});
|
|
6585
6599
|
})();
|
package/dist/index.mjs
CHANGED
|
@@ -5169,10 +5169,16 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
5169
5169
|
value: function requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders) {
|
|
5170
5170
|
var _this = this;
|
|
5171
5171
|
return _async_to_generator(function() {
|
|
5172
|
-
var uxtServiceUrl, dpopProof, data, access_token, expires_in;
|
|
5172
|
+
var uxtServiceUrl, dpopProof, data, access_token, expires_in, error2;
|
|
5173
5173
|
return _ts_generator(this, function(_state) {
|
|
5174
5174
|
switch(_state.label){
|
|
5175
5175
|
case 0:
|
|
5176
|
+
_state.trys.push([
|
|
5177
|
+
0,
|
|
5178
|
+
3,
|
|
5179
|
+
,
|
|
5180
|
+
4
|
|
5181
|
+
]);
|
|
5176
5182
|
uxtServiceUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
5177
5183
|
return [
|
|
5178
5184
|
4,
|
|
@@ -5201,6 +5207,14 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
5201
5207
|
expiresIn: expires_in
|
|
5202
5208
|
}
|
|
5203
5209
|
];
|
|
5210
|
+
case 3:
|
|
5211
|
+
error2 = _state.sent();
|
|
5212
|
+
console.error(FETCH_AUTH_TOKEN_ERROR, error2);
|
|
5213
|
+
throw new MqSDKError(FETCH_AUTH_TOKEN_ERROR, error2);
|
|
5214
|
+
case 4:
|
|
5215
|
+
return [
|
|
5216
|
+
2
|
|
5217
|
+
];
|
|
5204
5218
|
}
|
|
5205
5219
|
});
|
|
5206
5220
|
})();
|