@tscircuit/core 0.0.180 → 0.0.181

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5006,20 +5006,12 @@ var Battery = class extends NormalComponent {
5006
5006
  };
5007
5007
  }
5008
5008
  initPorts() {
5009
- this.add(
5010
- new Port({
5011
- name: "pin1",
5012
- pinNumber: 1,
5013
- aliases: ["anode", "pos", "left"]
5014
- })
5015
- );
5016
- this.add(
5017
- new Port({
5018
- name: "pin2",
5019
- pinNumber: 2,
5020
- aliases: ["cathode", "neg", "right"]
5021
- })
5022
- );
5009
+ super.initPorts({
5010
+ additionalAliases: {
5011
+ pin1: ["anode", "pos", "left"],
5012
+ pin2: ["cathode", "neg", "right"]
5013
+ }
5014
+ });
5023
5015
  }
5024
5016
  doInitialSourceRender() {
5025
5017
  const { db } = this.root;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.180",
4
+ "version": "0.0.181",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",