@dyedurham/search-and-file-widget 2.1.21 → 2.1.23

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.
@@ -95307,10 +95307,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95307
95307
  /**
95308
95308
  * Orders the corporation's current data extract and waits until it is ready, returning the
95309
95309
  * `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
95310
- * so the extract is polled every `intervalMs` for up to `maxAttempts` times.
95310
+ * so the extract is polled every `intervalMs` until the registry returns a terminal status.
95311
95311
  */
95312
95312
  ensureCurrentDataExtract(_0, _1) {
95313
- return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
95313
+ return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
95314
95314
  ensureAuthInputs(signature);
95315
95315
  const fetchFn = opts.fetchImpl ?? fetch;
95316
95316
  const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
@@ -95324,7 +95324,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95324
95324
  errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
95325
95325
  }));
95326
95326
  }
95327
- for (let attempt = 0; attempt < maxAttempts; attempt++) {
95327
+ for (; ; ) {
95328
95328
  const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
95329
95329
  method: "GET",
95330
95330
  headers: __spreadValues({
@@ -95343,7 +95343,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95343
95343
  }
95344
95344
  yield new Promise((resolve) => setTimeout(resolve, intervalMs));
95345
95345
  }
95346
- throw new Error("BC current data extract is still processing. Please try again in a moment.");
95347
95346
  });
95348
95347
  }
95349
95348
  getCurrentDataExtract() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.21",
3
+ "version": "2.1.23",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {
@@ -8,4 +8,4 @@
8
8
  },
9
9
  "author": "",
10
10
  "license": "ISC"
11
- }
11
+ }