reffy 17.2.0 → 17.2.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.1",
|
|
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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ajv-formats": "3.0.1",
|
|
38
38
|
"commander": "12.1.0",
|
|
39
39
|
"fetch-filecache-for-crawling": "5.1.1",
|
|
40
|
-
"puppeteer": "23.1.
|
|
40
|
+
"puppeteer": "23.1.1",
|
|
41
41
|
"semver": "^7.3.5",
|
|
42
42
|
"web-specs": "3.17.0",
|
|
43
43
|
"webidl2": "24.4.1"
|
|
@@ -24,12 +24,13 @@ export default function () {
|
|
|
24
24
|
// self, the GitHub repo, the implementation report, and other
|
|
25
25
|
// documents that don't need to appear in the list of references.
|
|
26
26
|
// Also ignore links in <del> elements that appear when specs
|
|
27
|
-
// carry their diff (e.g. W3C Recs with candidate corrections)
|
|
28
|
-
|
|
27
|
+
// carry their diff (e.g. W3C Recs with candidate corrections).
|
|
28
|
+
// And then ignore links in aside dfn panels. They only contain internal
|
|
29
|
+
// links or links that already appear elsewhere in the spec.
|
|
30
|
+
if (n.closest('.head, del, .dfn-panel')) return;
|
|
29
31
|
const pageUrl = n.href.split('#')[0];
|
|
30
32
|
// links generated by authoring tools have data-link-type or data-xref-type set
|
|
31
|
-
|
|
32
|
-
let linkSet = n.dataset.linkType || n.dataset.xrefType || n.closest("ul.index aside") ? autolinks : rawlinks;
|
|
33
|
+
let linkSet = n.dataset.linkType || n.dataset.xrefType ? autolinks : rawlinks;
|
|
33
34
|
if (!linkSet[pageUrl]) {
|
|
34
35
|
linkSet[pageUrl] = {anchors: new Set()};
|
|
35
36
|
}
|