@interopio/gateway-server 0.8.1-beta.0 → 0.8.1-beta.1

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/changelog.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  # Change Log
4
4
 
5
+ ## 0.8.1-beta.1 (2025-08-26)
6
+
7
+ ### Changed
8
+ - test client typings
9
+
10
+ ### Fixed
11
+ - complete response on preflight requests
12
+
5
13
  ## 0.8.1-beta.0 (2025-08-04)
6
14
 
7
15
  ### Added
package/dist/index.cjs CHANGED
@@ -578,7 +578,9 @@ var AbstractServerHttpResponse = class extends AbstractHttpResponse {
578
578
  }
579
579
  async end() {
580
580
  if (!this.commited) {
581
- return this.doCommit();
581
+ return this.doCommit(async () => {
582
+ return await this.bodyInternal(Promise.resolve());
583
+ });
582
584
  } else {
583
585
  return Promise.resolve(false);
584
586
  }
@@ -1140,7 +1142,9 @@ async function dumpHeap(opts) {
1140
1142
  }
1141
1143
  }
1142
1144
  async function fileExists(path) {
1143
- log2.trace(`checking file ${path}`);
1145
+ if (log2.enabledFor("trace")) {
1146
+ log2.debug(`checking file ${path}`);
1147
+ }
1144
1148
  await (0, import_promises.access)(path);
1145
1149
  }
1146
1150
  async function processStats(stats, state, opts) {
@@ -1492,7 +1496,9 @@ var processRequest = (exchange, config) => {
1492
1496
  return false;
1493
1497
  }
1494
1498
  if (responseHeaders.has("access-control-allow-origin")) {
1495
- logger.trace(`skip: already contains "Access-Control-Allow-Origin"`);
1499
+ if (logger.enabledFor("trace")) {
1500
+ logger.debug(`skip: already contains "Access-Control-Allow-Origin"`);
1501
+ }
1496
1502
  return true;
1497
1503
  }
1498
1504
  const preFlightRequest = isPreFlightRequest(request);