@tscircuit/core 0.0.441 → 0.0.442
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 +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -476,6 +476,11 @@ var cssSelectPrimitiveComponentAdapterOnlySubcircuits = {
|
|
|
476
476
|
|
|
477
477
|
// lib/components/base-components/PrimitiveComponent/preprocessSelector.ts
|
|
478
478
|
var preprocessSelector = (selector) => {
|
|
479
|
+
if (/net\.[^\s>]*\./.test(selector)) {
|
|
480
|
+
throw new Error(
|
|
481
|
+
'Net names cannot contain a period, try using "sel.net..." to autocomplete with conventional net names, e.g. V3_3'
|
|
482
|
+
);
|
|
483
|
+
}
|
|
479
484
|
return selector.replace(/ pin/g, " port").replace(/ subcircuit\./g, " group[isSubcircuit=true]").replace(/([^ ])\>([^ ])/g, "$1 > $2").replace(
|
|
480
485
|
/(^|[ >])(?!pin\.)(?!port\.)(?!net\.)([A-Z][A-Za-z0-9_-]*)\.([A-Za-z0-9_-]+)/g,
|
|
481
486
|
(_, sep, name, pin) => {
|
|
@@ -1597,6 +1602,11 @@ var Net = class extends PrimitiveComponent2 {
|
|
|
1597
1602
|
var createNetsFromProps = (component, props) => {
|
|
1598
1603
|
for (const prop of props) {
|
|
1599
1604
|
if (typeof prop === "string" && prop.startsWith("net.")) {
|
|
1605
|
+
if (/net\.[^\s>]*\./.test(prop)) {
|
|
1606
|
+
throw new Error(
|
|
1607
|
+
'Net names cannot contain a period, try using "sel.net..." to autocomplete with conventional net names, e.g. V3_3'
|
|
1608
|
+
);
|
|
1609
|
+
}
|
|
1600
1610
|
const subcircuit = component.getSubcircuit();
|
|
1601
1611
|
if (!subcircuit.selectOne(prop)) {
|
|
1602
1612
|
const net = new Net({
|
|
@@ -9387,7 +9397,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9387
9397
|
var package_default = {
|
|
9388
9398
|
name: "@tscircuit/core",
|
|
9389
9399
|
type: "module",
|
|
9390
|
-
version: "0.0.
|
|
9400
|
+
version: "0.0.441",
|
|
9391
9401
|
types: "dist/index.d.ts",
|
|
9392
9402
|
main: "dist/index.js",
|
|
9393
9403
|
module: "dist/index.js",
|