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

restify

Package Overview
Dependencies
Maintainers
0
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restify - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

21

lib/client.js

@@ -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 @@

2

package.json
{
"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",

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