Comparing version 2.8.3 to 2.8.4
@@ -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 @@ |
@@ -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": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
180020
4642
9
+ Addedbunyan@1.8.15(transitive)
+ Addeddtrace-provider@0.3.20.8.8(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addednan@1.3.02.22.0(transitive)
+ Addedsafe-json-stringify@1.2.0(transitive)
- Removedbunyan@0.23.1(transitive)
- Removeddtrace-provider@0.2.8(transitive)
Updatedbackoff@^2.4.0
Updatedbunyan@^1.2.3