search-and-file-widget-test 1.5.2 → 1.5.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.
@@ -50872,6 +50872,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
50872
50872
  const status = r.Status ? String(r.Status) : "ValidationFailed";
50873
50873
  return new Error(msgs.length ? `eCore validation failed (HTTP ${httpStatus}, ${status}): ${msgs.join(" | ")}` : `eCore validation failed (HTTP ${httpStatus}, ${status}).`);
50874
50874
  }
50875
+ function joinUrl(base, path) {
50876
+ const b = base.endsWith("/") ? base.slice(0, -1) : base;
50877
+ const p = path.startsWith("/") ? path : `/${path}`;
50878
+ return `${b}${p}`;
50879
+ }
50875
50880
  function ensureAuthInputs(signature) {
50876
50881
  if (!signature?.proxyApiUrl) {
50877
50882
  const err = new Error("Missing signature.proxyApiUrl (required input from Athennian).");
@@ -84361,7 +84366,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84361
84366
  }
84362
84367
  ensureAuthInputs(signature);
84363
84368
  const fetchFn = opts.fetchImpl ?? fetch;
84364
- const url = signature.proxyApiUrl;
84369
+ const endpointPath = opts.endpointPath ?? "/api/Incorporation";
84370
+ const url = joinUrl("/api/", endpointPath);
84365
84371
  let req;
84366
84372
  try {
84367
84373
  const formationTask = signature.task;
@@ -84407,7 +84413,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84407
84413
  throw err;
84408
84414
  }
84409
84415
  const fetchFn = opts.fetchImpl ?? fetch;
84410
- const url = signature.proxyApiUrl;
84416
+ const basePath = opts.endpointPath ?? "/api/Incorporation";
84417
+ const url = joinUrl("/api/", `${basePath}/${encodeURIComponent(serviceOrderId)}/submit`);
84411
84418
  const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
84412
84419
  method: "POST",
84413
84420
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "search-and-file-widget-test",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {