New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

@datagrok-libraries/math

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datagrok-libraries/math - npm Package Compare versions

Comparing version

to
1.0.5

@@ -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) {