Comparing version 0.3.9 to 0.3.10
@@ -145,2 +145,4 @@ // Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved. | ||
httpCode: code, | ||
restCode: (obj && obj.code) ? obj.code : undefined, | ||
message: (obj && obj.message) ? obj.message : obj, | ||
details: { | ||
@@ -182,2 +184,4 @@ expected: opts.expect, | ||
httpCode: code, | ||
restCode: (obj && obj.code) ? obj.code : undefined, | ||
message: (obj && obj.message) ? obj.message : obj, | ||
details: { | ||
@@ -218,2 +222,4 @@ expected: opts.expect, | ||
httpCode: code, | ||
restCode: (obj && obj.code) ? obj.code : undefined, | ||
message: (obj && obj.message) ? obj.message : obj, | ||
details: { | ||
@@ -255,2 +261,4 @@ expected: opts.expect, | ||
httpCode: code, | ||
restCode: (obj && obj.code) ? obj.code : undefined, | ||
message: (obj && obj.message) ? obj.message : obj, | ||
details: { | ||
@@ -291,2 +299,4 @@ expected: opts.expect, | ||
httpCode: code, | ||
restCode: (obj && obj.code) ? obj.code : undefined, | ||
message: (obj && obj.message) ? obj.message : obj, | ||
details: { | ||
@@ -312,2 +322,7 @@ expected: opts.expect, | ||
if (!options.path) | ||
optiongs.path = '/'; | ||
options.path = options.path.replace(/\/+/g, '/'); | ||
var data = null; | ||
@@ -436,3 +451,3 @@ if (options.body && | ||
default: | ||
res.params = {}; | ||
res.params = res.body; | ||
break; | ||
@@ -520,3 +535,5 @@ } | ||
var qs = querystring.stringify(opts.query); | ||
opts.path = opts.path + ((opts.path.indexOf('?') === -1) ? '?' : '&') + qs; | ||
var qsExists = (opts.path.indexOf('?') === -1); | ||
if (qs) | ||
opts.path = opts.path + (qsExists ? '?' : '&') + qs; | ||
} | ||
@@ -523,0 +540,0 @@ |
{ | ||
"name": "restify", | ||
"description": "REST framework specifically meant for web service APIs", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
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
220744
4149