@dogsbay/search 0.2.0-beta.182 → 0.2.0-beta.184
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 +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -371,7 +371,8 @@ function extractText(tree) {
|
|
|
371
371
|
let s = "";
|
|
372
372
|
for (const n of a) {
|
|
373
373
|
if (n.type === "text" || n.type === "code") s += n.text;
|
|
374
|
-
else if (n.type === "link" || n.type === "highlight") s += inl(n.children);
|
|
374
|
+
else if (n.type === "link" || n.type === "highlight" || n.type === "when") s += inl(n.children);
|
|
375
|
+
else if (n.type === "choice-value") s += n.form === "link" && n.children?.length ? inl(n.children) : n.text ?? "";
|
|
375
376
|
else if (n.type === "kbd") s += n.keys.join(" ");
|
|
376
377
|
else if (n.type === "badge") s += n.text;
|
|
377
378
|
else if (n.type === "image") s += n.alt ?? "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/search",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.184",
|
|
4
4
|
"description": "Static search for docs sites: builds in a Worker, queries from file://",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/entry.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"stemmer": "^2.0.1",
|
|
49
|
-
"@dogsbay/types": "0.2.0-beta.
|
|
49
|
+
"@dogsbay/types": "0.2.0-beta.184"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@playwright/test": "1.61.1",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
58
|
"vitest": "^4.1.10",
|
|
59
|
-
"@dogsbay/format-openapi": "0.2.0-beta.
|
|
59
|
+
"@dogsbay/format-openapi": "0.2.0-beta.184"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"repository": {
|