@hybridly/core 0.5.3 → 0.5.5
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -506,7 +506,7 @@ function getCurrentUrl() {
|
|
|
506
506
|
return window.location.toString();
|
|
507
507
|
}
|
|
508
508
|
function currentRouteMatches(name, parameters) {
|
|
509
|
-
const namePattern = name.replaceAll(".", "\\.").replaceAll("*", ".*")
|
|
509
|
+
const namePattern = `^${name.replaceAll(".", "\\.").replaceAll("*", ".*")}$`;
|
|
510
510
|
const possibleRoutes = Object.values(getRouting().routes).filter((x) => x.method.includes("GET") && RegExp(namePattern).test(x.name)).map((x) => x.name);
|
|
511
511
|
const currentUrl = getCurrentUrl();
|
|
512
512
|
return possibleRoutes.some((routeName) => {
|
package/dist/index.mjs
CHANGED
|
@@ -499,7 +499,7 @@ function getCurrentUrl() {
|
|
|
499
499
|
return window.location.toString();
|
|
500
500
|
}
|
|
501
501
|
function currentRouteMatches(name, parameters) {
|
|
502
|
-
const namePattern = name.replaceAll(".", "\\.").replaceAll("*", ".*")
|
|
502
|
+
const namePattern = `^${name.replaceAll(".", "\\.").replaceAll("*", ".*")}$`;
|
|
503
503
|
const possibleRoutes = Object.values(getRouting().routes).filter((x) => x.method.includes("GET") && RegExp(namePattern).test(x.name)).map((x) => x.name);
|
|
504
504
|
const currentUrl = getCurrentUrl();
|
|
505
505
|
return possibleRoutes.some((routeName) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Core functionality of Hybridly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hybridly",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"qs": "^6.11.2",
|
|
40
40
|
"superjson": "^1.13.1",
|
|
41
|
-
"@hybridly/utils": "0.5.
|
|
41
|
+
"@hybridly/utils": "0.5.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"defu": "^6.1.2"
|