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

@shardus/monitor-client

Package Overview
Dependencies
Maintainers
4
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.8 to 2.1.9

2

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

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

@@ -6,2 +6,3 @@ function redirectToSignIn() {

async function requestWithToken(url) {
console.log('requesting with token', url)
let token = loadToken()

@@ -8,0 +9,0 @@ const options = {

; (function main() {
const url = new URL(window.location.href)
// const monitorServerUrl = 'http://208.110.82.50:3000/api'
const monitorServerUrl = window.origin + '/api'

@@ -5,0 +4,0 @@ console.log('Monitor server', monitorServerUrl)

@@ -37,2 +37,3 @@

mounted: function () {
console.log('Sync page loaded!')
let data = [this.trace]

@@ -69,4 +70,4 @@ this.layout = {

async getReport() {
const response = await axios.get(`/api/sync-report`)
const heartbeatResponse = await axios.get(`/api/report`)
const response = await requestWithToken(`${monitorServerUrl}/sync-report`)
const heartbeatResponse = await requestWithToken(`${monitorServerUrl}/report`)
const report = response.data

@@ -73,0 +74,0 @@ if (Object.keys(report).length === 0) return

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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