@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.
package/dnd-filing-shell.js
CHANGED
|
@@ -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`
|
|
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
|
|
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 (
|
|
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() {
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED