lucos_search_component 0.1.19 → 0.1.20
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.js
CHANGED
|
@@ -5819,7 +5819,7 @@ class LucosSearchComponent extends HTMLSpanElement {
|
|
|
5819
5819
|
searchParams.set('highlight_end_tag', '</span>');
|
|
5820
5820
|
const response = await fetch("https://arachne.l42.eu/search?"+searchParams.toString(), {
|
|
5821
5821
|
headers: { 'X-TYPESENSE-API-KEY': key },
|
|
5822
|
-
signal: AbortSignal.timeout(
|
|
5822
|
+
signal: AbortSignal.timeout(2000),
|
|
5823
5823
|
});
|
|
5824
5824
|
const data = await response.json();
|
|
5825
5825
|
if (!response.ok) {
|
|
@@ -5963,7 +5963,7 @@ class LucosLangComponent extends HTMLSpanElement {
|
|
|
5963
5963
|
if (!key) throw new Error("No `data-api-key` attribute set on `lucos-search` component");
|
|
5964
5964
|
const response = await fetch("https://arachne.l42.eu/search?"+searchParams.toString(), {
|
|
5965
5965
|
headers: { 'X-TYPESENSE-API-KEY': key },
|
|
5966
|
-
signal: AbortSignal.timeout(
|
|
5966
|
+
signal: AbortSignal.timeout(2000),
|
|
5967
5967
|
});
|
|
5968
5968
|
const data = await response.json();
|
|
5969
5969
|
if (!response.ok) {
|
package/package.json
CHANGED
|
@@ -131,7 +131,7 @@ class LucosLangComponent extends HTMLSpanElement {
|
|
|
131
131
|
if (!key) throw new Error("No `data-api-key` attribute set on `lucos-search` component");
|
|
132
132
|
const response = await fetch("https://arachne.l42.eu/search?"+searchParams.toString(), {
|
|
133
133
|
headers: { 'X-TYPESENSE-API-KEY': key },
|
|
134
|
-
signal: AbortSignal.timeout(
|
|
134
|
+
signal: AbortSignal.timeout(2000),
|
|
135
135
|
});
|
|
136
136
|
const data = await response.json();
|
|
137
137
|
if (!response.ok) {
|
|
@@ -221,7 +221,7 @@ class LucosSearchComponent extends HTMLSpanElement {
|
|
|
221
221
|
searchParams.set('highlight_end_tag', '</span>');
|
|
222
222
|
const response = await fetch("https://arachne.l42.eu/search?"+searchParams.toString(), {
|
|
223
223
|
headers: { 'X-TYPESENSE-API-KEY': key },
|
|
224
|
-
signal: AbortSignal.timeout(
|
|
224
|
+
signal: AbortSignal.timeout(2000),
|
|
225
225
|
});
|
|
226
226
|
const data = await response.json();
|
|
227
227
|
if (!response.ok) {
|