@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/api/asset.js CHANGED
@@ -10,6 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { request, post, put, del, getApiHeaders, getBaseURL, isProxyEnabled, proxyUploadFormData } from "../http";
13
+ import { SmartlinksApiError } from "../types/error";
13
14
  export var asset;
14
15
  (function (asset) {
15
16
  function resolveApiUrl(path) {
@@ -175,7 +176,8 @@ export var asset;
175
176
  }
176
177
  catch (e) {
177
178
  const msg = (e === null || e === void 0 ? void 0 : e.message) || 'URL upload failed';
178
- throw new AssetUploadError(msg, 'UNKNOWN');
179
+ const details = e instanceof SmartlinksApiError ? e.errorResponse : undefined;
180
+ throw new AssetUploadError(msg, 'UNKNOWN', details);
179
181
  }
180
182
  }
181
183
  asset.uploadFromUrl = uploadFromUrl;
@@ -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