flickr-sdk
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -12,2 +12,9 @@ # Changelog | ||
## [v3.8.0] - 2018-12-12 | ||
### Fixed | ||
- [#122] Dedupe items in the "extras" param if passed as a string, array, or set. ([@pdokas]) | ||
- [#129] Clean `undefined` oauth params from the base string. ([@jeremyruppel]) | ||
## [v3.7.0] - 2018-02-14 | ||
@@ -163,3 +170,5 @@ | ||
[v3.6.0]: https://github.com/flickr/flickr-sdk/compare/v3.5.0...v3.6.0 | ||
[Unreleased]: https://github.com/flickr/flickr-sdk/compare/v3.6.0...master | ||
[v3.7.0]: https://github.com/flickr/flickr-sdk/compare/v3.6.0...v3.7.0 | ||
[v3.8.0]: https://github.com/flickr/flickr-sdk/compare/v3.7.0...v3.8.0 | ||
[Unreleased]: https://github.com/flickr/flickr-sdk/compare/v3.8.0...master | ||
@@ -190,2 +199,4 @@ <!-- pull requests --> | ||
[#121]: https://github.com/flickr/flickr-sdk/pull/121 | ||
[#122]: https://github.com/flickr/flickr-sdk/pull/122 | ||
[#129]: https://github.com/flickr/flickr-sdk/pull/129 | ||
@@ -192,0 +203,0 @@ <!-- other links --> |
@@ -88,2 +88,20 @@ /*! | ||
/** | ||
* Returns a copy of `obj` with all undefined key/value pairs removed. | ||
* @param {Object} obj | ||
* @returns {Object} | ||
*/ | ||
function cleanParams(obj) { | ||
var tmp = {}; | ||
Object.keys(obj).forEach(function (key) { | ||
if (typeof obj[key] !== 'undefined') { | ||
tmp[key] = obj[key]; | ||
} | ||
}); | ||
return tmp; | ||
} | ||
/** | ||
* @constructor | ||
@@ -178,3 +196,3 @@ * @param {String} consumerKey The application's API key | ||
OAuth.prototype.baseString = function (method, url, params) { | ||
return join([ method, url, sortParams(params) ]); | ||
return join([ method, url, sortParams(cleanParams(params)) ]); | ||
}; | ||
@@ -181,0 +199,0 @@ |
{ | ||
"name": "flickr-sdk", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "Almost certainly the best Flickr API client in the world for node and the browser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
704084
18754