@ywfe/fe-tools 1.2.1-beta.31 → 1.2.1-beta.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -8728,7 +8728,6 @@ function request(_a) {
8728
8728
  };
8729
8729
  prefix = getBasePath();
8730
8730
  requestUrl = isValidURL(input.url) ? input.url : "".concat(prefix).concat(input.url);
8731
- console.log('requestUrl', requestUrl, isValidURL(input.url));
8732
8731
  fetchOption = {
8733
8732
  method: method,
8734
8733
  headers: {
@@ -8747,11 +8746,13 @@ function request(_a) {
8747
8746
  response = _c.sent();
8748
8747
  if (!response.ok) {
8749
8748
  message = "An error has occured: ".concat(response.status);
8749
+ console.log('req result', message);
8750
8750
  return [2 /*return*/, { success: false, message: message }];
8751
8751
  }
8752
8752
  return [4 /*yield*/, response.json()];
8753
8753
  case 2:
8754
8754
  result = _c.sent();
8755
+ console.log('req result', result);
8755
8756
  return [2 /*return*/, result];
8756
8757
  }
8757
8758
  });