reffy 14.1.0 → 14.2.0
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": "14.
|
|
3
|
+
"version": "14.2.0",
|
|
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,19 +34,19 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ajv": "8.12.0",
|
|
36
36
|
"ajv-formats": "2.1.1",
|
|
37
|
-
"commander": "11.
|
|
37
|
+
"commander": "11.1.0",
|
|
38
38
|
"fetch-filecache-for-crawling": "5.0.0",
|
|
39
|
-
"puppeteer": "21.3.
|
|
39
|
+
"puppeteer": "21.3.8",
|
|
40
40
|
"semver": "^7.3.5",
|
|
41
|
-
"web-specs": "2.
|
|
41
|
+
"web-specs": "2.71.0",
|
|
42
42
|
"webidl2": "24.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"chai": "4.3.10",
|
|
46
46
|
"mocha": "10.2.0",
|
|
47
|
-
"respec": "34.
|
|
47
|
+
"respec": "34.2.0",
|
|
48
48
|
"respec-hljs": "2.1.1",
|
|
49
|
-
"rollup": "
|
|
49
|
+
"rollup": "4.1.4",
|
|
50
50
|
"undici": "^5.22.1"
|
|
51
51
|
},
|
|
52
52
|
"overrides": {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function () {
|
|
2
|
+
// bikeshed uses 'document-revision'
|
|
3
|
+
// but the documented convention in https://wiki.whatwg.org/wiki/MetaExtensions
|
|
4
|
+
// is just 'revision' per https://github.com/krallin/meta-revision
|
|
5
|
+
const meta = document.querySelector('meta[name="document-revision"], meta[name="revision"]');
|
|
6
|
+
const revision = meta?.content.trim();
|
|
7
|
+
// git commit shas are 40 hexadecimal characters
|
|
8
|
+
if (revision?.match(/[0-9a-f]{40}/)) {
|
|
9
|
+
return revision;
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
}
|
package/src/lib/mock-server.js
CHANGED
|
@@ -44,7 +44,7 @@ const mockSpecs = {
|
|
|
44
44
|
<script src='https://www.w3.org/Tools/respec/respec-w3c'></script>
|
|
45
45
|
<div id=abstract></div>
|
|
46
46
|
<pre class='idl'>[Exposed=Window] interface Foo { attribute DOMString bar; };</pre>`,
|
|
47
|
-
"/accelerometer/": `<html>
|
|
47
|
+
"/accelerometer/": `<html><meta name='document-revision' content='c0917d216986f88bdd43c72c0b13352c71f283aa'>
|
|
48
48
|
<h2>Normative references</h2>
|
|
49
49
|
<dl>
|
|
50
50
|
<dt>FOO</dt>
|