@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.
@@ -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: `${exp.kind.charAt(0).toUpperCase() + exp.kind.slice(1)}s`,
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.36.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.35.1",
45
+ "@openpkg-ts/spec": "^0.37.0",
46
46
  "picomatch": "4.0.3",
47
47
  "typescript": "^5.0.0"
48
48
  },