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/index.js
CHANGED
|
@@ -10014,7 +10014,10 @@ var normalizeResistorValue = (value) => {
|
|
|
10014
10014
|
var isResistorComponent = (betterEasy) => {
|
|
10015
10015
|
const componentParameters = betterEasy.dataStr.head.c_para;
|
|
10016
10016
|
const packageName = componentParameters.package;
|
|
10017
|
-
|
|
10017
|
+
const hasResistorCategory = betterEasy.tags.some(
|
|
10018
|
+
(tag) => /\bresistors?\b/i.test(tag)
|
|
10019
|
+
);
|
|
10020
|
+
return (componentParameters.pre?.toUpperCase() === "R?" || hasResistorCategory) && typeof packageName === "string" && standardSmdResistorPackagePattern.test(packageName.trim()) && normalizeResistorValue(componentParameters.Value) !== void 0;
|
|
10018
10021
|
};
|
|
10019
10022
|
|
|
10020
10023
|
// lib/websafe/convert-to-typescript-component/category-value-contains-switch.ts
|