@hey-api/shared 0.0.0-next-20260720171903 → 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
@@ -2136,6 +2136,11 @@ var SymbolFactory = class {
2136
2136
  if (!meta.resource) meta.resource = `${symbol.external}.${name}`;
2137
2137
  const existing = this.queryAll(meta).find((s) => s.name === name);
2138
2138
  if (existing) return existing;
2139
+ } else if (symbol.global) {
2140
+ if (!meta.category) meta.category = "global";
2141
+ if (!meta.resource) meta.resource = name;
2142
+ const existing = this.queryAll(meta).find((s) => s.name === name);
2143
+ if (existing) return existing;
2139
2144
  }
2140
2145
  const symbolIn = {
2141
2146
  ...symbol,
@@ -9167,8 +9172,8 @@ const commentEscapeNeeded = /\*\/|\/\*|\r?\n/;
9167
9172
  * in bulk via `slice` (tracked with `runStart`), each terminator pair
9168
9173
  * collapses to a single asterisk (both characters consumed together), and
9169
9174
  * each line break consumes the rest of that line in one step — normalizing
9170
- * it to `EOL` and trimming the following line's content — so no line is
9171
- * scanned twice.
9175
+ * it to `EOL` while copying the following line's content verbatim — so no
9176
+ * line is scanned twice.
9172
9177
  */
9173
9178
  function escapeComment(value) {
9174
9179
  const match = commentEscapeNeeded.exec(value);
@@ -9188,11 +9193,11 @@ function escapeComment(value) {
9188
9193
  consumed = 2;
9189
9194
  } else if (code === 13 && value.charCodeAt(i + 1) === 10) {
9190
9195
  const lineEnd = value.indexOf("\n", i + 2);
9191
- 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));
9192
9197
  consumed = (lineEnd === -1 ? len : lineEnd) - i;
9193
9198
  } else if (code === 10) {
9194
9199
  const lineEnd = value.indexOf("\n", i + 1);
9195
- 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));
9196
9201
  consumed = (lineEnd === -1 ? len : lineEnd) - i;
9197
9202
  } else continue;
9198
9203
  if (runStart !== i) result += value.slice(runStart, i);