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

restify

Package Overview
Dependencies
Maintainers
2
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 2.8.3 to 2.8.4

9

CHANGES.md

@@ -5,2 +5,11 @@ # restify Changelog

## 2.8.4
- Update dtrace-provider, bunyan and backoff
- Fix request URL cache interaction with dtrace probes
## 2.8.3
- Support html5 multiple file uploads
## 2.8.2

@@ -7,0 +16,0 @@

2

lib/plugins/query.js

@@ -28,3 +28,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

req._query = req.query = qs.parse(req.getQuery());
req.query = qs.parse(req.getQuery());
if (options.mapParams !== false) {

@@ -31,0 +31,0 @@ Object.keys(req.query).forEach(function (k) {

@@ -137,7 +137,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

Request.prototype.getHref = function getHref() {
if (this._href !== undefined)
return (this._href);
this._href = this.getUrl().href;
return (this._href);
return (this.getUrl().href);
};

@@ -161,7 +157,3 @@ Request.prototype.href = Request.prototype.getHref;

Request.prototype.getPath = function getPath() {
if (this._path !== undefined)
return (this._path);
this._path = this.getUrl().pathname;
return (this._path);
return (this.getUrl().pathname);
};

@@ -172,7 +164,3 @@ Request.prototype.path = Request.prototype.getPath;

Request.prototype.getQuery = function getQuery() {
if (this._query !== undefined)
return (this._query);
this._query = this.getUrl().query || {};
return (this._query);
return (this.getUrl().query || {});
};

@@ -188,6 +176,6 @@ Request.prototype.query = Request.prototype.getQuery;

Request.prototype.getUrl = function getUrl() {
if (this._url !== undefined)
return (this._url);
this._url = url.parse(this.url);
if (this._cacheURL !== this.url) {
this._url = url.parse(this.url);
this._cacheURL = this.url;
}
return (this._url);

@@ -194,0 +182,0 @@ };

@@ -468,6 +468,5 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

// Verify the incoming origin against the whitelist. The result will
// either be the matching origin, or `*`.
origin = cors.matchOrigin(req, cors.origins);
if (origin) {
// Verify the incoming origin against the whitelist. Pass the origin
// through if there is a match.
if (cors.matchOrigin(req, cors.origins)) {
res.setHeader('Access-Control-Allow-Origin', origin);

@@ -474,0 +473,0 @@ if (cors.credentials) {

@@ -32,3 +32,4 @@ {

"Brian Pin",
"Ben Doerr"
"Ben Doerr",
"Patrick Mooney"
],

@@ -38,3 +39,3 @@ "name": "restify",

"description": "REST framework",
"version": "2.8.3",
"version": "2.8.4",
"repository": {

@@ -56,4 +57,4 @@ "type": "git",

"assert-plus": "^0.1.5",
"backoff": "^2.3.0",
"bunyan": "^0.23.1",
"backoff": "^2.4.0",
"bunyan": "^1.2.3",
"csv": "^0.4.0",

@@ -77,3 +78,3 @@ "deep-equal": "^0.2.1",

"optionalDependencies": {
"dtrace-provider": "^0.2.8"
"dtrace-provider": "^0.3.1"
},

@@ -80,0 +81,0 @@ "devDependencies": {

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