@wltech/hooks
Advanced tools
Comparing version 0.0.27-alpha.28 to 0.0.27-alpha.29
{ | ||
"name": "@wltech/hooks", | ||
"version": "0.0.27-alpha.28", | ||
"version": "0.0.27-alpha.29", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -8,3 +8,3 @@ /** | ||
const hash = location.hash; | ||
const title = document.title?.split("-") || []; | ||
const title = document.title?.split('-') || []; | ||
let page_path = hash?.substring(1); | ||
@@ -15,3 +15,3 @@ const arr = page_path?.split("?"); | ||
page_query: arr?.[1], | ||
page_title: title?.slice(-1)?.[0], | ||
page_title: title.length > 1 ? title.slice(1).join('-') : document.title, | ||
}; | ||
@@ -18,0 +18,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
168364
0