@ywfe/fe-tools 1.2.1-beta.38 → 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.
- package/lib/ywfe-tools.cjs +2 -1
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +2 -1
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/lib/ywfe-tools.umd.js +1 -1
- package/lib/ywfe-tools.umd.js.map +1 -1
- package/package.json +1 -1
- package/request.ts +2 -1
package/lib/ywfe-tools.cjs
CHANGED
|
@@ -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
|
});
|