easyeda 0.0.25 → 0.0.26
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 +3 -4
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +2 -3
- package/dist/lib/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/cli/main.cjs
CHANGED
|
@@ -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.25",
|
|
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
|
}
|