reffy 6.2.1 → 6.2.2
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 +1 -1
- package/src/lib/util.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
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",
|
package/src/lib/util.js
CHANGED
|
@@ -771,7 +771,9 @@ async function expandSpecResult(spec, baseFolder, properties) {
|
|
|
771
771
|
// serialized.
|
|
772
772
|
if (contents.startsWith('// GENERATED CONTENT - DO NOT EDIT')) {
|
|
773
773
|
const endOfHeader = contents.indexOf('\n\n');
|
|
774
|
-
contents = contents.substring(endOfHeader + 2)
|
|
774
|
+
contents = contents.substring(endOfHeader + 2)
|
|
775
|
+
// remove trailing newline added in saveIdl
|
|
776
|
+
.slice(0, -1);
|
|
775
777
|
}
|
|
776
778
|
spec.idl = contents;
|
|
777
779
|
}
|