Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adamant-api

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adamant-api - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

groups/get.js
const request = require('sync-request');
const log = require('../helpers/log');
const healthCheck = require('../helpers/healthCheck');
module.exports = (nodes) => {
module.exports = (hotNode) => {
let hotNode=healthCheck(nodes);
return (type, input) => {
return (type, input) => {
let endpoint = false,

@@ -11,0 +9,0 @@ explorer_url = false,

@@ -11,3 +11,3 @@ const request = require('request');

checkNodes(nodes, this)
},10000);
},60000);

@@ -23,5 +23,4 @@ return ()=>{

request
.get(n)
.get(n+'/api/delegates/get')
.on('response', function(response) {
console.log(n, response.statusCode)
if (response.statusCode===200) context.hotNode=n;

@@ -28,0 +27,0 @@ });

{
"name": "adamant-api",
"version": "0.0.4",
"version": "0.0.5",
"description": "\"Rest api ADAMANT Messenger\"",

@@ -5,0 +5,0 @@ "main": "index.js",

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