@datagrok-libraries/math
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ { | ||
"friendlyName": "Datagrok math library", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Library for high performance computations", | ||
@@ -14,0 +14,0 @@ "dependencies": { |
@@ -5,9 +5,10 @@ import { exportCppDbscanLib } from "./wasmDbscan.js"; | ||
const wasmUrl = new URL('./wasmDbscan.wasm', import.meta.url).href; | ||
console.log('aaa'); | ||
const wasmPath = wasmUrl.substring(0, wasmUrl.lastIndexOf('/') + 1) + 'wasmDbscan.wasm'; | ||
let wasmInstance; | ||
try { | ||
wasmInstance = await exportCppDbscanLib({locateFile: () => wasmPath}); | ||
wasmInstance = await exportCppDbscanLib({locateFile: () => wasmUrl}); | ||
} catch (e) { | ||
try { | ||
wasmInstance = await exportCppDbscanLib({locateFile: () => wasmUrl}); | ||
wasmInstance = await exportCppDbscanLib({locateFile: () => wasmPath}); | ||
} | ||
@@ -14,0 +15,0 @@ catch (e) { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
201612
0.01%1403
0.07%8
-11.11%