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