@googlemaps/google-maps-services-js
Advanced tools
Comparing version 3.1.5 to 3.1.6
@@ -1,2 +0,2 @@ | ||
## [3.1.5](https://github.com/googlemaps/google-maps-services-js/compare/v3.1.4...v3.1.5) (2020-08-03) | ||
## [3.1.6](https://github.com/googlemaps/google-maps-services-js/compare/v3.1.5...v3.1.6) (2020-08-10) | ||
@@ -6,3 +6,3 @@ | ||
* export PlaceAutocompleteResult ([#430](https://github.com/googlemaps/google-maps-services-js/issues/430)) ([c229f70](https://github.com/googlemaps/google-maps-services-js/commit/c229f7028753233a76f2722bde25e9860a10721c)) | ||
* do not mutate params in serializer ([#432](https://github.com/googlemaps/google-maps-services-js/issues/432)) ([bf67cd8](https://github.com/googlemaps/google-maps-services-js/commit/bf67cd8616ebb5f1656298c3aabe0ba905e1cb4a)) | ||
@@ -9,0 +9,0 @@ ## [2.0.2](https://github.com/googlemaps/google-maps-services-js/compare/v2.0.1...v2.0.2) (2020-02-08) |
@@ -103,8 +103,10 @@ "use strict"; | ||
return (params) => { | ||
// avoid mutating params | ||
const serializedParams = Object.assign({}, params); | ||
Object.keys(format).forEach((key) => { | ||
if (key in params) { | ||
params[key] = format[key](params[key]); | ||
if (key in serializedParams) { | ||
serializedParams[key] = format[key](serializedParams[key]); | ||
} | ||
}); | ||
return query_string_1.stringify(params, queryStringOptions); | ||
return query_string_1.stringify(serializedParams, queryStringOptions); | ||
}; | ||
@@ -111,0 +113,0 @@ } |
{ | ||
"name": "@googlemaps/google-maps-services-js", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"description": "Node.js client library for Google Maps API Web Services", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
313838
5076