@tscircuit/core 0.0.2177 → 0.0.2179
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 +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17055,7 +17055,10 @@ var NormalComponent_doInitialCheckRefDesConvention = (component) => {
|
|
|
17055
17055
|
) : void 0;
|
|
17056
17056
|
const expectedPrefixes = component.getRefDesPrefixes() ?? (chipRefDesRecommendation ? getDefaultExpectedRefDesPrefixesForFtype("simple_chip") : void 0);
|
|
17057
17057
|
if (!expectedPrefixes || expectedPrefixes.length === 0) return;
|
|
17058
|
-
if (actualPrefix && expectedPrefixes.
|
|
17058
|
+
if (actualPrefix && expectedPrefixes.some(
|
|
17059
|
+
(expectedPrefix) => actualPrefix === expectedPrefix || actualPrefix.startsWith(expectedPrefix)
|
|
17060
|
+
))
|
|
17061
|
+
return;
|
|
17059
17062
|
const expectedPrefixMessage = expectedPrefixes.length === 1 ? expectedPrefixes[0] : `one of ${expectedPrefixes.join(", ")}`;
|
|
17060
17063
|
const message = chipRefDesRecommendation ? `The "${chipRefDesRecommendation.prefix}" prefix is being used with a <chip />, try using it with ${chipRefDesRecommendation.recommendation}` : `Component ${sourceComponent.name} has ftype="${sourceComponent.ftype}" but reference designator should start with ${expectedPrefixMessage}`;
|
|
17061
17064
|
db2.insert({
|
|
@@ -119556,7 +119559,7 @@ var RoutingPhasePreparationError = class extends Error {
|
|
|
119556
119559
|
var package_default = {
|
|
119557
119560
|
name: "@tscircuit/core",
|
|
119558
119561
|
type: "module",
|
|
119559
|
-
version: "0.0.
|
|
119562
|
+
version: "0.0.2178",
|
|
119560
119563
|
types: "dist/index.d.ts",
|
|
119561
119564
|
main: "dist/index.js",
|
|
119562
119565
|
module: "dist/index.js",
|
|
@@ -119594,7 +119597,7 @@ var package_default = {
|
|
|
119594
119597
|
"@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
|
|
119595
119598
|
"@tscircuit/cableprinter": "^0.0.6",
|
|
119596
119599
|
"@tscircuit/capacity-autorouter": "^0.0.988",
|
|
119597
|
-
"@tscircuit/checks": "^0.0.
|
|
119600
|
+
"@tscircuit/checks": "^0.0.258",
|
|
119598
119601
|
"@tscircuit/circuit-json-util": "^0.0.123",
|
|
119599
119602
|
"@tscircuit/common": "^0.0.20",
|
|
119600
119603
|
"@tscircuit/copper-pour-solver": "^0.0.67",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2179",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
|
|
40
40
|
"@tscircuit/cableprinter": "^0.0.6",
|
|
41
41
|
"@tscircuit/capacity-autorouter": "^0.0.988",
|
|
42
|
-
"@tscircuit/checks": "^0.0.
|
|
42
|
+
"@tscircuit/checks": "^0.0.258",
|
|
43
43
|
"@tscircuit/circuit-json-util": "^0.0.123",
|
|
44
44
|
"@tscircuit/common": "^0.0.20",
|
|
45
45
|
"@tscircuit/copper-pour-solver": "^0.0.67",
|