@hybridly/core 0.7.10 → 0.7.11

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.cjs CHANGED
@@ -378,7 +378,8 @@ function getUrlRegexForRoute(name) {
378
378
  });
379
379
  return RegExp(urlRegexPattern);
380
380
  }
381
- function urlMatchesRoute(url, name, routeParameters) {
381
+ function urlMatchesRoute(fullUrl, name, routeParameters) {
382
+ const url = makeUrl(fullUrl, { hash: "" }).toString();
382
383
  const parameters = routeParameters || {};
383
384
  const definition = getRouting().routes[name];
384
385
  if (!definition) {
package/dist/index.mjs CHANGED
@@ -371,7 +371,8 @@ function getUrlRegexForRoute(name) {
371
371
  });
372
372
  return RegExp(urlRegexPattern);
373
373
  }
374
- function urlMatchesRoute(url, name, routeParameters) {
374
+ function urlMatchesRoute(fullUrl, name, routeParameters) {
375
+ const url = makeUrl(fullUrl, { hash: "" }).toString();
375
376
  const parameters = routeParameters || {};
376
377
  const definition = getRouting().routes[name];
377
378
  if (!definition) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridly/core",
3
3
  "type": "module",
4
- "version": "0.7.10",
4
+ "version": "0.7.11",
5
5
  "description": "Core functionality of Hybridly",
6
6
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
7
7
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "qs": "^6.12.1",
45
45
  "superjson": "^2.2.1",
46
- "@hybridly/utils": "0.7.10"
46
+ "@hybridly/utils": "0.7.11"
47
47
  },
48
48
  "devDependencies": {
49
49
  "defu": "^6.1.4"