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

@nillion/client-wasm

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nillion/client-wasm - npm Package Compare versions

Comparing version 0.1.0-rc.6 to 0.1.0-rc.7

dist/logging.js

4

dist/start-worker.js

@@ -0,3 +1,5 @@

import { Log } from "./logging.js";
export function startWorker(module, memory, state, opts, helper) {
console.log("nillion:wasm Loading wasm web worker.");
Log("Loading wasm web worker.");
const worker = new Worker(new URL("./worker.js", import.meta.url), opts);

@@ -4,0 +6,0 @@ worker.postMessage([module, memory, state, helper.mainJS()]);

@@ -0,1 +1,3 @@

import { Log } from "./logging.js";
if (

@@ -6,5 +8,5 @@ typeof WorkerGlobalScope !== "undefined" &&

self.onerror = (event) => {
console.error("nillion:wasm Error: ", event);
Log("Worker onerror invoked.");
console.error(event);
};
self.onmessage = async (event) => {

@@ -23,3 +25,3 @@ if (Array.isArray(event.data)) {

wasm.worker_entry_point(state);
console.log("nillion:wasm Worker started.");
Log("Worker started.");
} catch (err) {

@@ -30,5 +32,5 @@ console.error(err);

} else {
console.log("nillion:wasm Unhandled message: ", event);
Log("Unhandled message: ", event);
}
};
}

@@ -5,3 +5,3 @@ {

"author": "devsupport@nillion.com",
"version": "0.1.0-rc.6",
"version": "0.1.0-rc.7",
"homepage": "https://nillion.pub/client-ts",

@@ -22,3 +22,7 @@ "repository": "https://github.com/NillionNetwork/client-ts",

"commit-sha.txt"
]
],
"devDependencies": {
"browserslist": "^4.23.3",
"esbuild-plugin-browserslist": "^0.14.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc