@adminforth/agent 1.26.12 → 1.26.13

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/apiBasedTools.ts CHANGED
@@ -619,7 +619,7 @@ function getRequestOrigin(httpExtra?: Partial<HttpExtra>) {
619
619
  return undefined;
620
620
  }
621
621
 
622
- const protocol = getHeaderValue(httpExtra?.headers, 'x-forwarded-proto') ?? DEFAULT_REQUEST_PROTOCOL;
622
+ const protocol = DEFAULT_REQUEST_PROTOCOL;
623
623
  return `${protocol}://${host}`;
624
624
  }
625
625
 
package/build.log CHANGED
@@ -38,5 +38,5 @@ custom/skills/fetch_data/SKILL.md
38
38
  custom/skills/mutate_data/
39
39
  custom/skills/mutate_data/SKILL.md
40
40
 
41
- sent 207,924 bytes received 562 bytes 416,972.00 bytes/sec
41
+ sent 207,920 bytes received 562 bytes 416,964.00 bytes/sec
42
42
  total size is 205,644 speedup is 0.99
@@ -414,7 +414,7 @@ function isAbsoluteHttpUrl(value) {
414
414
  }
415
415
  }
416
416
  function getRequestOrigin(httpExtra) {
417
- var _a, _b;
417
+ var _a;
418
418
  const requestUrl = httpExtra === null || httpExtra === void 0 ? void 0 : httpExtra.requestUrl;
419
419
  if (requestUrl && isAbsoluteHttpUrl(requestUrl)) {
420
420
  return new URL(requestUrl).origin;
@@ -423,7 +423,7 @@ function getRequestOrigin(httpExtra) {
423
423
  if (!host) {
424
424
  return undefined;
425
425
  }
426
- const protocol = (_b = getHeaderValue(httpExtra === null || httpExtra === void 0 ? void 0 : httpExtra.headers, 'x-forwarded-proto')) !== null && _b !== void 0 ? _b : DEFAULT_REQUEST_PROTOCOL;
426
+ const protocol = DEFAULT_REQUEST_PROTOCOL;
427
427
  return `${protocol}://${host}`;
428
428
  }
429
429
  function resolveOpenApiRequestUrl(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.26.12",
3
+ "version": "1.26.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",