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
2
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 2.1.5 to 2.1.6

dist/torusUtils-node.js

3

package.json
{
"name": "@toruslabs/torus.js",
"version": "2.1.5",
"version": "2.1.6",
"description": "Handle communication with torus nodes",

@@ -54,2 +54,3 @@ "main": "dist/torusUtils.cjs.js",

"lint-staged": "^10.2.9",
"node-fetch": "^2.6.0",
"parallel-webpack": "^2.6.0",

@@ -56,0 +57,0 @@ "prettier": "^2.0.5",

@@ -31,3 +31,3 @@ # Torus.js

This module is distributed in 3 formats
This module is distributed in 4 formats

@@ -37,5 +37,6 @@ - `commonjs` build `dist/torusUtils.cjs.js` in es5 format

- `umd` build `dist/torusUtils.polyfill.umd.min.js` in es5 format with polyfilling corejs minified
- `nodejs` build `dist/torusUtils-node.js` in es5 format
By default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing) by referencing the correct file
You can use a different format (if you know what you're doing eg. node) by referencing the correct file

@@ -108,2 +109,19 @@ The cjs build is not polyfilled with core-js.

```js
// For Node.js
const FetchNodeDetails = require("@toruslabs/fetch-node-details/dist/fetchNodeDetails-node.js");
const TorusUtils = require('@toruslabs/torus.js/dist/torusUtils-node.js')
const fetchNodeDetails = new FetchNodeDetails()
const torus = new TorusUtils()
const verifier = 'google' // any verifier
const verifierId = 'hello@tor.us' // any verifier id
fetchNodeDetails
.getNodeDetails()
.then(({ torusNodeEndpoints, torusNodePub }) => torus.getPublicAddress(torusNodeEndpoints, torusNodePub, { verifier, verifierId }))
.then((publicAddress) => console.log(publicAddress))
```
## Requirements

@@ -110,0 +128,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