@techstuff-dev/foundation-api-utils 1.34.0 → 1.34.1

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 CHANGED
@@ -899,14 +899,12 @@ var authDataBaseQueryWithReauth = function (args, api, extraOptions) { return __
899
899
  case 0: return [4 /*yield*/, authDataBaseQuery(args, api, extraOptions)];
900
900
  case 1:
901
901
  result = _b.sent();
902
- console.log('authDataBaseQueryWithReauth: ', result);
903
902
  if (!(((_a = result === null || result === void 0 ? void 0 : result.error) === null || _a === void 0 ? void 0 : _a.status) === 401)) return [3 /*break*/, 6];
904
903
  return [4 /*yield*/, awsAmplify.Auth.currentAuthenticatedUser({
905
904
  bypassCache: true, // Ensures that the user is refreshed from the server
906
905
  })];
907
906
  case 2:
908
907
  authSession = _b.sent();
909
- console.log('authDataBaseQueryWithReauth: ', authSession);
910
908
  user = formatAuthSession(authSession);
911
909
  api.dispatch(setCredentials(user));
912
910
  if (!(authSession === null || authSession === void 0 ? void 0 : authSession.tokens)) return [3 /*break*/, 4];
@@ -1227,7 +1225,6 @@ var dataBaseQuery = react.fetchBaseQuery({
1227
1225
  return [4 /*yield*/, awsAmplify.Auth.currentSession()];
1228
1226
  case 1:
1229
1227
  session = _c.sent();
1230
- console.log('session', session);
1231
1228
  idToken = session.getIdToken().getJwtToken();
1232
1229
  accessToken = session.getAccessToken().getJwtToken();
1233
1230
  if (accessToken && idToken) {
@@ -1252,7 +1249,6 @@ var dataBaseQueryWithReauth = function (args, api, extraOptions) { return __awai
1252
1249
  case 0: return [4 /*yield*/, dataBaseQuery(args, api, extraOptions)];
1253
1250
  case 1:
1254
1251
  result = _b.sent();
1255
- console.log('result', result);
1256
1252
  if (!(((_a = result === null || result === void 0 ? void 0 : result.error) === null || _a === void 0 ? void 0 : _a.status) === 401)) return [3 /*break*/, 6];
1257
1253
  return [4 /*yield*/, awsAmplify.Auth.currentAuthenticatedUser({
1258
1254
  bypassCache: true, // Ensures that the user is refreshed from the server
@@ -1339,7 +1335,6 @@ var cartSlice = toolkit.createSlice({
1339
1335
  return __assign(__assign({}, state), { taxRate: action.payload, taxAmount: taxAmount, grossTotal: grossTotal });
1340
1336
  },
1341
1337
  resetTaxRate: function (state, action) {
1342
- console.log('resetTaxRate', action);
1343
1338
  return __assign(__assign({}, state), { taxRate: {
1344
1339
  country: 'none',
1345
1340
  percentage: 0,
@@ -1358,7 +1353,6 @@ var cartSlice = toolkit.createSlice({
1358
1353
  }, taxAmount: taxAmount, grossTotal: grossTotal });
1359
1354
  },
1360
1355
  removePromoCode: function (state, action) {
1361
- console.log('removePromoCode', action);
1362
1356
  var netTotal = state.netTotal, taxRate = state.taxRate;
1363
1357
  var taxAmount = applyTax(taxRate, netTotal);
1364
1358
  var grossTotal = netTotal + taxAmount;