@ywfe/fe-tools 1.2.1-beta.37 → 1.2.1-beta.39

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.
@@ -8726,7 +8726,6 @@ function request(_a) {
8726
8726
  };
8727
8727
  prefix = getBasePath();
8728
8728
  requestUrl = isValidURL(input.url) ? input.url : "".concat(prefix).concat(input.url);
8729
- console.log('requestUrl', requestUrl, isValidURL(input.url));
8730
8729
  fetchOption = {
8731
8730
  method: method,
8732
8731
  headers: {
@@ -8745,11 +8744,13 @@ function request(_a) {
8745
8744
  response = _c.sent();
8746
8745
  if (!response.ok) {
8747
8746
  message = "An error has occured: ".concat(response.status);
8747
+ console.log('req result', message);
8748
8748
  return [2 /*return*/, { success: false, message: message }];
8749
8749
  }
8750
8750
  return [4 /*yield*/, response.json()];
8751
8751
  case 2:
8752
8752
  result = _c.sent();
8753
+ console.log('req result', result);
8753
8754
  return [2 /*return*/, result];
8754
8755
  }
8755
8756
  });