@hey-api/shared 0.0.0-next-20260722143429 → 0.0.0-next-20260723124023

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/dist/index.d.mts CHANGED
@@ -3356,8 +3356,8 @@ declare function findTsConfigPath(baseDir: string, tsConfigPath?: AnyString | nu
3356
3356
  * in bulk via `slice` (tracked with `runStart`), each terminator pair
3357
3357
  * collapses to a single asterisk (both characters consumed together), and
3358
3358
  * each line break consumes the rest of that line in one step — normalizing
3359
- * it to `EOL` and trimming the following line's content — so no line is
3360
- * scanned twice.
3359
+ * it to `EOL` while copying the following line's content verbatim — so no
3360
+ * line is scanned twice.
3361
3361
  */
3362
3362
  declare function escapeComment(value: string): string;
3363
3363
  //#endregion
package/dist/index.mjs CHANGED
@@ -9172,8 +9172,8 @@ const commentEscapeNeeded = /\*\/|\/\*|\r?\n/;
9172
9172
  * in bulk via `slice` (tracked with `runStart`), each terminator pair
9173
9173
  * collapses to a single asterisk (both characters consumed together), and
9174
9174
  * each line break consumes the rest of that line in one step — normalizing
9175
- * it to `EOL` and trimming the following line's content — so no line is
9176
- * scanned twice.
9175
+ * it to `EOL` while copying the following line's content verbatim — so no
9176
+ * line is scanned twice.
9177
9177
  */
9178
9178
  function escapeComment(value) {
9179
9179
  const match = commentEscapeNeeded.exec(value);
@@ -9193,11 +9193,11 @@ function escapeComment(value) {
9193
9193
  consumed = 2;
9194
9194
  } else if (code === 13 && value.charCodeAt(i + 1) === 10) {
9195
9195
  const lineEnd = value.indexOf("\n", i + 2);
9196
- replacement = EOL + (lineEnd === -1 ? value.slice(i + 2) : value.slice(i + 2, lineEnd)).trim();
9196
+ replacement = EOL + (lineEnd === -1 ? value.slice(i + 2) : value.slice(i + 2, lineEnd));
9197
9197
  consumed = (lineEnd === -1 ? len : lineEnd) - i;
9198
9198
  } else if (code === 10) {
9199
9199
  const lineEnd = value.indexOf("\n", i + 1);
9200
- replacement = EOL + (lineEnd === -1 ? value.slice(i + 1) : value.slice(i + 1, lineEnd)).trim();
9200
+ replacement = EOL + (lineEnd === -1 ? value.slice(i + 1) : value.slice(i + 1, lineEnd));
9201
9201
  consumed = (lineEnd === -1 ? len : lineEnd) - i;
9202
9202
  } else continue;
9203
9203
  if (runStart !== i) result += value.slice(runStart, i);