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

blue-cot

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-cot - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

.npmignore

14

cot.js

@@ -6,6 +6,6 @@ // Generated by CoffeeScript 1.10.0

Cot = function(opts) {
var auth, hostname, notStandardHttpPort, notStandardHttpsPort, pass, port, ref, ssl, user;
var auth, hostname, notStandardHttpPort, notStandardHttpsPort, pass, port, protocol, ref, ssl, user;
port = opts.port, hostname = opts.hostname, user = opts.user, pass = opts.pass, auth = opts.auth, ssl = opts.ssl, hostname = opts.hostname;
this.port = port;
this.hostname = hostname;
protocol = ssl ? 'https' : 'http';
this.host = protocol + "://" + hostname + ":" + port;
if (auth != null) {

@@ -16,4 +16,3 @@ ref = auth.split(':'), user = ref[0], pass = ref[1];

this.pass = pass;
this.ssl = ssl;
this.hostHeader = this.hostname;
this.hostHeader = hostname;
notStandardHttpPort = !ssl && port !== 80;

@@ -43,4 +42,3 @@ notStandardHttpsPort = ssl && port !== 443;

jsonRequest: function(method, path, body) {
var headers, params, protocol, verb;
protocol = this.ssl ? 'https' : 'http';
var headers, params, verb;
headers = {

@@ -51,3 +49,3 @@ accept: 'application/json',

params = {
url: protocol + "://" + this.hostname + ":" + this.port + path,
url: "" + this.host + path,
headers: headers

@@ -54,0 +52,0 @@ };

@@ -14,12 +14,11 @@ {

"watch": "coffee -cw cot.coffee",
"build-test": "coffee -c test/*.coffee",
"watch-test": "coffee -cw test/*.coffee",
"test": "npm run build-test && mocha",
"test": "mocha --compilers coffee:coffee-script/register",
"test-watch": "mocha --compilers coffee:coffee-script/register --watch",
"benchmark": "coffee benchmark/benchmark.coffee",
"prepublish": "npm build && npm test"
},
"version": "1.0.2",
"version": "2.0.0",
"main": "cot",
"dependencies": {
"bluereq": "^0.3.0"
"bluereq": "^2.1.0"
},

@@ -39,2 +38,3 @@ "author": {

"chai": "^1.9.2",
"coffee-errors": "^0.8.6",
"coffee-script": "^1.10.0",

@@ -41,0 +41,0 @@ "cot": "0.0.6",

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

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