@nordcraft/runtime 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -4,13 +4,13 @@
4
4
  "type": "module",
5
5
  "homepage": "https://github.com/nordcraftengine/nordcraft",
6
6
  "dependencies": {
7
- "@nordcraft/core": "1.0.9",
8
- "@nordcraft/std-lib": "1.0.9",
7
+ "@nordcraft/core": "1.0.10",
8
+ "@nordcraft/std-lib": "1.0.10",
9
9
  "fast-deep-equal": "3.1.3",
10
10
  "path-to-regexp": "6.3.0"
11
11
  },
12
12
  "devDependencies": {
13
- "@happy-dom/global-registrator": "17.4.6"
13
+ "@happy-dom/global-registrator": "17.4.7"
14
14
  },
15
15
  "scripts": {
16
16
  "build": "tsc && bun scripts/build.js",
@@ -21,5 +21,5 @@
21
21
  "files": ["dist", "src"],
22
22
  "main": "dist/page.main.js",
23
23
  "types": "dist/page.main.d.ts",
24
- "version": "1.0.9"
24
+ "version": "1.0.10"
25
25
  }
@@ -118,7 +118,10 @@ export function createAPI(
118
118
  },
119
119
  })
120
120
  if (typeof location === 'string') {
121
- const url = validateUrl(location, window.location.href)
121
+ const url = validateUrl({
122
+ path: location,
123
+ origin: window.location.origin,
124
+ })
122
125
  if (url) {
123
126
  if (ctx.env.runtime === 'preview') {
124
127
  // Attempt to notify the parent about the failed navigation attempt