@proveanything/smartlinks 1.8.2 → 1.8.3

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.
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.8.2 | Generated: 2026-03-14T10:21:47.666Z
3
+ Version: 1.8.3 | Generated: 2026-03-14T10:31:32.637Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
package/dist/http.js CHANGED
@@ -749,6 +749,19 @@ function serializeFormDataForProxy(fd) {
749
749
  });
750
750
  return { _isFormData: true, entries };
751
751
  }
752
+ function sanitizeProxyRequestOptions(options) {
753
+ if (!options)
754
+ return undefined;
755
+ const _a = options, { signal, body, headers, method, window, duplex } = _a, rest = __rest(_a, ["signal", "body", "headers", "method", "window", "duplex"]);
756
+ void signal;
757
+ void body;
758
+ void headers;
759
+ void method;
760
+ void window;
761
+ void duplex;
762
+ const sanitized = Object.fromEntries(Object.entries(rest).filter(([, value]) => value !== undefined));
763
+ return Object.keys(sanitized).length ? sanitized : undefined;
764
+ }
752
765
  async function proxyRequest(method, path, body, headers, options) {
753
766
  ensureProxyListener();
754
767
  const payloadBody = (typeof FormData !== 'undefined' && body instanceof FormData)
@@ -762,7 +775,7 @@ async function proxyRequest(method, path, body, headers, options) {
762
775
  path,
763
776
  body: payloadBody,
764
777
  headers,
765
- options,
778
+ options: sanitizeProxyRequestOptions(options),
766
779
  };
767
780
  logDebug('[smartlinks] proxy:postMessage', { id, method, path, headers: headers ? redactHeaders(headers) : undefined, hasBody: !!body });
768
781
  return new Promise((resolve, reject) => {
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.8.2 | Generated: 2026-03-14T10:21:47.666Z
3
+ Version: 1.8.3 | Generated: 2026-03-14T10:31:32.637Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",