reffy 17.2.4 → 17.2.6
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 +5 -5
- package/src/lib/util.js +5 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.6",
|
|
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,16 +37,16 @@
|
|
|
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.
|
|
40
|
+
"puppeteer": "23.5.0",
|
|
41
41
|
"semver": "^7.3.5",
|
|
42
|
-
"web-specs": "3.
|
|
42
|
+
"web-specs": "3.23.0",
|
|
43
43
|
"webidl2": "24.4.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"mocha": "10.7.3",
|
|
47
|
-
"respec": "35.1.
|
|
47
|
+
"respec": "35.1.2",
|
|
48
48
|
"respec-hljs": "2.1.1",
|
|
49
|
-
"rollup": "4.
|
|
49
|
+
"rollup": "4.24.0",
|
|
50
50
|
"undici": "^6.1.0"
|
|
51
51
|
},
|
|
52
52
|
"overrides": {
|
package/src/lib/util.js
CHANGED
|
@@ -828,19 +828,11 @@ async function expandSpecResult(spec, baseFolder, properties) {
|
|
|
828
828
|
// Also drop header that may have been added when extract was
|
|
829
829
|
// serialized.
|
|
830
830
|
if (contents.startsWith('// GENERATED CONTENT - DO NOT EDIT')) {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
.slice(0, -2);
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
const endOfHeader = contents.indexOf('\n\n');
|
|
840
|
-
contents = contents.substring(endOfHeader + 2)
|
|
841
|
-
// remove trailing newline added in saveIdl
|
|
842
|
-
.slice(0, -1);
|
|
843
|
-
}
|
|
831
|
+
// Normalize newlines to avoid off-by-one slices when we remove
|
|
832
|
+
// the trailing newline that was added by saveIdl
|
|
833
|
+
contents = contents.replace(/\r/g, '');
|
|
834
|
+
const endOfHeader = contents.indexOf('\n\n');
|
|
835
|
+
contents = contents.substring(endOfHeader + 2).slice(0, -1);
|
|
844
836
|
}
|
|
845
837
|
spec.idl = contents;
|
|
846
838
|
}
|