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

fh-millicore-client

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-millicore-client - npm Package Compare versions

Comparing version 0.6.11-pre to 0.6.11-pre2

6

lib/ssh.js

@@ -15,4 +15,4 @@ var request = require('request');

function preFlightValidate(req, key, cb){
if (!req.millicoreHeaders) return cb("Missing req.millicoreHeaders! (if calling this from a test, use 'req.millicoreHeaders' instead of 'req.headers'");
if (!cfg.millicore.url) return cb("Invalid request! Missing 'cfg.millicore.url' field in config");
if (!req.millicoreHeaders.host) return cb("Missing req.millicoreHeaders! (if calling this from a test, use 'req.millicoreHeaders' instead of 'req.headers'");
if (!req.millicoreHeaders.host) return cb("Invalid request! Missing 'host' field in headers");
if (!key.label || !key.key) return cb("Invalid request! No key label or key specified");

@@ -28,3 +28,3 @@ return cb();

// Note: doesn't matter what 'domain' is here in the mc url
var url = cfg.scheme + cfg.millicore.url + '/box/srv/1.1/ide/' + req.params.domain + '/user/addKey';
var url = cfg.scheme + req.millicoreHeaders.host + '/box/srv/1.1/ide/' + req.params.domain + '/user/addKey';
var headers = req.millicoreHeaders;

@@ -31,0 +31,0 @@ //This kind of defeats the purpose of a CSRF check, but since ngui issues a GET the header is never set. This request should really just be a GET anyway!!

{
"name": "fh-millicore-client",
"version": "0.6.10",
"version": "0.6.9",
"dependencies": {

@@ -5,0 +5,0 @@ "fh-internal-stats": {

{
"name": "fh-millicore-client",
"version": "0.6.11-pre",
"version": "0.6.11-pre2",
"description": "",

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

@@ -6,5 +6,3 @@ var proxyquire = require('proxyquire');

var cfg = {
millicore: {
url: 'http://dummycore'
}
url: 'http://dummycore'
};

@@ -11,0 +9,0 @@

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