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

tcurl

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcurl - npm Package Compare versions

Comparing version 4.8.2 to 4.8.3

5

index.js

@@ -73,3 +73,3 @@ #!/usr/bin/env node

console.log(' --health');
console.log(' --timeout [num]')
console.log(' --timeout [num]');
return;

@@ -194,5 +194,2 @@ }

} else if (opts.thrift) {
if (opts.head) {
opts.head = JSON.parse(opts.head);
}
if (opts.body) {

@@ -199,0 +196,0 @@ opts.body = JSON.parse(opts.body);

2

package.json
{
"name": "tcurl",
"version": "4.8.2",
"version": "4.8.3",
"description": "A command line utility to talk to a tchannel server",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -25,2 +25,3 @@ // Copyright (c) 2015 Uber Technologies, Inc.

var timers = require('timers');
var test = require('tape');

@@ -100,3 +101,3 @@ var tcurl = require('../index.js');

function slowEcho(opts, req, head, body, cb) {
setTimeout(function slowReturn() {
timers.setTimeout(function slowReturn() {
cb(null, {

@@ -103,0 +104,0 @@ ok: true,

@@ -41,3 +41,3 @@ // Copyright (c) 2015 Uber Technologies, Inc.

var opts = {isOptions: true};
var opts = {isOptions: true};
var hostname = '127.0.0.1';

@@ -66,3 +66,5 @@ var port = 4040;

function onResponse(err, resp) {
if (err) return assert.end(err);
if (err) {
return assert.end(err);
}
assert.deepEqual(resp.head, {

@@ -81,4 +83,4 @@ headerName: 'responseHeader'

function health(opts, req, head, body, cb) {
assert.deepEqual(opts, {
function health(options, req, head, body, cb) {
assert.deepEqual(options, {
isOptions: true

@@ -85,0 +87,0 @@ }, 'handler receives options through registration');

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