@tscircuit/core 0.0.1252 → 0.0.1253
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12399,7 +12399,9 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
12399
12399
|
_queueInvalidFootprintPropMessage(footprint, error) {
|
|
12400
12400
|
const rawErrorMessage = error instanceof Error ? error.message : String(error);
|
|
12401
12401
|
const isLikelyMissingLibraryPrefix = footprint.includes("/") && !footprint.includes(":");
|
|
12402
|
-
const
|
|
12402
|
+
const isLikelyJlcpcbPartNumber = /^c\d+$/i.test(footprint);
|
|
12403
|
+
const resolvedJlcpcbPartNumber = isLikelyJlcpcbPartNumber ? `C${footprint.replace(/^c/i, "")}` : null;
|
|
12404
|
+
const helpfulHint = isLikelyMissingLibraryPrefix ? ` If this is a KiCad footprint, use "kicad:${footprint}".` : resolvedJlcpcbPartNumber ? ` If this is a JLCPCB part number, use "jlcpcb:${resolvedJlcpcbPartNumber}".` : "";
|
|
12403
12405
|
const message = `Invalid footprint prop on ${this.getDisplayName()}: "${footprint}".${helpfulHint} Parser details: ${rawErrorMessage}`;
|
|
12404
12406
|
if (!this._invalidFootprintPropMessages.includes(message)) {
|
|
12405
12407
|
this._invalidFootprintPropMessages.push(message);
|
|
@@ -21354,7 +21356,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
21354
21356
|
var package_default = {
|
|
21355
21357
|
name: "@tscircuit/core",
|
|
21356
21358
|
type: "module",
|
|
21357
|
-
version: "0.0.
|
|
21359
|
+
version: "0.0.1252",
|
|
21358
21360
|
types: "dist/index.d.ts",
|
|
21359
21361
|
main: "dist/index.js",
|
|
21360
21362
|
module: "dist/index.js",
|