http-request-manager 18.15.11 → 18.15.12

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.
@@ -1065,8 +1065,7 @@ function safeJsonParse(jsonStr, fallback) {
1065
1065
  try {
1066
1066
  return JSON.parse(jsonStr);
1067
1067
  }
1068
- catch (error) {
1069
- console.warn('Failed to parse JSON:', jsonStr.substring(0, 100));
1068
+ catch {
1070
1069
  return fallback || null;
1071
1070
  }
1072
1071
  }
@@ -1078,8 +1077,7 @@ function safeJsonArrayParse(jsonStr, fallback = []) {
1078
1077
  const parsed = JSON.parse(jsonStr);
1079
1078
  return Array.isArray(parsed) ? parsed : fallback;
1080
1079
  }
1081
- catch (error) {
1082
- console.warn('Failed to parse JSON array:', jsonStr.substring(0, 100));
1080
+ catch {
1083
1081
  return fallback;
1084
1082
  }
1085
1083
  }