@getlupa/client 0.7.0-alpha-9 → 0.7.0-alpha-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/dist/cjs/index.min.js +4 -1
- package/dist/es/index.min.js +4 -1
- package/dist/iife/index.min.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.min.js
CHANGED
|
@@ -12156,7 +12156,10 @@ const generateResultLink = (link, searchText, facet) => {
|
|
|
12156
12156
|
const getRelativePath = (link) => {
|
|
12157
12157
|
try {
|
|
12158
12158
|
const url = new URL(link);
|
|
12159
|
-
|
|
12159
|
+
const partialUrl = url.toString().substring(url.origin.length);
|
|
12160
|
+
return partialUrl.endsWith("/")
|
|
12161
|
+
? partialUrl.slice(0, partialUrl.length - 1)
|
|
12162
|
+
: partialUrl;
|
|
12160
12163
|
}
|
|
12161
12164
|
catch (_a) {
|
|
12162
12165
|
// Invalid url, let's return original string
|
package/dist/es/index.min.js
CHANGED
|
@@ -12152,7 +12152,10 @@ const generateResultLink = (link, searchText, facet) => {
|
|
|
12152
12152
|
const getRelativePath = (link) => {
|
|
12153
12153
|
try {
|
|
12154
12154
|
const url = new URL(link);
|
|
12155
|
-
|
|
12155
|
+
const partialUrl = url.toString().substring(url.origin.length);
|
|
12156
|
+
return partialUrl.endsWith("/")
|
|
12157
|
+
? partialUrl.slice(0, partialUrl.length - 1)
|
|
12158
|
+
: partialUrl;
|
|
12156
12159
|
}
|
|
12157
12160
|
catch (_a) {
|
|
12158
12161
|
// Invalid url, let's return original string
|