@clonegod/ttd-core 3.1.38 → 3.1.40

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
@@ -225,6 +225,7 @@ const clean_token_symbol = (symbol) => {
225
225
  return symbol;
226
226
  return symbol
227
227
  .replace(/\$/g, '')
228
+ .replace(/-/g, '')
228
229
  .replace(/\s+/g, '')
229
230
  .toUpperCase();
230
231
  };
@@ -103,15 +103,13 @@ function createAxiosInstance() {
103
103
  return config;
104
104
  });
105
105
  instance.interceptors.response.use((response) => response, (error) => {
106
- var _a;
106
+ var _a, _b;
107
107
  const simplifiedError = simplifyAxiosError(error);
108
108
  const url = ((_a = error.config) === null || _a === void 0 ? void 0 : _a.url) || 'unknown url';
109
- console.error(`[HttpUtil] Request failed for ${url}:`, simplifiedError);
109
+ console.warn(`[HttpUtil] ${url} → ${simplifiedError}`);
110
110
  const simplifiedAxiosError = new Error(simplifiedError);
111
111
  simplifiedAxiosError.isAxiosError = true;
112
- simplifiedAxiosError.config = error.config;
113
- simplifiedAxiosError.response = error.response;
114
- simplifiedAxiosError.request = error.request;
112
+ simplifiedAxiosError.status = (_b = error.response) === null || _b === void 0 ? void 0 : _b.status;
115
113
  return Promise.reject(simplifiedAxiosError);
116
114
  });
117
115
  return instance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.1.38",
3
+ "version": "3.1.40",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",