rl-rock 1.2.6 → 1.2.7

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.mjs CHANGED
@@ -2,7 +2,7 @@ import path, { join, resolve, basename } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
  import { existsSync, mkdirSync, readFileSync, statSync, mkdtempSync, rmSync } from 'fs';
4
4
  import { z } from 'zod';
5
- import axios, { AxiosError } from 'axios';
5
+ import axios from 'axios';
6
6
  import https from 'https';
7
7
  import { objectToCamel as objectToCamel$1, objectToSnake as objectToSnake$1 } from 'ts-case-convert';
8
8
  import winston from 'winston';
@@ -299,9 +299,6 @@ var HttpUtils = class {
299
299
  }
300
300
  return httpResponse;
301
301
  } catch (error) {
302
- if (error instanceof AxiosError) {
303
- throw new Error(`Failed to POST ${url}: ${error.message}`);
304
- }
305
302
  throw error;
306
303
  }
307
304
  }
@@ -326,9 +323,6 @@ var HttpUtils = class {
326
323
  }
327
324
  return httpResponse;
328
325
  } catch (error) {
329
- if (error instanceof AxiosError) {
330
- throw new Error(`Failed to GET ${url}: ${error.message}`);
331
- }
332
326
  throw error;
333
327
  }
334
328
  }
@@ -408,9 +402,6 @@ var HttpUtils = class {
408
402
  }
409
403
  return httpResponse;
410
404
  } catch (error) {
411
- if (error instanceof AxiosError) {
412
- throw new Error(`Failed to POST multipart ${url}: ${error.message}`);
413
- }
414
405
  throw error;
415
406
  }
416
407
  }