@textmode/docs 0.4.1 → 0.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textmode/docs",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "license": "CC0-1.0",
6
6
  "description": "Shared documentation generation and validation for the textmode.js ecosystem",
@@ -56,10 +56,11 @@ export async function reconcileDates({ baseline, target, date = new Date().toISO
56
56
  (_, opening, fields, closing) => {
57
57
  const marker = /^(?:hasConstructor|isInterface):/m.exec(fields);
58
58
  const position = marker ? marker.index : fields.length;
59
+ const newline = opening.endsWith('\r\n') ? '\r\n' : '\n';
59
60
  return (
60
61
  opening +
61
62
  fields.slice(0, position) +
62
- `lastModified: ${lastModified}\n` +
63
+ `lastModified: ${lastModified}${newline}` +
63
64
  fields.slice(position) +
64
65
  closing
65
66
  );