@openpkg-ts/sdk 0.36.0 → 0.37.1
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/browser.d.ts +7 -7
- package/dist/browser.js +1 -1
- package/dist/index.d.ts +33 -12
- package/dist/index.js +571 -281
- package/dist/shared/{chunk-hnajr1tb.js → chunk-zrx9s0n4.js} +2 -1
- package/package.json +2 -2
|
@@ -347,6 +347,7 @@ function filterExports(spec, names) {
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
// src/core/search.ts
|
|
350
|
+
import { KIND_LABELS } from "@openpkg-ts/spec";
|
|
350
351
|
var defaultSlugify = (name) => name.toLowerCase().replace(/[^a-z0-9]+/g, "-");
|
|
351
352
|
function extractKeywords(exp, options = {}) {
|
|
352
353
|
const keywords = new Set;
|
|
@@ -501,7 +502,7 @@ function toAlgoliaRecords(spec, options = {}) {
|
|
|
501
502
|
url: `${baseUrl}/${slugify(exp.name)}`,
|
|
502
503
|
hierarchy: {
|
|
503
504
|
lvl0: spec.meta.name,
|
|
504
|
-
lvl1:
|
|
505
|
+
lvl1: KIND_LABELS[exp.kind],
|
|
505
506
|
lvl2: exp.name
|
|
506
507
|
}
|
|
507
508
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpkg-ts/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"description": "TypeScript API extraction SDK - programmatic primitives for OpenPkg specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openpkg",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test": "bun test"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@openpkg-ts/spec": "^0.
|
|
45
|
+
"@openpkg-ts/spec": "^0.37.0",
|
|
46
46
|
"picomatch": "4.0.3",
|
|
47
47
|
"typescript": "^5.0.0"
|
|
48
48
|
},
|