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

bitabase-gateway

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitabase-gateway - npm Package Compare versions

Comparing version 1.5.1 to 1.5.4

modules/setupServerSyncer.js

5

controllers/setupUsageCollector.js

@@ -35,3 +35,6 @@ const callarest = require('callarest');

const managerUrl = selectRandomItemFromArray(config.managers);
const managerUrl = selectRandomItemFromArray(config.managers || []);
if (!managerUrl) {
return console.log('usageCollection could not send data as no managers exist');
}

@@ -38,0 +41,0 @@ callarest({

3

modules/selectRandomItemFromArray.js
function selectRandomItemFromArray (array) {
if (!array || array.length === 0) {
return;
}
return array[Math.floor(Math.random() * array.length)];

@@ -3,0 +6,0 @@ }

{
"name": "bitabase-gateway",
"version": "1.5.1",
"version": "1.5.4",
"description": "",

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

@@ -11,3 +11,3 @@ if (process.env.NODE_ENV === 'development') {

const setupUsageCollector = require('./controllers/setupUsageCollector');
const setupServerSyncer = require('./controllers/setupServerSyncer');
const setupServerSyncer = require('./modules/setupServerSyncer');

@@ -28,3 +28,3 @@ function createServer (config = {}) {

const usageCollector = setupUsageCollector(config);
const serverSyncer = setupServerSyncer(config);
const serverSyncer = setupServerSyncer(config, 'gateway');

@@ -31,0 +31,0 @@ let server;

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