reffy 7.2.9 → 7.2.10
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/package.json +2 -2
- package/src/lib/util.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.10",
|
|
4
4
|
"description": "W3C/WHATWG spec dependencies exploration companion. Features a short set of tools to study spec references as well as WebIDL term definitions and references found in W3C specifications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"abortcontroller-polyfill": "1.7.3",
|
|
35
35
|
"commander": "9.3.0",
|
|
36
36
|
"fetch-filecache-for-crawling": "4.1.0",
|
|
37
|
-
"puppeteer": "15.
|
|
37
|
+
"puppeteer": "15.4.0",
|
|
38
38
|
"semver": "^7.3.5",
|
|
39
39
|
"web-specs": "2.17.0",
|
|
40
40
|
"webidl2": "24.2.2"
|
package/src/lib/util.js
CHANGED
|
@@ -605,7 +605,7 @@ async function processSpecification(spec, processFunction, args, options) {
|
|
|
605
605
|
window.document.head.querySelector("script[src*='respec']");
|
|
606
606
|
|
|
607
607
|
function sleep(ms) {
|
|
608
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
608
|
+
return new Promise(resolve => setTimeout(resolve, ms, 'slept'));
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
async function isReady(counter) {
|
|
@@ -614,7 +614,10 @@ async function processSpecification(spec, processFunction, args, options) {
|
|
|
614
614
|
throw new Error('Respec generation took too long');
|
|
615
615
|
}
|
|
616
616
|
if (window.document.respec?.ready) {
|
|
617
|
-
await window.document.respec.ready;
|
|
617
|
+
const res = await Promise.race([window.document.respec.ready, sleep(60000)]);
|
|
618
|
+
if (res === 'slept') {
|
|
619
|
+
throw new Error('Respec generation took too long');
|
|
620
|
+
}
|
|
618
621
|
}
|
|
619
622
|
else if (usesRespec) {
|
|
620
623
|
await sleep(1000);
|