@diviswap/sdk 1.7.22 → 1.7.25

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
@@ -1835,6 +1835,9 @@ var UnifiedApiClient = class _UnifiedApiClient {
1835
1835
  try {
1836
1836
  const controller = new AbortController();
1837
1837
  const timeoutId = setTimeout(() => controller.abort(), this.config.timeout);
1838
+ if (this.config.debug) {
1839
+ console.log(`[Diviswap SDK] ${method} ${url}`);
1840
+ }
1838
1841
  const response = await fetch(url, {
1839
1842
  method,
1840
1843
  headers: requestHeaders,
@@ -1849,6 +1852,9 @@ var UnifiedApiClient = class _UnifiedApiClient {
1849
1852
  } catch {
1850
1853
  responseData = responseText;
1851
1854
  }
1855
+ if (this.config.debug) {
1856
+ console.log(`[Diviswap SDK] Response ${response.status}: ${responseText.substring(0, 500)}`);
1857
+ }
1852
1858
  if (!response.ok) {
1853
1859
  await this.handleErrorResponse(response, responseData);
1854
1860
  }