jsdoczoom 0.4.19 → 0.4.20

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.
@@ -118,6 +118,11 @@ function getAllBlockComments(sourceText, start, end) {
118
118
  pos++;
119
119
  continue;
120
120
  }
121
+ // Skip shebang line (e.g. #!/usr/bin/env node) — only valid at position 0
122
+ if (pos === 0 && sourceText[0] === "#" && sourceText[1] === "!") {
123
+ pos = findLineCommentEnd(sourceText, pos + 2);
124
+ continue;
125
+ }
121
126
  const nextChar = sourceText[pos + 1];
122
127
  if (sourceText[pos] !== "/" || pos + 1 >= end) break;
123
128
  if (nextChar === "*") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsdoczoom",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "description": "CLI tool for extracting JSDoc summaries at configurable depths",
5
5
  "type": "module",
6
6
  "sideEffects": false,