From a7e61cebec15890d6afab8966e96178d1096b48f Mon Sep 17 00:00:00 2001 From: Severin Ibarluzea Date: Mon, 16 Mar 2026 11:14:35 -0700 Subject: [PATCH] Enhance fetchEasyEDAComponent with metadata option Added optional parameter 'includeModelMetadata' to fetch function. --- lib/websafe/fetch-easyeda-json.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/websafe/fetch-easyeda-json.ts b/lib/websafe/fetch-easyeda-json.ts index 2dd21e45..ac0db33d 100644 --- a/lib/websafe/fetch-easyeda-json.ts +++ b/lib/websafe/fetch-easyeda-json.ts @@ -2,7 +2,7 @@ import type { RawEasyEdaJson } from "../schemas/easy-eda-json-schema" export async function fetchEasyEDAComponent( jlcpcbPartNumber: string, - { fetch = globalThis.fetch }: { fetch?: typeof globalThis.fetch } = {}, + { fetch = globalThis.fetch, includeModelMetadata?: boolean }: { fetch?: typeof globalThis.fetch, includeModelMetadata = true } = {}, ): Promise { const searchUrl = "https://easyeda.com/api/components/search" const componentUrl = (uuid: string) =>