googleapis
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -116,3 +116,3 @@ /** | ||
*/ | ||
var buildUri = function(root, paths, queryParams) { | ||
var buildUri = function(root, paths, params) { | ||
// create a path is starts with a slash and ends without it. | ||
@@ -124,4 +124,11 @@ // Preventing double slashes along the way | ||
fullPath = url.resolve(root, path); | ||
// duplicate params so as not to mangle an object passed by reference | ||
var queryParams = {}; | ||
if (params) { | ||
Object.keys(params).forEach(function(key) { | ||
queryParams[key] = params[key]; | ||
}); | ||
} | ||
queryParams = queryParams || {}; | ||
// replace path query parameters, if there are on the path | ||
@@ -128,0 +135,0 @@ for (var paramName in queryParams) { |
{ | ||
"name": "googleapis", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "Google Inc.", | ||
@@ -5,0 +5,0 @@ "description": "Google APIs Client Library for Node.js", |
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
163496
4461