@tscircuit/ngspice-spice-engine 0.0.18 → 0.0.19

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 +2 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // lib/import-eecircuit-engine.ts
2
- var EECIRCUIT_ENGINE_URL = "https://jscdn.tscircuit.com/@tscircuit/eecircuit-engine/1.7.4/+esm";
2
+ var EECIRCUIT_ENGINE_URL = "https://jscdn.tscircuit.com/@tscircuit/eecircuit-engine/1.7.6/+esm";
3
3
  var modulePromise = null;
4
4
  var importEecircuitEngine = async () => {
5
5
  if (!modulePromise) {
@@ -517,13 +517,7 @@ var simulate = async (spiceString) => {
517
517
  const simulation = await getSimulation();
518
518
  const simulationSpiceString = rewritePspiceCompatibilitySyntax(spiceString);
519
519
  simulation.setNetList(simulationSpiceString);
520
- let result;
521
- try {
522
- result = await simulation.runSim();
523
- } catch (error) {
524
- console.error(error);
525
- throw error;
526
- }
520
+ const result = await simulation.runSim();
527
521
  if (!result) {
528
522
  return { simulationResultCircuitJson: [] };
529
523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/ngspice-spice-engine",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "A tscircuit-compatible SPICE engine using ngspice.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",