@bluecopa/core 0.1.18 → 0.1.20

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.es.js CHANGED
@@ -5957,10 +5957,11 @@ const getData$2 = async (datasetId, options) => {
5957
5957
  variable: datasetId,
5958
5958
  limit: (options == null ? void 0 : options.limit) || 1e3
5959
5959
  });
5960
- if (!(response == null ? void 0 : response.data)) {
5960
+ if (!response) {
5961
5961
  throw new Error("No data returned from API");
5962
5962
  }
5963
- return { data: response.data };
5963
+ console.log("Data returned from API", response);
5964
+ return { data: response };
5964
5965
  } catch (error) {
5965
5966
  const message = ((_b = (_a = error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.message) || error.message || "An unexpected error occurred while fetching data for the dataset";
5966
5967
  const status = ((_c = error.response) == null ? void 0 : _c.status) || 500;