easyeda 0.0.312 → 0.0.314
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.
- package/dist/browser/index.js +5 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +6 -2
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3528,7 +3528,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
3528
3528
|
var package_default = {
|
|
3529
3529
|
name: "easyeda",
|
|
3530
3530
|
type: "module",
|
|
3531
|
-
version: "0.0.
|
|
3531
|
+
version: "0.0.313",
|
|
3532
3532
|
files: [
|
|
3533
3533
|
"dist"
|
|
3534
3534
|
],
|
|
@@ -11629,7 +11629,7 @@ var categoryValueContainsPushbutton = (value) => {
|
|
|
11629
11629
|
if (/analog\s+switch/.test(normalized) || /multiplex/.test(normalized) || /switching\s+diodes?/.test(normalized) || /\bics?\b/.test(normalized)) {
|
|
11630
11630
|
return false;
|
|
11631
11631
|
}
|
|
11632
|
-
return /push\s*buttons?/.test(normalized) || /pushbuttons?/.test(normalized) || /tact(?:ile)?\s+switch(?:es)?/.test(normalized) || /keyboard\s+(?:switch(?:es)?|shaft)/.test(normalized) || /mechanical\s+keyboard\s+shaft/.test(normalized);
|
|
11632
|
+
return /push\s*buttons?/.test(normalized) || /pushbuttons?/.test(normalized) || /tact(?:ile)?\s+switch(?:es)?/.test(normalized) || /keyboard\s+(?:switch(?:es)?|shaft)/.test(normalized) || /mechanical\s+keyboard\s+shaft/.test(normalized) || /\bkey[-_\s]+(?:th|smd)(?:\b|[_-])/.test(normalized);
|
|
11633
11633
|
}
|
|
11634
11634
|
if (Array.isArray(value)) {
|
|
11635
11635
|
return value.some(categoryValueContainsPushbutton);
|
|
@@ -11645,10 +11645,14 @@ var isPushbuttonCategoryComponent = (betterEasy) => {
|
|
|
11645
11645
|
const cPara = betterEasy.dataStr.head.c_para;
|
|
11646
11646
|
return [
|
|
11647
11647
|
betterEasy.tags,
|
|
11648
|
+
betterEasy.title,
|
|
11649
|
+
betterEasy.description,
|
|
11648
11650
|
cPara.category,
|
|
11649
11651
|
cPara.Category,
|
|
11650
11652
|
cPara["LCSC Category"],
|
|
11651
11653
|
cPara["JLCPCB Category"],
|
|
11654
|
+
cPara.package,
|
|
11655
|
+
cPara.pre,
|
|
11652
11656
|
betterEasy.category
|
|
11653
11657
|
].some(categoryValueContainsPushbutton);
|
|
11654
11658
|
};
|