We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent becfaaa commit 0c4cd52Copy full SHA for 0c4cd52
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "algorithm-visualizer",
3
- "version": "2.1.5",
+ "version": "2.1.6",
4
"description": "JavaScript Tracers for Algorithm Visualizer",
5
"main": "dist/tracers.js",
6
"scripts": {
src/Tracer.js
@@ -50,10 +50,9 @@ if (ALGORITHM_VISUALIZER) {
50
const opn = require('opn');
51
process.on('beforeExit', () => {
52
axios.post('https://algorithm-visualizer.org/api/visualizations', { content: JSON.stringify(Tracer.traces) })
53
- .then(response => {
54
- opn(response.data, { wait: false });
55
- process.exit();
56
- });
+ .then(response => opn(response.data, { wait: false }))
+ .catch(console.error)
+ .finally(() => process.exit());
57
});
58
}
59
0 commit comments