Comparing version 4.8.2 to 4.8.3
@@ -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); |
{ | ||
"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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41727