open-physiology / open-physiology-viewer

Apache License 2.0
7 stars 7 forks source link

wrapper filehandler fix ArrayBuffer issues and add cleanup #219

Open tgbugs opened 1 year ago

tgbugs commented 1 year ago

for some reason fs can no longer write the ArrayBuffer type, so add a caste to avoid issues

also it seems that one of the dependencies is failing to clean up file handles which is preventing the script from exiting, so we use a hack to manually clean everything up after the final step completes, for json-ld -> flattened this means we have to manually set this.result in the callback and have to rename this to avoid issues