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

@shardus/monitor-client

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shardus/monitor-client - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

7

log.js

@@ -15,3 +15,8 @@ let connection

const urlParams = new URLSearchParams(window.location.search)
this.ip = urlParams.get('ip')
let ip = urlParams.get('ip')
if (ip === 'localhost' || ip === '127.0.0.1') {
ip = window.location.href.split('//')[1].split(":")[0]
}
console.log('ip', ip)
this.ip = ip
this.port = urlParams.get('port')

@@ -18,0 +23,0 @@ },

@@ -220,3 +220,8 @@ new Vue({

async getCycleDuration(activeNode) {
const response = await axios.get(`http://${activeNode.nodeIpInfo.externalIp}:${activeNode.nodeIpInfo.externalPort}/sync-newest-cycle`)
let ip = activeNode.nodeIpInfo.externalIp
if (ip === 'localhost' || ip === '127.0.0.1') {
ip = window.location.href.split('//')[1].split(":")[0]
}
console.log('ip', ip)
const response = await axios.get(`http://${ip}:${activeNode.nodeIpInfo.externalPort}/sync-newest-cycle`)
const cycleRecord = response.data.newestCycle

@@ -223,0 +228,0 @@ if (cycleRecord && cycleRecord.duration) this.cycleDuration = cycleRecord.duration

2

package.json
{
"name": "@shardus/monitor-client",
"version": "2.1.1",
"version": "2.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "app.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