easyeda 0.0.25 → 0.0.27
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/cli/main.cjs +4 -5
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +3 -4
- package/dist/lib/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/cli/main.cjs
CHANGED
|
@@ -28873,7 +28873,7 @@ var ShapeItemSchema = import_zod.z.object({
|
|
|
28873
28873
|
endX,
|
|
28874
28874
|
endY
|
|
28875
28875
|
] = arcData.match(
|
|
28876
|
-
/M
|
|
28876
|
+
/M\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)\s*A\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)\s*([\d.]+)\s*([01])\s*([01])\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)/
|
|
28877
28877
|
);
|
|
28878
28878
|
const start = [Number(startX), Number(startY)];
|
|
28879
28879
|
const end = [Number(endX), Number(endY)];
|
|
@@ -29176,7 +29176,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
29176
29176
|
var package_default = {
|
|
29177
29177
|
name: "easyeda",
|
|
29178
29178
|
type: "module",
|
|
29179
|
-
version: "0.0.
|
|
29179
|
+
version: "0.0.26",
|
|
29180
29180
|
files: ["dist"],
|
|
29181
29181
|
repository: {
|
|
29182
29182
|
type: "git",
|
|
@@ -29597,10 +29597,9 @@ export const use${componentName} = createUseComponent(${componentName}, pinNames
|
|
|
29597
29597
|
|
|
29598
29598
|
// lib/utils/normalize-manufacturer-part-number.ts
|
|
29599
29599
|
function normalizeManufacturerPartNumber(partNumber) {
|
|
29600
|
-
let normalized = partNumber.replace(
|
|
29601
|
-
normalized = normalized.replace(/[^a-zA-Z0-9_$]/g, "");
|
|
29600
|
+
let normalized = partNumber.replace(/[-]/g, "_").replace(/[^a-zA-Z0-9_$]/g, "_");
|
|
29602
29601
|
if (/^\d/.test(normalized)) {
|
|
29603
|
-
normalized = "
|
|
29602
|
+
normalized = "A_" + normalized;
|
|
29604
29603
|
}
|
|
29605
29604
|
return normalized;
|
|
29606
29605
|
}
|