dsh-advisor 0.1.3-alpha.2 → 0.1.3-alpha.3

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": "dsh-advisor",
3
- "version": "0.1.3-alpha.2",
3
+ "version": "0.1.3-alpha.3",
4
4
  "type": "module",
5
5
  "description": "dsh plugin bundle porting the omp advisor subsystem: a per-session reviewer model that observes the primary transcript and injects severity-ranked advice (nit/concern/blocker).",
6
6
  "repository": {
@@ -153,11 +153,11 @@ function updateChangelog(version, notes) {
153
153
  } catch {
154
154
  content = CHANGELOG_HEADER
155
155
  }
156
- // A 0-byte CHANGELOG.md (e.g. manual truncation) is treated as missing:
157
- // an empty file must still bootstrap with the standard header, otherwise
158
- // the new section would land at the top with leading blank lines and no
159
- // `# Changelog` header.
160
- if (content === '') {
156
+ // A 0-byte or whitespace-only CHANGELOG.md (e.g. manual truncation) is
157
+ // treated as missing: such a file must still bootstrap with the standard
158
+ // header, otherwise the new section would land at the top with leading
159
+ // blank lines and no `# Changelog` header.
160
+ if (content.trim() === '') {
161
161
  content = CHANGELOG_HEADER
162
162
  }
163
163