@proveanything/smartlinks 1.14.12 → 1.14.14

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/http.js CHANGED
@@ -757,7 +757,7 @@ function ensureProxyListener() {
757
757
  const errorBody = (_d = (_c = msg.errorBody) !== null && _c !== void 0 ? _c : errObj) !== null && _d !== void 0 ? _d : msg.error;
758
758
  if (statusCode) {
759
759
  const errBody = normalizeErrorResponse(errorBody, statusCode);
760
- pending.reject(new SmartlinksApiError(message, statusCode, errBody));
760
+ pending.reject(new SmartlinksApiError(errBody.message, statusCode, errBody));
761
761
  }
762
762
  else {
763
763
  pending.reject(new Error(message));
@@ -431,7 +431,7 @@ export class IframeResponder {
431
431
  const fetchResponse = await fetch(fullUrl, fetchOptions);
432
432
  const responseData = await fetchResponse.json().catch(() => null);
433
433
  if (!fetchResponse.ok) {
434
- response.error = (responseData === null || responseData === void 0 ? void 0 : responseData.message) || `Request failed with status ${fetchResponse.status}`;
434
+ response.error = (responseData === null || responseData === void 0 ? void 0 : responseData.message) || (responseData === null || responseData === void 0 ? void 0 : responseData.errorText) || `Request failed with status ${fetchResponse.status}`;
435
435
  response.statusCode = fetchResponse.status;
436
436
  response.errorBody = responseData;
437
437
  }
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.14.12 | Generated: 2026-05-19T11:25:45.278Z
3
+ Version: 1.14.14 | Generated: 2026-05-29T11:57:02.879Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6