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/main.cjs
CHANGED
|
@@ -1078,7 +1078,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
1078
1078
|
var package_default = {
|
|
1079
1079
|
name: "easyeda",
|
|
1080
1080
|
type: "module",
|
|
1081
|
-
version: "0.0.
|
|
1081
|
+
version: "0.0.365",
|
|
1082
1082
|
files: [
|
|
1083
1083
|
"dist"
|
|
1084
1084
|
],
|
|
@@ -10919,7 +10919,10 @@ var normalizeResistorValue = (value) => {
|
|
|
10919
10919
|
var isResistorComponent = (betterEasy) => {
|
|
10920
10920
|
const componentParameters = betterEasy.dataStr.head.c_para;
|
|
10921
10921
|
const packageName = componentParameters.package;
|
|
10922
|
-
|
|
10922
|
+
const hasResistorCategory = betterEasy.tags.some(
|
|
10923
|
+
(tag) => /\bresistors?\b/i.test(tag)
|
|
10924
|
+
);
|
|
10925
|
+
return (componentParameters.pre?.toUpperCase() === "R?" || hasResistorCategory) && typeof packageName === "string" && standardSmdResistorPackagePattern.test(packageName.trim()) && normalizeResistorValue(componentParameters.Value) !== void 0;
|
|
10923
10926
|
};
|
|
10924
10927
|
|
|
10925
10928
|
// lib/websafe/convert-to-typescript-component/category-value-contains-switch.ts
|