@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.
- package/dist/index.js +2 -8
- 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.
|
|
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
|
-
|
|
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
|
}
|