easyeda 0.0.40 → 0.0.42

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.
@@ -2143,7 +2143,7 @@ interface Props extends CommonLayoutProps {
2143
2143
 
2144
2144
  export const ${componentName} = (props: Props) => {
2145
2145
  return (
2146
- <bug
2146
+ <chip
2147
2147
  {...props}
2148
2148
  footprint={${footprintTsx}}
2149
2149
  ${objUrl ? `cadModel={{
@@ -2241,7 +2241,7 @@ import * as path from "path";
2241
2241
  var convertEasyEdaJsonToVariousFormats = async ({
2242
2242
  jlcpcbPartNumberOrFilepath,
2243
2243
  outputFilename,
2244
- formatType
2244
+ outputFormat
2245
2245
  }) => {
2246
2246
  let rawEasyEdaJson;
2247
2247
  if (jlcpcbPartNumberOrFilepath.includes(".") || jlcpcbPartNumberOrFilepath.includes("/")) {
@@ -2252,10 +2252,10 @@ var convertEasyEdaJsonToVariousFormats = async ({
2252
2252
  rawEasyEdaJson = await fetchEasyEDAComponent(jlcpcbPartNumberOrFilepath);
2253
2253
  }
2254
2254
  const tsxExtension = "tsx";
2255
- if (formatType === "ts") formatType = tsxExtension;
2256
- if (!outputFilename && formatType) {
2255
+ if (outputFormat === "ts") outputFormat = tsxExtension;
2256
+ if (!outputFilename && outputFormat) {
2257
2257
  let filename = path.basename(jlcpcbPartNumberOrFilepath).split(".")[0];
2258
- if (formatType === tsxExtension) {
2258
+ if (outputFormat === tsxExtension) {
2259
2259
  const {
2260
2260
  dataStr: {
2261
2261
  head: {
@@ -2265,7 +2265,7 @@ var convertEasyEdaJsonToVariousFormats = async ({
2265
2265
  } = rawEasyEdaJson;
2266
2266
  filename = normalizeManufacturerPartNumber(manufacturerPartNumber);
2267
2267
  }
2268
- outputFilename = `${filename}.${formatType}`;
2268
+ outputFilename = `${filename}.${outputFormat}`;
2269
2269
  }
2270
2270
  if (!outputFilename) {
2271
2271
  console.log("specify --output file (-o) or --type (-t)");
@@ -2326,4 +2326,4 @@ export {
2326
2326
  convertRawEasyEdaToTs,
2327
2327
  convertEasyEdaJsonToVariousFormats
2328
2328
  };
2329
- //# sourceMappingURL=chunk-RNEHSTL4.js.map
2329
+ //# sourceMappingURL=chunk-XV5WFS5P.js.map