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