@iblai/data-layer 1.2.7 → 1.2.9

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.esm.js CHANGED
@@ -39180,6 +39180,7 @@ const buildEndpointFromService = (service, serviceFn) => {
39180
39180
  return { data };
39181
39181
  }
39182
39182
  catch (err) {
39183
+ console.error('[data-layer] API error:', JSON.stringify(err, Object.getOwnPropertyNames(err)));
39183
39184
  if (Object.prototype.hasOwnProperty.call(Config.httpErrorHandlers, err === null || err === void 0 ? void 0 : err.status)) {
39184
39185
  Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status]({ ...((err === null || err === void 0 ? void 0 : err.data) || {}) });
39185
39186
  }
@@ -39250,7 +39251,7 @@ const invokeHttpErrorHandler = (status, error) => {
39250
39251
  }
39251
39252
  };
39252
39253
  /** HTTP status codes that should not be retried (e.g., 402 Payment Required). */
39253
- const NON_RETRYABLE_STATUS_CODES = [402];
39254
+ const NON_RETRYABLE_STATUS_CODES = [402, 401];
39254
39255
  /**
39255
39256
  * Wraps a base query to skip retries for non-retryable HTTP status codes.
39256
39257
  * Uses `retry.fail()` to immediately bail out of the retry loop.
@@ -39305,7 +39306,6 @@ const iblFetchBaseQuery = async (args, api, extraOptions) => {
39305
39306
  error: e,
39306
39307
  }));
39307
39308
  // Extract status from error and invoke HTTP error handlers
39308
- console.log('[MONETIZATION e]', { e });
39309
39309
  const err = e;
39310
39310
  const errorStatus = typeof e === 'object' && e !== null && 'status' in e
39311
39311
  ? e.status