@builtbyecho/public-api-finder 0.5.3 → 0.5.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builtbyecho/public-api-finder",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Find free/public APIs for agents and prototypes.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -12,7 +12,7 @@ const SOURCES = {
12
12
  };
13
13
  const CACHE_PATH = process.env.PUBLIC_API_FINDER_CACHE || join(homedir(), '.cache', 'public-api-finder', 'all.json');
14
14
  const CACHE_TTL_MS = 24 * 60 * 60 * 1000;
15
- const DATA_VERSION = 12;
15
+ const DATA_VERSION = 13;
16
16
 
17
17
  const ENRICHMENT_FIELDS = [
18
18
  'tags',
@@ -592,6 +592,10 @@ function enrichCuratedApi(api) {
592
592
 
593
593
  const ENRICHED_CURATED_APIS = CURATED_APIS.map(enrichCuratedApi);
594
594
 
595
+ export function getCuratedApis() {
596
+ return ENRICHED_CURATED_APIS.map(api => ({ ...api, tags: [...(api.tags || [])], domains: [...(api.domains || [])], useCases: [...(api.useCases || [])] }));
597
+ }
598
+
595
599
  function compactName(value) { return String(value || '').toLowerCase().replace(/[^a-z0-9]+/g, ''); }
596
600
  const KNOWN_BEST_NAMES = new Map(ENRICHED_CURATED_APIS.map(api => [compactName(api.name), 15]));
597
601