easyeda 0.0.364 → 0.0.366
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 +4 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +5 -2
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -13641,7 +13641,10 @@ var normalizeResistorValue = (value) => {
|
|
|
13641
13641
|
var isResistorComponent = (betterEasy) => {
|
|
13642
13642
|
const componentParameters = betterEasy.dataStr.head.c_para;
|
|
13643
13643
|
const packageName = componentParameters.package;
|
|
13644
|
-
|
|
13644
|
+
const hasResistorCategory = betterEasy.tags.some(
|
|
13645
|
+
(tag) => /\bresistors?\b/i.test(tag)
|
|
13646
|
+
);
|
|
13647
|
+
return (componentParameters.pre?.toUpperCase() === "R?" || hasResistorCategory) && typeof packageName === "string" && standardSmdResistorPackagePattern.test(packageName.trim()) && normalizeResistorValue(componentParameters.Value) !== void 0;
|
|
13645
13648
|
};
|
|
13646
13649
|
|
|
13647
13650
|
// lib/websafe/convert-to-typescript-component/category-value-contains-switch.ts
|