@dyrected/nuxt 2.3.7 → 2.3.8

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
3
  "configKey": "dyrected",
4
- "version": "2.3.6"
4
+ "version": "2.3.7"
5
5
  }
@@ -1,4 +1,4 @@
1
- import { defineEventHandler } from "h3";
1
+ import { defineEventHandler, getRequestURL } from "h3";
2
2
  import { createDyrectedApp } from "@dyrected/core/server";
3
3
  import { useRuntimeConfig } from "#imports";
4
4
  let app;
@@ -33,9 +33,8 @@ export default defineEventHandler(async (event) => {
33
33
  const originalUrl = req?.url || "/";
34
34
  const apiBase = config.apiBase || "/dyrected";
35
35
  const path = originalUrl.startsWith(apiBase) ? originalUrl.slice(apiBase.length) || "/" : originalUrl;
36
- const protocol = headers["x-forwarded-proto"] || "http";
37
- const host = headers["host"] || "localhost:3000";
38
- const fullUrl = new URL(path, `${protocol}://${host}`);
36
+ const url = getRequestURL(event);
37
+ const fullUrl = new URL(path, url.origin);
39
38
  let body = void 0;
40
39
  if (!["GET", "HEAD"].includes(method)) {
41
40
  if (req && typeof req.on === "function") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "type": "module",
5
5
  "main": "./dist/module.mjs",
6
6
  "types": "./dist/module.d.ts",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "@nuxt/kit": "^3.11.2",
12
12
  "h3": "^1.15.0",
13
- "@dyrected/sdk": "2.4.4",
14
- "@dyrected/core": "2.5.0",
15
- "@dyrected/vue": "2.5.3",
16
- "@dyrected/admin": "2.5.1"
13
+ "@dyrected/admin": "2.5.2",
14
+ "@dyrected/core": "2.5.1",
15
+ "@dyrected/sdk": "2.4.5",
16
+ "@dyrected/vue": "2.5.4"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "nuxt": "^3.0.0",
@@ -32,7 +32,7 @@
32
32
  "homepage": "https://dyrected.com",
33
33
  "repository": {
34
34
  "type": "git",
35
- "url": "git+https://github.com/she-WritesCode/dyrected.git"
35
+ "url": "git+https://github.com/Dyrected/dyrected.git"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"