@hpcc-js/wasm-graphviz 1.19.0 → 1.20.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/wasm-graphviz",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "hpcc-js - WASM Graphviz",
5
5
  "type": "module",
6
6
  "exports": {
@@ -55,5 +55,5 @@
55
55
  },
56
56
  "homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
57
57
  "license": "Apache-2.0",
58
- "gitHead": "e34abaa76d55e43967e9da38228c28d75dd4d43a"
58
+ "gitHead": "f539a56609708635b900faf022e9384707b1003c"
59
59
  }
package/src/graphviz.ts CHANGED
@@ -72,7 +72,7 @@ function createFiles(graphviz: any, _options?: Options) {
72
72
  [...options.files, ...imagesToFiles(options.images)].forEach(file => graphviz.createFile(file.path, file.data));
73
73
  }
74
74
 
75
- let g_graphviz: Promise<Graphviz>;
75
+ let g_graphviz: Promise<Graphviz> | undefined;
76
76
 
77
77
  /**
78
78
  * The Graphviz layout algorithms take descriptions of graphs in a simple text language, and make diagrams in useful formats, such as images and SVG for web pages or display in an interactive graph browser.
@@ -121,6 +121,7 @@ export class Graphviz extends MainModuleEx<MainModule> {
121
121
  */
122
122
  static unload() {
123
123
  reset();
124
+ g_graphviz = undefined;
124
125
  }
125
126
 
126
127
  /**