@routstr/sdk 0.1.3 → 0.1.4

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.
@@ -2048,12 +2048,14 @@ var RoutstrClient = class {
2048
2048
  try {
2049
2049
  const url = `${baseUrl.replace(/\/$/, "")}${path}`;
2050
2050
  if (this.mode === "xcashu") this._log("DEBUG", "HEADERS,", headers);
2051
+ this._log("DEBUG", "HEADERS,", headers);
2051
2052
  const response = await fetch(url, {
2052
2053
  method,
2053
2054
  headers,
2054
2055
  body: body === void 0 || method === "GET" ? void 0 : JSON.stringify(body)
2055
2056
  });
2056
2057
  if (this.mode === "xcashu") this._log("DEBUG", "response,", response);
2058
+ this._log("DEBUG", "response,", response);
2057
2059
  response.baseUrl = baseUrl;
2058
2060
  response.token = token;
2059
2061
  if (!response.ok) {
@@ -2160,6 +2162,7 @@ var RoutstrClient = class {
2160
2162
  }
2161
2163
  }
2162
2164
  if ((status === 402 || status === 413 && responseBody?.includes("Insufficient balance")) && !tryNextProvider && (this.mode === "apikeys" || this.mode === "lazyrefund")) {
2165
+ console.log("RESPONSFE ", responseBody);
2163
2166
  const topupResult = await this.balanceManager.topUp({
2164
2167
  mintUrl,
2165
2168
  baseUrl,