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

@toruslabs/torus.js

Package Overview
Dependencies
Maintainers
5
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/torus.js - npm Package Compare versions

Comparing version 12.3.1 to 12.3.2

9

dist/torusUtils.esm.js

@@ -718,3 +718,3 @@ import stringify from 'json-stable-stringify';

}
return Promise.reject(new Error(`invalid ${JSON.stringify(resultArr)}`));
return Promise.reject(new Error(`invalid commitment results ${JSON.stringify(resultArr)}`));
}).then(responses => {

@@ -904,3 +904,3 @@ const promiseArrRequest = [];

sessionTokensResolved.forEach((x, index) => {
if (!x) sessionTokenData.push(undefined);else sessionTokenData.push({
if (!x || !sessionSigsResolved[index]) sessionTokenData.push(undefined);else sessionTokenData.push({
token: x.toString("base64"),

@@ -954,3 +954,6 @@ signature: sessionSigsResolved[index].toString("hex"),

}
throw new Error("Invalid");
if (completedRequests.length < thresholdReqCount) {
throw new Error(`Waiting for results from more nodes, pending: ${thresholdReqCount - completedRequests.length}`);
}
throw new Error(`Invalid results, threshold pub key: ${thresholdPublicKey}, nonce data found: ${!!thresholdNonceData}, extended verifierId: ${verifierParams.extended_verifier_id}`);
});

@@ -957,0 +960,0 @@ }).then(async res => {

{
"name": "@toruslabs/torus.js",
"version": "12.3.1",
"version": "12.3.2",
"description": "Handle communication with torus nodes",

@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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