Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@toruslabs/fetch-node-details
Advanced tools
Use this package to fetch details about Torus nodes, from a specified Smart Contract that holds details about the list of nodes & network. This will dynamically get updates about the node list, allowing the front end to continue querying the different set of nodes after migrations.
This utility library serves to find the endpoints and public keys associated with the current set of qualified nodes, which are used for key lookups, key assignments, and key retrievals by other dependent libraries.
Promises
This module is distributed in 3 formats
esm
build dist/fetchNodeDetails.esm.js
in es6 formatcommonjs
build dist/fetchNodeDetails.cjs.js
in es5 formatumd
build dist/fetchNodeDetails.umd.min.js
in es5 format without polyfilling corejs minifiedBy default, the appropriate format is used for your specified usecase You can use a different format (if you know what you're doing eg. node) by referencing the correct file
The cjs build is not polyfilled with core-js. It is upto the user to polyfill based on the browserlist they target
CDN's serve the non-core-js polyfilled version by default. You can use a different
jsdeliver
<script src="https://cdn.jsdelivr.net/npm/@toruslabs/fetch-node-details"></script>
unpkg
<script src="https://unpkg.com/@toruslabs/fetch-node-details"></script>
Add @toruslabs/fetch-node-details
to your project:
import FetchNodeDetails from "@toruslabs/fetch-node-details";
const nodeDetailManager = new NodeDetailManager({ network: "mainnet" });
const details = await nodeDetailManager.getNodeDetails({ verifier: "google", verifierId: "hello@tor.us" });
const FetchNodeDetails = require("@toruslabs/fetch-node-details").default;
const fetchNodeDetails = new FetchNodeDetails({ network: "mainnet" });
fetchNodeDetails.getNodeDetails({ verifier: "google", verifierId: "hello@tor.us" }).then((nodeInfo) => console.log(nodeInfo));
// For Node.js
const FetchNodeDetails = require("@toruslabs/fetch-node-details/dist/fetchNodeDetails-node.js").default;
const fetchNodeDetails = new FetchNodeDetails({ network: "mainnet" });
fetchNodeDetails.getNodeDetails({ verifier: "google", verifierId: "hello@tor.us" }).then((nodeInfo) => console.log(nodeInfo));
@babel/runtime
Requires a .env file with the parameters in .env.development
FAQs
Fetches the node details for torus nodes
The npm package @toruslabs/fetch-node-details receives a total of 8,283 weekly downloads. As such, @toruslabs/fetch-node-details popularity was classified as popular.
We found that @toruslabs/fetch-node-details demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.