@tscircuit/cli 0.1.209 → 0.1.210

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/dist/main.js +3 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -62957,7 +62957,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
62957
62957
  import { execSync as execSync2 } from "node:child_process";
62958
62958
  var import_semver2 = __toESM2(require_semver2(), 1);
62959
62959
  // package.json
62960
- var version = "0.1.208";
62960
+ var version = "0.1.209";
62961
62961
  var package_default = {
62962
62962
  name: "@tscircuit/cli",
62963
62963
  version,
@@ -70885,7 +70885,8 @@ var registerSearch = (program3) => {
70885
70885
  json: { query }
70886
70886
  }).json();
70887
70887
  const jlcSearchUrl = "https://jlcsearch.tscircuit.com/api/search?limit=10&q=" + encodeURIComponent(query);
70888
- jlcResults = (await fetch(jlcSearchUrl).then((r) => r.json())).components;
70888
+ const jlcResponse = await fetch(jlcSearchUrl).then((r) => r.json());
70889
+ jlcResults = jlcResponse?.components ?? [];
70889
70890
  }
70890
70891
  const kicadFiles = await fetch("https://kicad-mod-cache.tscircuit.com/kicad_files.json").then((r) => r.json());
70891
70892
  const fuse = new Fuse(kicadFiles);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.209",
3
+ "version": "0.1.210",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",